Part Number:AM5728
Hi: I've been working with the Sitara AM5728 for about 6 weeks now. I've just been prototyping, trying to build some libraries to perform some basic things like using using SPI to acquire data from ADS114 and ADS1118 boards (A/D data) or sending CAN messages between a Tiva and a Sitara processor. I've gotten that stuff to work. I've tried to look through the TI forum for help in solving the various issues I've run into, but the common TI forum scenario is: 1. quite a few people have the same or similar issue as I'm having, 2. there will be a series responses and more questions between the user and TI support, 3. the thread finally gets locked 4. I read through the thread from beginning to end a few more times, 5. I usually never find the answer to the original question.
My current issue is that I need to: 1. have a TCP/IP client send and receive messages to a TCP/IP Server. This is very basic stuff. I've done this many times in many languages (C, C++, C#, VB) using many different OSs and SDKs. But I have not been successful with the Sitara.
What I would like to initially prototype is: just have the TCP/IP client send a message to a TCP/IP server. (I'll figure out the other use case, once I seen an actual example that works)
Could someone actually send me a code snippet that does this? There must be hundreds of users that are already doing this.
I'll have a PC acting as the server running some test code that will print out any message. I( can also watch the packets via Wireshark.
The code snippet can be for Linux or RTOS (I'll use either)
I need to have the TCP/IP communication pass through one of the 2 default PRU RJ45s : PRU1-ETH0 or PRU2-ETH1
Please don't refer me to another example that might be similar - I've already tried and failed to get those working
I just need one snippet that shows 1. setting up the socket, 2. connecting to the server, and 3. sending 1 message
Thanks in advance.