-
Notifications
You must be signed in to change notification settings - Fork 23
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
timeout error when writing #4
Comments
Could this possibly be due to the socketCAN txqueuelen setting? |
Hi.
Do You check if the sectors which You try to write are write protected?
Regarding the txqueuelen I don't think so.
Also, You could debug this case with logic analyzer on the bus.
MB
niedz., 2 maj 2021 o 14:29 Ryan B ***@***.***> napisał(a):
… Could this possibly be due to the socketCAN txqueuelen setting?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRS2EIHUTDT44X766PTYFDTLVARJANCNFSM43LFALCA>
.
|
Thank you Marcin, I have now managed to program small files successfully... 256 bytes and sometimes 512 bytes.. but that seems to be the max. That is why I thought it may be due to a buffer overflow (or something to that effect) on the socketCAN side. Changing txqueuelen didn't have any effect - as you mentioned. My guess right now is that its an issue with the CAN timing on the beaglebone side... I'm happy to close this issue if you feel it would appropriate |
I am currently experiencing the same issue. Was a solution ever found for this? I am using a stm32f412 and a peak adapter as my interface. |
I didn't ever solve this issue... please let me know if you ever manage to resolve it. |
I'm currenctly facing the same issue, from a quick glance it indeed appears to be an issue with the speed at which messages are sent, so i guess this might be an issue with the txqueuelen, adding a short delay after each 8 byte write (i'm currently using 0.1sec but thats just a really quick test) it is working as expected, but it is really slow (obviously). I'm testing on an L486 with a CANable adabter. I'll investigate further and report back. |
Its great that you at least found a solution which works. Is there any more info from your investigation? |
I found that I had this issue, and it was fixed by increasing the SJW on the socketcan interface to 2 (from the default value of 1) |
I am experiencing an issue when writing to the device :
While reading doesn't have any issues :
The text was updated successfully, but these errors were encountered: