RE: Corrupt bus messages
"John Dammeyer" <[email protected]> Sun, 3 May 2015 23:43:08 -0700
| Newsgroups | gmane.comp.hardware.bus.can |
|---|---|
| Message-ID | <[email protected]> |
Hi Chuck,
Thanks for the feedback. You're not the only one. I dug back into some old
code that used the MCP2510 and this is what I found.
// Allow all messages (Std and Ext) into RX0.
MsgBuf[0] = RXM_OFF+BUKT;
MCP_cnt = 1;
MCP_adr = RXB0CTRL;
MCP_write(channel);
RXM_OFF is defined as 0x60 which is 0b11 just like your example. Oops!
Most of the time I specific either 11 bit or 29 bit IDs so I'm not using
the 0b11 but it's a good warning.
Great Catch!
John Dammeyer