Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I lost recv , I can't send any message anymore! #4

Open
KenyesLai opened this issue Apr 23, 2018 · 0 comments
Open

When I lost recv , I can't send any message anymore! #4

KenyesLai opened this issue Apr 23, 2018 · 0 comments

Comments

@KenyesLai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant