Changes

Line 2,578: Line 2,578:  
'''Command Quantity 2''' – a byte that defines how many records (commands) are in the packet. This byte will not be parsed but it’s recommended that it should contain the same value as Command/Response Quantity 1. <br>
 
'''Command Quantity 2''' – a byte that defines how many records (commands) are in the packet. This byte will not be parsed but it’s recommended that it should contain the same value as Command/Response Quantity 1. <br>
 
'''CRC-16''' – calculated from Codec ID to the Second Number of Data. CRC (Cyclic Redundancy Check) is an error-detecting code used to detect accidental changes to RAW data. For calculation we are using [[Codec#CRC-16|CRC-16/IBM]].<br> <br>
 
'''CRC-16''' – calculated from Codec ID to the Second Number of Data. CRC (Cyclic Redundancy Check) is an error-detecting code used to detect accidental changes to RAW data. For calculation we are using [[Codec#CRC-16|CRC-16/IBM]].<br> <br>
'''Note:''' Codec13 packets are used only when the “Message Timestamp” parameter in RS232 settings is enabled. <br>  
+
'''Note:''' Codec13 packets are used only when the “Message Timestamp” parameter in RS232 settings is enabled. <br>
 
  −
*'''<big>Command parsing example</big>'''
  −
 
  −
The hexadecimal stream of the GPRS command in this example is given in the hexadecimal form. The different fields of the message are separated into different table columns for better readability and some of them are converted to ASCII values for better understanding. <br> <br>
  −
Sending ''[[FMB getinfo|getinfo]]'' SMS command via GPRS Codec13. <br> <br>
  −
Hexadecimal stream: <br>
  −
<code>00000000000000170D01050000000F0000016C0A81C320676574696E666F0100006855</code> <br> <br>
  −
Parsed:
  −
{| class="nd-othertables_2" style="width:100%;"
  −
|+
  −
! colspan="2" style="border-bottom: 2px solid #0054A6; vertical-align: middle; text-align: center;" |Server Command
  −
|-
  −
! rowspan="1" style="width:50%; vertical-align: middle; text-align: center;" |Server Command Part
  −
! rowspan="1" style="width:50%; vertical-align: middle; text-align: center;" |HEX Code Part
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Zero Bytes
  −
| style="vertical-align: middle; text-align: center;" |00 00 00 00
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Data Size
  −
| style="vertical-align: middle; text-align: center;" |00 00 00 17
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Codec ID
  −
| style="vertical-align: middle; text-align: center;" |0D
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Command Quantity 1
  −
| style="vertical-align: middle; text-align: center;" |01
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Command Type
  −
| style="vertical-align: middle; text-align: center;" |06
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Command Size
  −
| style="vertical-align: middle; text-align: center;" |00 00 00 0F
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Timestamp
  −
| style="vertical-align: middle; text-align: center;" |00 00 01 6C 0A 81 C3 20
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Command
  −
| style="vertical-align: middle; text-align: center;" |67 65 74 69 6E 66 6F
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |Command Quantity 2
  −
| style="vertical-align: middle; text-align: center;" |01
  −
|-
  −
| style="vertical-align: middle; text-align: center;" |CRC-16
  −
| style="vertical-align: middle; text-align: center;" |00 00 68 55
  −
|-
  −
|}
  −
 
  −
 
  −
Note that Server Command converted from HEX to ASCII means ''[[FMB getinfo|getinfo]]''
      
=='''<big>Codec 14</big>'''==
 
=='''<big>Codec 14</big>'''==

Navigation menu