Porting a camera sx530hs - page 4 - DryOS Development - CHDK Forum

Porting a camera sx530hs

  • 300 Replies
  • 147592 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: Porting a camera sx530hs
« Reply #30 on: 09 / September / 2015, 14:28:41 »
Advertisements
The get_config_value/set_config_value "LUA" command, is not  working to set and get value "eco mode", some one can help me to fix the problem.
If you'd like to get answers, please don't re-edit your old posts because it's not guaranteed that anybody will notice it.

The answer to your original complaint is: I wrote that try looking around the address 0x2220, not 0x2174. I did not answer that in the hope that you'll notice the mistake.

get_config_value/set_config_value are used to get or set CHDK configuration options.

What you're looking for is either a propcase or a UI property.
For my propset 6 camera (ixus150), the ECO mode propcase seems to be 447.

Re: Porting a camera sx530hs
« Reply #31 on: 14 / September / 2015, 16:48:39 »
I have a problem. If I use SDHC 8G card, camera show me a message "Memory card error" during a shoot, this not happens if i use a SD card 2G or 1G.
Some one can help me.

*

Offline reyalp

  • ******
  • 14118
Re: Porting a camera sx530hs
« Reply #32 on: 14 / September / 2015, 21:35:25 »
I have a problem. If I use SDHC 8G card, camera show me a message "Memory card error" during a shoot, this not happens if i use a SD card 2G or 1G.
Some one can help me.
The 8G card is likely FAT32, while the 2G and 1G are probably FAT16. This shouldn't make any difference to CHDK, but maybe the FAT32 card wasn't prepared correctly.

You may have seen some instructions about partitioning cards, but this is not needed on modern cameras. If you tried to set up a multipartition card, I'd suggest reformatting it and starting over. You also should not implement the multipartition code in CHDK.

The offset for the DISKBOOT string is different for FAT32, so if you are setting it up manually, make sure you use the right one. You should be able to just copy the files, boot with "firm update" and then make the card bootable in CHDK.



Don't forget what the H stands for.

Re: Porting a camera sx530hs
« Reply #33 on: 15 / September / 2015, 13:20:43 »
I am using fat32 to SD 2G, and SDHC 4G, the problem remains.
works fine If i use SD card, but if i use the SDHC the problem appears.
I have tested differents cards and the problem is a same.
« Last Edit: 15 / September / 2015, 13:23:30 by jeronymoGustavo »


*

Offline reyalp

  • ******
  • 14118
Re: Porting a camera sx530hs
« Reply #34 on: 15 / September / 2015, 15:55:39 »
I am using fat32 to SD 2G, and SDHC 4G, the problem remains.
works fine If i use SD card, but if i use the SDHC the problem appears.
I have tested differents cards and the problem is a same.
Just to be  sure, the SDHC cards to not show this error if you don't boot CHDK? Is there any difference booting with firm update or diskboot?

CHDK doesn't know anything about specifically SD or SDHC, that's all handled by low level Canon code or hardware. Assuming the problem happens only with CHDK, there must be a bug somewhere in your code, but I don't remember any cases that were really similar. One thing that might cause weird behavior like this is changing the wrong bits in phsyw_status. Otherwise, maybe boot code. You can also try disabling task hooks and see if one of them makes the error go away.
Don't forget what the H stands for.

Re: Porting a camera sx530hs
« Reply #35 on: 17 / September / 2015, 09:00:21 »
I tryed disable hooks but the problem persists.
Debugging phsyw_status[1] the value always  return 0;

I Had a very similar problemem using a sx510 with AC adapter. The problem  happened because battery have three pin contacts, and the AC adapter have 2 pin contacts.
Using Sx530Hs the problem happens using baterry and AC adapter. I think some thing inside CHDK code don't read a center pin contact.

some one can help me.
« Last Edit: 17 / September / 2015, 09:09:07 by jeronymoGustavo »

Re: Porting a camera sx530hs
« Reply #36 on: 17 / September / 2015, 11:05:15 »
The problem  happened because battery have three pin contacts, and the AC adapter have 2 pin contacts.
Using Sx530Hs the problem happens using baterry and AC adapter. I think some thing inside CHDK code don't read a center pin contact.
The center pin connects to a thermistor temperature sensor inside the battery.  While the camera can read the value of that sensor, it is actually only used when the battery is in its charger.  The charger monitors the sensor to ensure the batter does not overhead during charging.

It's unlikely this will cause problems with a CHDK port - having or not having the middle contact should make no difference.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: Porting a camera sx530hs
« Reply #37 on: 17 / September / 2015, 14:17:59 »
There are several mentions of "memory card error" issues, unfortunately the reason is unknown and there's no known solution.
"Memory card error" for some SD cards
sx130
Problems with SD cards
Strange SD-Card Behavior
Memory card error - SX160 IS, 16 GB card bootable


Re: Porting a camera sx530hs
« Reply #38 on: 22 / September / 2015, 08:44:41 »
After power on at play_back mode, is possible read sd card through CHDK menu. In shooting mode is not possible read sd card.  If a try take a picture "Memory card error" message appears on the display.  Some one know something about this.

I changes the boot.c to startup camera on shooting mode, using this way the massage "Memory card error" don't happens.
But if connect usb cable before at power on, and using lua to operate the camera.  the message appears again.
« Last Edit: 23 / September / 2015, 13:15:54 by jeronymoGustavo »

Re: Porting a camera sx530hs
« Reply #39 on: 10 / January / 2016, 22:15:46 »
Is there any progress on the SX350 HS build?

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal