Tonight I completed the last portion of this project that I will be able to get done before the submission deadline. I wrote a c++ program running on the BeagleBone Black that processes and saves the serial data from the Gateway to a text file. The text file is read with a JavaScript program that serves up the SCADA webpage. A socket connection updates the state of the system in near real-time. Right now this is mostly working, but it will need further debugging. This is the first part of my Web based SCADA platform that I plan to implement fully for not just this project, but many more to come.
For now, I am only able to read live data. For future improvements, I plan on creating a total solution that will allow changing outputs, modifying control variables, and graphing data. This will all be implemented soon.
I have attached my c++ and JavaScript code for the BeagleBone Black. I have also modified my Arduino code some more and attached it. As with all of the code I have presented with this project, it is far from complete or optimized, but it does work. Here's is a screen shot of my system status tonight:
I hope to add much more in the future, but for now, I have a system that can be controlled by sending serial commands from my BBB command line, and a live graphical status display of the system. I am very happy with the progress I have made during this challenge. I know I would not have pushed myself this hard without the motivation I have gained through weekly blog posts and inspiration from other competitors. I will try to post again tomorrow to summarize the project and wrap things up if I have time before the deadline. Any feedback, suggestions, and questions would be appreciated.
Thanks!
Top Comments