-->
Page 1 of 2

ESP8266 controlling a GoPro

PostPosted: Fri Jan 01, 2016 2:56 am
by Fyod
Hey guys!
I'm working on controlling a GoPro over the embedded webserver on the GoPro.
I have successfully wired the ESP to my Arduino and the ESP has external power. All is well in the Serial Monitor, raised baud to 57k.
I connect to the GoPro (ESP is in station mode), I get an IP assigned, TCP to 80, everything seems fine until I do a GET request. The Send is OK, but nothing happens on the GoPro and no reply. I am trying various commands like shutter, camera off, etc.

Troubleshooting:
- Tried the same thing from iPhone browser, GoPro commands work fine
- Tried connecting ESP to my home WiFi, TCP on 80 to google.com works, GET google.com works, responds

Not sure where to go from here. All I know is that the firmware is old, but I doubt that has anything to do with it.
Any help is appreciated.

Oh, Happy New Year!

Re: ESP8266 controlling a GoPro - no response

PostPosted: Sat Jan 02, 2016 9:41 pm
by Fyod
Here's my approach after ESP is turned on:

Code: Select allAT+CWMODE=1
no change

AT+CWJAP="ssidname","password"
OK

AT+CIPMUX=0
OK

AT+CIPSTART="TCP","10.5.5.9",80  // or 8080 for GoPro 3+
OK
Linked

AT+CIPSEND=61
>

GET http://10.5.5.9/bacpac/SH?t=password&p=%01 HTTP/1.1\r\n
SEND OK


... nothing happens.

Re: ESP8266 controlling a GoPro - no response

PostPosted: Sat Jan 02, 2016 11:19 pm
by Fyod
If I add more bytes to CIPSEND, this happens:

Code: Select allAT+CIPSEND=63

> GET http://10.5.5.9/bacpac/SH?t=password&p=%01 HTTP/1.1\r\n


SEND OK

+IPD,221:HTTP/1.1 400 Bad Request
Connection: close
Date: Sun, 03 Jan 2016 05:09:18 GMT
Server: Cherokee/1.2.101b140303_457ea58 (UNIX)
Content-Length: 448
Content-Type: text/html
Cache-Control: no-cache
Pragma: no-cache


OK

+IPD,448:<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>400 Bad Request</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h1>400 Bad Request</h1>
Your browser sent a request that this server could not understand.<p><pre>GET http://10.5.5.9/bacpac/SH?t=password&amp;p=%01 HTTP/1.1\r\n

</pre>
<p><hr>
Cherokee web server 1.2.101b140303_457ea58 (UNIX), Port 80
</body>
</html>

OK


So possibly the '&amp;' is the problem. I am doing the AT commands directly from Arduino Serial Monitor and achoing them to ESP serial port.

Re: ESP8266 controlling a GoPro - no response

PostPosted: Sun Jan 03, 2016 2:22 am
by villTech
its been a while since i last played my gopro with a wifi module. but, here is the command is use:
Code: Select allGET /bacpac/SH?t=PASSWORD&p=%01 HTTP/1.0
not sure though if HTTP/1.1 to HTTP/1.0 to gopro will make a difference