+V.2015.01.22.1 - iBeacon · Accent Advanced Systems
Transcription
+V.2015.01.22.1 - iBeacon · Accent Advanced Systems
General Attributes table (GATT) iBKS-USB Beacon Service UUID:0000fff0-0000-1000-8000-00805f9b34fb Length Characteristic Type Comments Default Value UUID 16 bytes 0xFFF1 Read/write iBeacon Protocol 0x0...00 Major 2 bytes 0xFFF2 Read/write iBeacon Protocol 0x0001 Minor 2 byte 0xFFF3 Read/write iBeacon Protocol 0x0001 CPwr 1 byte 0xFFF4 Read/write iBeacon Protocol 0xC6 2 bytes 0xFFF5 Read/write Value in ms 0x03B6 Tx Power 1 byte 0xFFF6 Read/write Possible values: 00/01/02/03 0x07 Password 2 bytes 0xFFF7 Read/write 2 bytes number 0x0000 Config byte 1 byte 0xFFF8 Read/write Possible values: 1A/1B/9A/9B/FF 0x1A State byte 1 byte 0xFFF9 Read Only Possible values: 00/01/02 0x01 Adv. Interval Characteristics meaning The first ten seconds after power up the iBKS-USB is a connectable device ready to receive the configuration, this period is called “connectable time window” (CTW) and the iBKS-USB is seen by central devices as a custom profile BLE device. If the password is set to 0x0000 (default value) the config app can connect to the iBKS-USB, it is possible to read and write the values of different characteristics. If there are a password set inside the device(different of 0x0000, 2 bytes) the device is connectable always in the CTW period but you can not read or write any characteristic except password, in this mode, the password characteristic is to write the correct password to unblock “CONFIG MODE”. The state characteristic will show the number “0” when the password is not introduced, “1” when the password is introduced correctly and “2” if the maximum password times wrong has been overcome. When the state characteristic byte shows the value '1' the password characteristic acts as password changer, remember this password, you will need it next time that you want to connect with iBKS-USB. iBeacon Service UUID: Normally used to define all the beacons that will be used in the same APP. For example all the devices to be used in the “Example Shopping Mall” APP should have the same UUID value. Major: Used to define a group of beacons into an UUID group. For example, all the beacons in the “Example Store 1” in the “Example Shopping Mall” should have the same Major. In this case, every shop should has its own major group value. Minor: Used as lowest level identifier into the Major group of the global UUID group. CPwr: Used to set the Power received in db at 1m. This will be used to define distance range for the app (near, medium, far). Insert the ‘dB’ received at 1m in Hexadecimal. Adv.Int: Defines time between advertising packets (period). Introduce directly the number of miliseconds desired. Tx Power: Introduce one of the possible values: -”0” to set “-23 dB” -”1” to set “-6 dB” -”2” to set “0 dB” -”3” to set “+4 dB” Password: Set 2 bytes password to protect the beacon against undesired entries. Introduce the same password to enter in configuration mode. Config. Byte: This value defines: First Digit: 1 Second Digit: if send iBeacon(A) standard packet or an extra byte to report the battery level(B).