mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 3470|reply: 6
打印 prevThread nextThread

执法仪 请问数据包怎么解包

[copyURL]

1

主题

4

帖子

23

积分

newBie

Rank: 1

积分
23
jumpTo
owner
poston 2021-5-6 17:23 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
原始数据是下面
REGISTER sipU_21030164@192.168.0.144 SIP/2.0\r\nVia: SIP/2.0/UDP 0.0.0.0;rport;branch=z9hG4bKPj8tM0GTzBQvu8cF4TwV2.1GSkb7TPI6x4\r\nMax-Forwards: 70\r\nFrom: <sipU_21030164@192.168.0.144>;tag=0cW5lWGkik9YtxzdfM-x1c-iGfQoBCTR\r\nTo: <sipU_21030164@192.168.0.144>\r\nCall-ID: Yuc69opltQvLkPb16aL2jp3XLMRBjYfn\r\nCSeq: 1 REGISTER\r\nExpires: 2147483647\r\nContent-Type: Application/protobuf_bv1\r\nContent-Length:   260\r\n\r\n\x81\x00\x00\x00\n\x0bPU_21030164\x12\x0bAndroid MPU\x1a\x131884_NA201905061415"\x050.0.1(\x000\x010\x020\x038\x01B\x04ZW05H\x00P\x00X\x01`\x01h\x01p\x01x\x00\x80\x01\x01\x88\x01\x01\x90\x01\x00\x98\x01\x00\xa0\x01\x01\xca\x01\nsmartvideo\xd0\x01\x80\xa8\xd6\xb9\x07\xd8\x01\x80\xa8\xd6\xb9\x07\xe2\x01\x00Y\x00\x00\x00\n\x0bPU_21030164\x12\x04ZW05"\r\x08\r\x10\x00\x1a\x05video \x00"\r\x08\x10\x10\x00\x1a\x03GPS \x80\x80\x04"\x15\x080\x10\x00\x1a\x0bSerialPort1 \x80\x82\x04(\x010\x018\x00@\x9a\xcc\x9enX\x00`\x04h\x00\x1e\x00\x00\x00\n\x00\x12\x00\x1a\x00"\x00*\x002\x00:\x00B\x00J\x00R\x00Z\x00b\x00j\x00r\x00z\x00
reply

使用道具 report

1

主题

4

帖子

23

积分

newBie

Rank: 1

积分
23
sofa
 Owner| poston 2021-5-6 17:41 | 显示全部楼层
coldflame post on2021-5-6 17:36
兄弟,要有一个上下文啊。

大佬   这个是执法仪通过udp发出来的信息    服务端监听udp端口   接收到的信息就是这个    那么怎么对这个数据包解包成人看得懂的 字符串
reply agree Against

使用道具 report

1

主题

4

帖子

23

积分

newBie

Rank: 1

积分
23
bench
 Owner| poston 2021-5-6 17:42 | 显示全部楼层
原始接收到的数据包
b'REGISTER sipU_21030164@192.168.0.144 SIP/2.0\r\nVia: SIP/2.0/UDP 0.0.0.0;rport;branch=z9hG4bKPj8tM0GTzBQvu8cF4TwV2.1GSkb7TPI6x4\r\nMax-Forwards: 70\r\nFrom: <sipU_21030164@192.168.0.144>;tag=0cW5lWGkik9YtxzdfM-x1c-iGfQoBCTR\r\nTo: <sipU_21030164@192.168.0.144>\r\nCall-ID: Yuc69opltQvLkPb16aL2jp3XLMRBjYfn\r\nCSeq: 1 REGISTER\r\nExpires: 2147483647\r\nContent-Type: Application/protobuf_bv1\r\nContent-Length:   260\r\n\r\n\x81\x00\x00\x00\n\x0bPU_21030164\x12\x0bAndroid MPU\x1a\x131884_NA201905061415"\x050.0.1(\x000\x010\x020\x038\x01B\x04ZW05H\x00P\x00X\x01`\x01h\x01p\x01x\x00\x80\x01\x01\x88\x01\x01\x90\x01\x00\x98\x01\x00\xa0\x01\x01\xca\x01\nsmartvideo\xd0\x01\x80\xa8\xd6\xb9\x07\xd8\x01\x80\xa8\xd6\xb9\x07\xe2\x01\x00Y\x00\x00\x00\n\x0bPU_21030164\x12\x04ZW05"\r\x08\r\x10\x00\x1a\x05video \x00"\r\x08\x10\x10\x00\x1a\x03GPS \x80\x80\x04"\x15\x080\x10\x00\x1a\x0bSerialPort1 \x80\x82\x04(\x010\x018\x00@\x9a\xcc\x9enX\x00`\x04h\x00\x1e\x00\x00\x00\n\x00\x12\x00\x1a\x00"\x00*\x002\x00:\x00B\x00J\x00R\x00Z\x00b\x00j\x00r\x00z\x00'
reply agree Against

使用道具 report

1

主题

4

帖子

23

积分

newBie

Rank: 1

积分
23
ground
 Owner| poston 2021-5-6 18:52 | 显示全部楼层
coldflame post on2021-5-6 17:54
这个涉及到内部协议,这个可不能透露给您。
协议我们是不开放的。
我们只对外提供SDK。

请问一下有java sdk么???
我的需求是  把gps 坐标上传到我们的服务器    要怎么做呢
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-18 12:24 , Processed in 0.057619 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList