NINA-B31 series - Getting Started
UBX-18022394 - R02
Use case examples
Page 21 of 26
•
and for Rx
AT+UBTLECFG=28,3
Connect two NINA-B31 according to the use case in section 4.1.
When the connection is established, request a new PHY configuration for the connection (Device B)
•
Go to AT mode by sending the escape sequence:
1.
Silence 1 second
2.
+++
3.
Silence 1 second
•
Request 2 Mbps PHY for both Tx and Rx on connection with handle 0
AT+UBTLEPHYR=0,2,2
•
If the remote device (Device A) accepts the request, a successful event will be received
+UUBTLEPHYU:0,0,2,2
•
Go to data mode
ATO1
4.14
Connect two NINA-B31 using Coded PHY
4.14.1
Connect using default physical layer
The default physical layer (PHY) is used when connecting two NINA-B31 modules.
Set preferred PHY on both NINA-B31 (Device A and B)
•
Set Coded PHY as preferred PHYs for Tx
AT+UBTLECFG=27,4
•
and for Rx
AT+UBTLECFG=28,4
Configure Device A to be in the Central GAP role
•
Set Central role
AT+UBTLE=1
•
Store configuration
AT&W
•
Restart
AT+CPWROFF
Set up connection from Device A to Device B
•
Create an SPS connection to Device B (use AT+UMLA=1 to find the address of device B)
AT+UDCP=sps://223344556677p
•
Make sure you get a successful connection
+UDCP:1
OK
+UUBTACLC:0,0,223344556677p
+UUDPC:1,1,4,223344556677p,20
•
Request Coded PHY on the connection:
AT+UBTLEPHYR=0,4,4