Hello!
I tested a pair of program that transmit and receive the digital data of a photocell or in the other word send a byte through the CAN to the receiver part. It's by SN65HVD230Q transceiver but my program is failed. I guess the transmission part is valid and the receive part is wrong. I tested the Tx pin of transmission part in the oscilloscope and saw the pulses with about 500ns width. I can't get any answer in receiver part at all
. I had used MCP2551 for many times, has my CAN controller been failed because of this?
((
hello guys!
I found commands that solve this problem! :
void setup()
{
Serial.begin(9600);
Can0.begin(CAN_BPS_250K);
int filter;
//extended
for (filter = 0; filter < 3; filter++) {
Can0.setRXFilter(filter, 0, 0, true);
}
//standard
for (int filter = 3; filter < 7; filter++) {
Can0.setRXFilter(filter, 0, 0, false);
}
}
But can any one say how does it solve my problem?