Devices: MiCODUS ML300G and MV710G, JT808 protocol (port 5015). Traccar 6.17.0; I also checked current master and the relevant code is unchanged.
Sending text commands works with the existing Message command type (0x8300, flag 0x04). The device replies with 0x0900 (data uplink transparent transmission). The first byte of the body (the transparent message type) repeats the flag of the 0x8300 that was sent: 0x04 if the command used 0x04, 0x01 if it used 0x01. The rest of the body is ASCII text starting with SMS,.
decodeTransparent has no branch for types 0x01 or 0x04, so it returns null. The reply is acknowledged with 0x8001, but no position or commandResult event is created, and the only place to see the answer is the log.
Samples (real device logs, anonymized: terminal ID replaced and checksums recalculated)
Command type "message", text STATUS# (0x8300, flag 0x04):
7e8300000801234567890100000453544154555323307e
< 7e09000064012345678901002e04534d532c424154544552593a3734250a494e5445524e45543a535543434553530a4e45543a34472c484947480a4750533a554e4649582c300a53504545443a304b4d2f480a53454e534f523a4f4e2c4c4556454c3a310a53544154453a44495341524d9a7e
Decoded reply text:
SMS,BATTERY:74%
INTERNET:SUCCESS
NET:4G,HIGH
GPS:UNFIX,0
SPEED:0KM/H
SENSOR:ON,LEVEL:1
STATE:DISARM
Same command, sent with flag 0x01. The reply uses type 0x01:
7e8300000801234567890100030153544154555323367e
< 7e09000065012345678901001e01534d532c424154544552593a3734250a494e5445524e45543a535543434553530a4e45543a34472c484947480a4750533a554e4649582c300a53504545443a304b4d2f480a53454e534f523a4f46462c4c4556454c3a310a53544154453a44495341524de07e
Setting command SENALM,ON,0# (flag 0x01). Reply SMS,SET OK:
7e8300000d01234567890100070153454e414c4d2c4f4e2c30230a7e
< 7e0900000b012345678901002801534d532c534554204f4ba47e
Documentation: the MiCODUS data protocol for MV710G lists 0x0900 "Data uplink transparent transmission" in its message table, but it does not define the payload. The behaviour above comes from real device logs. I can share the PDF.
Suggestion: in decodeTransparent, decode types 0x01 and 0x04 as ASCII text into Position.KEY_RESULT, the same way the JC models already do with 0xF0 (#6084) and the way 0x1300 is handled (#5888). If you prefer to limit it to a device model, as with JC, that would work for me too.
I'm happy to send a PR with unit tests built from these samples if this approach is acceptable.
Note: I used an AI assistant to help analyse the logs and the decoder source and to write this post. The samples come from my own devices, and I tested the command/reply behaviour myself.
Devices: MiCODUS ML300G and MV710G, JT808 protocol (port 5015). Traccar 6.17.0; I also checked current master and the relevant code is unchanged.
Sending text commands works with the existing Message command type (0x8300, flag 0x04). The device replies with 0x0900 (data uplink transparent transmission). The first byte of the body (the transparent message type) repeats the flag of the 0x8300 that was sent: 0x04 if the command used 0x04, 0x01 if it used 0x01. The rest of the body is ASCII text starting with SMS,.
decodeTransparent has no branch for types 0x01 or 0x04, so it returns null. The reply is acknowledged with 0x8001, but no position or commandResult event is created, and the only place to see the answer is the log.
Samples (real device logs, anonymized: terminal ID replaced and checksums recalculated)
Command type "message", text STATUS# (0x8300, flag 0x04):
Decoded reply text:
SMS,BATTERY:74%
INTERNET:SUCCESS
NET:4G,HIGH
GPS:UNFIX,0
SPEED:0KM/H
SENSOR:ON,LEVEL:1
STATE:DISARM
Same command, sent with flag 0x01. The reply uses type 0x01:
Documentation: the MiCODUS data protocol for MV710G lists 0x0900 "Data uplink transparent transmission" in its message table, but it does not define the payload. The behaviour above comes from real device logs. I can share the PDF.
Suggestion: in decodeTransparent, decode types 0x01 and 0x04 as ASCII text into Position.KEY_RESULT, the same way the JC models already do with 0xF0 (#6084) and the way 0x1300 is handled (#5888). If you prefer to limit it to a device model, as with JC, that would work for me too.
I'm happy to send a PR with unit tests built from these samples if this approach is acceptable.
Note: I used an AI assistant to help analyse the logs and the decoder source and to write this post. The samples come from my own devices, and I tested the command/reply behaviour myself.