SORU
20 EYLÜL 2013, Cuma


İBeacon Bluetooth Profili nedir

Bluetooth düşük enerji dev kitleri ile kendi iBeacon oluşturmak istiyorum. Apple henüz birkaç donanım geliştiriciler ters AirLocate Örnek kod iBeacon Mühendislik ve iBeacon dev kitleri satmaya başladı ancak iBeacons için bir şartname serbest bırakmak için vardır.

İBeacon Bluetooth Profili nedir?

Düşük Enerji kullanır LE profile servis keşif için GATT Bluetooth. Öznitelik Kolu bilmemiz gerek diye düşünüyorum Öznitelik Türü, Öznitelik Değeri, ve iBeacon Öznitelik İzinleri belki bağlıyor. 1-DFFB-48D2-B060-E2C56DB5 D0F5A71096E0 büyük bir değer ve 1 küçük bir değeri bir UUID ile bir iBeacon için Bluetooth GATT profili hizmeti ne olurdu?

İşte bazı varsayımlar belgeler aracılığıyla Apple'ın forumlarında tartışma ve yaptım.

  1. Sadece profil hizmeti (GATT) bir Bluetooth periferik bir iBeacon olduğunu bilmek için görmek gerekir.

  2. Birincil ve İkincil anahtarlar bir yerde bu profili hizmeti kodlanır

İşte bu şekil var gibi Dev Kitleri zaten iBeacon ile bazı şirketler:

Bir profil bu Bluetooth.org yayınlanan olacak zamanla inşallah: https://www.bluetooth.org/en-us/specification/adopted-specifications

CEVAP
26 EYLÜL 2013, PERŞEMBE


ProximityUUİD E2C56DB5-DFFB-48D2-B060-D0F5A71096E0, 0, 0, -59 karanlıkta çalışırken kalibre Tx Güç küçük büyük bir iBeacon için, iletilen BLE reklam paket bu gibi görünüyor:

d6 be 89 8e 40 24 05 a2 17 6e 3d 71 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 52 ab 8d 38 a5

Bu paket aşağıdaki gibi bölünebilir

d6 be 89 8e # Access address for advertising data (this is always the same fixed value)
40 # Advertising Channel PDU Header byte 0.  Contains: (type = 0), (tx add = 1), (rx add = 0)
24 # Advertising Channel PDU Header byte 1.  Contains:  (length = total bytes of the advertising payload   6 bytes for the BLE mac address.)
05 a2 17 6e 3d 71 # Bluetooth Mac address (note this is a spoofed address)
02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 # Bluetooth advertisement
52 ab 8d 38 a5 # checksum

Bu paket önemli bir bölümü bu gibi çökmüş olan Bluetooth Reklam,

02 # Number of bytes that follow in first AD structure
01 # Flags AD type
1A # Flags value 0x1A = 000011010  
   bit 0 (OFF) LE Limited Discoverable Mode
   bit 1 (ON) LE General Discoverable Mode
   bit 2 (OFF) BR/EDR Not Supported
   bit 3 (ON) Simultaneous LE and BR/EDR to Same Device Capable (controller)
   bit 4 (ON) Simultaneous LE and BR/EDR to Same Device Capable (Host)
1A # Number of bytes that follow in second (and last) AD structure
FF # Manufacturer specific data AD type
4C 00 # Company identifier code (0x004C == Apple)
02 # Byte 0 of iBeacon advertisement indicator
15 # Byte 1 of iBeacon advertisement indicator
e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 # iBeacon proximity uuid
00 00 # major 
00 00 # minor 
c5 # The 2's complement of the calibrated Tx Power

Belirli bir reklam göndermek için yapılandırılabilir Bluetooth LE herhangi bir cihaz üzerinde bir paket oluşturabilirsiniz. Linux bilgisayar kullanarak bir Bluez bu reklam göndermek için yapılandırılmış, ve iOS7 cihazlar Apple'ın AirLocate test çalışan kod bu alanlar yukarıda belirtilen bir iBeacon olarak al. Bakın: Use BlueZ Stack As A Peripheral (Advertiser)

blog Bu tersine mühendislik süreci hakkında tam bilgi vardır.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • ★TheCrono Official Channel★

    ★TheCrono

    3 Mayıs 2014
  • Howard Pinsky

    Howard Pinsk

    6 AĞUSTOS 2006
  • PaysNatalAu's channel

    PaysNatalAu'

    11 Aralık 2010