Splinter0/PyHero

A few issues and improvements

KonradIT opened this issue · 27 comments

Camera: GoPro HERO4 Black

Firmwate V: 5.00

Thanks a lot!
The scripts disconnects because there's a threading that checks whether the connection is still alive or not, but you're right sometimes it disconnects. I'll fix it

I fixed the password issue, as per the folder stuff, check how I've done it, I'll try to implement it into python.

Looks like HERO4 should either get manual password input or use gpControl commands.

Ok, now i'm working detect what kind of camera is connected. Send me your work please or pull it in the one you forked

Check your email we'll text there ;)
(I need to know what you've changed 'cause i was working on it now XD ) @KonradIT

Ok, now i'm working detect what kind of camera is connected. Send me your work please or pull it in the one you forked

The detect function works just fine, now i'' have to create some functions that changes the content of the commands

cya

@KonradIT Hey man, can you please try out the onDev branch and see if it works with gopro hero4?
by the way i just did on and off for gopro4

yeah i saw that on your repo.. thanks.
ok i'm working on it
@KonradIT

@Splinter0 sorry I did not specify, the python script attempts to connect to my camera (HERO4 Black) for around 3 seconds and then it shows error message. I am connected to the camera as you can see and even tested with my api gopro-rb-api and gopro-py-api. <== this libraries will support HERO3/3+ in the future!

that is wierd...
With the older version ( in the master branch ) it does connect your camera to the script?

screenshot from 2017-02-24 20-49-08

As you can see here in works

The problem is here, but i don't see any problem in this piece of code : @KonradIT
screenshot from 2017-02-24 20-58-07

I just tested master w/ HERO4 Black, it works.

Oh my god, that doesn't make any sense! @KonradIT

Hey i found why... basically in some gopro camera the ping doesn't work sometimes.
I fixed it now i'm gonne write it better and i'll push it @KonradIT

Pushed, check if now it works @KonradIT

Getting there, but the /bacpac/sd on HERO4 does not exist so either use /gp/gpControl or use manual passwd input.

ok i'll fix it, but it's weird because it shouldn't look for the password if it is an HERO4...
Anyway thanks a lot ( I appreciate it a lot )
@KonradIT

Uh and by the way i'll probably put my hands on a GoPro Karma soon ;)
@KonradIT

@Splinter0 cool! I will probably get Karma V2. You'll need a HERO4 or HERO5 for the Karma FYI. I have firmware dumps of Karma Remote and it does look interesting. Would be cool if you could sniff the comms between GoProPassenger App and Karma Remote.

That is what i was thinking... Where did you get the dumps? Did you sniff them?
Uh also i have a friend with an HERO5 Black, so i'll probably ask him if i can use it for a while.
@KonradIT
Uh also, do you think i should put a manual password for the HERO4?

@Splinter0 I got them from gopro-fw-dl which is a python script to manually update gopro cameras and drones apparently. For HERO4, you should use their new API. Check out my py lib or DenisCarriere's lib

ok thanks a lot, but i already have commands i need for the HERO4. the problem is with HERO5 @KonradIT

Just saw the commit, will test.

http://i.imgur.com/2Gy2XqE.png

Still does not work as intended, when Y then it just displays the error again.

The issue is really weird :
screenshot from 2017-02-27 20-51-49
As you can see, the detect function returns a boolean value to passReq, since ( as you can check on the code ) the HERO4 returns a False value, the while loop that tries to get the password shouldn't even start. But i'm gonna commit a new code that is gonna print the value of passReq.
It should be False for the HERO4, if it's not please let me know.
@KonradIT