nRF Commands

The nRF communication protocol defines commands

CommandsValueDescriptionDirection (to)
C_G_PAIRtrue/falseStart/stop pairing process on nRF.nRF
C_G_PAIREDSerial number of MFTReturns when the MFT has been paired.STM
C_G_CONNECTEDNo valueReturns when the MFT has connected.STM
C_G_DISCONNECTEDNo valueReturns when the MFT has disconnected.STM
C_G_ROLERole valuesChange the Bluetooth role.nRF
C_G_MACMAC addressProvides the MAC address of the bonded deviceboth
C_G_FIRMWAREThe version of nRFReturns the FW version of nRF (eg. "00.65")STM
C_G_EXPORT_BUFFERS_READYNo valueTells STM that the Export buffers are ready to receive dataSTM
  • The C_G_MAC should always be sent with the C_G_CENTRAL role command.
  • The C_G_MAC is also sent with C_G_PAIRED in the direction of STM.
  • The C_G_FIRMWARE is sent after the nRF and STM are handshaked.

Role values

Possible values for role:

ValueDescription
C_G_IDLEPut nRF into idle, to conserve power
C_G_CENTRALPut nRF into MFT connectivity mode
C_G_PERIPHERALPut nRF into PC connectivity mode