You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Holle:
my code:
def SendBack(data):
msg = can.Message(arbitration_id=0x000601, data = data, extended_id=False)
bus.send(msg)
bus.flush_tx_buffer()
time.sleep(0.001)
try:
Ans = str(bus.recv(timeout=1.0))
except:
print("Error")
return(None)
if(len(Ans) > 10):
return("success")
else:
return(None)
My question is when it lost recv then i cant send any new message.
it can't send any data and any response.
I need to restart Raspberry Pi then CAN bus will be normal.
Please help me to fix this question.
Thank you
The text was updated successfully, but these errors were encountered:
Holle:
my code:
def SendBack(data):
msg = can.Message(arbitration_id=0x000601, data = data, extended_id=False)
bus.send(msg)
bus.flush_tx_buffer()
time.sleep(0.001)
try:
Ans = str(bus.recv(timeout=1.0))
except:
print("Error")
return(None)
if(len(Ans) > 10):
return("success")
else:
return(None)
My question is when it lost recv then i cant send any new message.
it can't send any data and any response.
I need to restart Raspberry Pi then CAN bus will be normal.
Please help me to fix this question.
Thank you
The text was updated successfully, but these errors were encountered: