Forgot Password
Pentax Camera Forums Home
 

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




Join Date: Oct 2014
Posts: 9
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
Pentaxian




Join Date: Jun 2009
Location: GMT +10
Photos: Albums
Posts: 10,585
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
Pentaxian




Join Date: Jan 2012
Location: Slovenia
Posts: 2,141
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
UncleVanya's Avatar

Join Date: Jul 2014
Photos: Gallery | Albums
Posts: 9,527
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: 9
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: 9
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
Pentaxian




Join Date: Jan 2012
Location: Slovenia
Posts: 2,141
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
Site Supporter




Join Date: Jan 2010
Location: Michigan
Photos: Gallery
Posts: 2,073
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
K10D focus adjustment with debug mode cem.kumuk Pentax DSLR Discussion 12 01-16-2016 07:11 PM
Debug mode with K10D FW 1.31 smurfy27 Troubleshooting and Beginner Help 16 10-23-2014 05:21 AM
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 Non-Pentax Cameras: Canon, Nikon, etc. 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 02:04 PM. | See also: NikonForums.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