7.4 Module to Module Connection
The user can achieve the central configuration on the RNBD451 module by configuring the device into Command mode and issuing the
F
command. With this, the device shifts its Operating mode from
peripheral to central device and starts scanning.
The test setup consists of two RNBD451 evaluation boards (both can either be connected to the same PC or a different PC via microUSB cable).
The command sequence is as follows:
- Power ON the RNBD451 module by connecting the RNBD451 evaluation board using a USB Type-C cable to the host PC.
- Using the terminal emulator, open
the COM port associated with the RNBD451
module with the following settings.
-
By default, this device is in Peripheral mode doing advertisements at a regular interval.
-
Power ON another RNBD451 evaluation board using a USB Type-C cable to the host PC. Open another instance of the terminal emulator on the host PC for the RNBD451 module that needs to be configured in Central mode for the associated COM port of the RNBD451 module with the following settings.
- Type
$$$
to enter Command mode. - Type + to enable echo.
- Issue command
F
to initiate an active scan. TheF
command puts the RNBD451 module into Central mode and initiates scanning. The scanning operation captures all the available Bluetooth Low Energy packets in the nearby surrounding. - Wait until the inquiry finishes and finds the MAC address/address type of the device to be connected.
- Issue the
X
command to terminate the scanning. - Enter
C,<0,1>,<MAC address>
to attempt a connection with the remote device, where the first parameter indicates the address type that is available in the inquiry result:- ‘
0
’ – public address - ‘
1
’ – private address
- ‘
After connection, both the RNBD451 modules are in the Data mode and data can be transferred between the devices. The remote peer device receives characters typed in the terminal emulator and vice versa.
$$$
to return to Command mode, then
type command K,1
.