I want to send data from my PI (that doesn't have a serial port) to a serial device.
now for this I understadn I need to create a virtual port on the pi and send the data from it
in windows I use VSPE software , that create my the virtual port and make the connection to the TcoToSerail tcp server (Moxa).
what I have so far is a connection to the TcpServer(the PI is a TCP client ) : from this post :
I use this line only :
socat -,raw,echo=0,escape=0x1d tcp:MYServerIP:12345
and I can se there is a connection (the tcp server show me that my PI is connected )
my question now is :
how do I send to it data? I want to send to the server this message:
"0x02 0x30 0x31 0x03 0x38 0x39"
**** if someone have another solution \ way to do this - I will accept any help