A1400 porting thread - page 4 - DryOS Development - CHDK Forum

A1400 porting thread

  • 130 Replies
  • 18858 Views
*

Offline c10ud

  • ***
  • 245
Re: A1400 porting thread
« Reply #30 on: 16 / January / 2014, 14:39:26 »
Advertisements
Code: [Select]
$ ./chdkptp.sh -i
___> list
-1:Canon PowerShot A1400 b=003 d=009 v=0x4a9 p=0x3264 s=856CBFD5FA9746C89A4D6AC46D08B496
___> c
connected: Canon PowerShot A1400, max packet size 512
con> =return get_buildinfo()
1:return:table:{platform="a1400",build_date="Jan 15 2014",build_number="1.3.0",build_time="19:06:23",version="CHDK",platsub="100b",build_revision="3314",platformid=12900,os="dryos",}
con 1> rec
con 2> =set_zoom(25)
unexpected return code 0x2ff
ERROR: ptp error
___>

the build is from http://www.mighty-hoernsche.de/trunk/ maybe some compiler bug on the server? (if I compile vanilla trunk with gcc452 on linux x64 I get the same crash)

However I tried building locally without those defines and still works (latest trunk)


edit: canon settings are P mode, AF center and everything else OFF
« Last Edit: 16 / January / 2014, 16:51:36 by c10ud »

*

Offline srsa_4c

  • ******
  • 3816
Re: A1400 porting thread
« Reply #31 on: 16 / January / 2014, 14:46:15 »
it crashes while set_zoom()--ing
How does the romlog look like?

*

Offline c10ud

  • ***
  • 245
Re: A1400 porting thread
« Reply #32 on: 16 / January / 2014, 14:49:49 »
it crashes while set_zoom()--ing
How does the romlog look like?
here it is

*

Offline srsa_4c

  • ******
  • 3816
Re: A1400 porting thread
« Reply #33 on: 16 / January / 2014, 15:35:35 »
ASSERT!! FocusLensController.c Line 1059
Occured Time  2013:01:16 20:37:40
Task ID: 13238302
Task name: PhySw
That looks like the set_focus related assert that shows up on several cameras.


*

Offline srsa_4c

  • ******
  • 3816
Re: A1400 porting thread
« Reply #34 on: 16 / January / 2014, 16:19:52 »
@c10ud @nafraf
You may want to do the set_focus test. Perhaps the results vary on a per camera basis...?
CAM_USE_ALT_PT_MoveOpticalZoomAt is most probably needed to get correct JPEGs after set_zoom (see comment in platform/generic/wrappers.c lens_set_zoom_point() ), and CAM_USE_ALT_PT_MoveOpticalZoomAt needs CAM_USE_ALT_SET_ZOOM_POINT to be effective (again, see the above mentioned source routine).

edit: spelling...
« Last Edit: 16 / January / 2014, 16:23:19 by srsa_4c »

*

Offline nafraf

  • *****
  • 1305
Re: A1400 porting thread
« Reply #35 on: 16 / January / 2014, 23:47:18 »
my set_focus tests results are the same posted by c10ud

set_zoom() tests:
With code from trunk,   if Continuous AF ON, camera does not crash, else, it crashes.
Removing CAM_USE_ALT_PT_MoveOpticalZoomAt, and taking photos at zoom 10 and zoom 40, I have not seen any distortion in JPEG.

@c10ud, have you seen any distortion?

*

Offline c10ud

  • ***
  • 245
Re: A1400 porting thread
« Reply #36 on: 17 / January / 2014, 03:27:46 »
my set_focus tests results are the same posted by c10ud

set_zoom() tests:
With code from trunk,   if Continuous AF ON, camera does not crash, else, it crashes.
Removing CAM_USE_ALT_PT_MoveOpticalZoomAt, and taking photos at zoom 10 and zoom 40, I have not seen any distortion in JPEG.

@c10ud, have you seen any distortion?
I took pictures of my desk but I don't see any distortion...should I?

However I also checked exif with all defines disabled and looks ok

*

Offline nafraf

  • *****
  • 1305
Re: A1400 porting thread
« Reply #37 on: 17 / January / 2014, 11:03:32 »
If there is not distortion, I think that those #define can be removed.
After removing CAM_USE_ALT_PT_MoveOpticalZoomAt, I tested this , I did not seen problem with this model.

@srsa_4c, is there any other zoom test to do? Thanks


*

Offline srsa_4c

  • ******
  • 3816
Re: A1400 porting thread
« Reply #38 on: 17 / January / 2014, 15:05:01 »
If there is not distortion, I think that those #define can be removed.
After removing CAM_USE_ALT_PT_MoveOpticalZoomAt, I tested this , I did not seen problem with this model.

@srsa_4c, is there any other zoom test to do? Thanks
Good question. There's several variants of a zoom torture test from waterwingz (linked from the thread you just linked): set_zoom problems in uBASIC & Lua scripts, someone could write a simple (and short) automated test based on those. There's a chance that cameras will crash while running it though, even when the port is OK.
Perhaps we should collect testing methods (automated or manual) in a thread before messing up the Testing wikia page...?

Something else: months ago we have shortly discussed a workaround for new cameras which don't have a proper MakeAFScan function, you may want to try this kind of workaround (needs a defined CAM_AF_SCAN_DURING_VIDEO_RECORD in platform_camera.h of course).

*

Offline timgor

  • ***
  • 150
Re: Changeset : Update A1400 SVN properties.
« Reply #39 on: 25 / January / 2014, 14:43:22 »
What happened with the previous post about A1400? was it deleted?

I did a test of zoom function: set_zoom()

camera crashes for
set_zoom(0)
set_zoom(5)
(for example)

and it works ok if you move zoom by 1 step increment:

set_zoom(0)
set_zoom(1)
set_zoom(2)
set_zoom(3)
set_zoom(4)
set_zoom(5)
...


 

Related Topics