This section provides the detailed procedure to run the GAP-Peripheral demo with the
Android™ Microchip Bluetooth Data (MBD) application.
- 1.Connect the device with the
GAP-Peripheral configuration flashed into the BM70/71 device. For the serial
console configuration, refer to the Serial Console Setup.
- 2.Ensure that POWER LED (green) on
SAML21 Xplained Pro board is solid ON.
- 3.Press the Reset button on the
SAML21 Xplained Pro board and verify that LD4 (blue) on BM70/71-Xplained Pro is
blinking at a regular interval.
- 4.Ensure that the GAP-Peripheral
device is advertising by checking the Tera Term window for an
Adv
started
message as illustrated in the following figure.Figure 1. Peripheral Device
Advertising
- 5.Download the Microchip Bluetooth
Data (MBD) mobile application from the Google Play™ store.
Figure 2. Microchip Bluetooth
Data Mobile Application
- 6.Tap on the BLE Sensor tab
inside the Microchip Bluetooth Data application:
Figure 3. BLE Sensor Tab Inside
the Microchip Bluetooth Data Application
- 7.Select the RN4870 Sensor/BM70
Compact Demo Board option.
Figure 4. RN4870 Sensor/BM70
Compact Demo Board Option
- 8.In Sensor-Demo, click Scan
for the scan list to connect to the BM70/71 board as illustrated in the
following figure.
Figure 5. MBD Scanning and
Discovery of Peer Device
- 9.After successful connection, the
GAP-Peripheral device prints the connection details in the console:
Figure 6. Connection Details in
the Console
- 10.Once connected, the MBD
application discovers the accelerometer and gyroscope sensor characteristics and
enables notifications. Once notifications are enabled by the MBD application,
the GAP-Peripheral prints the accelerometer and gyroscope sensor read operation
status and data on the console.
Figure 7. Accelerometer and
Gyroscope Sensor Read Operation Status and Data on Console
- 11.Once connected with the
GAP-Peripheral (Sensor-Demo) and notifications are enabled, BLE Sensor App shows
the accelerometer and gyroscope sensor data in a graph view:
Figure 8. Accelerometer and
Gyroscope Sensor Data in MBD Application