1.3 Frame Format

The USI frame format is based on the Serial Communications Profile of the Management Plane defined in the PRIME specification as shown in the figure below.
Figure 1-2. USI General Frame Format
The frame starts and ends with 0x7E (delimiter). The frame delimiters will be escaped if they appear in message data. The description of each field is as follows:
  • MSG LENGTH: Length in bytes of the message data (message length, protocol ID and CRC bytes are excluded).
  • PROTOCOL ID: Protocol in the frame.
  • MESSAGE DATA: Variable length field that contains the data of the exchanged primitive.
  • CRC: Error correction code for the message. The CRC field can have a different length depending on the protocol.
Some protocols need data lengths greater that 1024 bytes. To handle this, an additional bit from the Data field is used, as depicted in the following figure:
Figure 1-3. USI Extended Lenght Frame Format

The total length is encoded as the concatenation of XLEN as the most significant bit and the bits from MSG LENGTH.

Along with XLEN, first Data Byte is used to encode a command, which is internal to each protocol using this extended frame format.

Table 1-1. USI Protocols, Associated CRC Size and Length Encoding
ProtocolDescriptionIDCRC Size (bits)Uses XLEN
PROTOCOLS_MNGP_PRIMEManagement Plane defined in the PRIME specification0x00 - 0x0732No
PROTOCOL_SNIF_PRIMEPRIME Sniffer0x1316No
PROTOCOL_PHY_SERIAL_PRIMEPRIME PHY serial layer0x1F16No
PROTOCOL_PHY_TESTERUsed for PHY Tester Tool provided with the evaluation kit in order to serialize the API of the PHY layer0x2216No
PROTOCOL_SNIF_G3G3 Sniffer0x2316No
PROTOCOL_MAC_G3G3 MAC Layer serialization0x2416No
PROTOCOL_ADP_G3G3 ADP Layer serialization0x2516Yes
PROTOCOL_COORD_G3G3 Coordinator serialization0x2616Yes
PROTOCOL_PHY_RF215_TESTERUsed to interact like the PHY tester tool with the RF215 PHY layer0x2816No
PROTOCOL_PRIME_APIPRIME API0x308Yes
PROTOCOL_MM_AL_APIMeters And More AL API0x318Yes
PROTOCOL_INTERNALReserved for internal use0x3EUser definedUser defined
PROTOCOL_USER_DEFINEDDefined by the user if required0xFEUser definedUser defined