This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

TMDXEVM6678LE sending UDP message to desktop, but only one message able to send thru

Intellectual 280 points

Replies: 9

Views: 1594

Hi, I'm currently practicing on some examples as I'm new, and I faced an issue which I'm not sure how to solve, hope u guys can help.

CCS: ccsv5

Board: TMDXEVM6678LE

Problem:

I previously wrote two piece of code, one which sends UDP message and the other receives and displays the messages. I'm trying to load the sending code into the DSP so that it can send messages while my desktop receives.

But currently it seems that I'm only able to receive the latest message sent. Eg:

Core.send(reinterpret_cast<char*>(&sendData1), sizeof(sendData1), "192.168.x.xxx", 50001);

Core.send(reinterpret_cast<char*>(&sendData2), sizeof(sendData2), "192.168.x.xxx", 50001);

Only sendData2 will be sent/received, I've also tried adding a delay between send but doesn't seem to solve. I was wondering if anyone here would have any knowledge or advice on how I could solve this.

 

PS: I'm sorry of my description of the problem is vague, I'll try to provide more information if requested, as I'm not sure what is required. Typing this from my phone as there's no internet on the PC T_T

  • Guru 298315 points

    Hello,

    This is a tricky issue, one that it is hard to give advice since it is most likely system and application specific. I will move this into the keystone forum where the experts there can provide some better suggestions to help debug the issue. If this turns out to be a tools issue, please let me know.

    Thanks

    ki

    -----------------------------------

    Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

    Having CCS problems? Check out the CCS Troubleshooting Guide

    Looking for CCS Training/Documentation? Check out the CCS Resources page

    Curious about the status of a bug and know the tracking ID? Track it via the public bug tracking portal

    NOTE: When a bug is filed and a tracking ID is provided, the thread may then be suggested as "TI Thinks Resolved". Why? Please read the first FAQ of the CCS Forum Guidelines & FAQ

  • Hi,

    I have tested the UDP sends the data from board to PC. You can use the helloworld example from MCSDK. Here you need to replace the udpHello.c and helloWorld.cfg files.

    C:\ti\mcsdk_2_01_02_06\examples\ndk\helloWorld

    In addition that, comment out the "dtask_udp_hello" task in helloWorld.c file like below,

    // Create our local server
    /* hHello = DaemonNew( SOCK_DGRAM, 0, 7, dtask_udp_hello,
    OS_TASKPRINORM, OS_TASKSTKNORM, 0, 1 ); */

    4544.udpHello.c

    0640.helloWorld.cfg

    Regards,
    Pubesh.

    ----------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

  • In reply to Pubesh:

    Hi Pubesh,

    Thanks for responding. Okay, when u said replace udphello.c, u meant replacing the original helloworld.c with the one u provided right? But why do I not see a main function in ur code? Also is the function stack test() not needed?

    PS: I'm working in a non-internet environment so I'm unable to just copy and paste to try it out. I'll have to type n try, but I don't understand why I don't see a main function.

  • In reply to Jing Xuan Lim:

    Jing,

    Replace the original udphello.c file with attached the udphello.c file , not helloworld.c file.

     

    Regards,
    Pubesh.

    ----------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

  • In reply to Pubesh:

    Jing, 

    Before build the project,

    In addition that, comment out the "dtask_udp_hello" task in helloWorld.c file like below,

    // Create our local server
    /* hHello = DaemonNew( SOCK_DGRAM, 0, 7, dtask_udp_hello,
    OS_TASKPRINORM, OS_TASKSTKNORM, 0, 1 ); */

    Regards,
    Pubesh.

    ----------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

  • In reply to Pubesh:

    Jing,

    Find the modified code for UDP send from DSP to Desktop PC IP address. 

    5277.helloworld_evmc6678l.zip

    Regards,
    Pubesh.

    ----------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

  • In reply to Pubesh:

    Jing,

    However this discussion of thread can helpful for future readers, If you verified this thread.

    Regards,
    Pubesh.

    ----------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

  • In reply to Pubesh:

    Yes, it seems to be working.. Just a few modifications vere n there to suit my needs but generally it works.. Thank you so much" :)

  • In reply to Jing Xuan Lim:

    Jing,

    Thanks for the update. Glad to hear, its working your side.

    Regards,
    Pubesh.

    ----------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.