My simple Python code works on my Orange Pi (with Bluetooth dongle) just fine, but when I try the same code snippet on my Dell Chromebook 11 (user crouton) it does not:
(jessie)darren@localhost:~$ sudo python3
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ruuvitag_sensor.ruuvi import RuuviTagSensor
>>> import ruuvitag_sensor.log
>>> timeout_in_sec = 4
>>> macs = ['E4:16:B8:26:17:0B']
>>> datas = RuuviTagSensor.get_data_for_sensors(macs, timeout_in_sec)
Get latest data for sensors. Stop with Ctrl+C.
Stops automatically in 4s
Start receiving broadcasts (device hci0)
End Of File (EOF). Exception style platform.
Stop receiving broadcasts
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
From what I can tell, the bluetooth H/W on the Chromebook can ‘sense’ my Ruuvitags just fine, but I get that strange ‘EOF’ error while trying to listen to them with Python on the default ‘hci0’ bluetooth device – so no values are read/printed.
Help would be appreciated!