Skip to main content

Protocollo S21L (JT808 Extended)

Documentazione tecnica del protocollo S21L basata sulla specifica ufficiale Excel.

Panoramica​

ParametroValore
Porta5001
Delimiter0x7E (standard) / 0xE7 (alternativo)
ProtocolloJT808 / Huabao
Escape0x7D01 β†’ 0x7D, 0x7D02 β†’ 0x7E

TLV Extensions (Type-Length-Value)​

Campi Documentati e Implementati​

IDNomeLunghezzaDescrizione
0x01Odometer4DWORD, 1/10km
0x30GSM Signal1BYTE, 0-100
0x31GNSS Satellites1BYTE, totale
0x32GPS Satellites1BYTE, solo GPS
0x33Beidou Satellites1BYTE, solo BDS
0x51Temperature2*nCanali temp, 0.1Β°C
0x54WiFi1+n*7Count + MAC(6) + RSSI(1)
0x58Humidity2*nCanali umiditΓ , 0.1% RH
0x9FLBS MultiNMCC, MNC, LAC, CID, RSSI (max 3)
0xCCICCID20String ID SIM
0xCDAltitude2SHORT, metri
0xE1Battery1BYTE, percentuale 0-100
0xEAWork Mode2Bit0=tracking, Bit1=powerSaving, Bit2=hibernate

Alarm Flags (Documented)​

BitNomeDescrizione
0SOSEmergency alarm
1OverspeedSpeed limit exceeded
15Low BatteryBattery low warning
16VibrationShake/vibration alarm

Status Flags (Documented)​

BitNomeDescrizione
6Armed0=disarmed, 1=armed
11External Circuit0=normal, 1=disconnected
25High-precision GPS0=normal, 1=differential
26Charging0=not charging, 1=charging

Control Commands (8105)​

CmdNomeParametri
4Restartnone
5Factory Resetnone
11Arm (Fortification)none
12Disarmnone
13Normal Modenone
14Power Saving Modenone
15Smart Mode0003-FFFF (minutes)
16Remote On/Off00=off, 01=on
20Real-time Positionnone

Message Types​

TypeNomeDirezione
0x0100RegisterDevice β†’ Server
0x0102AuthDevice β†’ Server
0x0002HeartbeatDevice β†’ Server
0x0200LocationDevice β†’ Server
0x0704Batch LocationDevice β†’ Server
0x0900TransparentDevice β†’ Server
0x0109Time SyncDevice β†’ Server
0x8100Register ResponseServer β†’ Device
0x8001General ResponseServer β†’ Device
0x8105Control CommandServer β†’ Device

Decoder File​

S21lFrameDecoder.java