KonradIT / goprowifihack

Unofficial GoPro WiFi API Documentation - HTTP GET requests for commands, status, livestreaming and media query.
Apache License 2.0
2.11k stars 338 forks source link

GoPro MAX: Exiting pairing mode with BLE #280

Open MDThomsen opened 1 year ago

MDThomsen commented 1 year ago

Problem:

When trying to pair with the GoPro MAX using Android without using the official GoPro app, the camera will remain in the pairing mode afterwards. Is there a BLE equivalent characteristic that can be written to to exit the pairing mode? Similarly to this WiFi command:

http://10.5.5.9/gp/gpControl/command/wireless/pair/complete?success=1&deviceName=...

From my testing it seems that the WiFI does not get enabled when the camera is in pairing mode.

Details:

sepp89117 commented 1 year ago

Hi, I just solved this problem for me and I would like to share the solution!

I write the following value to characteristic GP-0091 "Network Management Command" ("b5f90091-aa8d-11e3-9046-0002a5d5c51b"): byte[] msg = {0x0f, 0x03, 0x01, 0x08, 0x00, 0x12, 0x09, 'G', 'o', 'E', 'a', 's', 'y', 'P', 'r', 'o'};

Where

byte[0] = length of the payload, 
byte[1-5] = pair completed command, 
byte[6] = length of the name of the master and 
byte[7-x] the name of the master

The solution will be included in the next version of GoEasyPro Android, in the sendBtPairComplete() function.

Edit: I have successfully tested the function with Hero5 and Hero8.