Many questions have been asked on stackoverflow about this (including by me), and an often recurring answer seems to be using software like socat for this. In order to be able to write unittests for the serial port, and to test my software without actually being connected to an inverter, I wanted to have a dummy serial port on my computer that listens for any connections to the port and responds whatever I tell it to. To develop my own software, I needed to interface with a specific inverter, both to intercept the serial communication at first, but later to write my own software. Although hardware manufactures may often be good at making the hardware they sell, their accompanying software often leaves a lot to be desired. Recently I needed to reverse-engineer the serial communication between a solar inverter and a computer. Tags: python pyserial solar pseudoterminal Creating dummy serial ports in pure python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |