0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ターミナルの代替としての StreamRelay.NET.exe

Last updated at Posted at 2017-05-26

ターミナルの代替としての StreamRelay.NET.exe

.NET FrameworkはSystem.IO.Ports.SerialPortクラスにてシリアルポートを扱うことができてStreamで扱えるようになっている

よって、ポート番号を-4にすると、シリアルポートがストリームのソース(実体)となる

シリアルポート(COM9)へ接続する

StreamRelay.NET.exe -LocalPort 0 -RemotePort -4 -RemoteCOMName COM9

オプション

  • -LocalCOMName "ComPortName"
  • -RemoteCOMName "ComPortName"
  • -LocalBaudRate "BaudRate(9600)"
  • -RemoteBaudRate "BaudRate(9600)"
  • -LocalParity "Parity(None)" [None|Odd|Even|Mark|Space]
  • -RemoteParity "Parity(None)" [None|Odd|Even|Mark|Space]
  • -LocalDataBits "DataBits(8)"
  • -RemoteDataBits "DataBits(8)"
  • -LocalStopBits "StopBits(1)" [0|1|1.5|2]
  • -RemoteStopBits "StopBits(1)" [0|1|1.5|2]
  • -LocalDtrDisable
  • -RemoteDtrDisable
  • -LocalRtsDisable
  • -Remote]RtsDisable

普通の括弧内が既定値で鍵括弧内は、他の指定可能な値


目次へ戻る

目次というか最初の一歩

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?