我使用 GOPro 工作人员 6 个月前发送给我的命令,通过终端(在 Gopro 网络上)使用 Gopro Hero3 拍摄照片/视频。有效。但是,在过去的一个月里,我一直在尝试再次执行此操作,并且不断出现以下错误:
**curl: (18) transfer closed with 2 bytes remaining to read**
I have used the following commands:
要开始捕获,请键入 curl http://10.5.5.9/backpac/SH?t=goprohero\&p=%01
要停止捕获(录制视频),请键入 curl http://10.5.5.9/backpac/SH?t=goprohero\&p=%00
knowing that the following numbers are for the following operations.
%Video: p=%00
-%Photo: p=%01
-%Time-lapse: p=%03
我不知道是否需要更改命令和/或是否需要使用wireshark 来获取它们。我需要能够编写代码来获取不同时间间隔的图片。我知道这是服务器的问题,但我不知道如何解决它。
Can anyone please comment on this?
最佳答案
开始捕获应该像 http://10.5.5.9/bacpac/SH?t=goprohero\&p=%01
停止捕获将是 http://10.5.5.9/bacpac/SH?t=goprohero\&p=%00
要读取的剩余 2 个字节是命令响应,第一个字节表示命令执行状态( 0 为 OK 和 2 为 忙碌 )
有关命令的更多信息,您可以引用 https://github.com/KonradIT/goprowifihack
实现引用 https://github.com/r1pper/GoPro.Hero这是 c# 中的 PCL 库,应该在 ubuntu 上与 mono 一起使用。
关于ubuntu - curl:(18)传输关闭,剩余 2 个字节要读取,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24514646/