Curious about different advertising behaviors #825
-
Hi, I got a chance to try PyBricks firmware on my RI Hub yesterday and everything worked smoothly. I have a M1 MacBook and downloaded Chrome to follow along the Wireless communication tutorial to drive the robot using Bleak. I noticed after I flashed the PyBricks firmware, I could immediately discover the device name "PyBricks Hub" name and connect to it. Then, after reading lwp3 doc, I thought to repeat the wireless communication experiment with the official RI firmware. However, after switching back to official firmware. I don't see any BleakScanner results that is similar to "PyBricks dev" that I can connect to. I saw there is a The strange thing is that MINDSTORMS app could still discover and connect to the official firmware. I suspect the official firmware doesn't send advertising packets as the PyBricks firmware do? Any suggestion on how to connect to the official firmware via BleakScanner, BleakClient? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for reaching out. Great to hear that installing Pybricks and using the wireless demos worked smoothly! The original firmware uses Bluetooth Classic instead of Bluetooth Low Energy as used in Pybricks and Bleak. You can probably connect to the hub with the original firmware using your MacBook’s Bluetooth settings. Make sure to press the Bluetooth button on the hub to activate Bluetooth. Afterwards, you’ll then be able to exchange data with the hub through a virtual comm port. |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out. Great to hear that installing Pybricks and using the wireless demos worked smoothly!
The original firmware uses Bluetooth Classic instead of Bluetooth Low Energy as used in Pybricks and Bleak.
You can probably connect to the hub with the original firmware using your MacBook’s Bluetooth settings. Make sure to press the Bluetooth button on the hub to activate Bluetooth. Afterwards, you’ll then be able to exchange data with the hub through a virtual comm port.