Description

This frame is sent out the device’s serial port to indicate the state related to the socket.

Format

The following table provides the contents of the frame. For details on frame structure, see API Frames.

Offset Size Frame Field Description

0

8-bit

Start Delimiter

Indicates the start of an API frame.

1

16-bit

Length

Number of bytes between the length and checksum.

3

8-bit

Frame type

0xCF

4

8-bit

Socket ID

A unique socket ID to address the socket.

If the status field value is non-zero, this field is 0xFF.

5

8-bit

Status

Status codes:

  • 0x00: Connected

    All values other than 0x00 = Connected are fatal. If any other value is received, the Socket ID is closed and invalid after receipt.

  • 0x01: Failed DNS lookup

  • 0x02: Connection refused

  • 0x03: Transport closed

  • 0x04: Timed out

  • 0x05: Internal error

  • 0x06: Host unreachable

  • 0x07: Connection lost

  • 0x08: Unknown error

  • 0x09: Unknown server

  • 0x0A: Resource error

  • 0x0C: RST Close by peer

  • 0x0D: Closed due to inactivity timeout

  • 0x0E: PDP context deactivated by network

EOF

8-bit

Checksum

0xFF minus the 8-bit sum of bytes from offset 3 to this byte (between length and checksum).