Hi,
we have an issue with the MCB1800 board with RTX5:
we use the board to receive midi notes over IPmidi:
Now we have some problems to detect every UDP frame, there are a lot of lost packets. The callback function doesn‘t recognize the frames.
There is only one active thread and the packets are very periodically ( ~ every 30ms / 36 bytes ).
We checked twice that the data was send correctly ( with Wireshark and another application on a notebook)
Do you have any idea what it might be?
We‘ve tried a few things: -lwip instead of the MDK Middleware -FreeRtos and the older RTX versions
Best regards,
We used the MCB4300 and MDK Middleware and tested the ethernet performance at the 180MHz processor clock. The device can send and receive 15000 UDP packets with 256 bytes per second. That UDP data was not processed in the test. This is probably enough for your case, but we need more information.
The processing pipeline looks like that:
Callback Loop for the received data ->copy the data to a global Variable Leave the callback
In the network thread we just count the Midi information ( Note on/ Note off )
After that, the thread is finished and wait for a new Midi frame
What is the expected rate of UDP packets?
You should be able to process UDP packets in millisecond intervals, that is 1000 packets per second.
This UDP packet rate would be enough, But it doesn‘t work.
Do I need a special configuration of the RTX system?
Most of our config is default.
It's probably a configuration problem. Did you use the latest CMSIS driver, MDK Middleware? Use the debugger and try to identify the bottleneck.
I know this answer is generic, but I need more details for a more specific one.