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.

the problem with use NDK in omapl138

Other Parts Discussed in Thread: OMAPL138

I have some problems about using NDK,as this.

1. PC IP addr : 192,168,20.45 ,Subnet mask : 255.255.0.0.

2. Embedded devices  IP addr : 192.168.60.198, Subnet mask : 255.255.255.0,this Embedded devices using NDK module,we hypothesis it's Dev 1 at here.

3. Dev 1 as service ,and PC as client( common network tools on pc)

4.by using network tools ,I find PC  can communication with Dev 1, just I don't know that's why,can you tell me?

 

my environment is:

1. CCS version v5.5

2. BIOS version 6.37.2.72,XDC tools 3.25.5.94

3. NDK version 2.24.3.35, NSP 1.10.2.9

 

  • add information,i only using TCP protocol
  • pc and Dev1 use direct connections
  • Hi,
    Which example are you using ?

    We have NDK examples from NSP package.
    ~\ti\nsp_1_10_00_03\packages\ti\ndk\examples

    Can you please elaborate your problem ?
  • Hi,

    Please forgive my poor english , i am try to speak more clear.

    i use ~\ti\nsp_1_10_02_09\packages\ti\ndk\examples\ndk_evmOMAPL138_arm9_client , but this problem happen again,

    Can you give me some good ideas?
  • Able to run the following NDK example without any problem and getting the IP address ?
    ~\ti\nsp_1_10_02_09\packages\ti\ndk\examples\ndk_evmOMAPL138_arm9_client

    Can you please provide the CCS console output log ?
  • console output log :
    [ARM9_0] Using default MAC address
    Using MAC Address: 00-08-ee-03-14-99
    00000.000 MAC Address = 00-08-ee-03-14-99

    00000.000 EMAC should be up and running

    00000.000 EMAC has been started successfully

    00000.000 Registeration of the EMAC Successful

    Network Added: If-1:192.168.60.132
    Service Status: Telnet : Enabled : : 000
    Service Status: HTTP : Enabled : : 000
    Link Status: 100Mb/s Full Duplex on PHY 1


    Can you give me you MSN ID, i think that can be communicate more smoothly
  • Hi,  

    By using the following example, you can open the webpage with the OMAPL138 IP address.( 10.20.162.238)

    ~\ti\nsp_1_10_02_09\packages\ti\ndk\examples\ndk_evmOMAPL138_arm9_client

    The following console log which I got.

    [ARM9_0] Using default MAC address

    Using MAC Address: 00-08-ee-03-14-99

    MAC Address = 00-08-ee-03-14-99

    EMAC should be up and running

    EMAC has been started successfully

    Registeration of the EMAC Successful

    Network Added: If-1:10.20.162.238

    Service Status: Telnet   : Enabled  :          : 000

    Service Status: HTTP     : Enabled  :          : 000

    Link Status: 100Mb/s Full Duplex on PHY 7

    Link Status: No Link on PHY 7

    Link Status: 100Mb/s Full Duplex on PHY 7

    Link Status: No Link on PHY 7

  • Hi user3554786,

    I also tried to run the following NDK example code.

    Its used to receive the UDP packet on port7 and send back to the same IP address.

    PS: I have used "Packet sender" application to send UDP packet from PC.

    ~\ti\nsp_1_10_00_03\packages\ti\ndk\examples\ndk_evmOMAPL138_arm9_helloWorld

    [ARM9_0] Using default MAC address

    Using MAC Address: 00-08-ee-03-14-99

    MAC Address = 00-08-ee-03-14-99

    EMAC should be up and running

    EMAC has been started successfully

    Registeration of the EMAC Successful

    Network Added: If-1:10.20.162.238

    Link Status: 100Mb/s Full Duplex on PHY 7

    UDP packet received  

    UDP packet send back!  

    UDP packet received  

    Modify the file udpHello.c

    Include this line and put some printf.

    #include <stdio.h>

       for(;;)

       {

           tmp = sizeof( sin1 );

           i = (int)recvncfrom( s, (void **)&pBuf, 0, (PSA)&sin1, &tmp, &hBuffer );

           printf("UDP packet received \n");

           // Spit any data back out

           if( i >= 0 )

           {

            printf("UDP packet send back! \n");

               sendto( s, pBuf, i, 0, (PSA)&sin1, sizeof(sin1) );

               recvncfree( hBuffer );

           }

           else

               break;

       }


  • Hi Shankari G,

    sorry,I don't know it's mean, but just please attention my environments.

     I used  tcp protocol , two defferent network, the common network communication directly by reticle.

    but there are can 'speak and listen' normaly, I don't know it's why.

    for speak clearly, I used this examples. I ‘m final purpose is my current's use.

    I can give some informathion about this problem.

     

  • Hi Shankari G,

    I 'm sorry,it 's wrong, the valid  picture is message2.jpg

    my pc network settings 

    examples cfg file settings

    thanks for you help again!

  • Dear Community Member,
    In my understanding, different gateway is used in your IP settings.

    Can you please try this way ?
    PC's IP : 192.168.20.61, IP mask: 255.255.255.0, Gateway IP: 192.168.20.1
    OMAPL138's IP : 192.168.20.70, IP mask: 255.255.255.0, Gateway IP: 192.168.20.1

    Please maintain one gateway either 192.168.60.1 or 192.168.20.1.
    I'm sure that Shankari might have used the same gateway.
    Let her update with IP configurations of PC and OMAPL138.
    Able to ping the OMAPL138 board IP ?

    Sorry for asking the same question which she asked...please helps us to help you.
    Which example are you working with and what issue you are getting ?
    hello world or client example ?
    From Shankari's screen shot, she was able to run the both examples without any problem.