Akiyuki ODV hub messaging & firmware 4.0 #2798
Unanswered
MichaelHarris196
asked this question in
Q&A
Replies: 2 comments
|
Program file for Vehicle 01 |
0 replies
|
The Gatt unknown error I had was related to too many wifi and bluetooth noise near the hub and the pc. I ran the vehicle program in the previous post without any problem. You can have a look at items about GATT in pybricks issues |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
following the "Hub messaging has been moved" pop up I have been trying to update the Akiyuki Omnidirectional Vehicles [Configuration 04 which has 2 vehicles ] to use firmware 4.0 (they were tested by the designers with 3.6)
the first program run always fails as the download stalls at less than 100%
(tonight was at 27% )and I get this error message
but if I re pair with the hub the second attempt downloads O.K.
to the program I have added :-
from pybricks.messaging import BLERadio
I have changed lines 467, 468 & 469 from
hub = TechnicHub(broadcast_channel=BROADCAST_CHANNEL)
else:
hub = TechnicHub(observe_channels=[BROADCAST_CHANNEL])
to
radio = BLERadio(broadcast_channel=BROADCAST_CHANNEL)
else:
radio = BLERadio(observe_channels=[BROADCAST_CHANNEL])
I have also changed line 112 from
hub.ble.broadcast(data)
to
radio.broadcast(data)
and lines 132 & 151 from
data = self.hub.ble.observe(self.observe_ch)
to
data = self.radio.observe(self.observe_ch)
however I got the following error message
NameError: 'hub' isn't defined
I then re-added at line 464
hub = TechnicHub()
as I believe there are functions within the hub module (e.g status light & battery etc ) that are being used.
now getting error message :-
Attribute error: 'BluetoothTimeSync' object has no attribute 'radio'
hopefully this is enough information
if the error message .png's upload O.K. I'll add one of the program files
All reactions