0% found this document useful (0 votes)
116 views14 pages

AutoRing A4 Communication Protocol Explanation

This document describes the communication protocols for an AutoRing device. It outlines workflows for terminal registration, GPS positioning and warnings, capturing snapshots, real-time audio/video transmission, playback of historical media, and emergency warnings. For each workflow, it provides the message types and formats exchanged between the device and server at each step.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views14 pages

AutoRing A4 Communication Protocol Explanation

This document describes the communication protocols for an AutoRing device. It outlines workflows for terminal registration, GPS positioning and warnings, capturing snapshots, real-time audio/video transmission, playback of historical media, and emergency warnings. For each workflow, it provides the message types and formats exchanged between the device and server at each step.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

AutoRing A4 Communication Protocol Explanation

Content
1. Work Flow of Terminal Registration.............................................................................................. 2
2. Work Flow of GPS Position&Warning........................................................................................... 3
3. Work Flow of Snapshot...................................................................................................................6
4. Work Flow of Real-time Audio and Video Transmission...............................................................7
5. Work Flow of Historical Audio and Video Playback......................................................................8
6. Work Flow of Emergency Warning...............................................................................................11
7. Work Flow of TTS.........................................................................................................................14
1. Work Flow of Terminal Registration
1.1 The device sends registration message to the server by 0x0100.
[39.108.194.249:6608]<<<7E0100002B8790461132570000002C012C4D544D35364175746F526
96E672041340000000000000000003436313133323502313233343536227E

1.2 The server replies with registration response by 0x8100.


[39.108.194.249:6608]>>>7E8100001187904611325700010000003833383739303436313133323
5008F7E

1.3 The device sends authentication code to the server by 0x0102.


[39.108.194.249:6608]<<<7E0102000E8790461132570001383338373930343631313332350012
7E

1.4 The server replies with general response 0x8001.


[39.108.194.249:6608]>>> 7E8001000587904611325700020001010200A17E

1.5 Authentication OK.


2. Work Flow of GPS Position&Warning
2.1 The device sends GPS position by 0x0200.
[39.108.194.249:6608]<<<7E0200001C87904611325712C6000000000000000100000000000000
00000000000000220301090643827E

2.2 The server replies 0x0200 messages with general response.


[39.108.194.249:6608]>>> 7E8001000587904611325712C712C6020000A27E

2.3 The device sends warnings by 0x0200. There is warning information in additional
information. That’s the difference between messages of GPS position and warning.
[39.108.194.249:6608]<<<7E0200004D8790461132570080000000000000000100000000000000
00000003E80000220307163916652F000000000001020000000000640000000000000000000022
0307163841002134363131333235220307163841000200277E

2.4 The server replies 0x0200 messages with general response.


[39.108.194.249:6608]>>> 7E8001000587904611325700810080020000A27E

2.5 The server requests warning attachments by 0x9208.


[39.108.194.249:6608]>>>7E9208005387904611325700020E33392E3130382E3139342E323439
19D419D43436313133323522030716384100020030303837393034363131333235373232303330
37313633383431303030323030000000000000000000000000000000008B7E

device log
//Receive upload request: 39.108.194.249, tcp: 6612, udp: 6612, key:
34363131333235220307163841000200//

2.6 The device sends attachment information by 0x1210.


[39.108.194.249:6612]<<<7E121000A78790461132570000343631313332353436313133323522
0307163841000200303038373930343631313332353732323033303731363338343130303032303
000023230305F36355F363530315F30305F3030383739303436313133323537323230333037313
6333834313030303230302E6A70670000BEA93230325F36355F363530315F30305F303038373
93034363131333235373232303330373136333834313030303230302E6D7034000ACDA2E57E

2.7 The server replies with general response.


[39.108.194.249:6612]>>>7E80010005879046113257000C0000121000AF7E

2.8 The device sends file information by 0x1211.


[39.108.194.249:6612]<<<7E1211003887904611325700013230305F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6A7067000000
BEA9607E

2.9 The server replies with general response.


[39.108.194.249:6612]>>>7E80010005879046113257000C0001121100AF7E
2.10 The device starts uploading file data by TCP protocol.
device log (The data in log is not completed)
//22-03-07 16:39:17.313 1631-547578220896 INFO <1> <1515> WarningUploader() step5.
send file data
22-03-07 16:39:17.314 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430305F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6A7067000000000000BEA9...(48809)
22-03-07 16:39:17.317 1631-547578220896 INFO <1> <1515> WarningUploader() step6.
send finish msg//

2.11 The device sends 0x1212 after the file has been uploaded completely.
[39.108.194.249:6612]<<<7E1212003887904611325700023230305F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6A7067000000
BEA9607E

2.12 The server replies with 0x9212.


[39.108.194.249:6612]>>>7E92120036879046113257000C3230305F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6A7067000000
F77E

2.13 If there are more than one attachments, after one attachment is uploaded completely,
the device will send another 0x1211.
[39.108.194.249:6612]>>>7E1211003887904611325700033230325F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6D703402000
ACDA2447E

2.14 The server replies with general response.


[39.108.194.249:6612]>>>7E80010005879046113257000C0003121100AD7E

2.15 The device starts uploading file data by TCP protocol.


device log (The data in log is not completed)
//22-03-07 16:39:17.773 1631-547578220896 INFO <1> <1515> WarningUploader() step5.
send file data
22-03-07 16:39:17.774 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D7034000000000000FA00...(64000)
22-03-07 16:39:17.780 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340000FA000000FA00...(64000)
22-03-07 16:39:17.894 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340001F4000000FA00...(64000)
22-03-07 16:39:17.899 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340002EE000000FA00...(64000)
22-03-07 16:39:17.915 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340003E8000000FA00...(64000)
22-03-07 16:39:17.977 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340004E2000000FA00...(64000)
22-03-07 16:39:17.981 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340005DC000000FA00...(64000)
22-03-07 16:39:17.988 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340006D6000000FA00...(64000)
22-03-07 16:39:18.127 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340007D0000000FA00...(64000)
22-03-07 16:39:18.150 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340008CA000000FA00...(64000)
22-03-07 16:39:18.183 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D70340009C4000000FA00...(64000)
22-03-07 16:39:18.206 1631-547578220896 INFO <1> <1515> [39.108.194.249:6612] <<<
3031636430325F36355F363530315F30305F303038373930343631313332353732323033303731
36333834313030303230302E6D7034000ABE0000000FA2...(4002)
22-03-07 16:39:18.221 1631-547578220896 INFO <1> <1515> WarningUploader() step6.
send finish msg//

2.16 The device sends 0x1212 after the file has been uploaded completely.
[39.108.194.249:6612]>>>7E1212003887904611325700043230325F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6D703402000
ACDA2407E

2.17 The server replies with 0x9212.


[39.108.194.249:6612]>>>7E92120036879046113257000C3230325F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6D7034020000
A37E
3. Work Flow of Snapshot
3.1 The server sends snapshot request to the device by 0x8801.
[39.108.194.249:6608]>>> 7E8801000C87904611325700D1640001000000010100000000147E

3.2 The device replies 0x8801 with 0x0805.


[39.108.194.249:6608]<<< 7E08050009879046113257010900D1000001000004CF327E

3.3 The device captures pictures according to the server request. And then the device sends
the captured pictures to the server by 0x0801. Captured pictures will be sent by many
sub-packets.
device log (The data in log is not completed)
//[39.108.194.249:6608]<<<7E080123FF879046113257010A037A0001000004CF00000064000
00000000000010000000000000000000003E80000220228184645FFD8FFE000104A4649460001
0100000100010000FFDB00430002010101010102010101020202020204030202020205...
[39.108.194.249:6608] sendMsg() total: 890, index: 1

[39.108.194.249:6608]<<<7E080123FF879046113257010B037A00025C724718ACA6F996A6D
4E1CCEECAF7D3A8BC244A8620C5EDE181D5E5855406218AB1DCE0139E98C63E94667B8
FED0B749E3B895B3BA478E451FBB04288CEE20BFF00131008C04EF4FB8D5228611B6DE5
B799A4...
[39.108.194.249:6608] sendMsg() total: 890, index: 2

[39.108.194.249:6608]<<<7E080123FF879046113257010C037A0003DEC936150EE148C9572
138627073F77A67A6AEA77B6C6FA656B4BA36CC1F7D01C5C1CEC3943B142601E03000F5E
6B9AD4CDBAADD476D60220C119616830AEA004505CE4AF3B8FCBDFB62B29455AE76456
BA18F...
[39.108.194.249:6608] sendMsg() total: 890, index: 3

[39.108.194.249:6608]<<<7E080123FF879046113257010D037A0004634D8232C38724920E19
4920D24B018479170F2451985DADA54501D8EEC073B87A91DB9279C6714E9FCABCBD92C
A791D029691E100C45DC0562A423654649E063208CE288AD35146524EC3644579A09ADA51
80...
[39.108.194.249:6608] sendMsg() total: 890, index: 4
.....//

3.4 The server sends 0x8800 to the device after receiving captured pictures.
[39.108.194.249:6608]>>>7E880000058790461132570482000004CF00E57E

3.5 The device sends warning information by 0x0200 if ADAS or DMS channel is captured.
[39.108.194.249:6608]<<<7E0200004D8790461132570117000000000000000100000000000000
00000003E80000220228184645642F000000000011020000000000640000000000000000000022
0228184644002134363131333235220228184644000100AF7E
4. Work Flow of Real-time Audio and Video Transmission
4.1 The server sends request to the device by 0x9101.
[39.108.194.249:6608]>>>7E9101001687904611325700010E746573742E636D7376382E636F6
D19E70000010001167E——Real-time Audio and Video Transmission Request

4.2 The device replies with general response and starts transmitting data.
[39.108.194.249:6608]<<<7E00010005879046113257002C00019101009C7E——Terminal
General Response

4.3 The server sends transmission status to the device by 0x9105 during transmitting.
[39.108.194.249:6608]>>> 7E9105000287904611325700020100B07E——Real-time Audio and
Video Transmission Status Notification

4.4 The server sends request to stop transmitting by 0x9102.


[39.108.194.249:6608]>>>7E91020004879046113257000301000000B07E——Audio and Video
Real-Time Transmission Control
5. Work Flow of Historical Audio and Video Playback
5.1 The server sends 0x9205 to query the resource list.
[39.108.194.249:6608]>>>7E92050018879046113257000D012202280000002202282359590000
000000000000000000857E

5.2 The device sends the resource list with 0x1205.


device log (The data in log is not completed)
//[39.108.194.249:6608]<<<7E120523FF879046113257042100050001000D0000009201220228
2134002202282134590000000000000000000201007BE3F0012202282135002202282135590000
000000000000000201007C2331012202282136002202282136590000000000000000...

[39.108.194.249:6608]<<<7E120523FF879046113257042200050002282210590000000000000
000000201007BE890012202282211002202282211590000000000000000000201007BFEE501220
2282212002202282212590000000000000000000201007C01200122022822130022...

[39.108.194.249:6608]<<<7E120523FF879046113257042300050003007BE5830122022822470
02202282247590000000000000000000201007C02FA01220228224800220228224859000000000
0000000000201007BE7130122022822490022022822495900000000000000000002...

[39.108.194.249:6608]<<<7E120523FF879046113257042400050004235900000000000000000
00201007BF80C012202282324002202282324590000000000000000000201007BF7F601220228
2325002202282325590000000000000000000201007BFBA701220228232600220228...

[39.108.194.249:6608] <<< 7E12052002879046113257042500050005051B2F7E

[39.108.194.249:6608] sendMsg() total: 5, index: 5


queryFiles
path: /sdcard/dvr/dms/
dir: /sdcard/dvr/dms/20220301
dir: /sdcard/dvr/dms/20220228
file amount /sdcard/dvr/dms/: 146
getResList//

5.3 The server sends the playback request to the device by 0x9201.
[39.108.194.249:6608]>>>7E92010025879046113257000E0E746573742E636D7376382E636F6
D19EA00000100000000002202282134002202282134597C7E

5.4 The device starts playing the chosen video.


device log
//MSG_REC_PLAY
22-03-01 12:59:00.427 965-547197280608 INFO startStream start: 1646055240,
end:1646055299
22-03-01 12:59:00.427 965-547197280608 INFO dir: /sdcard/dvr/dms/20220228
22-03-01 12:59:00.484 965-547524432224 INFO get_ip() host: test.cmsv8.com
22-03-01 12:59:00.559 965-547524432224 INFO start connect server:
39.108.194.249:6634 ...
22-03-01 12:59:00.614 965-547524432224 INFO connect 39.108.194.249:6634 success
22-03-01 12:59:00.615 965-547524432224 INFO channel:1 sockfd:16 path.len:1 start send
stream===>>>
22-03-01 12:59:00.615 965-547524432224 INFO buffer file:
/sdcard/dvr/dms/20220228/202202282134.buffer//

5.5 The server sends 0x9202 to control the playback.


[39.108.194.249:6608]>>> 7E92020009879046113257000F010100000000000000B37E

5.6 The device replies with 0x0001 and execute the control command.
[39.108.194.249:6608]<<< 7E00010005879046113257042D000F920200977E

device log
//22-03-01 12:59:25.297 965-547524432224 INFO ==> replay pause//

5.7 The server sends 0x9206 to the device if need upload videos to the server.
[39.108.194.249:6608]>>>7E9206008387904611325700010E746573742E636D7376382E636F6
D08490561646D696E0B636D737365727665727636462F5245434F52445F46494C452F3837393
034363131333235372F323032322D30322D32382F4641302D3232303232382D3231333430302
D3231333435392D323030303031303001220228213400220228213459000000000000000000020
103167E

5.8 The device replies with 0x0001.


[39.108.194.249:6608] <<< 7E0001000587904611325704320001920600827E

5.9 The device starts uploading videos by FTP protocol.


device log
//start uploadRecordFile:
/RECORD_FILE/879046113257/2022-02-28/FA0-220228-213400-213459-20000100
22-03-01 12:59:51.198 965-547737063776 INFO <1> start :1646055240 end: 1646055299
22-03-01 12:59:51.243 965-547737063776 INFO dir: /sdcard/dvr/dms/20220228
22-03-01 12:59:51.282 965-547737063776 INFO <1> files: 1
22-03-01 12:59:51.284 965-547737063776 INFO ftpUpload:
/data/app/tmp/1078/_sdcard_dvr_dms_20220228_202202282134.mp4//

5.10 The device sends 0x1206 after videos have been uploaded completely.
[39.108.194.249:6608] <<< 7E120600038790461132570437000100007E

device log
//22-03-01 13:00:07.801 965-547737063776 INFO <1> upload mp4 files success//
5.11 The server can send 0x9207 to control the video uploading.
[39.108.194.249:6608] >>> 7E920700038790461132570075000400C27E

device log
//22-03-01 13:27:35.152 26232-547541217632 INFO <1> tid:0x7bfff160 onMessage:
7E920700038790461132570075000400C2
22-03-01 13:27:35.153 26232-547541217632 INFO ftp control: 0//
6. Work Flow of Emergency Warning
6.1 The device sends regular messages of GPS position by 0x0200.
[39.108.194.249:6608]<<<7E0200001C879046113257002C000000000000000100000000000000
000000000000002203091713043E7E

6.2 The server replies with general response.


[39.108.194.249:6608] >>> 7E80010005879046113257002D002C020000A27E

6.3 If the panic button is pressed, the device will keep sending messages including emergency
warning by 0x0200 and heartbeats by 0x0002. And the server need reply with general
response to 0x200 and 0x0002 messages.
[39.108.194.249:6608]<<<7E00020000879046113257002D0A7E
[39.108.194.249:6608]>>>7E800100058790461132570035002D000200BB7E

[39.108.194.249:6608]<<<7E0200001C879046113257002E000000010000000100000000000000
00000000000000220309171319207E
[39.108.194.249:6608]>>>7E80010005879046113257002F002E020000A27E

[39.108.194.249:6608]<<<7E0200001C879046113257002E000000010000000100000000000000
00000000000000220309171319207E
[39.108.194.249:6608]>>>7E80010005879046113257002F002E020000A27E

[39.108.194.249:6608]<<<7E0200001C879046113257002F000000010000000100000000000000
000000000000002203091713241C7E
[39.108.194.249:6608]>>>7E800100058790461132570030002F020000BC7E

[39.108.194.249:6608]<<<7E0200001C8790461132570031000000010000000100000000000000
00000000000000220309171344627E
[39.108.194.249:6608]>>>7E8001000587904611325700320031020000A07E

[39.108.194.249:6608]<<<7E0200001C8790461132570033000000010000000100000000000000
00000000000000220309171404277E
[39.108.194.249:6608]>>>7E8001000587904611325700340033020000A47E

[39.108.194.249:6608]<<<7E0200001C8790461132570035000000010000000100000000000000
00000000000000220309171424017E
[39.108.194.249:6608]>>>7E8001000587904611325700360035020000A07E

[39.108.194.249:6608]<<<7E0200001C8790461132570037000000010000000100000000000000
00000000000000220309171444637E
[39.108.194.249:6608]>>>7E8001000587904611325700380037020000AC7E

[39.108.194.249:6608]<<<7E0200001C8790461132570039000000010000000100000000000000
000000000000002203091715042C7E
[39.108.194.249:6608]>>>7E80010005879046113257003A0039020000A07E

[39.108.194.249:6608]<<<7E0200001C879046113257003B000000010000000100000000000000
000000000000002203091715240E7E
[39.108.194.249:6608]>>>7E80010005879046113257003C003B020000A47E

[39.108.194.249:6608]<<<7E0200001C879046113257003D000000010000000100000000000000
00000000000000220309171544687E
[39.108.194.249:6608]>>>7E80010005879046113257003E003D020000A07E

[39.108.194.249:6608]<<<7E0200001C879046113257003F000000010000000100000000000000
00000000000000220309171604297E
[39.108.194.249:6608]>>>7E800100058790461132570040003F020000DC7E

[39.108.194.249:6608]<<<7E0200001C8790461132570041000000010000000100000000000000
00000000000000220309171624777E
[39.108.194.249:6608]>>>7E8001000587904611325700420041020000A07E

[39.108.194.249:6608]<<<7E0200001C8790461132570043000000010000000100000000000000
00000000000000220309171644157E
[39.108.194.249:6608]>>>7E8001000587904611325700440043020000A47E

[39.108.194.249:6608]<<<7E0200001C8790461132570045000000010000000100000000000000
00000000000000220309171704527E
[39.108.194.249:6608]>>>7E8001000587904611325700460045020000A07E

[39.108.194.249:6608]<<<7E0200001C8790461132570047000000010000000100000000000000
00000000000000220309171724707E
[39.108.194.249:6608]>>>7E8001000587904611325700480047020000AC7E

[39.108.194.249:6608]<<<7E0200001C8790461132570049000000010000000100000000000000
000000000000002203091717441E7E
[39.108.194.249:6608]>>>7E80010005879046113257004A0049020000A07E

6.4 The server need send the warning confirmation message by 0x8203 to disarm the
emergency warning status.
[39.108.194.249:6608]>>>7E820300068790461132570005000000000001A67E

device log
//22-03-09 17:17:44.550 966-547180495200 INFO <1> tid:0x667fc160 onMessage:
7E820300068790461132570005000000000001A6
22-03-09 17:17:44.550 966-547180495200 INFO <1> Manual ACK, alarm_flow_id: 0,
manu_ack_alarm_type: 0x00000001
22-03-09 17:17:44.551 966-547180495200 INFO <1> [emer alarm] after rec manu ack emer
alarm, emer alarm flag: 0//

6.5 After the server sends 0x8203 message to confirm the emergency warning, the device will
start sending regular messages of GPS position by 0x0200 again.
[39.108.194.249:6608]<<<7E0200001C879046113257004B000000000000000100000000000000
00000000000000220309171804527E

6.6 The server replies with general response.


[39.108.194.249:6608]>>>7E80010005879046113257004C004B020000A47E
7. Work Flow of TTS
7.1 The server sends request to play TTS by 0x8300.
[39.108.194.249:6608] >>>7E83000027879046113257001808486F772061726520796F753F2046
696E652C207468616E6B20796F752C20616E6420796F753FC37E

Device log
//22-03-02 17:27:33.442 2772-547323105632 INFO <1> tid:0x6effd160 onMessage:
7E83000027879046113257001808486F772061726520796F753F2046696E652C207468616E6B2
0796F752C20616E6420796F753FC3
22-03-02 17:27:33.445 2772-547323105632 INFO onRequestPlayTTS() message: How are
you? Fine, thank you, and you?//

7.2 The device replies with general response and reads the words.
[39.108.194.249:6608] <<<7E0001000587904611325703C80018830000717E

Note: Only supports Chinese and English

You might also like