Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JT1078 ERROR: cur body len is [818] body length too short #3

Open
louiscoetzee opened this issue Dec 6, 2024 · 2 comments
Open

JT1078 ERROR: cur body len is [818] body length too short #3

louiscoetzee opened this issue Dec 6, 2024 · 2 comments

Comments

@louiscoetzee
Copy link

您好,

我已经成功搭建了一个测试服务器,现在尝试用实际的行车记录仪设备进行测试。在使用模拟器时,视频可以正常传输并正确解析,但在使用实际设备时,当我发送 P0x9101 后,我开始收到以下类似的消息: cur body len is [818] body length too short
cur body len is [58] body length too short
cur body len is [102] body length too short
cur body len is [350] body length too short
等等。

您能否建议我们可以尝试些什么?非常感谢!

@cuteLittleDevil
Copy link
Owner

您好,

我已经成功搭建了一个测试服务器,现在尝试用实际的行车记录仪设备进行测试。在使用模拟器时,视频可以正常传输并正确解析,但在使用实际设备时,当我发送 P0x9101 后,我开始收到以下类似的消息: cur body len is [818] body length too short cur body len is [58] body length too shortcur body len 为 [58] body length too short cur body len is [102] body length too shortcur body len 为 [102] body length too short cur body len is [350] body length too short当前体长度为 [350] 体长太短 等等。

您能否建议我们可以尝试些什么?非常感谢!

  1. 9101需要流媒体 请问你用的是什么 (推荐是rtvs)
  2. 这个错误是1078的 大概率是有音频解析错误了(我之前测试是仅仅视频)

@cuteLittleDevil
Copy link
Owner

您好,

我已经成功搭建了一个测试服务器,现在尝试用实际的行车记录仪设备进行测试。在使用模拟器时,视频可以正常传输并正确解析,但在使用实际设备时,当我发送 P0x9101 后,我开始收到以下类似的消息: cur body len is [818] body length too short cur body len is [58] body length too shortcur body len 为 [58] body length too short cur body len is [102] body length too shortcur body len 为 [102] body length too short cur body len is [350] body length too short当前体长度为 [350] 体长太短 等等。

您能否建议我们可以尝试些什么?非常感谢!

之前是音频解析也问题 使用protocol最新版本解决 v1.12.0
github.com/cuteLittleDevil/go-jt808/protocol v1.12.0

目前新的例子是用音视频了
https://github.com/cuteLittleDevil/go-jt808/blob/main/example/jt1078/lal/main.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants