To understand the problem clearly, pl check the following things. Board A # ./cansend can0 123# Board B #./candump can0 can0 123 [0]
Also, Pls give us the input that whether it works fine with "cangen can0 -v". The default delay between the sent frames is 200ms. But you are setting the 20ms. Perhaps there may be a timing issue. Also, what is the bitrate setting. Thanks & Regards, Navaneethan P Lei Luo <[email protected]> Sent by: [email protected] 06/08/2010 09:44 PM To [email protected] cc Subject [Socketcan-users] data not been recieved correctly Hi, I used socketcan in my board with mcp2510 can controller. Things are all OK at first. But when I connect two boards with can network and run "cangen" in one board, the other board didnot recieve the correct data all the time. Such like follows: When board A runs ./cangen can0 -g 20 -I 222 -D i -v The display is ... can0 222#58.00 can0 222#59.00.00.00.00.00.00.00 ... That's OK. At the same time, board B runs ./candump can0 The display is ... can0 222 [2] 58 00 can0 222 [8] 58 00 00 00 00 00 00 00 ... This error repeats many times. I found that, whenever it appears, the length of the wrong frame must be 8 bytes. Who knows why it happens? And another questions. In ××_probe (such as mcp251x_probe), it is set that priv->can.clock.freq = pdata->oscillator_frequency / 2; Why the oscillator_frequency should be divided? Thanks for any answers Regards, Robert_______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
_______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
