Adding feature support "Extended TV Range" (ETR): 30 Cams || 0 to go :-) - page 11 - General Discussion and Assistance - CHDK Forum

Adding feature support "Extended TV Range" (ETR): 30 Cams || 0 to go :-)

  • 184 Replies
  • 61157 Views
*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #100 on: 03 / August / 2014, 19:06:18 »
Advertisements
Please, one more test: ixus50_sd400 101b.
This one again shows the AF freeze after turning the camera on like I detailed before.
Well, it's locked and I can't do anything but I had the Misc values up in the previous version. So I'm seeing them. They are different. PS1: 0x0000affc and this is a surprise on USB plug-in plug out PS0 changes from 0x0000001a to 0x0000005a in shooting mode. In play mode it's also PS0 that changes. values are 0x00000019 and 0x00000059.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #101 on: 03 / August / 2014, 19:18:15 »
Meanwhile I looked at the only two older cameras CHDK supports. IXUS 30 and IXUS 40. With them I got confused by the Misc Debug Value output. They give 4 different values: MEM,FB,ZB,USB None of which changed on USB plug-in / Unplug on a current CHDK 1.3 build.
core/gui_osd.c should be patched to show phy_status[0..2] values. Patch is in attachment.

Well, it's locked and I can't do anything but I had the Misc values up in the previous version. So I'm seeing them. They are different. PS1: 0x0000affc and this is a surprise on USB plug-in plug out PS0 changes from 0x0000001a to 0x0000005a in shooting mode. In play mode it's also PS0 that changes. values are 0x00000019 and 0x00000059.
That's good :). Please test the new version for ixus50_sd400 101b.
« Last Edit: 23 / August / 2014, 10:58:47 by nafraf »

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #102 on: 03 / August / 2014, 19:30:21 »
That's good :). Please test the new version for ixus50_sd400 101b.
This version is back at the original PS1: 0x0000affe which doesn't change in shooting mode and becomes 0x0000aefe in play mode. PS0 no longer changes on USB.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #103 on: 03 / August / 2014, 19:43:45 »
That's good :). Please test the new version for ixus50_sd400 101b.
This version is back at the original PS1: 0x0000affe which doesn't change in shooting mode and becomes 0x0000aefe in play mode. PS0 no longer changes on USB.
This happens when get_usb_bit() tries to read usb directly, probably, the code is reading wrong address.

In this version, get_usb_bit() uses _kbd_read_keys_r2(usb_physw), USB_MASK 0x40, USB_IDX 0
« Last Edit: 23 / August / 2014, 10:59:04 by nafraf »

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #104 on: 03 / August / 2014, 19:58:43 »
In this version, get_usb_bit() uses _kbd_read_keys_r2(usb_physw), USB_MASK 0x40, USB_IDX 0
This version is still at the original PS1: 0x0000affe which doesn't change in shooting mode and becomes 0x0000aefe in play mode. PS0 sometimes flickers between 0x00000012 and 0x0000001a in shooting mode but not reliably on every USB plug-un / unplug. I'm not sure if it's related. It seemed to be but trying it a couple of times it seemed kind of random.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #105 on: 03 / August / 2014, 20:10:16 »
Meanwhile I looked at the only two older cameras CHDK supports. IXUS 30 and IXUS 40. With them I got confused by the Misc Debug Value output. They give 4 different values: MEM,FB,ZB,USB None of which changed on USB plug-in / Unplug on a current CHDK 1.3 build.
core/gui_osd.c should be patched to show phy_status[0..2] values. Patch is in attachment.
Thank you for the patch. After I figured out what to do with it and CHDK Shell I built the two versions for IXUS 30 and IXUS 40 that show the right values. I can tell you now that they both have PS0 going from 0x0000001a to 0x0000005a just like the one version you posted for the IXUS 50 that froze but acted on USB.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #106 on: 03 / August / 2014, 21:31:39 »
Thank you for the patch. After I figured out what to do with it and CHDK Shell I built the two versions for IXUS 30 and IXUS 40 that show the right values. I can tell you now that they both have PS0 going from 0x0000001a to 0x0000005a just like the one version you posted for the IXUS 50 that froze but acted on USB.
Current IXUS40 and IXUS30 source code use (platform/ixusXX_sdXXXX/kbd.c):
#define USB_MASK 0x40
#define USB_IDX  2

USB_MASK matches with your observation, but USB_IDX seems to be wrong. Please change the definition to USB_IDX 0, recompile and see if USB remote shoot works.

EDIT: get_usb_bit() does not work because _kbd_read_keys_r2() points to null.
« Last Edit: 03 / August / 2014, 23:37:02 by nafraf »

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #107 on: 03 / August / 2014, 22:50:56 »
Test version for ixus30_sd4200 100k.
- filewritetask() has not been implemented
EDIT: New attachment. Please test USB remote shoot.
« Last Edit: 23 / August / 2014, 10:59:18 by nafraf »

*

Offline nafraf

  • *****
  • 1308
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #108 on: 03 / August / 2014, 22:52:53 »
Test version for ixus40_sd300 100k.
- filewritetask() has not been implemented
« Last Edit: 23 / August / 2014, 10:59:28 by nafraf »

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "Extended TV Range" (ETR): 30 Cams || 8 to go :-)
« Reply #109 on: 04 / August / 2014, 06:24:44 »
USB Remote tests for IXUS 30 and IXUS 40 gave identical results with the versions you posted. USB remote does not work. PS0 no longer changes on USB plug-in / unplug. PS1 stays constant in shooting modes but changes from 0x00038001 to 0x00038101 in play mode.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal