I have this serial port Sensor I would like to connect to via TCP . can anyone share socat setup for this kind of connection?
my serial port needs:
- USB -> /dev/ttyUSB0
- BAUDRATE 9600
- DATABITS 8
- STOPBITS 1
- PARITY 0 /NONE
I can read and write to the posrt using minicom but I would like to automate this using java so I need an TCP client for the task to work.
Be able to write and read results form the port.
Thanks.
here is an example that doesnt work:
socat -d -d -d -d -x TCP-LISTEN:7757,reuseaddr,fork FILE:/dev/ttyUSB0,b9600,raw