Line 466: |
Line 466: |
| |- | | |- |
| | style="vertical-align: middle; text-align: center;" |1’st IO Value | | | style="vertical-align: middle; text-align: center;" |1’st IO Value |
− | | style="vertical-align: middle; text-align: center;" |5E 0F | + | | style="vertical-align: middle; text-align: center;" |5E 10 |
| |- | | |- |
| | style="vertical-align: middle; text-align: center;" |N4 of Four Bytes IO | | | style="vertical-align: middle; text-align: center;" |N4 of Four Bytes IO |
Line 2,611: |
Line 2,611: |
| '''CRC-16''' – calculated from Codec ID to the Second Number of Data. CRC (Cyclic Redundancy Check) is an error-detecting code using for 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 using for 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 “Message Timestamp” parameter in RS232 settings is enabled. <br> | | '''Note:''' Codec13 packets are used only when “Message Timestamp” parameter in RS232 settings is enabled. <br> |
| + | |
| + | *'''<big>Command parsing example</big>''' |
| + | |
| + | Hexadecimal stream of GPRS command in this example is given in hexadecimal form. The different fields of message are separate 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>00000000000000170D01050000000F0A81C320676574696E666F0100006855</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;" |05 |
| + | |- |
| + | | style="vertical-align: middle; text-align: center;" |Command Size |
| + | | style="vertical-align: middle; text-align: center;" |00 00 00 07 |
| + | |- |
| + | | style="vertical-align: middle; text-align: center;" |Timestamp |
| + | | style="vertical-align: middle; text-align: center;" |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>'''== |