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.

NDK static Ip

Other Parts Discussed in Thread: OMAPL138

Hello all,

I am using LogicPD's evmomapl138, ccs v5,  sys/bios 6.33.1.25, nsp 1.10.0.03, and ndk 2.20.6.35.

I've ran the helloWorld example using DHCP and it has worked correctly. I've modified the code to only receive messages, instead of serving as an echo, using DHCP and it has also worked correctly. I am trying now to send messages from another evm using a crossover cable and using a staitc ip address but I have not been successful. The console shows I am acquiring an IP address but never recevies any message. I have set a breakpoint in the receive function but it never gets there so I am assuming there is no communication. The client code I am using works because it has been tried out with an example of the same sort but using starterware's lwip.

So, now i wonder is there anything else that I need to do when setting a static IP address. What I have done, so far, is go to the .cfg file and entered the IP address in the address column. Is there anything else you need to change in the deamonNew function or in the config file?

Please let me know of any suggestions.

Thank you,

Michelle

  • Michelle,

    did you set up the arp table accordingly on your system that sends the packets? The NDK docs describe how to do this with Windows for example

    >arp -s 192.168.1.4 00-11-22-33-44-55

    You need to use the IP and MAC addresses of your OMAPL138 device. Otherwise the test PC does not know where to send the packets (if your client code is IP based). You may need to use wireshark to make sure your test PC is really sending the packets.

    Regards.