Other Parts Discussed in Thread: C2000WARE
Tool/software:
I am working on to transmit huge data with single CAN message ID by chunking and sending. When I tried to continuously transmit the data with single Message ID using the C2000x library function "CAN_sendMessage" multiple messages are missing (for example if I do 100 message transmission continuously, only 3 are received in Peak-CAN). When I introduce delay of 500us between each transmission I receive 90 packets. When I increase that delay to 1000us I receive all packets. I have seen the C2000x example codes, and it is having delays of 250ms, 500ms, etc... Since my project is stringent on timing, I could not afford that much time in just chunking and sending the CAN messages.
Please let your support to solve this issue ASAP.
The Sample Code is as below
for (int i = 0; i < 100; i++)
{
/* Using C2000x library version function */
CAN_sendMessage(........arguments......);
/* Added Delay */
}
Microcontroller used: F2800157QPHPRQ1
CAN Transceiver used: TCAN1044AVDRBRQ1
Library version used: C2000Ware_v5.00.00.00
IDE used: Code Composer Studio (Version: 12.3.0.00005)