Communicate with Mindstorms Inventor via USB #431
Replies: 2 comments 4 replies
-
I'm assuming you are running Pybricks on the hub? In Pybricks, USB is not used for communication. Everything works via Bluetooth (BLE). The hub also doesn't constantly broadcast sensor data using the LEGO wireless protocol. Although we recommend that people run code via code.pybricks.com, there is also a library called Pybricksdev that you can use to communicate with the hub. It depends a bit on what you are planning to do. :) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. Seems as if it needs some more information from my side. |
Beta Was this translation helpful? Give feedback.
-
Hello,
when I try to communicate from my Linux system with my hub via USB, I'm able to establish a connection with python:
This works and prints the serial ID. Now I like to read the sensor data, the battery state etc. Do you have any examples of successful requests and responses? By reading https://lego.github.io/lego-ble-wireless-protocol-docs/index.html I did not get it running.
Beta Was this translation helpful? Give feedback.
All reactions