gobot.io/x/gobot@v1.16.0/platforms/holystone/hs200/README.md (about) 1 # Holystone HS200 2 3 This package contains the Gobot driver for the Holystone HS200 drone. 4 5 For more information on this drone, go to: 6 http://www.holystone.com/product/Holy_Stone_HS200W_FPV_Drone_with_720P_HD_Live_Video_Wifi_Camera_2_4GHz_4CH_6_Axis_Gyro_RC_Quadcopter_with_Altitude_Hold,_Gravity_Sensor_and_Headless_Mode_Function_RTF,_Color_Red-39.html 7 8 ## How to Install 9 10 ``` 11 go get -d -u gobot.io/x/gobot/... 12 ``` 13 14 ## How to Use 15 - Connect to the drone's Wi-Fi network and identify the drone/gateway IP address. 16 - Use that IP address when you create a new driver. 17 - Some drones appear to use a different TCP port (8080 vs. 8888?). If the example doesn't work scan the drone for open ports or modify the driver not to use TCP. 18 19 Here is a sample of how you initialize and use the driver: 20 21 ```go 22 package main 23 24 import ( 25 "time" 26 27 "gobot.io/x/gobot" 28 "gobot.io/x/gobot/platforms/holystone/hs200" 29 ) 30 31 func main() { 32 drone := hs200.NewDriver("172.16.10.1:8888", "172.16.10.1:8080") 33 34 work := func() { 35 drone.TakeOff() 36 37 gobot.After(5*time.Second, func() { 38 drone.Land() 39 }) 40 } 41 42 robot := gobot.NewRobot("hs200", 43 []gobot.Connection{}, 44 []gobot.Device{drone}, 45 work, 46 ) 47 48 robot.Start() 49 } 50 ``` 51 52 ## References 53 https://hackaday.io/project/19356/logs 54 55 https://github.com/lancecaraccioli/holystone-hs110w 56 57 ## Random notes 58 - The hs200 sends out an RTSP video feed from its own board camera. Not clear how this is turned on. The data is apparently streamed over UDP. (Reference mentions rtsp://192.168.0.1/0 in VLC, I didn't try it!) 59 - The Android control app seems to be sending out the following TCP bytes for an unknown purpose: 60 `00 01 02 03 04 05 06 07 08 09 25 25` but the drone flies without a TCP connection. 61 - The drone apparently always replies "noact\r\n" over TCP. 62 - The app occasionally sends out 29 bytes long UDP packets besides the 11 byte control packet for an unknown purpose: 63 `26 e1 07 00 00 07 00 00 00 10 00 00 00 00 00 00 00 14 00 00 00 0e 00 00 00 03 00 00 00` 64 - The doesn't seem to be any telemetry coming out of the drone besides the video feed. 65 - The drone can sometimes be a little flaky. Ensure you've got a fully charged battery, minimal Wi-Fi interference, various connectors on the drone all well seated. 66 - It's not clear whether the drone's remote uses Wi-Fi or not, possibly Wi-Fi is only for the mobile app.