Skip to content

swinton/Virtual-Serial-Ports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

1. Install socat

$ brew install socat

2. Create a pair of virtual serial ports

$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2011/08/25 21:31:10 socat[57798] N PTY is /dev/ttys005
2011/08/25 21:31:10 socat[57798] N PTY is /dev/ttys006
2011/08/25 21:31:10 socat[57798] N starting data transfer loop with FDs [3,3] and [5,5]

3. Communicate between ports using in.py (reads from port) and out.py (writes to port)

About

Creating virtual serial ports using socat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages