uni7
You are right. I finally tried the procedure on a xp machine, as expected with no success...
So #2 would be the right one.
I think a have to go further into the question (is this a correct expression???).
I had a look at the firmware dump, and the obvious difference between PB2Rec on
A540 (a similar era Vxworks camera where mode switching works) and
S3 is that the S3 code checks IsControlEventActive(0x1085)
0x1085 is ConnectUSBCable
G7 appears to do the same.
edit:
a560 has the same check, the but event ID is 0x10A5
So you can try the following in chdkptp:
=set_levent_active(0x1085,0)
=switch_mode_usb(1)
On my
a540, this didn't seem to harm the PTP connection (unlike posting the disconnect event)
If it works, we can add this to the mode switching code for the affected cameras. If it doesn't, there might be some other things to try.
edit:
If the above doesn't work, try
=set_levent_script_mode(1)
=set_levent_active(0x1085,0)
=switch_mode_usb(1)