I have to do a project based on the Internet of Things. It's a project that seems simple. But I need to control multiple devices through software and need help in the control part of of RS232.
I have a board with Linux Mint and is the ttyUSB0 port I use to connect a high precision scale. Since Linux with Minicom I can open the port and read activity weighs smoothly. The communication channel and port work perfectly.
I am using Python and PySerial library, as I also use PyCharm IDE. The scale sends information through the serial port when it is inactive 00.00 and value in Kilograms (25,310) when there is activity. I need to know how to capture the non-zero value, print it on the screen in real time and store it on a database.
I have some ideas of how to treat the data, but need help. I need to capture the weight from the scale, display it and store it next to a date. Any information on how to program this device will be very useful. Thank you very much.