Changes

2,041 bytes added ,  10:57, 17 April 2020
Line 2,258: Line 2,258:  
*'''<big>About Codec12</big>'''
 
*'''<big>About Codec12</big>'''
   −
Codec12 is original and main Teltonika protocol for device-server communication over GPRS messages. Codec12 GPRS commands can be used for sending configuration, debug, digital outputs control commands or other (special purpose command on special firmware versions). This protocol is also necessary for using [[FMB630]]/[[FM6300]]/FM5300/FM5500/FM4200 features like: Garmin, LCD communication, COM TCP Link Mode. <br>  
+
Codec12 is the original and main Teltonika protocol for device-server communication over GPRS messages. Codec12 GPRS commands can be used for sending configuration, debug, digital outputs control commands or other (special purpose command on special firmware versions). This protocol is also necessary for using [[FMB630]]/[[FM6300]]/FM5300/FM5500/FM4200 features like: Garmin, LCD communication, COM TCP Link Mode. <br>  
 +
 
 +
*'''<big>FM firmware requirements</big>'''
 +
Supported GPRS commands on each device depending on the firmware version. For available GPRS commands on each device, please refer to the table below.
 +
{| class="nd-othertables" style="width:75%;"
 +
|+
 +
! rowspan="1" style="width:25%; border-bottom: 2px solid #0054A6; vertical-align: middle; text-align: center;" |Device
 +
! rowspan="1" style="width:25%; border-bottom: 2px solid #0054A6; vertical-align: middle; text-align: center;" |SMS over GPRS via TCP
 +
! rowspan="1" style="width:25%; border-bottom: 2px solid #0054A6; vertical-align: middle; text-align: center;" |SMS over GPRS via UDP
 +
|-
 +
| style="vertical-align: middle; text-align: left;" |FM36YX
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
| style="vertical-align: middle; text-align: center;" |Since base firmware 01.06.01
 +
|-
 +
| style="vertical-align: middle; text-align: left;" |FM63YX
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
| style="vertical-align: middle; text-align: center;" |Since base firmware 00.02.19
 +
|-
 +
| style="vertical-align: middle; text-align: left;" |FMB, FMC, FMM, FMU family devices (exclude FMB6YX, [[FMC640]], [[FMM640]])
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
|-
 +
| style="vertical-align: middle; text-align: left;" |FMB6YX
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
| style="vertical-align: middle; text-align: center;" |Since base firmware 00.02.19
 +
|-
 +
| style="vertical-align: middle; text-align: left;" |[[FMC640]], [[FMM640]]
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
| style="vertical-align: middle; text-align: center;" |Available in base firmware
 +
|-
 +
|} <br />
 +
'''Note:''' “SMS over GPRS” means that all standard SMS commands text can be sent to the device via GPRS in Codec12 format. 
    
*'''<big>GPRS command session</big>'''
 
*'''<big>GPRS command session</big>'''
   −
Following figure shows how GRPS command session is started over TCP. <br>
+
The following figure shows how the GRPS command session is started over TCP. <br>
 
[[File:Codec12.png|1150px]]
 
[[File:Codec12.png|1150px]]
First, Teltonika device opens GPRS session and sends AVL data to server (refer device protocols). Once all records are sent and correct sent data array acknowledgment is received by device then GPRS commands in Hex can be sent to device. <br>
+
First, the Teltonika device opens GPthe RS session and sends AVL data to the server (refer device protocols). Once all records are sent and correct sent data array acknowledgment is received by device then GPRS commands in Hex can be sent to the device. <br>
The ACK (acknowledge of IMEI from server) is a one byte constant 0x01. The acknowledgement of each data array send from device is four bytes integer – number of records received. <br>
+
The ACK (acknowledge of IMEI from server) is a one-byte constant 0x01. The acknowledgment of each data array send from the device is four bytes integer – the number of records received. <br>
Note, that GPRS session should remain active between device and server, while GPRS commands are sent. For this reason, active datalink timeout (global parameters in device configuration) is recommended to be set to 259200 (maximum value). <br>  
+
Note, that the GPRS session should remain active between device and server, while GPRS commands are sent. For this reason, active datalink timeout (global parameters in device configuration) is recommended to be set to 259200 (maximum value). <br>  
    
*'''<big>General Codec12 message structure</big>'''
 
*'''<big>General Codec12 message structure</big>'''
Line 2,341: Line 2,372:  
*'''<big>Command parsing example</big>'''
 
*'''<big>Command parsing example</big>'''
   −
Hexadecimal stream of command and answer in this example are given in hexadecimal form. The different fields of message are separate into different table columns for better readability and understanding. <br>  
+
Hexadecimal stream of command and answer in this example is given in hexadecimal form. The different fields of the message are separated into different table columns for better readability and understanding. <br>  
    
*'''<big>GPRS commands examples</big>'''
 
*'''<big>GPRS commands examples</big>'''
Line 2,530: Line 2,561:  
*'''COM TCP Link Mode'''
 
*'''COM TCP Link Mode'''
   −
All information is provided in “FMxx TCP Link mode test instructions.pdf” document.  
+
All information is provided in “FMxx TCP Link mode test instructions.pdf” document.
    
=='''<big>Codec 13</big>'''==
 
=='''<big>Codec 13</big>'''==

Navigation menu