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.

Using C6678 simulator with NDK Library to access Socket

Other Parts Discussed in Thread: CCSTUDIO

Hello everyone!!

I have been stuck with a small task that i have been trying to do, for almost 10 days now. Since i am running out of time and options, i thought of posting it here. With so many knowledgeable members in one place, im sure i'll get guidance in the right direction.

To explain the task on my hands briefly, i want to create a project in CCStudio which reads data from a TCP/UDP socket. I have created few modules using DSPLIB and IMGLIB. These modules are supposed to run on different cores. These modules are all working fine, i have tested them individually but not collectively. This is where the problems start. I have a windows application that my team-mate has created. This application reads a data file, does some processing and puts the resulting data in a UDP socket. My CCS project (containing all the modules) is supposed to get that data from the socket and use it as input for processing. In CCS, im using the C6678 Functional Simulator.

Now, from what i have read about the NDK libraries, i understand that if i had a DSP board, it would have been possible to read the incoming data from the Windows appl. Unfortunately, we do not have the DSP board as of yet, and hence i was thinking if we can use the simulator in CCS we can continue with our development work.

Also, i have built the NDK library with Simulator Support. But i am not sure about where to go from here. If anyone has some knowledge about working with simulators and NDK, please nudge me the right direction. Me and my team will be really grateful.

  • Saurabh,

    Have you tried running the basic NDK client example with simulator as per below steps?

    http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide#Building_and_running_NDK_client_example_with_simulator

    If not, then I would suggest you do that as first step because it will allow you to configure your simulator to send out packets. 

    Please run that and let me know if you face any problem.

    Regards,

    Bhavin

  • Hello Bhavin.

    Thank you for replying.

    No, i haven't tried running the basic NDK client example. Actually, its the first time i am seeing this link. Anyways, will give it a try now. I'll update this thread once i try the example.

    Once again, mighty thanks Bhavin :)

  • Hi.

    I have tried the basic NDK client example as suggested by you. i think it worked since i get these messages in the console,

    [TMS320C66x_0] QMSS successfully initialized
    [TMS320C66x_0] CPPI successfully initialized
    [TMS320C66x_0] PA successfully initialized
    [TMS320C66x_0]
    [TMS320C66x_0] TCP/IP Stack Example Client
    [TMS320C66x_0] PASS successfully initialized
    [TMS320C66x_0] Ethernet subsystem successfully initialized
    [TMS320C66x_0] Ethernet eventId : 48 and vectId (Interrupt) : 7
    [TMS320C66x_0] Registration of the EMAC Successful, waiting for link up ..
    [TMS320C66x_0] Network Added: If-1:192.168.2.100
    [TMS320C66x_0] Service Status: Telnet   : Enabled  :          : 000
    [TMS320C66x_0] Service Status: HTTP     : Enabled  :          : 000

    I have seems these messages when i had ran the example on the evaluation board. Also, i checked the simulator with *ping* command and it worked fine.

    Now, how do i link up with the simulator using WinPcap??

  • Saurabh,

     

    Simulator is using WinPcap to do the communication. Now as you are able to ping to the simulator, what do you want to use WinPcap for?

     

    Regards,

    Bhavin

  • Bhavin,

    Ok. I thought WinPcap has to be externally included for linking up with the simulator. Thanks for clearing it up.

    Also, can i run the Image Processing Demo project using the functional simulator now that i have enabled Simulator support and done all necessary changes??

  • We have not tried running image processing demo in simulator. It should run fine, but I don't think anybody tried it.

    However, there is a version of image processing demo provided in the release (mcsdk_#_##_##_##\demos\image_processing\serial) , which is single threaded. This is run on simulator. But, it does not use NDK, it uses file IO to read and write image data.

    Regards

    Sajesh