cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Remote frames in can-bus ??

truf9
Associate II
Posted on March 27, 2007 at 11:33

How to use Remote frames in can-bus ??

2 REPLIES 2
truf9
Associate II
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

truf9
Associate II
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