socat TCP4-LISTEN:54322 /dev/ttyUSB1,raw,echo 0,crnl socat /dev/ttyUSB0,raw,echo 1,ispeed 9600,ospeed 9600 stdout socat /dev/ttyUSB1,raw,echo 0,ispeed 9600,ospeed 9600 stdout socat /dev/ttyUSB1,raw,echo 1,ispeed 9600,ospeed 9600 stdout The below given commands route serial data to stdout: The web browser send request to that port and all the incoming data Simply open a web browser and type you ip adress with the port like,ġ92.168.2.75:8083 (for ipv6 try ''':8083''' ). To test this try sending a file using the above mentioned command or, This will print all the data incoming on tcp port 8083 on the terminal. socat TCP-LISTEN:7777 ~/Desktop/filename_2 To transfer data from filename_1 of client to filename_2 of server To send file fro the server: socat TCP:hostname:port filenameįor eg. On the server-side: socat TCP-LISTEN:port filename and In other words, socat sits in the middle of two different sources of IPC and passes data between them (also provides log features). Because the streams can be constructed from a large set of different types of data sinks and sources (see address types), and because lots of address options may be applied to the streams, socat can be used for many different purposes. Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |