NINA-B1 series - Getting Started
UBX-16009942 - R04 Use case examples
Page 15 of 19
4.4 Setup Eddystone on NINA-B1
Setup NINA-B1 to advertise Google Eddystone packets:
This example will show 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 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 [6] for more
information about Eddystone.
• To change advertise packet on NINA-B1 to include the Eddystone URL:
o AT+UBTAD=0303AAFE0D16AAFE10F801752D626C6F7807
• To change Local Name to “Bluetooth Device”:
o AT+UBTSD=1109426C7565746F6F746820446576696365
4.5 Change the NINA-B1 name
NINA-B1 (Device A) is a Peripheral
• Set Local Name on NINA-B1 to
o AT+UBTLN="u-blox NINA-B1"
NINA-B1 (Device B) as a Central
• Set Central Role on NINA-B1
o AT+UBTLE=1
• Store configuration
o AT&W
• Restart NINA-B1
o AT+CPWROFF
• Make a Device Discover to find Device A
o AT+UBTD
o +UBTD:112233445566p,-70,"u-blox NINA-B1",1,0F09752D626C6F78204E494E412D...
4.6 Configure NINA-B1 over air
Set up NINA-B1 (Device A) that should be configured over air
• Enable remote configuration through the SPS server
o AT+UDSF=0,1
• Enter data mode
o ATO1
Set up NINA-B1 (Device B)
• Enable Central Role
o AT+UBTLE=1
• Store configuration
o AT&W
• Restart
o AT+CPWROFF
• Change escape character from default ‘+’ (ASCII 43) to ‘-‘ (ASCII 45) to make the escape sequence pass
through Device A without getting detected as an escape sequence at Device B
o ATS2=45
• Find the other device (Device A)
o AT+UBTD=4,1
+UBTD:112233445566p,-59,"NINA-B1 Device A",1,1109426C756574...
• Create an SPS connection to Device A
o AT+UDCP="sps://112233445566”
• Enter data mode
o ATO1