SD1200 IS Porting Thread - page 7 - DryOS Development - CHDK Forum

SD1200 IS Porting Thread

  • 312 Replies
  • 169613 Views
*

Offline tillo

  • *
  • 43
Re: SD1200 IS Porting Thread
« Reply #60 on: 22 / March / 2010, 12:51:27 »
Advertisements
well i tried locking the focus and it stills not working, which may mean that maybe focus is not what is bringing up those bad pictures, i come again to the conclussion that the exposure is the problem, i have also tried using the lowest exposure setting from the camera P mode but it seems to make no change, I am also having troubles with the scropst because the exposure (tv) script is written in lua and the scrip made for movement shoot is written in uBasic (it is .bas) I am not really skilled with lua nor uBasic but i have worked better with lua so I am now trying to "translate" to lua (I haven't done anything usefull yet).
one of the most important CHDK projects that made me want to try it was an automated laser trigger but we do not have the remote function either so we need to try harder, you wrote you connected the camera on the pc, How many chances are there that the camara reacts different from a remote circuit than from a pc? we may have to try with a circuit and see what happens.

Re: SD1200 IS Porting Thread
« Reply #61 on: 22 / March / 2010, 13:03:12 »
I tried connecting to a PC and connecting to a Ipod charger.  Both would put the camera into playback mode.  I think they have to be able to "hijack" the USB sense in order to use it as a remote.  I saw it in another thread where they stated they managed to disable the internal function... I assume we don't have the option to disable it yet because it has not been ported to the code yet.

*

Offline tillo

  • *
  • 43
Re: SD1200 IS Porting Thread
« Reply #62 on: 22 / March / 2010, 19:06:26 »
i tried conecting the camera to a usb I had cutoff montas ago and it went to playback mode when it percieved the change of voltage (the pin 1 and 4  where connected to their respective + or- ends of a battery) this means that the camera is originally programed like, if usb_voltage > 3v then send to playback mode or something like that (I wrote 3v only because i am not sure about the voltage of the batteries I used but I think it was 3.5v or something) with that I suppose that CHDK in other cameras changes that programing from playback mode to usb shutter, i gess what we need to do is find out where is that if usb voltage to change it into remote, I have njo idea how to do so but I'll read that kind of stuff from another cameras with the function enabled (I will look into another digic IV thread if possible).

*

Offline tillo

  • *
  • 43
Re: SD1200 IS Porting Thread
« Reply #63 on: 29 / March / 2010, 17:48:49 »
I have been trying to do a lot of changes on scripts and looking for info on the usb shutter but I have found nothing yet, I would like to have some help from a coder but it just seems thera are no big coders with this kind of camera what else can we do?
Is there a way to get a script to take a picture just before going to playback mode?
« Last Edit: 29 / March / 2010, 17:51:55 by tillo »

Re: SD1200 IS Porting Thread
« Reply #64 on: 01 / April / 2010, 21:06:03 »
The SD1200 is based on the SD780 http://chdk.wikia.com/wiki/SD780IS or sd990
I don't know if this port was based off of HarpoMa's code but that version doesn't work http://chdk.setepontos.com/index.php/topic,3995.msg48103.html#msg48103

If we can find the one that does work, we can consider copying the code over in hopes it works.  
« Last Edit: 01 / April / 2010, 21:11:35 by awdark »

Re: SD1200 IS Porting Thread
« Reply #65 on: 04 / April / 2010, 08:18:10 »
Thanks to all who have been working/experimenting with this - been fiddling for a few days to see what works and doesn't (so far managed to take some Raw pics (I think :D) just can't work out to open them...) pretty impressed with all the options CHDK adds (even if they don't work yet).

Out of curiosity; am I right in thinking everyone still reading this thread has very limited programing and/or CHDK experience? Does anyone know what has to be done to get more of the features working?

Re: SD1200 IS Porting Thread
« Reply #66 on: 04 / April / 2010, 12:48:14 »
You can use DNG4PS http://chdk.setepontos.com/index.php/topic,4324.msg46735.html#msg46735 with those settings to make normal DNG files, although I am still not 100% sure if the values are correct.  Otherwise you can view the raw with Raw Therapee

Yeah that's pretty much where we are at, we are pretty limited in this.  I think we need to have someone who knows some assembly to continue to look over the firmware dump in IDA to get more and correct the values.  From what I understand when you enable something, like the ND filter, it knows to trigger 0xDEAD123 or something and the ND filter will pop in place.  I'm guessing some of the values are wrong because its calculated from an offset from known values. Good example is this http://chdk.setepontos.com/index.php/topic,4324.msg47169.html#msg47169 and its like wow because I have no idea how they figured that out

Re: SD1200 IS Porting Thread
« Reply #67 on: 07 / April / 2010, 11:58:32 »
Hi awdark,

I haven't been here in a while, sorry for the late response.
I'll try to explain how I found those values. I'm no expert in assembly code or IDA, I just followed the guidelines that I found here about the firmware dump disassembly procedure.
Second buffer address was relatively easy to find, it was in one of the tables. I switched the existing value with the new one until I found the right address, trial and error method...
Now I had both buffer addresses but I still needed to find the flag address and offset used. To get something meaningful from assembly spaghetti code I had to compare it with already ported camera assembly code. I used the firmware dumps of both SD780 and SDD990 and I figured what was the base address of a flag. It was in one of the tables again but the offset was different from both of these cameras. So I just dumped a chunk of the memory in a file each time I would take a shot and bingo, there was one byte that changed value from 0 to 1 and back every time and the offset was 0xC.
I hope that this makes sense, you need some knowledge of assembler and good knowledge of C to achieve anything here.
« Last Edit: 08 / April / 2010, 14:00:38 by khazar011 »

*

Offline tillo

  • *
  • 43
Re: SD1200 IS Porting Thread
« Reply #68 on: 13 / April / 2010, 13:58:03 »
is there a way to make a script that saves in a txt file all the addreses that get active while the script is running so when we get usb power it saves the name and addres of usb command so we can change it to shutter? I say this because I read something like it in for developers thread at wikia that said something like that but my pc died so i couldnt check anything else here for a whle, do some of you know wat am I talking about?

Re: SD1200 IS Porting Thread
« Reply #69 on: 14 / April / 2010, 03:58:12 »
@khazar011 I think I have a understanding of what you did now, very cool but unfortunately beyond me.  

@tillo that is a very interesting thought actually http://chdk.wikia.com/wiki/Adding_Firmware_Features#Finding_RAM_addresses something like that right?  I wonder if there would be a way, with a script or something to just show everything accessed as we do a certain function. Like a gameshark, start the search, change a value, compare, change value... and hope you can lock your ammo count.

As far as I understand, that function needs the developer to enter the ram address or function of interest to debug so when they enable the "debug misc values" that specific item of interest will be displayed. I went to that file and it appears KevB did use it for some functions and I unknowingly compiled it with "get_usb_power(1)" and a few other debug functions which I think is address, focus_busy, and zoom_busy but I don't know how to use it for anything useful. :(
« Last Edit: 14 / April / 2010, 04:26:21 by awdark »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal