Adding feature support "File Write Task" (FWT): 52 Cams || 41 done || 11 to go - page 25 - General Discussion and Assistance - CHDK Forum supplierdeeply

Adding feature support "File Write Task" (FWT): 52 Cams || 41 done || 11 to go

  • 258 Replies
  • 86145 Views
*

Offline koshy

  • *****
  • 1096
Advertisements
Patch to s80. version 2
Ok, we needed this to get to play mode after having turned the cam on using the sliding lens cover and having connected CHDKPTP:

Code: [Select]
=set_levent_script_mode(1)
=set_levent_active(0x1085,0)
=switch_mode_usb(1)

After that things generally work fine, "JPG Remote Shoot" executes a shot, too but the JPEG file stays on the SD card and after a while of being unresponsive CHDKPTP reports:

Code: [Select]
WARNING: capture_get_data error C:\Users\web\Downloads\chdkptp-r658-win32\lua\chdku.lua:1338: timed out
ERROR: C:\Users\web\Downloads\chdkptp-r658-win32\lua\chdku.lua:1338: timed out
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
Patch to s80. version 3

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 40 done || 10 to go
« Reply #242 on: 15 / September / 2015, 19:25:38 »
Patch to s80. version 3
Thank you. I just tried to pick it up and to compile it with trunk 4227 but I get this error:

Code: [Select]
../../../../platform/s80/sub/100g/libplatformsub.a(capt_seq.o): In function `sub_FF9580EC_my':
capt_seq.c:(.text+0x308): undefined reference to `sub_FF89FD28'
collect2: ld returned 1 exit status
C:\Users\web\Downloads\gcc451\bin\gmake.exe[1]: *** [main.elf] Error 1
gmake: *** [all-recursive] Error 1

PS: Generally until there is an updated CHDK Shell can we just not use anything beyond trunk 4231 for future diff files?
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 srsa_4c

  • ******
  • 4451
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 40 done || 10 to go
« Reply #243 on: 15 / September / 2015, 19:45:35 »
Code: [Select]
../../../../platform/s80/sub/100g/libplatformsub.a(capt_seq.o): In function `sub_FF9580EC_my':
capt_seq.c:(.text+0x308): undefined reference to `sub_FF89FD28'
collect2: ld returned 1 exit status
C:\Users\web\Downloads\gcc451\bin\gmake.exe[1]: *** [main.elf] Error 1
gmake: *** [all-recursive] Error 1
AFAIK undefined reference to sub_whatever errors are usually caused by an outdated stubs_auto.S file. Try erasing it manually (it's inside platform/s80/sub/100g/) before re-trying.

Quote
PS: Generally until there is an updated CHDK Shell can we just not use anything beyond trunk 4231 for future diff files?
According to reyalp the shell should sort-of work with current trunk again.


*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 40 done || 10 to go
« Reply #244 on: 16 / September / 2015, 09:09:26 »
AFAIK undefined reference to sub_whatever errors are usually caused by an outdated stubs_auto.S file. Try erasing it manually (it's inside platform/s80/sub/100g/) before re-trying.
Amazing, that deletion fixed it. Thanks a lot srsa_4c!
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 "File Write Task" (FWT): 50 Cams || 40 done || 10 to go
« Reply #245 on: 16 / September / 2015, 09:42:42 »
Patch to s80. version 3
Trying to shoot JPEG remotely crashes the S80. ROMLOG and other logs attached. CHDKptp says:
Code: [Select]
> =set_levent_script_mode(1)
> =set_levent_active(0x1085,0)
> =switch_mode_usb(1)
WARNING: capture_get_data error I/O error
WARNING: error waiting for shot script nil
ERROR: C:\Users\web\Downloads\chdkptp-r658-win32\lua\cli.lua:2274: attempt to concatenate local 'err' (a table value)
stack traceback:
[C]: in function 'xpcall'
C:\Users\web\Downloads\chdkptp-r658-win32\lua\cli.lua:244: in function 'execute'
C:\Users\web\Downloads\chdkptp-r658-win32\lua\gui_user.lua:74: in function <C:\Users\web\Downloads\chdkptp-r658-win32\lua\gui_user.lua:72>
(...tail calls...)
[C]: in function 'MainLoop'
C:\Users\web\Downloads\chdkptp-r658-win32\lua\gui.lua:753: in function <C:\Users\web\Downloads\chdkptp-r658-win32\lua\gui.lua:726>
(...tail calls...)
C:\Users\web\Downloads\chdkptp-r658-win32\lua\main.lua:278: in main chunk
[C]: in function 'require'
[string "require('main')"]:1: in main chunk
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 reyalp

  • ******
  • 14082
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 40 done || 10 to go
« Reply #246 on: 16 / September / 2015, 15:44:00 »
Trying to shoot JPEG remotely crashes the S80. ROMLOG and other logs attached. CHDKptp says:
FWIW, if the camera crashes, any chdkptp errors are probably triggered by the camera going away. In this case the verbose error message from chdkptp is due to a bug in chdkptp error handling, which is fixed in chdkptp r668 (there is no binary package for 668 yet, but you can just update the lua files)
Don't forget what the H stands for.

*

Offline koshy

  • *****
  • 1096
Re: Adding feature support "File Write Task" (FWT): 50 Cams || 40 done || 10 to go
« Reply #247 on: 16 / September / 2015, 16:16:50 »
Trying to shoot JPEG remotely crashes the S80. ROMLOG and other logs attached. CHDKptp says:
FWIW, if the camera crashes, any chdkptp errors are probably triggered by the camera going away. In this case the verbose error message from chdkptp is due to a bug in chdkptp error handling, which is fixed in chdkptp r668 (there is no binary package for 668 yet, but you can just update the lua files)
Thank you very much for the hint.

I just got the 668 trunk and replaced the Lua files. I retried the remote shooting with the S80. It still does not work but the camera no longer crashes. CHDKptp just times out like this:

Code: [Select]
> =set_levent_script_mode(1)
> =set_levent_active(0x1085,0)
> =switch_mode_usb(1)
WARNING: capture_get_data error C:\Users\web\Downloads\chdkptp-r658-win32\lua\chdku.lua:1339: timed out
ERROR: C:\Users\web\Downloads\chdkptp-r658-win32\lua\chdku.lua:1339: timed out

Shooting DNG remotely after that worked and it does not matter if the camera is set to single or continuous mode. In both cases the remote JPEG operation times out.
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
Patch to s80. version 4.

*

Offline koshy

  • *****
  • 1096
... this was wrong ...
« Last Edit: 22 / October / 2015, 07:49:55 by koshy »
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