LE910Cx-WE866Cx LTE Bundling User Guide
1VV0301578 Rev. 9 Page 44 of 56 2020-05-26
6.2.1.2. Exchanging Data between LE910Cx Central Mode and BLE Peripheral Device
The following example demonstrates the steps required to exchange data between
LE910Cx Central Mode and BLE Peripheral device.
Step 1: Boot up the board
Step 2: Select USB composition as:
AT#USBCFG=13
Step 3: Enable WLAN
AT#WLANSTART=1 (Enable WLAN interface)
Step 4: Run the WE866Cx Connection Manager on MODEM 1 using the following AT
command
AT#CONNMGRSTART=1,0
If you are using MODEM 2 with USB composition 13, use the following AT command
AT#CONNMGRSTART=1,1
Step 5: Enabling Linux network stack
AT#ISEL=1
Step 6: Enable BLE
AT#BI=1
Step 7: Scan for peripheral device using the following command
AT#BSCAN (To scan all the nearby devices)
AT#BSCAN=”008025D1D7B2” (To scan device with MAC address 008025D1D7B2)
Step 8: Now, connect the device using the following command
AT#BCONNECT="008025D1D7B2","t2"
Where, 008025D1D7B2 is the MAC address of the peripheral device and,
“t2” is the type of the device (t2: public address, t3: random address)
Note: While initiating a connection to random address, perform a scan first. The device
must appear in the scan result.
Once the connection is successful, a connection ID is displayed. For example, “#BCONNECT: 5”
Step 9: To discover the services of the connected peripheral devices:
• Discovery of all primary services in the connected device with connection ID
AT#BSRVD=5,,
#BSRVD:UUID:1800
#BSRVD:UUID:1801
#BSRVD:UUID:180A
#BSRVD:UUID:1234
OK
• Discovery characteristics of the primary service “1234”
AT#BSRVD=5,”1234”,