nRF Commands
The nRF communication protocol defines commands
| Commands | Value | Description | Direction (to) |
|---|---|---|---|
C_G_PAIR | true/false | Start/stop pairing process on nRF. | nRF |
C_G_PAIRED | Serial number of MFT | Returns when the MFT has been paired. | STM |
C_G_CONNECTED | No value | Returns when the MFT has connected. | STM |
C_G_DISCONNECTED | No value | Returns when the MFT has disconnected. | STM |
C_G_ROLE | Role values | Change the Bluetooth role. | nRF |
C_G_MAC | MAC address | Provides the MAC address of the bonded device | both |
C_G_FIRMWARE | The version of nRF | Returns the FW version of nRF (eg. "00.65") | STM |
C_G_EXPORT_BUFFERS_READY | No value | Tells STM that the Export buffers are ready to receive data | STM |
- The
C_G_MACshould always be sent with theC_G_CENTRALrole command. - The
C_G_MACis also sent withC_G_PAIREDin the direction of STM. - The
C_G_FIRMWAREis sent after thenRFandSTMare handshaked.
Role values
Possible values for role:
| Value | Description |
|---|---|
C_G_IDLE | Put nRF into idle, to conserve power |
C_G_CENTRAL | Put nRF into MFT connectivity mode |
C_G_PERIPHERAL | Put nRF into PC connectivity mode |