2008-07-21 20:02:58     Simultanous sending and receiving on can bus ( BF537 )

2008-07-21 20:02:58     Simultanous sending and receiving on can bus ( BF537 )

Tilman Glötzner (GERMANY)

Message: 59160   

Hello

I would like to write a little program that sents a can message, while listing at the same time for a response from the CAN nodes connected to the BF537's CAN interface.

I tried to do this on the command line by 'cat /dev/can0 & ' and then using can_send.  Unfortunatelly, this locks the can0 device, so that I cannot sent the can message. The demo programs in user/can4linux/ do not really offer a clue.

Thanks

Tilman

QuoteReplyEditDelete

2008-07-21 22:37:16     Re: Simultanous sending and receiving on can bus ( BF537 )

Yi Li (CHINA)

Message: 59166   

I think you can write a program, open the CAN device (e.g, /dev/can0), then do read() and write() on it. Please refer to can4linux/transmit2.c.

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.