ant-thomas / zsgx1hacks

Hacks for ZS-GX1 IP Camera and various Goke GK7102 based IP Cameras
365 stars 102 forks source link

possibility to enable disable blue led #73

Open pixelecho opened 6 years ago

pixelecho commented 6 years ago

does anyone find out how to disable the blue led of the camera (Digoo DG-MYQ) via "gio". I Mean the status LED not the irda LEDs.

ant-thomas commented 6 years ago

I would suspect it is hardwired to be on constant with the power rather than be controlled.
Does it ever flash in anyway when booting? That would be a good indication it can be controlled or not.

The way to attempt to control it (if it is possible) would be to cycle through the GPIO pins. Either manually or via a while loop.

The command would be
gio -s pin 0 pin = pin number = eg 1 (upto 60) 0 = control - 0 = low/off - 1 = high/on

A loop example would be changing each GPIO to 0 then 1 with a 1 second delay so you can kill the loop when you find what you want (ctrl+c)
for i in `seq 1 60`; do gio -s $i 0 && sleep 1 && gio -s $i 1 && sleep 1; done
but be careful, some might not like being changed!

edsub commented 5 years ago

"but be careful, some might not like being changed!" Defo.... Mine rebooted at some point while executing the loop. And seems to be stuck. The error it keeps giving (after applying the hack) is " ERROR: can not get mac from net interface, please check hardware... " Tried to restore, no luck. Finding now how to get back to factory setting (if possible...)

edsub commented 5 years ago

Solved, after a lot of resetting and trying with the app finally got the camera back to factory. Hack re-applied... All ok