Replies: 7 comments 7 replies
-
|
Which firmware is on your hub? Once you're connected, you can see it by clicking on the green battery indicator in the bottom right of the app. Or if you got an automatic prompt to update, make sure that you do :) |
Beta Was this translation helpful? Give feedback.
-
|
Hi Laurens,
thank you for your answer.
The firmware version is 4.01.
Michel
Le mer. 24 juin 2026 à 15:36, Laurens Valk ***@***.***> a
écrit :
… Which firmware is on your hub? Once you're connected, you can see it by
clicking on the green battery indicator in the bottom right of the app.
Or if you got an automatic prompt to update, make sure that you do :)
—
Reply to this email directly, view it on GitHub
<#2747?email_source=notifications&email_token=AJOQVL3CDM4H5AIISUBV7VT5BPKNTA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGIYTCNRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17421163>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOQVL47QK7NSO3MUUCNQRD5BPKNTAVCNFSNUABIKJSXA33TNF2G64TZHMZDIOBYGAZTENJUHNCGS43DOVZXG2LPNY5TCMBTGEZDAMJQUF3AE>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AJOQVL3LJY2IORAPNEHAJSL5BPKNTA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGIYTCNRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/AJOQVL7Z3WQ7WGFYSGPJRO35BPKNTA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGIYTCNRTUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
from pybricks.messaging import BLERadio
result
Traceback (most recent call last):
File "testpybricks.py", line 9, in <module>
ImportError: no module named 'pybricks.messaging'
radio = BLERadio(broadcast_channel=1)
result
Traceback (most recent call last):
File "testpybricks.py", line 8, in <module>
NameError: name 'BLERadio' isn't defined Michel
Le jeu. 25 juin 2026 à 09:14, Laurens Valk ***@***.***> a
écrit :
… The script you shared is working for me:
from pybricks.messaging import BLERadio
# Initialize the hub.radio = BLERadio(broadcast_channel=1)
What error do you see? Or maybe the error was from before you updated and
it is actually working now?
—
Reply to this email directly, view it on GitHub
<#2747?email_source=notifications&email_token=AJOQVL2VGHZHZSHRAJH45BD5BTGMRA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMYDGMBVUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17430305>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOQVL7XJJKHJH7GTXDLBVT5BTGMRAVCNFSNUABIKJSXA33TNF2G64TZHMZDIOBYGAZTENJUHNCGS43DOVZXG2LPNY5TCMBTGEZDAMJQUF3AE>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AJOQVLZVHUL7M76SDCRHVFT5BTGMRA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMYDGMBVUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/AJOQVLYGANL6AJN25GR3HTL5BTGMRA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMYDGMBVUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi,
what do you mean by "maybe the error was from before you updated and it is
actually working now?"
I copy exactly your example
from pybricks.pupdevices import Motor
from pybricks.parameters import Port
from pybricks.tools import wait
from pybricks.messaging import BLERadio
# Initialize the hub.
radio = BLERadio(broadcast_channel=1)
# Initialize the motors.
left_motor = Motor(Port.A)
right_motor = Motor(Port.B)
while True:
# Read the motor angles to be sent to the other hub.
left_angle = left_motor.angle()
right_angle = right_motor.angle()
# Set the broadcast data and start broadcasting if not already doing so.
data = (left_angle, right_angle)
radio.broadcast(data)
# Broadcasts are only sent every 100 milliseconds, so there is no reason
# to call the broadcast() method more often than that.
wait(100)
the result is
Traceback (most recent call last):
File "testbl.py", line 4, in <module>
ImportError: no module named 'pybricks.messaging'
Michel
Le jeu. 25 juin 2026 à 09:14, Laurens Valk ***@***.***> a
écrit :
… The script you shared is working for me:
from pybricks.messaging import BLERadio
# Initialize the hub.radio = BLERadio(broadcast_channel=1)
What error do you see? Or maybe the error was from before you updated and
it is actually working now?
—
Reply to this email directly, view it on GitHub
<#2747?email_source=notifications&email_token=AJOQVL2VGHZHZSHRAJH45BD5BTGMRA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMYDGMBVUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17430305>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOQVL7XJJKHJH7GTXDLBVT5BTGMRAVCNFSNUABIKJSXA33TNF2G64TZHMZDIOBYGAZTENJUHNCGS43DOVZXG2LPNY5TCMBTGEZDAMJQUF3AE>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AJOQVLZVHUL7M76SDCRHVFT5BTGMRA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMYDGMBVUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/AJOQVLYGANL6AJN25GR3HTL5BTGMRA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMYDGMBVUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Bert,
I use the Prime hub
Michel
Le jeu. 25 juin 2026, 12:40, Bert ***@***.***> a écrit :
… Michel, what type of hub do you run this script?
Bert
—
Reply to this email directly, view it on GitHub
<#2747?email_source=notifications&email_token=AJOQVL7ISU6UAMTGCYULLFL5BT6QBA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMZDQMJZUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17432819>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOQVLZ26P7YYDN2ML235I35BT6QBAVCNFSNUABIKJSXA33TNF2G64TZHMZDIOBYGAZTENJUHNCGS43DOVZXG2LPNY5TCMBTGEZDAMJQUF3AE>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AJOQVL4RP3G5TF5SN7N37AT5BT6QBA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMZDQMJZUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/AJOQVL5YTJZ4JF7S3B5RJWT5BT6QBA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGMZDQMJZUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi Bert
the return is
('primehub', '3.6.1', 'ci-release-86-v3.6.1 on 2025-03-11')
Traceback (most recent call last):
File "test2.py", line 12, in <module>
ImportError: no module named 'pybricks.messaging'
Michel
Le jeu. 25 juin 2026 à 16:17, Bert ***@***.***> a écrit :
… @BertLindeman <https://github.com/BertLindeman> - the version script
above should show.
Correct.
Michel I ran this on my primehub Laurens program and added a print so we
see that there was no erroe:
from pybricks import versionprint(version)
from pybricks.messaging import BLERadio
radio = BLERadio(broadcast_channel=1)print(radio)
I get:
('primehub', '4.0.1', 'ci-release-101-v4.0.1 on 2026-06-24')
<BLERadio>
What is your output?
Bert
—
Reply to this email directly, view it on GitHub
<#2747?email_source=notifications&email_token=AJOQVL4U4VLRW5OLEH77R5D5BUX6TA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGM2TCMJXUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17435117>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOQVL7XQGBKRVHGIIT7ZCD5BUX6TAVCNFSNUABIKJSXA33TNF2G64TZHMZDIOBYGAZTENJUHNCGS43DOVZXG2LPNY5TCMBTGEZDAMJQUF3AE>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AJOQVL33YNKBDLLC2CLVE435BUX6TA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGM2TCMJXUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/AJOQVL3MGJ2JQYWTGPFJBFT5BUX6TA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGM2TCMJXUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Ok tank you
Michel
Le ven. 26 juin 2026, 12:15, Laurens Valk ***@***.***> a
écrit :
… Right, that means your firmware hasn't been updated yet on this hub. Just
update the firmware, and you'll get 4.0.1 with the updated messaging
module. :)
Isn't there a notification every time you connect that you should consider
updating to use all features?
—
Reply to this email directly, view it on GitHub
<#2747?email_source=notifications&email_token=AJOQVLZBFXO7JL2HIZA6AUL5BZENNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGQZTSOBRUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-17443981>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOQVLZLYGANGKTMUP7SGFT5BZENNAVCNFSNUABIKJSXA33TNF2G64TZHMZDIOBYGAZTENJUHNCGS43DOVZXG2LPNY5TCMBTGEZDAMJQUF3AE>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AJOQVLZNDFOZGXXFJNJUGAD5BZENNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGQZTSOBRUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/AJOQVLYZZFO6WQZ3LLTQBAD5BZENNA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUGQZTSOBRUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why on pike prime if try to usethis code
messaging is missing
BleRadion module seems not instaled !
Beta Was this translation helpful? Give feedback.
All reactions