Search found 5 matches

by jyjeong
Thu 21. Sep 2023, 01:32
Forum: PCAN-USB
Topic: LINUX_CAN_Statistics and TPDIAG.wErrorFlag
Replies: 10
Views: 6847

Re: LINUX_CAN_Statistics and TPDIAG.wErrorFlag

Is the sample code transmitest and receivetest?
The error doesn't appear when I do transmitest using n=10, but if I do n=10, I get bus off in dmesg command.
And result of 'cat /proc/pcan' show me 'status 0x0000, errors 00000023'.
by jyjeong
Wed 20. Sep 2023, 09:55
Forum: PCAN-USB
Topic: LINUX_CAN_Statistics and TPDIAG.wErrorFlag
Replies: 10
Views: 6847

Re: LINUX_CAN_Statistics and TPDIAG.wErrorFlag

I tried to increase rxqsize and LINUX_CAN_Write_Timeout, LINUX_CAN_Read_Timeout function.
And.. I also set the boat rate to 250K.
This is all I know as a way to improve overrun, can you give me a rough idea of how to get data on time?
Actually, I don't know much about CAN Communications. Sorry..
by jyjeong
Wed 20. Sep 2023, 01:55
Forum: PCAN-USB
Topic: LINUX_CAN_Statistics and TPDIAG.wErrorFlag
Replies: 10
Views: 6847

Re: LINUX_CAN_Statistics and TPDIAG.wErrorFlag

Thanks for answering.
Only 0x0002 was detected when the connection line was not moved.
When rxqsize is 2000, an error occurs when the data comes in for the 2700 times.
I've increased the rxqsize, but it's only late symptoms.
The result is confirmed through the 'dmesg | grep pcan' command, the upper ...
by jyjeong
Tue 19. Sep 2023, 09:45
Forum: PCAN-USB
Topic: LINUX_CAN_Statistics and TPDIAG.wErrorFlag
Replies: 10
Views: 6847

Re: LINUX_CAN_Statistics and TPDIAG.wErrorFlag

This is result of 'cat /proc/pcan'.
by jyjeong
Tue 19. Sep 2023, 08:56
Forum: PCAN-USB
Topic: LINUX_CAN_Statistics and TPDIAG.wErrorFlag
Replies: 10
Views: 6847

LINUX_CAN_Statistics and TPDIAG.wErrorFlag

I want to check PCAN-USB state.
By using libpcan.h and pcan.h, I used LINUX_CAN_Statistics function and read TPDIAG.wErrorFlag.
I kept checking the status with the print statement while using it.
I found wErrorFlag is 14 and status is 0x000e. (I checked 0x000e with cat/proc/pcan.)
What is mean ...