goprohero icon indicating copy to clipboard operation
goprohero copied to clipboard

Turn device on from sleep mode

Open DenisCarriere opened this issue 9 years ago • 8 comments

GoPro Hero 4 issue

>>> c = GoProHero()
>>> c.command('power','sleep')
True
>>> c.command('power','on')
False

Cannot connect to device again with HTTP connection.

The Android GoPro App can make the GoPro wake up again using Wifi, which means there is a way some how...

DenisCarriere avatar Dec 01 '14 02:12 DenisCarriere

Hmm, I'm pretty sure this works for me. I have noticed that the GoPro HERO4 wifi is way more spotty than the wifi on the HERO3 and HERO3+.

I'll try it out with my GoPro HERO4 later today.

joshvillbrandt avatar Dec 01 '14 16:12 joshvillbrandt

I still haven't found a solution for this :( let me know how your Hero4 device handles being in sleep mode

DenisCarriere avatar Dec 01 '14 23:12 DenisCarriere

Hey Denis, I'm just having a lot of problems with the HERO4 wifi in general including:

  • the wifi network disappearing after a being on for about a minute
    • this is pronounced when the camera is off (I basically can't connect at all because it disappears so quickly) but I also see the network disappear when the camera is on (network stays up for 10+ minutes)
  • not being able to turn the wifi on after immediately turning it off (within 30 seconds)

I basically can't connect to the wifi to even test this out. Are you able to turn the camera on using the HERO4-only API?

joshvillbrandt avatar Dec 02 '14 03:12 joshvillbrandt

I'm not having any issues with the Wi-Fi connection, it seems to stay connected for as long as the device is on WiFi mode. However at the beginning I was using my computers on board Wi-Fi, but now I'm using an external USB WiFi adapter.

DenisCarriere avatar Dec 02 '14 04:12 DenisCarriere

Hmm. Maybe my HERO4 is just a bad unit. Unfortunately, I don't have the availability to debug this one further at the moment.

Out of curiosity, can you print out the full model / firmware string from camera/cv for me? I updated my HERO4 to the latest firmware a few days ago in hopes that it would fix some of my wifi issues. My HERO4 has model HD4.02 and firmware version 01.02.00.

>>> '00030d0f4844342e30322e30312e30322e30300b4845524f3420426c61636b'.decode('hex')
'\x00\x03\r\x0fHD4.02.01.02.00\x0bHERO4 Black'

joshvillbrandt avatar Dec 02 '14 04:12 joshvillbrandt

When I connect to the camera/cv this is the raw response

0003 0d0f 4844 342e 3032 2e30 312e 3032
2e30 300b 4845 524f 3420 426c 6163 6b

Decoded Hex

HD4.02.01.02
HERO4 Black

DenisCarriere avatar Dec 05 '14 22:12 DenisCarriere

Send the wake on lan magic packet and done.... Port: 9 and need to know MAC which you can get from your network adapter.

https://gist.github.com/3v1n0/38bcd4f7f0cb3c279bad#file-wake-up-gopro-py

fusi0nfire avatar Mar 08 '15 02:03 fusi0nfire

Find mac address by http://10.5.5.9/gp/gpControl/Info put in script but running by python 3.5 appear this message on session4 (2.00)

error trying to wake up

5perseo avatar Aug 10 '17 22:08 5perseo