Part Number: AWR1642
Tool/software: TI C/C++ Compiler
I am using awr1642 boards. i am using two boards for CAN communication using canfd driver provided in SDK with type calssic can.
from one board 128 bytes of data is sending.
from second board i am trying to receive the same data by calling CANFD_getData() function. I am able to receive 64 bytes of data only.
I am not understanding the flow here. rxDataLength is always 8 bytes. but it is storing 64 bytes of data. I printed rxData upto 128 bytes.
after 64 bytes printing it is not getting next 64 bytes.
Please guide me with any receive program to receive complete data.
Thanks and regards,
WIll get back to you next week
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Cesar:
To send out 128bytes of data over the CANFD interface, you will need to send out the data in chunks of 64 bytes . What this means is you will need to call CANFD_TransmitData() in a loop till all data is sent out .
This was already indicated to you in your previous post :
Please refer to the example "Object Data Over CAN" in TI Resource Explorer . Refer to function Can_Transmit_Schedule() in mss_main.c which has the reference for sending the data over CANFD in chunks.
In reply to Raghunandan Kamath:
Thank you .
I am able to send 128 bytes of data over classical CAN. In PCAN tool i am receiving the same 128 bytes of data.
Now i connected two AWR 1642 boards. one board sending same 128 bytes data over classical can.
from second board i am trying to receive the data of 128 bytes. I am able to receive only 64 bytes of data.
i tried all the ways. please guide me any code to receive complete data.
In reply to ks prasad:
It's Ok now i am able to receive 128 bytes data. but another problem is one set of 8 bytes is receiving and one is missing because
of synchronization between sender and receiver. I tried with different task sleeps. please guide me to get the synchronization.
thanks and regards,
You can add code to wait for pending transmission before transmitting new message on the CAN interface. This should help with the synchronization.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.