CANbus API hang after sending 64 messages

McCharle
2017-06-30
2022-04-16
  • McCharle - 2017-06-30

    Hello,

    I'm facing a mysterious problem with the CANbus API 1.0.0.3.

    After sending 64 messages, the CANbus hang :

    CECC_S.Application.CAN_TEST.Diag.ctSendCounter : 64
    CECC_S.Application.CAN_TEST.Diag.ctReceiveCounter : 0
    CECC_S.Application.CAN_TEST.Diag.ctRxErrorCounter : 0
    CECC_S.Application.CAN_TEST.Diag.ctTxErrorCounter : 1
    CECC_S.Application.CAN_TEST.Diag.ctLostCounter : 0
    CECC_S.Application.CAN_TEST.Diag.ctReceivePoolSize : 100
    CECC_S.Application.CAN_TEST.Diag.ctReceiveQueueLength : 0
    CECC_S.Application.CAN_TEST.Diag.ctTransmitPoolSize : 9
    CECC_S.Application.CAN_TEST.Diag.ctTransmitQueueLength : 1
    CECC_S.Application.CAN_TEST.Diag.xBusAlarm : FALSE
    CECC_S.Application.CAN_TEST.Diag.usiBusLoad : 0
    CECC_S.Application.CAN_TEST.Diag.xSendingActive : TRUE
    CECC_S.Application.CAN_TEST.Diag.eState : PASSIVE
    CECC_S.Application.CAN_TEST.Diag.uiBaudrate : 500

    I need some help please.

    Thank you very much.

     
  • zoltankoncsik - 2021-04-28

    Hello,

    Can you solved the problem? The same happening here.

     
  • micky - 2022-04-16

    Hi,

    i have the same issue, with a rasppery pi.

    The codesys version i use is the 3.5 SP18 and raspberpy pi runtime with 4.4.0.0. I builed a new kernel for the raspberry pi with enabled realtime patch.

    Does anybody now get around this issue?

    As in the system 2 CANs are used one with the canopen manager which is working fine. Only the can with the CAN API Library is having this issue.

    thanks Micky

     

Log in to post a comment.