Serial plugin, questions
Posted: Sun Apr 14, 2019 4:29 am
Hello,
I ordered my goverlay screen and i'm happy of this, it work like a charm, but I would like to monitor custom sensors.
I would need any advice to make the work easier, I posted in plugins sections, as I guess I must write a plugin for that.
Application is to display water temperature, and flow value on a dual-loop watercooled computer.
To be short the 4 customs sensors (2 temp and 2 waterflow) will be plugged to an arduino and communication with PC will be done using the COM port.
(simplest way I found to solve the issue as I can't directly plug the sensor on the motherboard)
For this I'm currently working on an arduino sketch, I'm currently able to display water temperature, and I'm working to read correctly water flow sensor.
I did a very basic interface on COM port which can return datas on releveant commands (which i can customize on will) :
Example : Send GET on COM port will return the sensors current values like : FLOWA:0.00|FLOWB:0.00|TEMPA:26.73|TEMPB:26.94
I did a quick look on current plugins and I guess it would be possible to make it work (hwinfo plugin seems to retrieve new sensors from an external application, this looks like close to what i want to do)
All I need would be to create a basic application on the PC that will query the arduino and provide data to the goverlay plugin.
But which method could I use ? Storing values in a file ? hwinfo plugin (I checked very quickly) seems to use a MemoryMappedFile (I don't know that), is it the good way of doing it ? any alternate way ?
Thanks for reading me.
Olivier,France
I ordered my goverlay screen and i'm happy of this, it work like a charm, but I would like to monitor custom sensors.
I would need any advice to make the work easier, I posted in plugins sections, as I guess I must write a plugin for that.
Application is to display water temperature, and flow value on a dual-loop watercooled computer.
To be short the 4 customs sensors (2 temp and 2 waterflow) will be plugged to an arduino and communication with PC will be done using the COM port.
(simplest way I found to solve the issue as I can't directly plug the sensor on the motherboard)
For this I'm currently working on an arduino sketch, I'm currently able to display water temperature, and I'm working to read correctly water flow sensor.
I did a very basic interface on COM port which can return datas on releveant commands (which i can customize on will) :
Example : Send GET on COM port will return the sensors current values like : FLOWA:0.00|FLOWB:0.00|TEMPA:26.73|TEMPB:26.94
I did a quick look on current plugins and I guess it would be possible to make it work (hwinfo plugin seems to retrieve new sensors from an external application, this looks like close to what i want to do)
All I need would be to create a basic application on the PC that will query the arduino and provide data to the goverlay plugin.
But which method could I use ? Storing values in a file ? hwinfo plugin (I checked very quickly) seems to use a MemoryMappedFile (I don't know that), is it the good way of doing it ? any alternate way ?
Thanks for reading me.
Olivier,France