Does bluez support low energy pairing with ios devices?

I am beating my head on the wall with this project. I have an application built for iPhone 5 that needs to communicate with my mac via low-power bluetooth and I want to do this via linux using the bluez protocol. I have my mac dual booted with ubuntu 12.04, and my iPhone app is pluggable (acting like a peripheral), which I tested with lightblue. So my question is, in principle, is this possible? Will bluez support this type of connection, or will it only work if I use the key?

I have tried many different bluez permutations. My linux kernel is 3.11.0. I think that I am currently using bluez 4.98. I can make hcitool feel my application, then I use gatttool -b -I -t random, which gives me [] [MAC .......] [LE]> then I type connect, I get [CON] [ MAC .......] [LE]> for about 15 seconds and then CON will disappear. That was the best I could do. In fact, at the moment I do not even understand this anymore. I get any of the three errors. Any connection refused (111), failed to create a connection or tackle the device (16).

Anyway, any help is appreciated!

Thank.

+4
source share
1 answer

, BlueZ DOES iOS. , Bluetooth Low Energy, , (, , /), , , , , , ( , - ). hci :

hciconfig hciX reset

hciX - hci, .

, #hcidump #btmon hci , , , .

, hci ( , ),

hcitool dev

hci. , , Linux Apple Bluetooth, , , .

, , .. , , , ( - ?)?, , linux (, #hcitool lescan), gatttool. bluez, :

, , , "-sec-level = medium" "-sec-level = high", .

gatttool --sec-level=high -t random -b <MAC Address> --primary

gatttool -l high -t random -b <MAC Address> --primary

,

, ,

+9

Source: https://habr.com/ru/post/1548136/


All Articles