Changes

437 bytes added ,  17:36, 12 December 2022
m
no edit summary
Line 102: Line 102:       −
'''3.    Paring'''
+
'''4.    Paring'''
    
When device have defaults settings, reader waits for button then sends advertising packet for 50 seconds and blinks LEDs. First connection in this state is pairing process. Paring mode used: No Pin.
 
When device have defaults settings, reader waits for button then sends advertising packet for 50 seconds and blinks LEDs. First connection in this state is pairing process. Paring mode used: No Pin.
Line 156: Line 156:  
==NBL-2 packet==
 
==NBL-2 packet==
 
NBL-T data is being read via broadcast packets only. The packet structure is described below:
 
NBL-T data is being read via broadcast packets only. The packet structure is described below:
 +
{| class="wikitable"
 +
|+
 +
!EIR Type
 +
!Description / Value
 +
!LEN
 +
|-
 +
|Flags – 0x01
 +
|0x06
 +
GeneralDiscoverable,
   −
[[File:NBL conf 13.png|frameless]]
+
BrEdrNotSupported
 
+
|3B
 
+
|-
0x02010606094E424C2D540CFF4E58 A7CB250501B01A0047
+
|Complete name – 0x09
 
+
|‘NBL-2’ (for NBL-2 device)
'''Table No. 1.''' Parsed broadcast packet
+
|7B
 +
|-
 +
|Service data – 0x16
 +
|Data format
 +
{| class="wikitable"
 +
!BYTE:
 +
!0..1
 +
!2
 +
!3
 +
!4
 +
!5
 +
!6
 +
![7..8]
 +
!9
 +
!10..18
 +
|-
 +
|Field:
 +
|UUID
 +
|Status
 +
|Batt
 +
|X
 +
|Y
 +
|Z
 +
|0
 +
|CID_Len
 +
|CID
 +
|}
 
{| class="wikitable"
 
{| class="wikitable"
|'''Type'''
+
!Field
|'''HEX Value'''
+
!Description
|'''ASCII Value'''
  −
|'''Description'''
   
|-
 
|-
|09
+
|UUID
|4E424C2D540C
+
|‘NX’
|NBL-T
  −
|Complete Local name
   
|-
 
|-
|FF
+
|Status
|4E58 A7CB250501B01A 00 47
+
|Data format:
|1.      UUID 2 bytes
+
{| class="wikitable"
 +
|+
 +
!MSB
 +
!
 +
!
 +
!
 +
!
 +
!
 +
!
 +
!LSB
 +
|-
 +
|Motion
 +
|Card
 +
|Confirm
 +
|0
 +
|0
 +
|0
 +
|B1
 +
|B2
 +
|}
 +
• '''Motion''' – if 1, sensor detect movement
 +
 
 +
• '''Card''' if 1, the ID is read
 +
 
 +
• '''Btn1''' – state of button 1
   −
2.      RFID Id – 7 bytes
+
• '''Btn2''' – state of button 2
   −
3.      Button status – 1 byte
     −
4.      Battery level – 1 byte (%)
+
|-
|Manufacturer data
+
|Batt
 +
|Battery level in %
 +
|-
 +
|X
 +
|X Axis acceleration
 +
|-
 +
|Y
 +
|Y Axis acceleration
 +
|-
 +
|Z
 +
|Z Axis acceleratio
 +
|-
 +
|CID_Len
 +
|ID length
 +
|-
 +
|CID
 +
|ID card number.
 
|}
 
|}
 
+
|21B
 +
|}
 +
Total packet length: 31B.
 
[[Category:Accessories]]
 
[[Category:Accessories]]