2
1

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.

RN42 Bluetooth Module の Baud rate を変更する

Posted at

RN42 Bluetooth ModuleのBaudRateを変更する.

検証環境

  • macOS Sierra 10.12.6
  • Board: Arduino Pro mini
  • Processor: ATmega328P(3.3V, 8 MHz)

Bluetooth 経由で Baud rate を変更

ペアリング

  • Mac の Bluetooth 設定から RN42 とペアリングする
  • Arduino > Tools > Port からBluetoothのポートを選択

Serial Monitorからコマンドモードに

  • Arduino > Serial Monitor を起動(デフォルトは、Baud rate: 115200)
  • No line ending に変更
  • $$$ を送信
  • シリアルモニタに返り値 CMD が表示されることを確認

Baud rate 変更

  • No line encodingNewline に変更(以降のコマンドは,改行を含む必要がある)
    image.png

  • D を送信し,状態を確認する

  • SU,96 を送信し変更(変更後のBaud rateの頭2文字を指定)

  • D を送信し,再度状態を確認

 参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?