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?

ROSがシリアルポートの入力を読み込まない

Posted at

ROSでデバイスの入力を取得する時に、以下のようなエラーが出てました。

$ Cannot open /dev/ttyS0: Permission denied

シリアル通信の権限が許可されていないようです。

原因

LinuxはUSBなどハードウェア機器を表すファイルは/devに保存されています。
/dev/ttyS0はttyS0というデバイスのことを保存しており、権限不足のため、このデバイスにアクセスできないわけです。

解決方法

権限を付与するだけで治ります。

sudo chmod 666 /dev/ttyS0

再起動ごとに実行する必要があります。

参考文献

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?