Comments (6)
Hi,
This might relate to #33
A coupe of questions:
- Did you already upgrade your MoveHub firmware via official app or not?
- What was the way to install pylgbst library for your case?
from pylgbst.
Hi
I believe this could be the case. We updated MoveHub to latest firmware, and we are using pylgbst-1.0.1 (downloaded the zip file from releases page and installed with pip3).
I'm no Python expert: how could we use your latest sources?
thanks!
Kris
from pylgbst.
Please upgrade the library, I just made new release. Like this: pip3 install -U https://github.com/undera/pylgbst/archive/1.1.0.tar.gz
Let me know if it helps
from pylgbst.
I upgraded according to your instructions. However now we don't get a connection with the MoveHub (it gets discovererd, see logs below). I tried bluepy and pygatt (on Raspberry Pi 3). Pygatt did work before.
INFO:root:Trying get_connection_bluepy
INFO:root:Trying get_connection_bluegiga
INFO:pygatt.backends.bgapi.bgapi:Initialized new BGAPI backend
INFO:pygatt.backends.bgapi.bgapi:Auto-detecting serial port for BLED112
INFO:root:Trying get_connection_gatt
INFO:root:Trying get_connection_gattool
INFO:pygatt.backends.gatttool.gatttool:Running...
INFO:comms-pygatt:Discovering devices...
INFO:pygatt.backends.gatttool.gatttool:Starting BLE scan
INFO:pygatt.backends.gatttool.gatttool:Discovered 7A:06:02:7A:45:A6 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 58:90:D0:0A:C7:58 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 51:F4:59:FE:28:1E (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 72:6F:F3:F1:50:45 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 5F:EB:50:D9:4F:2F (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered C8:E0:EB:4B:8B:12 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 7C:94:AD:65:B7:24 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 74:05:6A:47:44:B5 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 49:AF:6A:6F:96:75 (None)
INFO:pygatt.backends.gatttool.gatttool:Found 9 BLE devices
INFO:comms-pygatt:Discovering devices...
INFO:pygatt.backends.gatttool.gatttool:Starting BLE scan
INFO:pygatt.backends.gatttool.gatttool:Discovered C6:2A:85:CD:2F:A8 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered name of C6:2A:85:CD:2F:A8 as MI Band 2
INFO:pygatt.backends.gatttool.gatttool:Discovered C8:E0:EB:4B:8B:12 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 74:05:6A:47:44:B5 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 7A:06:02:7A:45:A6 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 58:90:D0:0A:C7:58 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 7C:94:AD:65:B7:24 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 51:F4:59:FE:28:1E (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 5F:EB:50:D9:4F:2F (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 49:AF:6A:6F:96:75 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered 00:16:53:AA:D4:F5 (None)
INFO:pygatt.backends.gatttool.gatttool:Discovered name of 00:16:53:AA:D4:F5 as LEGO Move Hub
from pylgbst.
This is because I changed the lookup name. In my Hub, it's "Move Hub" and I thought that's for everyone.
However, you can always connect to your hub by MAC, like this:
hub=MoveHub(get_connection_auto(hub_mac='00:16:53:AA:D4:F5'))
from pylgbst.
It works now, thanks!
from pylgbst.
Related Issues (20)
- Lego Boost reconnection issue HOT 1
- LEDRGB: Current color can't be obtained/notified from the hub HOT 4
- Cannot connect to 88015 hub HOT 1
- Error on MacOS HOT 5
- 'MoveHub' object has no attribute 'connection' HOT 2
- Any plans for adding other hubs, maybe Mindstorms 515151? HOT 5
- [motors]Is there a way to ? HOT 1
- Technic Hub Port AB doesnt work HOT 16
- Connecting to WeDo SmartHub: no characteristic found HOT 7
- Blue Tooth Connection HOT 6
- Cannot run a Lego tram HOT 25
- How to get Sound Files with Lego Boost app? HOT 1
- Calling hub methods from callback functions blocks further operations HOT 6
- Crashes from time to time calling bluepy function HOT 14
- How to control a DC (train) motor ? HOT 40
- Support for Powered Up Remote Handset (Lego 88010) HOT 6
- Is pylgbst thread-safe? HOT 2
- To bleak or not to bleak...? HOT 3
- AttributeError: 'NoneType' object has no attribute 'timed' HOT 3
- Proper way to detect if motor is stuck during its move? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylgbst.