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
