How to read Bluetooth low power programmatic messages programmatically in Mac OS X 10.9.5?

I am trying to read Bluetooth Low Energy , transferring data programmatically using Ruby. Bluetooth Low Energy does not support the Serial Port Profile (SPP) support in the standard v4.0 specification.

With older Bluetooth communication methods, you can simply read the serial port for incoming Bluetooth data ( /dev/tty.Bluetooth-Incoming-Port ). Obviously, this will not work for Bluetooth Low Energy, as it works almost completely differently.

I came across several tools, such as LightBlue and IO XCode Hardware tools for reading data transmitted using a Bluetooth Low Energy device, but I'm not sure how they work. Can anyone help?

+5
source share
1 answer

Reading the fundamentals really helped me a lot. Here's a link to a great post explaining the basics of BLE . Having realized this, OSX I ended up using noble to establish a connection and read the BLE of the transmitted UART data using another library using the distinguished name blendmicro .

We did not use the blendmicro BLE chip, but still could use the blendmicro-node library. If you read blendmicro.js, it is easy to modify for any BLE chip that uses UART to transmit data.

+3
source

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


All Articles