Author Topic: Communicate BLE via MacOS and Python?  (Read 926 times)

0 Members and 1 Guest are viewing this topic.

Offline onesixrightTopic starter

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: nl
Communicate BLE via MacOS and Python?
« on: May 02, 2019, 08:40:11 am »
Hi All!

I have a BLE body scale. 

Anyway way to communicate with (preferable) Python and my MacOS (the Mac bluetooth chip, should support BLE)? Would love to read some data from it.

Code: [Select]
Apple Bluetooth Software Version: 6.0.11f4
  Hardware, Features and Settings:
  Name: yadayadadada
  Address: 54-E4-XX-XX-XX-XX
  Bluetooth Low Energy Supported: Yes
  Handoff Supported: Yes
  Instant Hot Spot Supported: Yes
  Manufacturer: Broadcom
  Transport: USB
  Chipset: 20702B0
  Firmware Version: v150 c9317
  Bluetooth Power: On
  Discoverable: Off
  Connectable: Yes
  Auto Seek Pointing: On
  Remote wake: On
  Vendor ID: 0x05AC
  Product ID: 0x828D
  HCI Version: 4.0 (0x6)
  HCI Revision: 0x2465
  LMP Version: 4.0 (0x6)
  LMP Subversion: 0x4196
  Device Type (Major): Computer
  Device Type (Complete): Mac Desktop
  Composite Class Of Device: 0x380104
  Device Class (Major): 0x01
  Device Class (Minor): 0x01
  Service Class: 0x1C0
  Auto Seek Keyboard: On

Anyone some pointers?

Much obliged!
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: Communicate BLE via MacOS and Python?
« Reply #1 on: May 02, 2019, 09:51:17 am »
I'm using ruuvi-tag sensors with an RPi - the 'ruuvicollector' software worked without any modifications on raspbian. It's probably java, not python..

there seems to be a python lib for reading the ruuvitag ble sensors here: https://github.com/ttu/ruuvitag-sensor

 

Offline onesixrightTopic starter

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: nl
Re: Communicate BLE via MacOS and Python?
« Reply #2 on: May 02, 2019, 09:59:29 am »
I'm using ruuvi-tag sensors with an RPi - the 'ruuvicollector' software worked without any modifications on raspbian. It's probably java, not python..

there seems to be a python lib for reading the ruuvitag ble sensors here: https://github.com/ttu/ruuvitag-sensor

Thanks!

So just to be clear, if I buy a 'RUUVITAG' sensor (~ EUR 29)? Then with this sensor (need to flash it?) I can pickup data of other BLE devices and sends it to a RPi (using ruuvicollector) ?
« Last Edit: May 02, 2019, 10:12:48 am by onesixright »
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: Communicate BLE via MacOS and Python?
« Reply #3 on: May 02, 2019, 10:14:39 am »
So just to be clear, if I buy a 'RUUVITAG' sensor (Z EUR 29)? Then with this sensor (need to flash it?) I can pickup data of other BLE devices and sends it to a RPi (using ruuvicollector) ?

sorry for the confusion...
- ruuvitag is a sensor that detects temperature, humidity, pressure and sends the data over BLE. battery life should be 2 years (?).
- I'm collecting the data with an RPi (latest model, 3B+?) running the default raspbian.
- data goes into influxDB on the RPi and can be visualized with chronograph/grafana etc.

they might be developing a new thing "ruuvi-node" which will do the data-collection, but afaik it is a prototype.

 

Offline onesixrightTopic starter

  • Frequent Contributor
  • **
  • Posts: 624
  • Country: nl
Re: Communicate BLE via MacOS and Python?
« Reply #4 on: May 02, 2019, 11:28:33 am »
So just to be clear, if I buy a 'RUUVITAG' sensor (Z EUR 29)? Then with this sensor (need to flash it?) I can pickup data of other BLE devices and sends it to a RPi (using ruuvicollector) ?

sorry for the confusion...
- ruuvitag is a sensor that detects temperature, humidity, pressure and sends the data over BLE. battery life should be 2 years (?).
- I'm collecting the data with an RPi (latest model, 3B+?) running the default raspbian.
- data goes into influxDB on the RPi and can be visualized with chronograph/grafana etc.

they might be developing a new thing "ruuvi-node" which will do the data-collection, but afaik it is a prototype.

Thanks for explaining. I'm more after a generic BLE solution / sniffer.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf