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.
Dear TI experts,
I am going through the AM243x MCU+ SDK 09.01.00, in Example and Demos ->Ethernet And Networking->Enet Lwip Socket Example , I cannot complete "Enet Lwip Socket Example".
I am using the AM243x MCU+ SDK 09.01.00 and ncat tool in Windows environment.
1. Sample output for CPSW example.
2. Static IP mode.
3. Execute "ncat -l -k -p 8888" command.
4. The results of running "Enet Lwip Socket Example" in my computer.
5. In the app_socket.c -> AppSocket_simpleClient(void* pArg) , I found that FD_ISSET(sock, &readset) has a value of 0, which prevents access to lwip_read(). I tried to solve this problem, but I didn't find the right solution. I don't know if there is some other reason why the data is not being read from host correctly.
6. How can I solve this problem?
Regards,
Weijian Tang
Hi Weijan Tang,
I'm looking into it and will get back with an update. Meanwhile can you please let me know if the IP address of your PC running the NCAT tool was the same as the one being entered in the application (when prompted for server address)?
Regards,
Shaunak
Hi Shaunak,
1. I checked the code and made sure it was the same.
if the IP address of your PC running the NCAT tool was the same as the one being entered in the application
2. IPV4 address(PC) is as follows
3. Client address is as follows
Regards,
Weijian Tang
Hi Weijian Tang,
Can you please help me understand what do you refer to by "not able to complete the example". Is it the "Message from Host not received" you are pointing to
1. Run NCAT TCP Server with the command "ncat -e /bin/cat -kv -l 8888" (as mentioned in the SDK documentation)
This will give you the Response from TCP Server in your application (show the message received from host server as displayed in the SDK documentation sample output).
2. Run NCAT TCP Server with the command "ncat -l -k -p 8888" (as mentioned in your steps above)
In this case I am able to reproduce the same output as you, i.e. no message received from host.
Can you run the 1st command and let me know if you still face the issue? Or if I it is some other issue you are referring to, please let me know the same.
Regards,
Shaunak
Hi Shaunak,
Yes, "Message from Host not received" is the problem I have now.
Is it the "Message from Host not received" you are pointing to
When I run NCAT TCP Server with the command "ncat -e /bin/cat -kv -l 8888" in Windows10 , I get the following error:
Is the command "ncat -e /bin/cat -kv -l 8888" not applicable to Windows10?
Regards,
Weijian Tang
Hi Weijian Tang,
Is the command "ncat -e /bin/cat -kv -l 8888" not applicable to Windows10?
1. I am able to test it on windows,
2. In case you have access to a Linux machine, you can try that as well.
Regards,
Shaunak