ラズパイでシリアル通信を有効にする手順です。
シリアル通信有効化
コンフィグ変更画面を起動します。
# sudo raspi-config
5 Interfacing Options Configure connections to peripheralsを選択します。
![5 Interfacing Options Configure connections to peripheralsを選択します。](https://growplants.jp/wp-content/uploads/2020/09/1_5-Interfacing-Options.png)
P6 Serial Enable/Disable shell and kernel messages on the serial connを選択します。
![P6 Serial Enable/Disable shell and kernel messages on the serial connを選択します。](https://growplants.jp/wp-content/uploads/2020/09/2_P6-Serial.png)
Would you like a login shell to be accessible over serial? については<No>を選択します。
![Would you like a login shell to be accessible over serial? については<No>を選択します。](https://growplants.jp/wp-content/uploads/2020/09/3_Would-you-like-a-login.png)
Would you like the serial port hardware to be enabled?は<Yes>を選択します。
![Would you like the serial port hardware to be enabled?は<Yes>を選択します。](https://growplants.jp/wp-content/uploads/2020/09/4_Would-you-like-the-serial.png)
設定後、ラズパイを再起動して完了です。
コメント