Jump to content


Photo

GCS Go Pro Wifi Widget


  • Please log in to reply
9 replies to this topic

#1 Gaijin

Gaijin

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts
  • LocationPortsmouth, South Coast
  • Country: flag of United Kingdom United Kingdom

Posted 11 December 2012 - 07:25 PM

Hey Devs,

As the proud new owner of a Hero3 Silver it occurs to me, wouldn't it be awesome to embed the Go Pro controls into a GCS Widget, this would give me a central control point and more importantly a view of the copters camera output without the need to set up an FPV system or any extra hardware.

Personally I've tried FPV and concluded that it's not really for me, I'm far more interested in Aerial photography / Video and generally prefer to line up my shot from the ground so the 3 sec encoding lag doesn't really phase me and the range is surprisingly decent given the simple nature of the connection.

Any devs interested in taking a look, it's out of my skill set to code it but I'm a willing tester :P

P.s I've located some existing projects and resources which may help

http://goprouser.fre...hone-t9393.html

http://www.tavarn.or...ac-control.html

http://tavarn.org/wi...bacpac_commands

https://github.com/m...-Streaming/wiki

Edited by Gaijin, 11 December 2012 - 08:29 PM.


#2 filnet

filnet

    Cute Developer

  • Members
  • PipPipPip
  • 427 posts
  • LocationParis 11
  • Country: flag of France France


Posted 08 January 2013 - 08:00 PM

How to (pre)view Go Pro video using gstreamer has been discussed with Gaijin here : Video Gadget

 

We have not been successful (yet) :( but lets continue the discussion here...

 

My point of view is that when we are successfull in getting gstreamer (or something else) to display some video preview from a Go Pro within GCS then it would make sense to add some kind of controller for the go pro.

Does not sound to difficult and could be an interesting project.


Edited by filnet, 08 January 2013 - 08:01 PM.


#3 Caustic

Caustic

    Too many ideas and too little thoughts

  • Members
  • PipPipPip
  • 1943 posts
  • LocationDuncan/Victoria, BC
  • Country: flag of Canada Canada


Posted 08 January 2013 - 08:18 PM

This is probably a more appropriate link/reference: http://www.developer...treamer_with_Qt

 

The issue actually seems that the GoPro does not play nice with gstreamer, lots of still or post capture streaming articles, but not many working live-streams. . . 

 

Edit: Link was in relation to the first post

 

Mist seems an interesting project ... http://www.mistserver.org/


I swear that I try not to be, but I will eventually come across the same as my name! Just let me know.

Dankers note: This is not really true, this guy is nice, friendly and helpful. Sometimes he can give the impression he is a bit forceful but he doesn't mean to be. Top bloke.

#4 Gaijin

Gaijin

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts
  • LocationPortsmouth, South Coast
  • Country: flag of United Kingdom United Kingdom

Posted 10 January 2013 - 06:47 PM

My point of view is that when we are successfull in getting gstreamer (or something else) to display some video preview from a Go Pro within GCS then it would make sense to add some kind of controller for the go pro.

Does not sound to difficult and could be an interesting project.

 

That sounds awesome, I'd really like that

 

Nothing back about the commands yet unfortunately



#5 Guest_dankers_*

Guest_dankers_*
  • Guests

Posted 11 January 2013 - 04:18 AM

That sounds awesome, I'd really like that

 

Agreed, that would be truly amazing but from what I know the GoPro API stuff is closed still?



#6 filnet

filnet

    Cute Developer

  • Members
  • PipPipPip
  • 427 posts
  • LocationParis 11
  • Country: flag of France France


Posted 11 January 2013 - 09:53 PM

I might be a bit over enthusiastic about the feasibility of the whole GoPro thing, knowing that I don't even have a GoPro :blink:

 

Gaijin posted a link to a web page demonstrating how to control a GoProp.

Apparently that page is gone and we did not capture its source, for future reference...

 

Anyways, nothing prevents us from monitoring what's going on in that area and collect information/knowledge.



#7 Gaijin

Gaijin

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts
  • LocationPortsmouth, South Coast
  • Country: flag of United Kingdom United Kingdom

Posted 12 January 2013 - 08:15 AM

Agreed, that would be truly amazing but from what I know the GoPro API stuff is closed still?

 

I'd say more like unpublished ;-)

 

 

 

Gaijin posted a link to a web page demonstrating how to control a GoProp.

Apparently that page is gone and we did not capture its source, for future reference...

 

 

 

The web page that controls a  Go Pro is still there and I can confirm it works, perhaps someone better at html than me can extract the required commands directly form the page source?

 

http://www.tavarn.or...ac-control.html

 

I excerpted this from the Go Pro user forum thread, it seems someone made a dump of the missing page, does this help any?

 

 

 

You can read current states from the GoPro trough this URL : http://10.5.5.9:80/c...?t=WIFIPASSWORD

The HTTP response contains bytes :

byte   value
1   ?
2   Current mode. 0-4 matches set CM. 7 - in menu.
3   ?
4   Start up mode : 0 = video - 1 = photo - 2 = burst - 3 = timelapse
5   Spot meter : 0 = Off - 1 = On
6   Current timelapse interval
7   Automatic power off : 0 = never - 1 = 60sec - 2 = 120sec - 3 = 300sec
8   Current view angle
9   Current photo mode
10   Current video mode
11   ?
12   ?
13   ?
14   Recording minutes
15   Recording seconds
16   ?
17   Current beep volume
18   2 = 4 LEDS - 1 = 2 LEDS - 0 = LEDS off
19   bit 1 : 1 = preview on - 0 = preview off
bit 2 : ?

bit 3 : 0 = up - 1 = down

bit 4 : 1 = one button on - 0 = one button off

bit 5 : 1 = OSD on - 0 = OSD off

bit 6 : 0 = NTSC - 1 = PAL

bit 7 : 1 = Locate(beeping)

bit 8 : ?

20   Battery %
21   ?
22   Photos available (hi byte) or 255 = no SD Card
23   Photos available (lo byte)
24   Photo count (hi byte)
25   Photo count (lo byte)
26   Video Time Remaining in minutes (hi byte)
27   Video Time Left (lo byte)
28   Video count (hi byte)
29   Video count (lo byte)
30   Recording
31   ?
Retrieved from "http://tavarn.org/wi...states&oldid=75"

Edited by Gaijin, 12 January 2013 - 08:18 AM.


#8 filnet

filnet

    Cute Developer

  • Members
  • PipPipPip
  • 427 posts
  • LocationParis 11
  • Country: flag of France France


Posted 12 January 2013 - 11:49 AM

I have attached the source of the page. It shows the structure of the queries expected by the GoPro and all? the accepted commands.

Attached Files


Edited by filnet, 12 January 2013 - 12:32 PM.


#9 filnet

filnet

    Cute Developer

  • Members
  • PipPipPip
  • 427 posts
  • LocationParis 11
  • Country: flag of France France


Posted 12 January 2013 - 12:30 PM

The general query structure is  : http://<ip>/<device>/<app>?t=<password>&p=<command>

 

Where:<device> can be bacpac or camera.

 

From the page, we can extract the following queries;

 

Turn on camera : http://<ip>/bacpac/PW?t=<password>&p=%01

Turn off camera : http://<ip>/bacpac/PW?t=<password>&p=%00

Change mode    : http://<ip>/bacpac/PW?t=<password>&p=%02

 

Start capture : http://<ip>/bacpac/SH?t=<password>&p=%01

Stop capture : http://<ip>/bacpac/SH?t=<password>&p=%00

 

Preview

On : http://<ip>/camera/PV?t=<password>&p=%02

Off : http://<ip>/camera/PV?t=<password>&p=%00

 

Mode

Camera     : http://<ip>/camera/CM?t=<password>&p=%00

Photo        : http://<ip>/camera/CM?t=<password>&p=%01

Burst         : http://<ip>/camera/CM?t=<password>&p=%02

Timelapse : http://<ip>/camera/CM?t=<password>&p=%03

Timelapse : http://<ip>/camera/CM?t=<password>&p=%04

 

Orientation

Head up     : http://<ip>/camera/UP?t=<password>&p=%00

Head down : http://<ip>/camera/UP?t=<password>&p=%01

 

Video Resolution

WVGA-60  : http://<ip>/camera/VR?t=<password>&p=%00

WVGA-120  : http://<ip>/camera/VR?t=<password>&p=%01

720-30   : http://<ip>/camera/VR?t=<password>&p=%02

720-60   : http://<ip>/camera/VR?t=<password>&p=%03

960-30   : http://<ip>/camera/VR?t=<password>&p=%04
960-60   : http://<ip>/camera/VR?t=<password>&p=%05

1080-30 : http://<ip>/camera/VR?t=<password>&p=%06
 

FOV

wide : http://<ip>/camera/FV?t=<password>&p=%00

medium : http://<ip>/camera/FV?t=<password>&p=%01

narrow : http://<ip>/camera/FV?t=<password>&p=%02

 

Photo Resolution

11mp wide     : http://<ip>/camera/PR?t=<password>&p=%00
8mp medium  : http://<ip>/camera/PR?t=<password>&p=%01
5mp wide       : http://<ip>/camera/PR?t=<password>&p=%02
5mp medium  : http://<ip>/camera/PR?t=<password>&p=%03

 

Timer

0,5sec : http://<ip>/camera/TI?t=<password>&p=%00
1sec    : http://<ip>/camera/TI?t=<password>&p=%01
2sec    : http://<ip>/camera/TI?t=<password>&p=%02
5sec    : http://<ip>/camera/TI?t=<password>&p=%03
10sec  : http://<ip>/camera/TI?t=<password>&p=%04
30sec  : http://<ip>/camera/TI?t=<password>&p=%05
60sec  : http://<ip>/camera/TI?t=<password>&p=%06

 

Localisation

On : http://<ip>/camera/LL?t=<password>&p=%01

Off : http://<ip>/camera/LL?t=<password>&p=%00

 

Bip Volume

0%     : http://<ip>/camera/BS?t=<password>&p=%00

70%   : http://<ip>/camera/BS?t=<password>&p=%01

100% : http://<ip>/camera/BS?t=<password>&p=%02

 

Edited : added more commands
 


Edited by filnet, 12 January 2013 - 04:44 PM.


#10 Gaijin

Gaijin

    Advanced Member

  • Members
  • PipPipPip
  • 76 posts
  • LocationPortsmouth, South Coast
  • Country: flag of United Kingdom United Kingdom

Posted 12 January 2013 - 01:32 PM

Excellent, So it does need the password sent with every command, I thought so...