AUTOSAR

AUTOSAR

Posts 1-7 of 7
  • User photo
    Enrico Congiu
    The company name is only visible to registered members.
    CAN message buffers
    I am using EB tresos Studio to configure my Basic software.

    I have to set up Communication Stack.

    After importing .dbc file and handling IDs and phisical level of can i tried to use Com_SendSignal(...) to trigger my transmission.

    It is actually working but i found some timing problems.
    If i trigger more than 1 Com_SendSignal(...) (for different messages) consecutively i can just see first message going out.
    If i put some delay between SendSignal functions i see all messages going out.

    It looks like a timing problem and i found out i am using just 1 CAN message buffer, shared for all messages.
    i think it can be the problem.


    Does anybody know how i can associate a specific MESSAGE ID to one specific can MB by tresos?
  • User photo
    Anil Mathews
    The company name is only visible to registered members.
    Re: CAN message buffers
    Hi
    Tresos imports all the messages as BASIC CAN. You need to change them into FULL can in CAN module.
    This might help you.
    Rgds
    Anil
  • Post visible to registered members
  • User photo
    Enrico Congiu
    The company name is only visible to registered members.
    Re^2: CAN message buffers
    i found out the problem..
    now it is ok!

    i was using jus 1 hardware object for all my 4 Tx PDUs and as result i was sending just 1 of 4 messages.
    So i think it was kind of timing problem.

    i added 3 Hardware objects (MB) and linked via CANif module each TxPDU to a specific MB.

    Thank you for suggestions!!

    E.
  • User photo
    Enrico Congiu
    The company name is only visible to registered members.
    Re^3: CAN message buffers
    Is there any way to manage automatically floating point signals?

    i mean:

    i have can communication and in my ECU is arriving sigX contained in msgX.

    Using Com_ReceiveSignal(sigXID, &var);

    supposing var is a floating point data, is there any (provided by autosar standard) way to scale and cast raw data arriving from CAN?

    has "var" to be declared of the same type and size of raw data and scaled/casted afterwards?
  • Post visible to registered members
  • User photo
    Enrico Congiu
    The company name is only visible to registered members.
    Re^5: CAN message buffers
    are you saying the scaling factor issue should be solved at RTE level?