NINA-B31 series - Getting Started
UBX-18022394 - R02
Use case examples
Page 22 of 26
•
If the remote device (Device B) accepts the request, a successful event will be received
+UUBTLEPHYU:0,0,4,4
•
Go to data mode (on both devices)
ATO1
4.14.2
Define CODED phy using extended advertising and scanning
Set up Extended advertising and scanning on both devices (Device A + Device B)
•
Define Scanning and Advertising Coded PHY on both devices.
AT+UBTLECFG=29,2
•
Store configuration
AT&W
•
Restart
AT+CPWROFF
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
•
Go to data mode (on both devices)
ATO1
4.15
Change Device Information values of NINA-B31
Change the characteristics values of the Device Information service (UUID 0x180A) to the values of
your choice.
•
Read the current values of the Device Information service
AT+UBTLEDIS?
+UBTLEDIS:"u-blox","NINA-B3","4.0.0","4.0.0"
•
Set the Manufacturer, Model, Firmware version and Software version to “Company”, “Model A”,
“fw1.0” and “sw1.1” respectively.
AT+UBTLEDIS="Company","Model A","fw1.0","sw1.1"
•
Store configuration
AT&W
•
Restart
AT+CPWROFF
•
Connect to NINA-B31 with for example, a smart phone using the nRF Connect app and verify the
characteristics values of the Device Information service.
4.16
Write NINA-B31 GPIO pin and read NINA-B31 GPIO pin