Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Turn device on from sleep mode #3

Open
DenisCarriere opened this issue Dec 1, 2014 · 8 comments
Open

Turn device on from sleep mode #3

DenisCarriere opened this issue Dec 1, 2014 · 8 comments

Comments

@DenisCarriere
Copy link

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...

@joshvillbrandt
Copy link
Owner

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.

@DenisCarriere
Copy link
Author

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

@joshvillbrandt
Copy link
Owner

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?

@DenisCarriere
Copy link
Author

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.

@joshvillbrandt
Copy link
Owner

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'

@DenisCarriere
Copy link
Author

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

@fusi0nfire
Copy link

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

@5perseo
Copy link

5perseo commented Aug 10, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants