Skip to main content
Visitor II
March 27, 2007
Question

How to use Remote frames in can-bus ??

  • March 27, 2007
  • 2 replies
  • 839 views
Posted on March 27, 2007 at 11:33

How to use Remote frames in can-bus ??

    This topic has been closed for replies.

    2 replies

    truf9Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Hello,

    I develop an can-open slave. After receiving a remote transmission request the ''Message DIR'' in the message object is set to ''transmit''. Then I send the message on the same message object, but it seems as the message is not transmitted. I verified this using a ''can Analyzer''.

    Now I have found CAN_MCR_RMTEN in 91x_can.h. How can I initialise the message object to handle a remote frame??

    I can nowhere find CAN_MCR_RMTEN in the standard library.

    How can I set RmtEn in the IFn message control register??

    Thanks

    Thomas

    truf9Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Hello,

    thanks for the reply.

    I wrote my own CAN_SetRxMsgObj with

    CAN->sMsgObj[msg_if].MCR = CAN_MCR_RXIE | CAN_MCR_UMASK | CAN_MCR_RMTEN | (singleOrFifoLast ? CAN_MCR_EOB : 0);

    Now autonom the RTR-Request is being replied, but with DLC =0 and RTR is set too and no RX-interrupt is being set.

    But I have to toggle the Data for guarding.

    How can I modify the data for autonom request??

    Thanks Thomas