
Description
Hello python-build-hat projects,
we facing a issue with the build hat stopping the interaction with raspberry pi
We a long running our Lego Maschine and random about half hour the code is crashing.
We see a disconnect and reconnect of the build hat on crash, strange because we given any disconnect command.
Main Goal
adjust motor speed and get all motor information about higher than 8-10 hours, if we need to change our code thats alright, if this is a bug we want to support.
Normal Operation, Set new Motor Speed, Get Motor Infos, Speed, Rotation A, Rotation
INFO:root:> port 0 ; coast
INFO:root:> port 0 ; combi 0 1 0 2 0 3 0 ; select 0 ; pid 0 0 0 s1 1 0 0.003 0.01 0 100; set 10
INFO:root:> port 0 ; selonce 0
INFO:root:< P0C0: +10 +251211 -131
Disconnect
INFO:root:< P0: timeout during data phase: disconnecting
INFO:root:< P0: disconnected
Code crashes in Between, because the read out of motor values is not possible on not connected build hat
Reconnect
INFO:root:< set baud rate to 115200
INFO:root:< P0: connected to active ID 4C
INFO:root:< type 4C
INFO:root:< nmodes =5
INFO:root:< nview =3
INFO:root:< baud =115200
INFO:root:< hwver =00000004
INFO:root:< swver =10000000
INFO:root:< M0 POWER SI = PCT
INFO:root:< format count=1 type=0 chars=4 dp=0
INFO:root:< RAW: 00000000 00000064 PCT: 00000000 00000064 SI: 00000000 00000064
INFO:root:< M1 SPEED SI = PCT
INFO:root:< format count=1 type=0 chars=4 dp=0
INFO:root:< RAW: 00000000 00000064 PCT: 00000000 00000064 SI: 00000000 00000064
INFO:root:< M2 POS SI = DEG
INFO:root:< format count=1 type=2 chars=11 dp=0
INFO:root:< RAW: 00000000 00000168 PCT: 00000000 00000064 SI: 00000000 00000168
INFO:root:< M3 APOS SI = DEG
INFO:root:< format count=1 type=1 chars=3 dp=0
INFO:root:< RAW: 00000000 000000B3 PCT: 00000000 000000C8 SI: 00000000 000000B3
INFO:root:< M4 CALIB SI = CAL
INFO:root:< format count=2 type=1 chars=5 dp=0
INFO:root:< RAW: 00000000 00000E10 PCT: 00000000 00000064 SI: 00000000 00000E10
INFO:root:< M5 STATS SI = MIN
INFO:root:< format count=14 type=1 chars=5 dp=0
INFO:root:< RAW: 00000000 0000FFFF PCT: 00000000 00000064 SI: 00000000 0000FFFF
INFO:root:< C0: M1+M2+M3
INFO:root:< speed PID: 00000FA0 00000064 00002328 000003CA
INFO:root:< position PID: 00002710 000003E8 0000C350 00000000
INFO:root:< P0: established serial communication with active ID 4C