aykevl / pynus Goto Github PK
View Code? Open in Web Editor NEWNUS console implemented in Python using Bluez/DBus.
License: MIT License
NUS console implemented in Python using Bluez/DBus.
License: MIT License
I am running the latest Raspberry Pi OS on a RPi 3B with BlueZ 5.50 and cannot get your pynus running. Any idea what could be done to fix this would be highly appreciated.
root@raspberrypi:/home/pi/pynus# python3 pynus.py
Connecting to Ruuvi 42AB (E3:F1:A7:E1:42:AB)...
Segmentation fault
When executed as normal user without sudo I get:
pi@raspberrypi:~/pynus $ python3 pynus.py
Connecting to Ruuvi 42AB (E3:F1:A7:E1:42:AB)...
Traceback (most recent call last):
File "/home/pi/pynus/tealblue.py", line 392, in callback_wrapper
callback(*args)
File "pynus.py", line 56, in nus
device.connect()
File "/home/pi/pynus/tealblue.py", line 176, in connect
self._device.Connect()
File "/home/pi/.local/lib/python3.7/site-packages/dbus/proxies.py", line 147, in __call__
**keywords)
File "/home/pi/.local/lib/python3.7/site-packages/dbus/connection.py", line 653, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Therefore, if the host has more than one Nordic chip in its bluetooth cache, it's pot luck which device it tries to connect to (since it automatically connects to the first NUS console it can find)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.