AutoRing A4 Communication Protocol Explanation
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
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
device log
//Receive upload request: 39.108.194.249, tcp: 6612, udp: 6612, key:
34363131333235220307163841000200//
2.11 The device sends 0x1212 after the file has been uploaded completely.
[39.108.194.249:6612]<<<7E1212003887904611325700023230305F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6A7067000000
BEA9607E
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.16 The device sends 0x1212 after the file has been uploaded completely.
[39.108.194.249:6612]>>>7E1212003887904611325700043230325F36355F363530315F30305F
30303837393034363131333235373232303330373136333834313030303230302E6D703402000
ACDA2407E
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
[39.108.194.249:6608]<<<7E120523FF879046113257042200050002282210590000000000000
000000201007BE890012202282211002202282211590000000000000000000201007BFEE501220
2282212002202282212590000000000000000000201007C01200122022822130022...
[39.108.194.249:6608]<<<7E120523FF879046113257042300050003007BE5830122022822470
02202282247590000000000000000000201007C02FA01220228224800220228224859000000000
0000000000201007BE7130122022822490022022822495900000000000000000002...
[39.108.194.249:6608]<<<7E120523FF879046113257042400050004235900000000000000000
00201007BF80C012202282324002202282324590000000000000000000201007BF7F601220228
2325002202282325590000000000000000000201007BFBA701220228232600220228...
5.3 The server sends the playback request to the device by 0x9201.
[39.108.194.249:6608]>>>7E92010025879046113257000E0E746573742E636D7376382E636F6
D19EA00000100000000002202282134002202282134597C7E
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.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.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
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