【问题标题】:curl: (18) transfer closed with 2 bytes remaining to readcurl:(18)传输关闭,剩余 2 个字节要读取
【发布时间】:2014-08-22 06:31:42
【问题描述】:

我使用 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?

【问题讨论】:

    标签: ubuntu curl data-transfer-objects gopro


    【解决方案1】:

    开始捕获应该像http://10.5.5.9/bacpac/SH?t=goprohero\&p=%01

    停止捕获将是http://10.5.5.9/bacpac/SH?t=goprohero\&p=%00

    剩下的2个要读取的字节是命令响应,第一个字节代表命令执行状态(0OK2 表示 忙碌

    有关命令的更多信息,您可以参考https://github.com/KonradIT/goprowifihack

    对于实现参考https://github.com/r1pper/GoPro.Hero,它是 c# 中的 PCL 库,应该在 ubuntu 上与 mono 一起使用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-18
      • 1970-01-01
      • 1970-01-01
      • 2020-07-07
      • 2021-04-09
      • 2021-04-21
      相关资源
      最近更新 更多