Serial-to-RF packetization

Data is buffered in the incoming serial buffer until one of the following causes the data to be packetized and transmitted:

  1. No serial characters are received for the amount of time determined by the RO (Packetization Timeout) parameter. If RO = 0, packetization begins when a character is received.
  2. The maximum number of characters that will fit in an RF packet is received. There are a number of factors that determine payload size. You can query the NP (Maximum Packet Payload Bytes) to determine the maximum payload size based on current configuration. For more information, see Maximum payload.
  3. The Command mode Sequence—GT + CC + GT—is received; this is any data in the serial receive buffer received before the sequence is transmitted. For more information, see Enter Command mode.

If the device cannot immediately transmit (for instance, if it is already receiving RF data), the serial data is stored in the serial receive buffer. The data is packetized and sent at any RO timeout or when NP bytes are received.

If the serial receive buffer becomes full, hardware flow control must be implemented in order to prevent overflow—loss of data between the host and device.