2
2

More than 5 years have passed since last update.

シリアルクロスケーブルでhello world

Last updated at Posted at 2013-11-29

シリアルクロスケーブルで2つのサーバーをケーブル接続。

受信側
# cat < /dev/ttyS0

送信側から送られてきたメッセージが表示される状態になる。

送信側
# echo "hello world" > /dev/ttyS0

受信側でメッセージが表示されることを確認。

備考

USB-RS232C変換アダプターを使う場合、/dev/ttyS0ではなく/dev/ttyUSB0になります。
送信は何でも出来、/etc/fstabとか/var/log/messagesとかcatで送ることができます。

2
2
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
2
2