EasyManua.ls Logo

u-blox NINA-B1 Series - Setup Ibeacon on NINA-B1

u-blox NINA-B1 Series
19 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NINA-B1 series - Getting Started
UBX-16009942 - R04 Use case examples
Page 14 of 19
+UBTD:112233445566p,-59,"NINA-B1 GATT Server",1,1109426C756574...
Create an ACL connection
o AT+UBTACLC=112233445566
+UUBTACLC:0,0,112233445566p
Use the connection handle 0 from the +UUBTACLC and Discover Services
o AT+UBTGDP=0
+UBTGDP:0,1,9,1800
+UBTGDP:0,10,13,1801
+UBTGDP:0,14,22,180A
+UBTGDP:0,23,29,01D7E9014FF344E7838FE226B9E15624
+UBTGDP:0,30,65535,180D
OK
After finding the “Heart Rate service” (180 D), use the start handle 30 and end handle 65535 from the
+UBTGDP, and Discover all characteristics of service
o AT+UBTGDCS=0,30,65535
+UBTGDCS:0,31,10,32,2A37
OK
After finding the “Heart Rate Measurement characteristics” (2A37), use the value handle 32 from the
+UBTGDCS and end handle 65535 from the +UBTGDP, and Discover all characteristic descriptors
o AT+UBTGDCD=0,32,65535
+UBTGDCD:0,32,33,2902
OK
After finding the “Client Characteristic Configuration descriptor” (2902), use the descriptor handle 33
from the +UBTGDCD, and subscribe to notifications of Heart Rate measurement value changes
o AT+UBTGWC=0,33,1
OK
Update and notify new value of Heart Rate measurement (Device A):
We can now set a new value (50) and send a notification from Device A (the GATT Server)
o AT+UBTGSN=0,32,50
New value is notified to Device B:
An event is received when the remote side (Device A) sends a notification
o +UUBTGN:0,32,50
4.3 Setup iBeacon on NINA-B1
Setup NINA-B1 to advertise Apple iBeacon packets:
This is only an example use case. Apple requires iBeacon license agreement if it is used in a product.
iBeacon is a Manufacturer-specific event, and contains an 128 bit UUID such as D9B9EC1F-3925-43D0-80A9-
1E39D4CEA95C. Note that the byte order for the AT command use the reverse byte 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 [5] for more information about iBeacon.
To change advertise packet on NINA-B1 to include iBeacon:
o AT+UBTAD=1AFF4C000215EBEFD08370A247C89837E7B5634DF52400010001C5
To change Local Name to “Bluetooth Device”:
o AT+UBTSD=1109426C7565746F6F746820446576696365

Other manuals for u-blox NINA-B1 Series

Related product manuals