I'm looking for a Windows application to collect data to a host PC from an embedded application (PIC microcontroller). The communication between host and embedded application is via Ethernet.
It would have to be the application that sends data rather than the host go read them.
I was away on a solution using SNMP (with MRTG on the host PC, for example) but this protocol does not send data when they are present on the embedded application : the host retrieves the data at regular intervals. If the host was a UNIX machine, I could use inetd to start the recovery values with MRTG but I don't know an Windows equivalent (and I do not have the skills to program a Windows service).
My next solution is to use a HTTP server on host and send data via GET or POST.
But perhaps there is a better solution. Do you know of software that would do that?
Thanks
-
\$\begingroup\$ If your problem is the PC-side, StackOverflow would be better; if you're looking for a protocol for the uC to communicate with the PC, then it's different. What's the connection now? USB? \$\endgroup\$clabacchio– clabacchio2012年03月27日 09:36:06 +00:00Commented Mar 27, 2012 at 9:36
-
\$\begingroup\$ I'm looking for a solution, for the moment. The embedded application is under development (but not by me) so it doesn't have connection yet but it would be Ethernet. \$\endgroup\$Loïc GRENON– Loïc GRENON2012年03月27日 10:31:27 +00:00Commented Mar 27, 2012 at 10:31
2 Answers 2
It really depends what type of data you're logging at what intervals, etc.
But, you might consider syslog over UDP http://tools.ietf.org/id/draft-ietf-syslog-transport-udp-00.txt
UDP is relatively simple to implement over your ethernet controller.
syslog is standard in unix and supported in windows.
-
\$\begingroup\$ This is an elegant solution that I like. Especially since syslog is ported to Windows. Thanks ! \$\endgroup\$Loïc GRENON– Loïc GRENON2012年03月27日 12:35:48 +00:00Commented Mar 27, 2012 at 12:35
-
\$\begingroup\$ It looks to me already better than my webserver solution. But that of syslog over UDP is even better. \$\endgroup\$Loïc GRENON– Loïc GRENON2012年03月27日 12:45:36 +00:00Commented Mar 27, 2012 at 12:45