Python library for control of microscope devices, supporting hardware triggers and distribution of devices over the network for performance and flexibility.
This one is a really low-hanging fruit, as pyserial already allows to use TCP. Besides a small change to how TCP commands are sent and received (no termination required), the main change is that instead of using the serial.Serial class directly, instances should be created with the serial.serial_for_url() function instead. This way, the user can specify any protocol and it will just work. For TCP, instead of COM port or device path, a URL needs to be used: socket://192.168.201.200:8095.
This one is a really low-hanging fruit, as pyserial already allows to use TCP. Besides a small change to how TCP commands are sent and received (no termination required), the main change is that instead of using the
serial.Serial
class directly, instances should be created with theserial.serial_for_url()
function instead. This way, the user can specify any protocol and it will just work. For TCP, instead of COM port or device path, a URL needs to be used:socket://192.168.201.200:8095
.