Error Sending Messages...
Closed this issue · 4 comments
Hi, I am having a trouble ... as if am using CAN shield in Loopback mode then I am receiving the msgs transmitted which confirms that all my connections are fine :
Enter Configuration mode successful!
Setting Baudrate Successful!
MCP2515 Initialized Successfully!
MCP2515 Library Loopback Example...
Message Sent Successfully!
Extended ID: 0x00000100 DLC: 8 Data: 0xAA 0x55 0x01 0x10 0xFF 0x12 0x34 0x56
Message Sent Successfully!
Extended ID: 0x00000100 DLC: 8 Data: 0xAA 0x55 0x01 0x10 0xFF 0x12 0x34 0x56
Message Sent Successfully!
Extended ID: 0x00000100 DLC: 8 Data: 0xAA 0x55 0x01 0x10 0xFF 0x12 0x34 0x56
Message Sent Successfully!
Extended ID: 0x00000100 DLC: 8 Data: 0xAA 0x55 0x01 0x10 0xFF 0x12 0x34 0x56
Message Sent Successfully!
Extended ID: 0x00000100 DLC: 8 Data: 0xAA 0x55 0x01 0x10 0xFF 0x12 0x34 0x56
Message Sent Successfully!
....
But I am getting :
Enter Configuration mode successful!
Setting Baudrate Successful!
MCP2515 Initialized Successfully!
Error Sending Message...
Error Sending Message...
Error Sending Message...
Error Sending Message...
Error Sending Message...
Error Sending Message...
if using in 'Normal mode' when i tried to send data 'using CAN_send' sketch.... i am using CoryJFowler's library for can shield..... Can anyone please help what wrong with it????????
What do you have the shield attached to? If you do not have another CAN device attached, transmission will fail because no other device is sending an acknowledge. Otherwise, check your wiring and bitrate.
The shield is attached to PCAN-USB (via D-sub 9 Connector) and using PCAN-view to monitor the transmit and receive messages.
check your wiring and bitrate.
Now I am getting the 'message sending successful' but it is not showing the data sent. And also I am not able to receive it neither be able trace in receiving side of PCAN-view.
Its only transmitting but not recieving.
I tried changing the bitrates ex: 125, 250, 500, ... but still its the same.
In Normal mode, the shield wont show the data it has sent, but it should show up in PCAN-View. Also, what has been sent by PCAN-View should show up on the Arduino. I have tested my fork of the library extensively with a PCAN-USB dongle for the record.
ya mistakenly I wrote that it is not showing the data sent, it should show on PCAN-view. I figured out what wrong I was doing. It was basically related with the transceiver would not be able to get enough voltage supply. I am done with everything is working perfect!!!!!.
Thanks anyways!!!