1.5.3 G3 MAC

This protocol consists of the serialization of the G3 MAC API different primitives.
Figure 1-11. G3 MAC API USI Frame Format
The following two fields are available within the general MESSAGE DATA field:
  • G3 MAC API COMMAND (1 byte): Available commands are enumerated in the Table 1-6 and Table 1-7 and in the G3.h file.
  • Primitive function parameters: The serialization of each primitive concatenates the different parameters included in the function. This serialization order matches with the parameter order indicated in the G3 specification for each primitive. Its type and length can be seen in the examples provided.
Table 1-6. G3 MAC PLC API Commands
G3 MAC PLC API CommandID
G3_SERIAL_MSG_MAC_INITIALIZE0x32
G3_SERIAL_MSG_MAC_DATA_REQUEST0x33
G3_SERIAL_MSG_MAC_GET_REQUEST0x34
G3_SERIAL_MSG_MAC_SET_REQUEST0x35
G3_SERIAL_MSG_MAC_RESET_REQUEST0x36
G3_SERIAL_MSG_MAC_SCAN_REQUEST0x37
G3_SERIAL_MSG_MAC_START_REQUEST0x38
G3_SERIAL_MSG_MAC_DATA_CONFIRM0x3C
G3_SERIAL_MSG_MAC_DATA_INDICATION0x3D
G3_SERIAL_MSG_MAC_GET_CONFIRM0x3E
G3_SERIAL_MSG_MAC_SET_CONFIRM0x3F
G3_SERIAL_MSG_MAC_RESET_CONFIRM0x40
G3_SERIAL_MSG_MAC_SCAN_CONFIRM0x41
G3_SERIAL_MSG_MAC_BEACON_NOTIFY0x42
G3_SERIAL_MSG_MAC_START_CONFIRM0x43
G3_SERIAL_MSG_MAC_COMM_STATUS_INDICATION0x44
G3_SERIAL_MSG_MAC_SNIFFER_INDICATION0x45
Table 1-7. G3 MAC RF API Commands
G3 MAC RF API CommandID
G3_SERIAL_MSG_MAC_INITIALIZE_RF0x1E
G3_SERIAL_MSG_MAC_DATA_REQUEST_RF0x1F
G3_SERIAL_MSG_MAC_GET_REQUEST_RF0x20
G3_SERIAL_MSG_MAC_SET_REQUEST_RF0x21
G3_SERIAL_MSG_MAC_RESET_REQUEST_RF0x22
G3_SERIAL_MSG_MAC_SCAN_REQUEST_RF0x23
G3_SERIAL_MSG_MAC_START_REQUEST_RF0x24
G3_SERIAL_MSG_MAC_DATA_CONFIRM_RF0x28
G3_SERIAL_MSG_MAC_DATA_INDICATION_RF0x29
G3_SERIAL_MSG_MAC_GET_CONFIRM_RF0x2A
G3_SERIAL_MSG_MAC_SET_CONFIRM_RF0x2B
G3_SERIAL_MSG_MAC_RESET_CONFIRM_RF0x2C
G3_SERIAL_MSG_MAC_SCAN_CONFIRM_RF0x2D
G3_SERIAL_MSG_MAC_BEACON_NOTIFY_RF0x2E
G3_SERIAL_MSG_MAC_START_CONFIRM_RF0x2F
G3_SERIAL_MSG_MAC_COMM_STATUS_INDICATION_RF0x30
Note: All the primitives described above have similar names to the functions described in the G3 specification.