ApacheTech Consultancy Posted February 18, 2013 Share Posted February 18, 2013 Hi, For a university assignment, I'm currently writing an application which gathers information given to it by an Arduino device, stores that information in log files which can be read in graphical form and gives a real-time update graph of the results. The application is designed around a Server Room Automated Sensor Array. The Arduino measures the operational temperature of two servers, the ambient temperature of the room, the level of power in the two UPSs and (using a Throwing Star LAN Tap) monitors whether the redundant trunk line is in use or not. If it is, it alerts that the main trunk line is faulty. I would like to code this as two/three separate applications. First will be the backbone. A daemon application which just sits there and collects the information, writes log files and fires off events whenever data is received. The second application will connect to the daemon and listen to the events being fired and update a live streaming graph (Currently using Microsoft Charting). As well as this, or maybe in a third application, it will allow the user to display graphs and data generated from the log files (saved as a 24hour log). I'm using an Event Driven Observer pattern for the whole project. I have the daemon (ardsvrmond.exe) working, perfectly as a Console Application. It just sits there firing off events and writing logs all day long. I'm using the following line keeping it open as a daemon: // Keep the application open to listen to events. new System.Threading.AutoResetEvent(false).WaitOne(); But, now, what is the best way to make an IPC call to or hook on to the ardsvrmond.exe process so that the second application can subscribe to its events? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.