-
Notifications
You must be signed in to change notification settings - Fork 604
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
Ixxat USB-to-CAN v2 | python-can: Close bus, ACK and send_periodic errors #1605
Comments
Hi, thanks for reporting
|
Hi zariiii9003,
But using a SimplyCAN as target, I could see that the Best regards, |
@AntoineBricard Can you test #1628? |
Hi zariiii9003,
Thanks for the info. I will tests when possible but it will not be before a month.
Best regards,
Antoine Bricard
De : zariiii9003 ***@***.***>
Envoyé : jeudi 6 juillet 2023 14:57
À : hardbyte/python-can ***@***.***>
Cc : Antoine Bricard ***@***.***>; Mention ***@***.***>
Objet : Re: [hardbyte/python-can] Ixxat USB-to-CAN v2 | python-can: Close bus, ACK and send_periodic errors (Issue #1605)
@AntoineBricard<https://github.com/AntoineBricard> Can you test #1628<#1628>?
—
Reply to this email directly, view it on GitHub<#1605 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXE5X4SGHPYFKM5NWIIBZPLXO2YZBANCNFSM6AAAAAAYQL2RMQ>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi,
I'm new with python-can (package version= 4.2.1, running on python3.9.6, under Windows 10) and I wanted to perform a test to send/read CAN message using USB-to-CAN v2 (and SimplyCAN as target).
But I faced few issues using python-can:
1. Close bus error:
Above is the code I used to send CAN message. The point is once the code has been performed, it seems to not close properly the CAN bus.
Bellow the error I got:
Is there a way to properly close the CAN bus ? As i can rerun this script even after the error, should I just not taking account this error ?
2. send_periodic :
I wanted to send CAN message every seconds using the method "send_periodic" but it raise the bellow exception:
AttributeError: 'IXXATBus' object has no attribute '_periodic_tasks'
As in the doc, it's written that for Ixxat devices, the method "send_periodic" is supported, what did I misunderstand for the use of send_periodic method using Ixxat devices ? Bellow the code for the periodic message:
3. NACK error :
If the target has a problem and couldn't ACK the CAN message, the python-can API print errors logs as bellow:
And even once the target is reconnected this error message still appears. Is there a way to avoid them ?
Thanks in advance for any help,
Best regards,
Antoine
The text was updated successfully, but these errors were encountered: