Disabling Eyefi card - General Discussion and Assistance - CHDK Forum

Disabling Eyefi card

  • 15 Replies
  • 8443 Views
Disabling Eyefi card
« on: 01 / October / 2013, 18:26:56 »
Advertisements
I'm trying to add the possibility of configuring en eyefi card in your camera without resorting to a PC.
Quite successful until now, but with an obstacle.
If the camera supports the eyefi cards your actions on the card may conflict with the original firmware.
The only solution is disable the card using the Canon menus, then my added functionality to force on the wlan in the card and do the configuration.

I'm trying to find a way to trick the original firmware into thinking that the card is already disabled while I interact with it. I guess that should be just some sort of flag in memory (maybe not but hoping so). Unluckily I have no experience in disassembling firmware nor the tools of the trade. My only possibility is taking a couple of memory dumps and compare them. Anyone can recommend the exact area of the RAM worth examining? Or wanting to do the reverse engineering for me?  ::)

Re: Disabling Eyefi card
« Reply #1 on: 01 / October / 2013, 21:30:36 »
I would just like to ask why you have started a new thread for this?  It seems to flow directly from your current thread :
http://chdk.setepontos.com/index.php?topic=6753.msg105829#msg105829
Not a big deal except that doing this sort of thing makes searching through threads a lot more difficult later on - the forum search engine is pretty limited as it is.
TIA
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Disabling Eyefi card
« Reply #2 on: 01 / October / 2013, 23:16:49 »
Hi Buttim,
The current solution (disable in Canon Menu, enable in CHDK) works great!  I don't think there is need for further complication in the way you outlined.  Do you think there might be more functionality in some cameras than my Sx150 and G1X?  Right now CHDK has better functionality than the camera.   Maybe one new feature: it would be great if CHDK kept track of the Canon menu state and displayed it or warned the user to disable it if it is on.  Not sure of how to find out the state.

BTW even though Canon thinks the card is disabled, the photos get tagged as saved to Wifi if they are transferred using the CHDK functionality.  The card doesn't know who turned it on and must somehow tag the photo as transferred which then gets picked up by the camera.

Jon


I'm trying to add the possibility of configuring en eyefi card in your camera without resorting to a PC.
Quite successful until now, but with an obstacle.
If the camera supports the eyefi cards your actions on the card may conflict with the original firmware.
The only solution is disable the card using the Canon menus, then my added functionality to force on the wlan in the card and do the configuration.

I'm trying to find a way to trick the original firmware into thinking that the card is already disabled while I interact with it. I guess that should be just some sort of flag in memory (maybe not but hoping so). Unluckily I have no experience in disassembling firmware nor the tools of the trade. My only possibility is taking a couple of memory dumps and compare them. Anyone can recommend the exact area of the RAM worth examining? Or wanting to do the reverse engineering for me?  ::)

Re: Disabling Eyefi card
« Reply #3 on: 03 / October / 2013, 04:38:47 »
I would just like to ask why you have started a new thread for this?
It seemed to me to be a different subject and hoped for a broader audience too. Sorry about that. Would you mind reminding me how should I submit my patch file?

Maybe one new feature: it would be great if CHDK kept track of the Canon menu state and displayed it or warned the user to disable it if it is on.  Not sure of how to find out the state.
I'm afraid that detecting Canon firmware's status is not easier than forcing it off.

BTW even though Canon thinks the card is disabled, the photos get tagged as saved to Wifi if they are transferred using the CHDK functionality.  The card doesn't know who turned it on and must somehow tag the photo as transferred which then gets picked up by the camera.
That definitely makes sense. The only problem is you can't see the "uploading" icon nor ask for the connected SSID.

Re: Disabling Eyefi card
« Reply #4 on: 07 / October / 2013, 05:53:16 »
waterwingz, could you please suggest how should I submit the patch for eyefi support?

Re: Disabling Eyefi card
« Reply #5 on: 07 / October / 2013, 07:59:12 »
waterwingz, could you please suggest how should I submit the patch for eyefi support?
Funny,  we were just talking about this on the CHDK IRC channel.   

Once you had things settled with hiker_jon,  I was going to suggest that you post (or send me) a diff file like you did last time and a zip of all your new files.   It needs to be converted to a .flt module but I can do that for you and then submitted as an svn compatible patch file.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Disabling Eyefi card
« Reply #6 on: 07 / October / 2013, 08:04:14 »
waterwingz, could you please suggest how should I submit the patch for eyefi support?
It needs to be converted to a .flt module but I can do that for you and then submitted as an svn compatible patch file.

If you can point me to some documentation on flt writing I can try to do it.
The last time i sent you a diff it was generated with svn and contained the added files too.
If you prefer to do it yourself let me know and i'll send you the diff again

Re: Disabling Eyefi card
« Reply #7 on: 07 / October / 2013, 08:11:24 »
If you can point me to some documentation on flt writing I can try to do it.
I don't think there is any documentation - or at least there isn't any on the CHDK sites.  You pretty much have to study the stuff in the modules source directory,  figure out the file structure and how they get included in the makefile.  I haven't done it myself yet so it was going to be a "learning experience".   

Quote
The last time i sent you a diff it was generated with svn and contained the added files too.
Not sure I know which one that was (sorry - busy).  Please repost the "final" version?

Quote
If you prefer to do it yourself let me know and i'll send you the diff again
Not at all - feel free to give it a shot.    FWIW,   reyalp on IRC last night sort of volunteered to do the .flt conversion at some point as well.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Disabling Eyefi card
« Reply #8 on: 07 / October / 2013, 08:34:16 »
Not at all - feel free to give it a shot.    FWIW,   reyalp on IRC last night sort of volunteered to do the .flt conversion at some point as well.

Ok, I'll try to see how dangerous is the flt beast. In the meanwhile I repost here the patch file.

Re: Disabling Eyefi card
« Reply #9 on: 08 / October / 2013, 09:03:15 »
I managed to convert the eyefi code into a flt.
I briefly tested it and noticed no differences in behavior.
Here is the patch (included a small addition for the G15 regarding key mappings).
Let me know if it seems to make any sense

 

Related Topics


SimplePortal © 2008-2014, SimplePortal