Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script) - page 17 - General Discussion and Assistance - CHDK Forum  

Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)

  • 167 Replies
  • 82823 Views
*

Offline reyalp

  • ******
  • 13439
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #160 on: 30 / September / 2021, 12:27:39 »
Advertisements
I can't find the Canon Basic Documentation from coresecurity.com. Seems they have taken it down. Does there exist any other documentation on the Canon Basic Script Functions? I own a M6 (Mark 1) and would like to put the magnifying glass function on one of the Fn buttons.
I doubt it will help you much, but the original PDFs appear to be mirrored at https://www.mmnt.net/db/0/0/helpedia.com/pub/mirrors/drop.io/chdkdevelopment
edit: Oops, I didn't check that the links actually work.

Re-assigning keys is not something you can do trivially with Canon Basic. You might find this thread on shooting with canon basic and this one about controllers useful.

The CHDK sig finder will give you a list of most of the event procedures that exist in the firmware. Ghidra can help you understand how to use them.
« Last Edit: 02 / October / 2021, 16:05:24 by reyalp »
Don't forget what the H stands for.

*

Offline Caefix

  • *****
  • 641
  • Sorry, busy deleting test shots...
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #161 on: 30 / September / 2021, 12:47:33 »
original PDFs appear to be mirrored at ...
that ftp rooting is ??  :P, howto download without that?
Edit: Updated face, still no access...

Edit2:  ::), Thanks for link & else...
« Last Edit: 13 / November / 2021, 10:38:46 by Caefix »
All lifetime is a loan from eternity.

*

Offline fe50

  • ******
  • 3134
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #162 on: 08 / November / 2021, 03:32:28 »
"Exploiting Digital Cameras" and "Powershot Basics" by Core Security Technologies, Oren Isacson / Alfredo Ortega
are available from the CHDK drive archive (Development - cBasic section), direct link:
https://drive.google.com/drive/folders/0B08pqRtyrObjbWtkUW9Bd3BXeWc?resourcekey=0-Nj3Q2bpSXWj2xtrwJuSrpA
---
Because Google applied a security update to Google Drive (this is where the firmware dumps and some other files are stored), a new URL including a resource key is needed to access files there.

Quote from: Google Drive Team
A security update will be applied to Drive
On September 13, 2021, Drive will apply a security update to make file sharing more secure. This update will change the links used for some files, and may lead to some new file access requests. Access to these files won't change for people who have already viewed them.


If you wan learn more about this security update, you may read
"Security update for Google Drive"


To access the CHDK firmware dumps & other files on the drive folder i created
a new link for public share:
https://drive.google.com/drive/folders/0B08pqRtyrObjTy11Y003Sk1lYTQ?resourcekey=0-As7oZQDHwJiDtgA-hXsxJA&usp=sharing

Also available as shortened link:
https://tinyurl.com/chdkfiles3

« Last Edit: 08 / November / 2021, 03:53:57 by fe50 »



*

Offline Mlapse

  • ****
  • 357
  • S95 S110
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #164 on: 12 / November / 2021, 16:58:47 »
there are one or 2 powershots that also work with this sdk, maybe it can help in development.

https://developers.canon-europe.com/s/article/How-to-get-access-camera
frustration is a key ingredient in progress

*

Offline Caefix

  • *****
  • 641
  • Sorry, busy deleting test shots...
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #165 on: 13 / November / 2021, 09:57:20 »
First is SX70, Digic 8, out of range.  :(
Code: [Select]
We will launch a new camera API package, offering a range of resources to developers.
EOS Digital Software Development Kit (EDSDK) and all-new Camera Control API (CCAPI) create unique opportunities for developers and software engineers to take advantage of select Canon cameras and lenses.

The new CCAPI is based on HTTP technology and can be communicated on IP protocol via Wi-Fi. It allows developers to build their solutions on various operating system such as Windows, Mac, Android, iOS or Linux.

The first CCAPI compatible camera is PowerShot SX70 HS which is Canon's latest premium bridge camera.

For further information, please refer to the press release .


Latest CCAPI version: 1.1.0d (Released on 30th September 2021)

EOS M50 Mark II
EOS R5
EOS R6
EOS 850D
EOS-1D X Mark III FW1.2.0; Only via Ethernet or WFT-E9
EOS M200
EOS 90D
EOS M6 Mark II
PowerShot G5 X Mark II
PowerShot G7 X Mark III
EOS 250D
EOS RP FW1.1.0
PowerShot SX70 HS FW1.1.0
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 641
  • Sorry, busy deleting test shots...
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #166 on: 14 / November / 2021, 15:00:59 »
Quote
private sub Initialize()
    System.Create()
    Driver.Create()
    BeepDrive(3)
Wait(60000)
    BeepDrive(3)
    Blah_Fasel(1)
end sub
records all the :UI:Button:levents.  :-[ On M3 too much for one Romlog.
Code: [Select]
00000060: *** Camera Log Start ***
00000060: UI:_SensorCleaning Type(1)
00000060: UI:_ExcuteSensorClean
00000060: UI:_ExcuteSensorClean BOOT_ON
00000060: UI:SCC:DriveDlForCameraOnLensChange

00000080:::0x000010C2:WriteEnableMedia
00000640:::0x00000894:UnpressAFStopButton
00000640:::0x000010C6:CloseLensCover
00000640:::0x000010CA:ExitChangeAreaOfMacroLens

00004770: Wait
00015390:::0x00001008:PressPowerButton
00015720:::0x00001009:UnpressPowerButton
00016820:::0x000009A1:PressSwOne
00016860:::0x000009A3:PressSwTwo
00017270:::0x000009A4:UnpressSwTwo
00017290:::0x000009A2:UnpressSwOne
00038810:::0x000009A5:PressMovieButton
00039310:::0x000009A6:UnpressMovieButton
00039920:::0x00001003:PressPBButton
00040360:::0x00001004:UnpressPBButton
00040910:::0x00000860:PressAFFrameButton
00041270:::0x00000861:UnpressAFFrameButton
00041820:::0x00000834:PressAEFELockButton
00042120:::0x00000835:UnpressAEFELockButton
00042640:::0x00001128:
00042640:::0x00000872:RotateJogDialRight
00043120:::0x00001129:
00043160:::0x00001128:
00043160:::0x00000873:RotateJogDialLeft
00043640:::0x00001129:
00043950:::0x0000085C:PressSetButton
00044170:::0x0000085D:UnpressSetButton
00044520:::0x0000081C:PressRightButton
00044720:::0x0000081D:UnpressRightButton
00045130:::0x00000824:PressUpButton
00045420:::0x00000825:UnpressUpButton
00045930:::0x00000820:PressLeftButton
00046070:::0x00000821:UnpressLeftButton
00046550:::0x00000826:PressDownButton
00046760:::0x00000827:UnpressDownButton
00047140:::0x0000081C:PressRightButton
00047300:::0x0000081D:UnpressRightButton
00047770:::0x00000840:PressDispButton
00048100:::0x00000841:UnpressDispButton
00054870:::0x00000864:PressShortcutButton
00055240:::0x00000865:UnpressShortcutButton
00058730:::0x00001121:OpenPopupStrobe
00060120:::0x00001122:ClosePopupStrobe

00024960:::0x000010B5:MountExtFlash
00027370:::0x000010B6:UnmountExtFlash

00038810:::0x000009A5:PressMovieButton
00039310:::0x000009A6:UnpressMovieButton
00039920:::0x00001003:PressPBButton
00040360:::0x00001004:UnpressPBButton
00040910:::0x00000860:PressAFFrameButton
00041270:::0x00000861:UnpressAFFrameButton
00041820:::0x00000834:PressAEFELockButton
00042120:::0x00000835:UnpressAEFELockButton
00042640:::0x00001128:
00042640:::0x00000872:RotateJogDialRight
00043120:::0x00001129:
00043160:::0x00001128:
00043160:::0x00000873:RotateJogDialLeft
00043640:::0x00001129:
00043950:::0x0000085C:PressSetButton
00044170:::0x0000085D:UnpressSetButton
00044520:::0x0000081C:PressRightButton
00044720:::0x0000081D:UnpressRightButton
00045130:::0x00000824:PressUpButton
00045420:::0x00000825:UnpressUpButton
00045930:::0x00000820:PressLeftButton
00046070:::0x00000821:UnpressLeftButton
00046550:::0x00000826:PressDownButton
00046760:::0x00000827:UnpressDownButton
00047140:::0x0000081C:PressRightButton
00047300:::0x0000081D:UnpressRightButton
00047770:::0x00000840:PressDispButton
00048100:::0x00000841:UnpressDispButton
00051790:::0x000010C5:OpenLensCover
00054340:::0x000010C6:CloseLensCover
00054870:::0x00000864:PressShortcutButton
00055240:::0x00000865:UnpressShortcutButton
00064260: BeepDrive
 
00011430:::0x00006271:PressTouchPanel
00011430: Touch:0x00006271:(0)=(405,1)-1
00011560:::0x00006272:UnpressTouchPanel
00011560: Touch:0x00006272:(1)=(405,1)-1
00011860:::0x0000627A:SingleTapAfterRelease
00011860: Touch:0x0000627A:(2)=(405,1)-1

00031590:::0x00006273:MoveTouchPanel
00031590:::0x00006284:PinchTouchPanel
00031590:::0x00006273:MoveTouchPanel
00031610:::0x00006273:MoveTouchPanel
00031610:::0x00006280:MultiMoveTouchPanel
00031610:::0x00006284:PinchTouchPanel
00031610:::0x00006273:MoveTouchPanel
00031630:::0x00006280:MultiMoveTouchPanel
00031630:::0x00006273:MoveTouchPanel
00031630:::0x00006284:PinchTouchPanel
00031630:::0x00006273:MoveTouchPanel
00031660:::0x0000627F:MultiUnpressTouchPanel
00031660:::0x00006279:FlickTouchPanel
00031660:::0x00006272:UnpressTouchPanel
00031660:::0x00006272:UnpressTouchPanel
00033590:::0x000010D5:TiltUp
00035280:::0x000010D6:TiltDown

00008390:::0x0000109D:
00008590:::0x00001055:ModeDialToTv
00009270:::0x0000109D:
00009470:::0x00001054:ModeDialToAv
00010370:::0x0000109C:
00010570:::0x00001055:ModeDialToTv
00025620:::0x0000109D:
00025820:::0x00001054:ModeDialToAv
00026280:::0x0000109D:
00026480:::0x00001053:ModeDialToM
00026940:::0x0000109D:
00027140:::0x0000105D:ModeDialToC
00027710:::0x0000109D:
00027910:::0x0000105A:ModeDialToMovie
00028680:::0x0000112B:
00029360:::0x0000109D:
00029560:::0x00001069:ModeDialToFilter
00030130:::0x0000109D:
00030330:::0x00001061:ModeDialToSCN
00031010:::0x0000109D:
00031210:::0x00001070:ModeDialToConcierge
00031780:::0x0000109D:
00031980:::0x0000106D:ModeDialToDigestAuto
00032440:::0x0000109D:
00032640:::0x00001057:ModeDialToAuto
00033100:::0x0000109D:
00033300:::0x00001056:ModeDialToP

00030810:::0x000010A1:RotateExpDialLeft
00031010:::0x00001089:ExpDialToP2TwoThird
00031910:::0x000010A0:RotateExpDialRight
00032110:::0x00001088:ExpDialToP3
00033010:::0x000010A1:RotateExpDialLeft
00033210:::0x00001089:ExpDialToP2TwoThird
00034220:::0x000010A1:RotateExpDialLeft
00034420:::0x0000108A:ExpDialToP2OneThird
00034990:::0x000010A1:RotateExpDialLeft
00035190:::0x0000108B:ExpDialToP2
00036420:::0x000010A1:RotateExpDialLeft
00036620:::0x0000108C:ExpDialToP1TwoThird
00037410:::0x000010A1:RotateExpDialLeft
00037610:::0x0000108D:ExpDialToP1OneThird
00038730:::0x000010A1:RotateExpDialLeft
00038930:::0x0000108E:ExpDialToP1
00040050:::0x000010A1:RotateExpDialLeft
00040250:::0x0000108F:ExpDialToP0TwoThird
00041040:::0x000010A1:RotateExpDialLeft
00041240:::0x00001090:ExpDialToP0OneThird
00042250:::0x000010A1:RotateExpDialLeft
00042450:::0x00001091:ExpDialToZero
00044010:::0x000010A1:RotateExpDialLeft
00044210:::0x00001092:ExpDialToM0OneThird
00045110:::0x000010A1:RotateExpDialLeft
00045310:::0x00001093:ExpDialToM0TwoThird
00046100:::0x000010A1:RotateExpDialLeft
00046300:::0x00001094:ExpDialToM1
00047310:::0x000010A1:RotateExpDialLeft
00047510:::0x00001095:ExpDialToM1OneThird
00048300:::0x000010A1:RotateExpDialLeft
00048500:::0x00001096:ExpDialToM1TwoThird
00049290:::0x000010A1:RotateExpDialLeft
00049490:::0x00001097:ExpDialToM2
00050170:::0x000010A1:RotateExpDialLeft
00050370:::0x00001098:ExpDialToM2OneThird
00051050:::0x000010A1:RotateExpDialLeft
00051250:::0x00001099:ExpDialToM2TwoThird
00051930:::0x000010A1:RotateExpDialLeft
00052130:::0x0000109A:ExpDialToM3
00055200:::0x00000864:PressShortcutButton
00055580:::0x00000865:UnpressShortcutButton

00051790:::0x000010C5:OpenLensCover
00054340:::0x000010C6:CloseLensCover
00060250:::0x000010DC:UnmountLens
00060250: CANCEL_TOUCH_PANEL
00060290:::0x000010DA:DisconnectLens
00071270:::0x000010DB:MountLens
00071290:::0x000010D9:ConnectLens

orientation_sensor
00043570: UI:LogicalEvent:0x0000301c:adr:0,Para:0
00045630: UI:LogicalEvent:0x0000301c:adr:0x5a,Para:90
00047170: UI:LogicalEvent:0x0000301c:adr:0x10e,Para:270
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 13439
Re: Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)
« Reply #167 on: 14 / November / 2021, 15:45:48 »
records all the :UI:Button:levents.  :-[ On M3 too much for one Romlog.
I don't understand the point or what it has to do with the thread topic, but FYI, you can get a list of all levents using tools/find_levent.c in the CHDK source, or using Lua if the camera has a CHDK port https://chdk.fandom.com/wiki/LogicalEvent

If you want to see the camera log ("00015390:::0x00001008:PressPowerButton" etc), you do not need to crash and get a romlog, you can use UART redirection (https://chdk.fandom.com/wiki/Debugging#UART_redirection_.28DryOS.291) and the ShowCameraLog eventproc. If the camera has a CHDK port, you can do this conveniently using chdkptp:
Code: [Select]
!require'extras/devutil'.init_cli()
dlstart
dlgetcam
Don't forget what the H stands for.


 

Related Topics