Running CHDK with battery door open - page 2 - General Discussion and Assistance - CHDK Forum supplierdeeply

Running CHDK with battery door open

  • 72 Replies
  • 16852 Views
Re: Running CHDK with battery door open
« Reply #10 on: 20 / January / 2014, 11:42:55 »
Advertisements
Hello, I am trying to make this work with my cameras too, but I am unsure what to do. This seems to be very closed to hardware and might harm the camera when it is done wrong, wight?  Could someone help me to figure out what to do on my SX200IS?
As reyalp pointed out in another thread,  you don't really need to use this if the cable on your "fake battery" can exit through the normal space Canon provides for that purpose.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Running CHDK with battery door open
« Reply #11 on: 20 / January / 2014, 13:15:29 »
you don't really need to use this if the cable on your "fake battery" can exit through the normal space Canon provides for that purpose.

Like below :-


Re: Running CHDK with battery door open
« Reply #12 on: 20 / January / 2014, 13:23:37 »
Yes, I see. But I am not sure whether I build my own dummies or alter the ones I got with the power supply. When using the ones that came with the supply the whole in the door will be used by them,  thus I would have to have the door open. I have four cables attached to the battery,  power and 2 to use the temperature sensor for triggering the camera. You have a battery in your cam,  right?

Re: Running CHDK with battery door open
« Reply #13 on: 20 / January / 2014, 13:27:50 »
No, it is a dummy battery that I made.

I connect the two wires to a voltage converter powered by a 6V battery.


*

Offline JvdP

  • ***
  • 174
Re: Running CHDK with battery door open
« Reply #14 on: 21 / January / 2014, 17:08:52 »
I'm also interested in how to get this working with my 240 HS.

I have an SD card extender and the battery door can't close with the ribbon cable in the way.

Re: Running CHDK with battery door open
« Reply #15 on: 21 / January / 2014, 18:05:44 »
I'm also interested in how to get this working with my 240 HS.
I have an SD card extender and the battery door can't close with the ribbon cable in the way.
There are basically three steps :
  • Identify which bit in the digital input KEY_MASK corresponds with the door switch.  One way to do this is hack kbd.c to display all three key mask registers on the camera LCD (and not pass them to the Canon firmware).
  • Modify kbd.c to ignore the bit you found in step 1.
  • Add the delay mentioned earlier in this thread to the boot.c file for your camera f/w model.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4384
Re: Running CHDK with battery door open
« Reply #16 on: 21 / January / 2014, 18:11:32 »
There is an event procedure named GetBatteryCoverClose, that can be studied, unless someone has a better idea ;). I don't know yet, maybe it will be possible to find this physw_status bit with the sigfinder.

*

Offline srsa_4c

  • ******
  • 4384
Re: Running CHDK with battery door open
« Reply #17 on: 22 / January / 2014, 11:53:05 »
maybe it will be possible to find this physw_status bit with the sigfinder.
Control event 0x905 appears to be the battery door switch. The method works on the ixus115 (DryOS r47) and a470 (DryOS r23), so I think it will work on DryOS <= r47 cameras.
I suspect that the event number changed similarly to several others in higher DryOS revisions, the new event is probably 0x205.
A patch is attached. includes the sigfinder addition and the found values for all DryOS cameras. If anyone could test it on a DryOS > r47 camera, that would be great. 'A' series cameras may not need this hack (my a3200 and a3400 operate normally with opened battery door).

To use it, change the port's kbd.c like this:
Code: [Select]
Index: platform/a470/kbd.c
===================================================================
--- platform/a470/kbd.c (revision 3326)
+++ platform/a470/kbd.c (working copy)
@@ -27,6 +27,8 @@
 
 #define USB_MASK (0x40000)
 #define USB_IDX 2
+#define BATTCOVER_FLAG      0x01000000 // Found @0xffe525b8, levent 0x905
+#define BATTCOVER_IDX       1
 
 extern void usb_remote_key( void ) ;
 int get_usb_bit()
@@ -154,6 +156,7 @@
       physw_status[USB_IDX] = physw_status[USB_IDX] & ~(SD_READONLY_FLAG | USB_MASK);
      }
     else physw_status[USB_IDX] = physw_status[USB_IDX] & ~SD_READONLY_FLAG;
+    physw_status[BATTCOVER_IDX] = physw_status[BATTCOVER_IDX] | BATTCOVER_FLAG;
     _kbd_pwr_off();
 
     if (set_fake_key & 0x10000000) {


Re: Running CHDK with battery door open
« Reply #18 on: 22 / January / 2014, 12:07:33 »
(my a3200 and a3400 operate normally with opened battery door).
Are those dual "AA" cell cameras?  If so,  how to you keep them connected when the battery door is open - on the A1200 the door is the connection between the back of the two cells.

Quote
To use it, change the port's kbd.c like this:
Probably still need the delay in boot.c to allow the camera to start up with the door open?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4384
Re: Running CHDK with battery door open
« Reply #19 on: 22 / January / 2014, 12:16:32 »
(my a3200 and a3400 operate normally with opened battery door).
Are those dual "AA" cell cameras?  If so,  how to you keep them connected when the battery door is open - on the A1200 the door is the connection between the back of the two cells.
No, both are Li-ion. The a470 uses AA cells but has an external power socket. With the hack, it doesn't shut down when powered externally and the battery door is opened.

Quote
Probably still need the delay in boot.c to allow the camera to start up with the door open?
You're right. Is there an example somewhere?

 

Related Topics