lundi 11 décembre 2017

IoT Device Management Design Pattern

Hi, I'm tring to build Sensor Network at home. I have different type of sensors, and the data collect and sent by raspberry-pi to Server, using mqtt. On server side, I have Java app, mqtt broker, mysql database. Simply, Java app listens mqtt topics that raspberry-pi publishes, and put them into database. I made a simple web page to see data with graphics, charts etc. I wanto to make it better and want to control raspbery-pi remotely. I made some command list ant iplement in raspberry-pi without toruble. However, when the pi doesnt internet connection, or something went wrong, I couldn't understand without exemining the pi. I want to send logs to server and want to see what happens/happened on ui.

To seeing up or down, I think I have to implement some periodic ping/pong over mqtt. But I dont know what to do with logs. Should I send in application live, or rsyslog or other linux applications can make this more elegantly. Or should I have write some shell scripts and use with cron.d?

Second problem for me, I want to add remote firmware update on raspberry-pi. What is the software design idiom for remote update (ota)?

Aucun commentaire:

Enregistrer un commentaire