2
2

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.

RAK811 V3.0.0.x firmware でThe Things Networkにつなげるよ

Last updated at Posted at 2019-07-28

RAK811の新ファームV3.0.0が公開されています。
今までと若干仕様が異なるので、The Things Network(TTN)への接続方法を書いてみます。

今回の設定資料です。
https://downloads.rakwireless.com/en/LoRa/RAK811/Application_Notes/Get_Start_with_RAK811_WisNode-LoRa.pdf?fbclid=IwAR0nI5AbXMvT2BLF3pjbDyn0WSA0v0tLeNvtC1L6HernVUEXKvv5RhZQkOw

**新ファームは、ブートローダーを使用することで、Bootピンを使用しない上、OTA書き込みが可能になったようです。

ファームウェアがすでにV3.0.0.xの人は、ここを読み飛ばしてください。
まずは、STM32CubeProgrammerをダウンロードします。
https://www.st.com/ja/development-tools/stm32cubeprog.html#overview

インストールです。
STM32programer-1.jpg
STM32programer-2.jpg
STM32programer-3.jpg
STM32programer-4.jpg
STM32programer-5.jpg
STM32programer-6.jpg
STM32programer-7.jpg
STM32programer-8.jpg
STM32programer-9.jpg
STM32programer-10.jpg

起動します。
接続しているCOMポートを指定しConnectします。
この時に、RAK811のBootピンをVCC(3V)に接続してください。
STM32programer-11.jpg
ここではBoot部分を書き込みます。
STM32programer-11-2.jpg

ファームウェアは、こちらになります。
https://downloads.rakwireless.com/en/LoRa/RAK811/Firmware/
RUI_RAK811_V3.x.x.x.H_Release.bin
RUI_RAK811_BOOT.bin
をダウンロードしておきます。
今回使用するのはRUI_RAK811_BOOT.binです。

**RUI_RAK811_V3.x.x.x.H_Release.binはHとLがあります。
Lは、低周波数用、Hは高周波数用で、日本で使う場合は、Hを使用します。
モデムチップに使われているSX1276は全帯域をサポートしていますが、
SX1278 などは、日本の帯域では使用できないので要注意です。

V3.0.0.xの人はここから読んでください。

次に、RAK LoRaButton Upgrade Tool V1.0.exeを起動しファームを書き込みます。
https://downloads.rakwireless.com/en/LoRa/RAK612-LoRaButton/Tools/

RAK-Update-1.jpg
RAK-Update-2.jpg

書き込み終了後 teraTermなりで接続します。

*RAK_SERIAL_PORT_TOOLTOOLでも可能
https://downloads.rakwireless.com/en/LoRa/RAK811/Tools/

at+version でバージョンを表示します。
at+get_config=device:status
でデバイスステータスを表示するよ

RAK-Update-2-0.jpg

・at+set_config=lora:work_mode:1
X definition: 0: LoRaWAN, 1: LoRaP2P, 2:Test Mode.
・at+set_config=lora:join_mode:0
X definition: 0: OTAA, 1: ABP
・at+set_config=lora:class:0
X definition: 0: Class A, 1: Class B, 2: Class C
・at+set_config=lora:region:AS923
RAK-Update-2-1.jpg

ここからは、The Things Networkの設定をしていくよ。
こちらを参考に設定します。
https://qiita.com/usashirou/items/f713b61362edf10c347d

・at+set_config=lora:dev_eui:XXXX
・at+set_config=lora:app_eui:XXXX
・at+set_config=lora:app_key:XXXX

最後に
at+join
と入力すると
[LoRa]:Joined Successed!
と出たら成功です。
RAK-Update-2-3.jpg

RAK-Update-2-4.jpg

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?