We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

2 posts • Page 1 of 1
abishur
Posts: 4505
Joined: Thu Jul 28, 2011 4:10 am

Connec to to Go Pro Live Preview Headless

Thu Jun 24, 2021 8:21 pm

Hey all, I'm working on a project where I can live stream my bike rides with a ton of information using a GoPro Hero 8. I did a test yesterday and it half worked. Some of my calculations need checking I think for distance, but the biggest issue I had was the GoPro would just randomly stop sending data to twitch. It wouldn't shut down, it wasn't warm to the touch, I had plenty of battery and space on my card, it would just quit!
To bypass this issue, I was thinking of connecting directly to the live preview of my go pro and was hoping for a sanity check.

Here's my thought process.

I have a raspberry pi zero W running Raspian Lite (that is, it's headless) connected to my home's VPN by connecting the Pi's wireless to my phone's hotspot (2.4 GHz). I first pair my GoPro with My Pi by issuing the following commands:

Code: Select all

sudo bluetoothctl
scan on
(Find the entry that says "Device [MAC address] Name: GoPro ####" and copy this mac address)
trust [MAC address]
pair [MAC address]
(enter yes when prompted to "accept pairing")
connect [MAC address]
(Confirm it returns "connection successful")
disconnect
So far so good. I am now connected to my GoPro and can activate the GoPro's wireless with the following commands

Code: Select all

sudo gattool -t random -b [MAC address] -I
(Then once it connects)
char-write-req 2f 03170101
(To turn on Wifi)
char-write-req 2f 03170100
(To turn off Wifi)
 
At the point I use the usb port to connect a second wifi adapter and have it configured to automatically connect to the GoPro's wireless.

All this I've done with no issues. This is the tricky bit.

The Go Pro has a live preview that can be accessed at the address "udp://10.5.5.9:8554", though you might need to do an HTTTP get to the url "http://10.5.5.9/gp/gpControl/execute?p1 ... c1=restart" first. But my question is, is it possible for a computer on my home network to get to that URL?

In theory if I bridge the two wireless devices and then set up a route on my home router that tells it network 10.5.5.0 is reachable on the VPN, should I be able to reach GoPro at this point or am I talking nonsense?

The ultimate goal is to have a steady connection to my GoPro's video feed that automatically reconnects in the event the network is lost. If anyone knows of a better way, I am all ears.


2 posts • Page 1 of 1

Return to "General discussion"

AltStyle によって変換されたページ (->オリジナル) /