Hi,
While looking for logging functionality over the UDP connection, I came across this link. However, this link only specifies the associated macros but not the source code for UDP logging itself. Can anyone tell me where can I download the UDP logging code associated with this?
UDP logging is very convenient: it is non-blocking and it is sent to a particular port number on a broadcast address, like e.g. 192.168.1.255.
You can run an UDP client on e.g. 192.168.1.33 and see all logging.
Another good thing of UDP logging is that it gives a “real-time” impression of the events. It will add time-stamps so you can see exactly when things have happened.
The function lUDPLoggingPrintf() will store text in a RAM buffer and add a time-stamp. The actual sending is postponed until a low-priority task will send all messages.
Gaurav showed an URL to the UDP logging for the WinSim project. That version is quite different from the generic version that is used in non-WinSim projects.
You can find one version of UDPLoggingPrintf.c here.