NINA-B31 series - Getting Started
UBX-18022394 - R02
Use case examples
Page 16 of 26
order. Together with the Major (2 bytes), Minor (2 bytes) and the Tx power (1 byte), it builds up the
iBeacon advertise packet.
Apple recommends the Local Name in the Scan Response packet. See
iBeacon.
•
To change advertise packet on NINA-B31 to include iBeacon:
AT+UBTAD=1AFF4C000215EBEFD08370A247C89837E7B5634DF52400010001C5
•
To change Local Name to “Bluetooth Device”:
AT+UBTSD=1109426C7565746F6F746820446576696365
4.3
Set up Eddystone on NINA-B31
Setup NINA-B31 to advertise Google Eddystone packets:
☞
This example shows how to send an URL inside the advertisement packet; by nature, the
advertisement packet is limited in size and the information is also limited.
The payload normally contains a short version of an URL, for example
https://goo.gl/Aq18zF.
The
link is encoded to save space, but most smartphones can use this information to navigate to the
advertised URL. See
for more information about Eddystone.
•
To change advertise packet on NINA-B31 to include the Eddystone URL (in this example the URL
will point to the u-blox home page) :
AT+UBTAD=0303AAFE0D16AAFE10F801752D626C6F7807
•
To change Local Name to “Bluetooth Device”:
AT+UBTSD=1109426C7565746F6F746820446576696365
4.4
Set up Eddystone with Extended advertising on NINA-B31
Setup NINA-B31 to advertise Google Eddystone packets with Extended advertising:
This example shows how to send an URL inside the advertisement packet. Extended advertising is a
Bluetooth 5 feature that allows bigger advertising packets, and in this example we will advertise a full
URL.
•
Enable Extended advertising on NINA-B31. This command requires a restart.
AT+UBTLECFG=29,1
•
Store configuration
AT&W
•
Restart
AT+CPWROFF
•
To change advertise packet on NINA-B31 to include the URL (in this example, the URL will point to
the u-blox NINA-B3 home page) :
AT+UBTAD=0303AAFE2616AAFE10F801752D626C6F7800656E2F70726F647563742F6E696E61
2D62332D73657269657300
•
To change Local Name to “Bluetooth Device”:
AT+UBTSD=1109426C7565746F6F746820446576696365
4.5
Change the NINA-B31 name
NINA-B31 (Device A) is a Peripheral
•
Set Local Name on NINA-B31 to