【问题标题】:Socat Windows serial port accessSocat Windows 串口访问
【发布时间】:2013-11-07 14:58:34
【问题描述】:

我想将我的串口 COM10 植根到 LAN --> LAN 到 COM12

因此我需要 windows 版本的 socat 的等效命令:

socat -d -d -d TCP4-LISTEN:23000,reuseaddr,fork /dev/ttyS0

如果我想访问我的 COM10,我必须在 Windows 下输入什么而不是 /dev/ttyS0

发件人:socat -d -d -d TCP4:loalhost:23000 /dev/ttyS1

接收方:socat -d -d -d TCP4-LISTEN:23000 /dev/ttyS2

提前致谢!

【问题讨论】:

    标签: serial-port tunnel socat


    【解决方案1】:

    使用标准 Linux 命名约定:
    /dev/ttyS0 相当于 COM1
    /dev/ttyS1 ~ COM2
    ...所以 COM10 应该是 /dev/ttyS9

    http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多