Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version 2 Likes Search this Thread
10-23-2014, 01:03 AM - 2 Likes   #1
New Member




Join Date: Oct 2014
Posts: 19
Enabling debug mode with Android phone (in my K10D)

Hi,

I've upgraded my K10D to newest 1.31 firmware, loosing ability to fix focus issues with my lenses. Debug mode is reachable using PK Tether under Microsoft Windows operating system though. Sadly, since I am die-hard gnu/linux user and free software (some call it open source) fan, using PK Tether is not an option for me, so I reverse engineered the protocol used by PK Tether and created a patch for pkTriggerCord, an open source program that do tethering with Pentax cameras under Windows/Linux/Android.

pkTriggerCord can also be used on android phones, so entering and leaving Debug mode is possible when shooting outside without the need of a computer. All necessary patched code can be found at my github repository https://github.com/samop/pktriggercord.

As for now only pktriggercord-cli is adapted to this hack (use it as pktriggercord-cli --debug-mode=1 to enable camera debug mode and pktriggercord-cli --debug-mode=0 from the command line). When applied, the camera lcd flashes a bit and then disconnects from the program. It was also tested on rooted android phone with superuser access and it works perfectly. With a little knowledge of programming you can write gui yourself.

If you try the code I am interested to know whether it works for you or not. Please specify camera model and firmware version with your report

Note: pktriggercord was not created by me so original credits for this extraordinary tool applies.
Note 2: when using the code, you are using it strictly on your account. I am not liable to any damage to your camera, data on your sd card or if your life starts spiraling downwards because of this code.

Samo.

10-23-2014, 01:28 AM   #2
Veteran Member




Join Date: Jun 2009
Posts: 11,913
Well done. I'm sure it will be useful for some people.
More power to all you Pentax hackers.
10-23-2014, 05:25 AM   #3
Veteran Member




Join Date: Jan 2012
Location: Slovenia
Photos: Gallery
Posts: 2,182
https://www.pentaxforums.com/forums/32-digital-processing-software-printing/1...your-help.html

If you want a read...
10-23-2014, 07:24 AM   #4
Loyal Site Supporter
Loyal Site Supporter
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 28,458
QuoteOriginally posted by samop Quote
Hi,

I've upgraded my K10D to newest 1.31 firmware, loosing ability to fix focus issues with my lenses. Debug mode is reachable using PK Tether under Microsoft Windows operating system though. Sadly, since I am die-hard gnu/linux user and free software (some call it open source) fan, using PK Tether is not an option for me, so I reverse engineered the protocol used by PK Tether and created a patch for pkTriggerCord, an open source program that do tethering with Pentax cameras under Windows/Linux/Android.

pkTriggerCord can also be used on android phones, so entering and leaving Debug mode is possible when shooting outside without the need of a computer. All necessary patched code can be found at my github repository https://github.com/samop/pktriggercord.

As for now only pktriggercord-cli is adapted to this hack (use it as pktriggercord-cli --debug-mode=1 to enable camera debug mode and pktriggercord-cli --debug-mode=0 from the command line). When applied, the camera lcd flashes a bit and then disconnects from the program. It was also tested on rooted android phone with superuser access and it works perfectly. With a little knowledge of programming you can write gui yourself.

If you try the code I am interested to know whether it works for you or not. Please specify camera model and firmware version with your report

Note: pktriggercord was not created by me so original credits for this extraordinary tool applies.
Note 2: when using the code, you are using it strictly on your account. I am not liable to any damage to your camera, data on your sd card or if your life starts spiraling downwards because of this code.

Samo.
What about using WINE will that allow you to use the existing tool?

10-23-2014, 08:03 AM   #5
New Member




Join Date: Oct 2014
Posts: 19
Original Poster
Wow, thanks. I will take a look into their code. I haven't ben lucky compiling gui for android from the official svn repository at sf, but I got command line working just fine. It is unpractical however to write down a set of commands whenever you want to make a photo . For Debug on/off though it is more than enough.

It would be cool to have a phone based storage as someone mentioned on that thread. Maybe adding some exif information on gps location, etc. (for those who can't mount gps receiver on the hotshoe)

Thanks.

---------- Post added 10-23-14 at 05:09 PM ----------

QuoteOriginally posted by bradshea Quote
What about using WINE will that allow you to use the existing tool?
It didn't work. It worked on virtualbox, but this is not something I want to carry with me when I am shooting. Having a mobile phone is much better and I am happy now .

Last edited by samop; 10-23-2014 at 08:41 AM.
10-24-2014, 06:11 AM   #6
New Member




Join Date: Oct 2014
Posts: 19
Original Poster
For testing purposes I've made an application that can be installed from Google Play for those, who don't like to deal with source code. Here it is: https://play.google.com/store/apps/details?id=com.penic.pkdebugmode
10-24-2014, 08:19 AM   #7
Veteran Member




Join Date: Jan 2012
Location: Slovenia
Photos: Gallery
Posts: 2,182
QuoteOriginally posted by samop Quote
For testing purposes I've made an application that can be installed from Google Play for those, who don't like to deal with source code. Here it is: https://play.google.com/store/apps/details?id=com.penic.pkdebugmode
Ko pride aparat s servisa sprobam in poročam.

12-18-2014, 01:55 PM   #8
Veteran Member




Join Date: Jan 2010
Location: Michigan
Photos: Gallery
Posts: 2,207
QuoteOriginally posted by samop Quote
free software (some call it open source) fan
I installed the pktriggercord version 0.81-04 .rpm from sourceforge.

I have not been able to get connection to the Pentax istds.
The K-01 has some functionality but the shutter speed is fixed at about 27 second and is not following the selected value.
Is anybody on here using this now?
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
android, camera, code, debug, debug mode, debug mode k10d, dslr, focus correction, gps, k10d, mode, note, phone, photography, pk, pktriggercord, tether, thanks

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug mode with K10D FW 1.31 smurfy27 Troubleshooting and Beginner Help 22 5 Days Ago 05:54 AM
K10D focus adjustment with debug mode cem.kumuk Pentax DSLR Discussion 12 01-16-2016 07:11 PM
Can't exit Debug mode K10D Mike Gallagher Troubleshooting and Beginner Help 6 09-14-2014 07:30 PM
Rumor: Is Sony prepping an Android phone with 4K video capture? jogiba Canon, Nikon, Sony, and Other Camera Brands 3 07-05-2013 10:22 PM
AF Area Test in K10D Debug Mode mcjm78 Pentax DSLR Discussion 11 02-07-2011 09:57 AM



All times are GMT -7. The time now is 03:38 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top