Line 1,160: |
Line 1,160: |
| | | |
| CRC: 0x0000B8AA | | CRC: 0x0000B8AA |
| + | |
| + | |
| + | '''Example 2: getio''' |
| + | |
| + | Sending “getio” SMS command via GPRS Codec12: |
| + | |
| + | Server request: |
| + | |
| + | Hexadecimal stream: |
| + | |
| + | 000000000000000F0C010500000007676574696F0D0A0100003349 |
| + | |
| + | Parsed: |
| + | |
| + | Zero: 0x00000000 |
| + | |
| + | Packet Length: 0x0000000F |
| + | |
| + | Codec: 0x0C |
| + | |
| + | Quantity of commands: 0x01 |
| + | |
| + | Command type: 0x05 |
| + | |
| + | Command size: 0x00000007 |
| + | |
| + | Command: 0x676574696f (HEX of getio) |
| + | |
| + | Command end symbol: 0x0D0A |
| + | |
| + | Quantity of commands: 01 |
| + | |
| + | CRC: 00003349 |
| + | |
| + | |
| + | '''Device response:''' |
| + | |
| + | Hexadecimal stream: |
| + | |
| + | 000000000000002C0C0106000000244449313A30204449323A30204449333A302041494E3A323420444F313A3020444F323A30010000F925 |
| + | |
| + | Parsed: |
| + | |
| + | Zero: 0x00000000 |
| + | |
| + | Packet Length: 0x0000002C |
| + | |
| + | Codec: 0C |
| + | |
| + | Quantity of commands: 01 |
| + | |
| + | Command type: 06 |
| + | |
| + | Command size: 0x00000024 |
| + | |
| + | Command response in ASCII after conversion: DI1:0 DI2:0 DI3:0 AIN:24 DO1:0 DO2:0 (without <CR><LF>) |
| + | |
| + | Quantity of commands: 01 |
| + | |
| + | CRC: 0x0000F925 |
| + | |
| + | |
| | | |
| | | |