Hi all,
I am using a Concerto Control Card with on board Ethernet controller, CCSv4.2.5 and SYS/BIOS (bios_6_33_02_31). The aim of may software development is, to have an application which acquires data of various sensors over I²C, display status information over SPI and LCD and to send the collected sensor data via Ethernet (currently with TCP/IP) to a central computer in a small subnet running a data base.
Without the Ethernet part, everything is running perfectly so far. I adapded the enet_uip example comming with controlSUITE. After establishing a connection (socket), the collected data should be sent from the Concerto server to the central computer (client, only triggers transmission once) without further bidirectional communications. We developed a special frame structure with time stamps for tramsmitting the collected sensor data.
Two bad things happen concerning Ethernet communications with SYS/BIOS in my application:
1. Some frames are missing (every tenth, frame rate: 10Hz, each frame about 50 to 100 bytes), some frames arrive twice
2. The application hangs after some indefinet time. I was not able to localize or reproduce the source of the error.
I spent hours of debugging and trying out various settings and changes of TCP/IP parameters in the program. Without success. Now, my hopes are on the one hand the MCUSDK with CCSv5 which I'am waiting for to be released and on the other hand the usage of UDP instead of TCP/IP, because flow control isn's that important as everything happens only in a small subnet with about five communication nodes, end points respectively.
So, after a brief description, please help me answer the following questions:
1. I think, UDP is the more appropriate protocol for my application. Where can I find example applications using C2000 with UDP? Is it better to use lwIP or uIP, ore some other third party support?
2. When will it be possible to get a copy of the announced MCUSDK packet? I would be very happy with an alpha or beta version
3. Which way of integrating Ethernet communications (either TCP/IP or UDP) in an RTOS, preferably SYS/BIOS can you recommend?
Currently, my feeling is, that the biggest problem is the lack of insight in what the adapded enet-uip application, it's TCP/IP stack respectively, exactly does in my application.
Many thanks in advance for your help, best regards:
Andreas