ixus175_elph180_100c porting attempt - page 4 - DryOS Development - CHDK Forum  

ixus175_elph180_100c porting attempt

  • 201 Replies
  • 101320 Views
*

Offline srsa_4c

  • ******
  • 4451
Re: ixus175_elph180_100c porting attempt
« Reply #30 on: 20 / March / 2017, 21:24:05 »
Advertisements
I would first try to check PROPCASE_EV_CORRECTION_1 and PROPCASE_EV_CORRECTION_2.
I'm not sure that this is done for propset10.
I have checked these, and just re-checked them again. Both are reacting to the Canon EV correction setting, instantly. In propset10.h, I left a note in each untested or problematic line. These have comments starting with "[m10". Since the M10 is missing several features of a fixed lens camera, it would not surprise me if some propcases worked differently.

I can't zoom in/out in ALT mode by zoom in/out botton.
(I guess you may have meant focusing, so just for what it's worth:) buttons in keymap do not have their original function when ALT mode is active.

BTW, I'm pretty sure the shoot and half shoot button emulation will not work if the physw task is done the "classic" way.

Re: ixus175_elph180_100c porting attempt
« Reply #31 on: 25 / March / 2017, 15:01:32 »
has this been abandond or is it worth a try i've been looking for a ixus 175 port

Re: ixus175_elph180_100c porting attempt
« Reply #32 on: 27 / March / 2017, 09:07:53 »
Please not expected to this port. I'm new to Assembly Language, CHDK Coding and Tools.

I'm try modify  a few thing. shoot.lua can show "start" and take an image but not show "finish". After show "start" and take an image it's wait for press half shoot and release to show "finish".
Code: [Select]
From #define KEYS_MASK2 0x00000036
to #define KEYS_MASK2 0x00000034
and comment { 2, KEY_SHOOT_FULL_ONLY ,0x00000002 },

From last recommendation from rsra_4c, blackhole and reyalp, I'm try to read this thread IXUS175: Shoot key emulation does not work  but can't to understand where to coding. may be core/levent.c.
Code: [Select]
_PostLogicalEventToUI(4484, 0);
               
levent_post_to_ui_by_name("PressRecButton");
msleep(400);
levent_post_to_ui_by_name("UnpressRecButton");
and what is
Code: [Select]
PressSwOne, UnpressSwOne (this is shoot half)
PressSwTwo, UnpressSwTwo (this is full shoot)
What should i do on this state? Try to verify PROPSET by CHDKPTP right?
Please recommendation, i will try to learn!!!

*

Offline reyalp

  • ******
  • 14080
Re: ixus175_elph180_100c porting attempt
« Reply #33 on: 27 / March / 2017, 14:12:07 »
and what is
Code: [Select]
PressSwOne, UnpressSwOne (this is shoot half)
PressSwTwo, UnpressSwTwo (this is full shoot)
You could send these from script using post_levent_to_ui, but it's not really a solution for CHDK.

Are you able to shoot using scripted key presses, like
press('shoot_half')
sleep(500)
press('shoot_full')
sleep(100)
release('shoot_full')
?

Quote
What should i do on this state? Try to verify PROPSET by CHDKPTP right?
Please recommendation, i will try to learn!!!
If PROPCASE_SHOOTING is not correct, that can cause problems with the shoot command. Some digic 6 cameras need a special workaround (see platform/generic/wrappers.c get_property_case). So far we have not seen this on older processors.

If the raw hook is incorrect, that can also interfere with scripted shooting. You should check raw_process is reached when you shoot.

Quote
Try CHDK-PTP but no respond at all, just download image and some cmd.
Are you using windows or linux? On windows, you need to need to set up the driver with zadig. On linux, you probably have a problem with gphoto udev rules.  Some information on both https://app.assembla.com/spaces/chdkptp/wiki/Install

Generally to verify propcases using chdkptp, you can
After starting chdkptp, run
Code: [Select]
!require'extras/devutil'.init_cli()
Then for each thing you cant to check, you can use dpget to make a copy of the current values, change a setting (like shooting mode etc) and use dpcmp to see what has changed.

If you the propcase updates after halfpress (like the shutter speed in P mode) you can send some code to run before the values are read, like
Code: [Select]
dpcmp -c='press "shoot_half" sleep(500)'

You don't need chdkptp to do this, you can use the propcase viewer or one of the scripts, but chdkptp is helpful for development anyway.
« Last Edit: 27 / March / 2017, 22:09:27 by reyalp »
Don't forget what the H stands for.


*

Offline srsa_4c

  • ******
  • 4451
Re: ixus175_elph180_100c porting attempt
« Reply #34 on: 27 / March / 2017, 21:20:02 »
From last recommendation from rsra_4c, blackhole and reyalp, I'm try to read this thread IXUS175: Shoot key emulation does not work  but can't to understand where to coding.
That thread is specific to an early CHDK fork, the solution you see there is not ideal for CHDK use.
So, if you find that reyalp's shooting method via simulated keypresses does not work, I'll help creating the additional physw task hooks (as it was done in the M10 port).

Re: ixus175_elph180_100c porting attempt
« Reply #35 on: 28 / March / 2017, 11:10:27 »
This script can show "start" and "Finish" 
Code: [Select]
press('shoot_half')
sleep(500)
press('shoot_full')
sleep(100)
release('shoot_full')
Try to use devutil but can't go to REC mode by press "REC" like in IXUS160. Some PROPSET get by cmpprop after manually press shoothalf on ixus160 and ixus175
Thank you.

*

Offline reyalp

  • ******
  • 14080
Re: ixus175_elph180_100c porting attempt
« Reply #36 on: 28 / March / 2017, 13:28:23 »
This script can show "start" and "Finish"
Does the camera take a picture?

Quote
but can't go to REC mode by press "REC" like in IXUS160.
Is there any message in the chdkptp console?

What operating system do you use?

Does the camera screen go black when you plug in USB cable?
Don't forget what the H stands for.

Re: ixus175_elph180_100c porting attempt
« Reply #37 on: 28 / March / 2017, 14:39:16 »
does vers.req work if i put it on a sd card though


*

Offline srsa_4c

  • ******
  • 4451
Re: ixus175_elph180_100c porting attempt
« Reply #38 on: 28 / March / 2017, 17:06:15 »
does vers.req work if i put it on a sd card though
vers.req will definitely not work, ver.req might.
Alternatively, you can use utilities like ACID or STICK to get the firmware version using one of the photos made with the camera.

edit:
@reyalp
The OS is likely Windows.

Re: ixus175_elph180_100c porting attempt
« Reply #39 on: 28 / March / 2017, 18:00:06 »
trying to run acid and when i go to the runacid command this comes up

 

Related Topics