Reading CAN-BUS data
Posted: Thu Sep 16, 2010 6:05 pm
Hello
I am experimenting with CAN-BUS and I am having a problem reading the can signal
I am checking the buffer and then read the can data, I use the "GetRXData" macro using Parameters buffer 0 index 0 and returning the Value to a variable but the data in the variable is always the same value, I have tried sending a can data Via a PIC chip or “PEAK” can-bus reader/transmitter but it still comes up with the same value, I have proved that can signal is getting through the RX buffer filtering. If use a different chip it returns a different value but again always the same value
Looking at the example programs and instructions I believe I am doing this correctly but as this does not work I am thinking that I am missing something?
I am running 2 PIC18f2585 using the internal can
Any help would be much appreciated
I am experimenting with CAN-BUS and I am having a problem reading the can signal
I am checking the buffer and then read the can data, I use the "GetRXData" macro using Parameters buffer 0 index 0 and returning the Value to a variable but the data in the variable is always the same value, I have tried sending a can data Via a PIC chip or “PEAK” can-bus reader/transmitter but it still comes up with the same value, I have proved that can signal is getting through the RX buffer filtering. If use a different chip it returns a different value but again always the same value
Looking at the example programs and instructions I believe I am doing this correctly but as this does not work I am thinking that I am missing something?
I am running 2 PIC18f2585 using the internal can
Any help would be much appreciated