Skip to content

Commit 3a6d86b

Browse files
authored
OTTA -> OTAA, added compatibility description
1 parent fb4819a commit 3a6d86b

File tree

21 files changed

+44
-28
lines changed

21 files changed

+44
-28
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,34 @@
22

33
## Overview
44

5-
### SKU:U116/U117/U115
5+
### Compatible Products:
66

7-
Contains M5Stack-**LoRaWAN** series related case programs. The hardware is based on the ASR6501 series of modules to realize the LoRaWAN communication function.
7+
| SKU | Name |
8+
|------|---------------------|
9+
| U115 | Unit LoRaWAN915 |
10+
| U116 | Unit LoRaWAN470 |
11+
| U117 | Unit LoRaWAN868 |
12+
| K061 | Atom DTU LoRaWAN915 |
13+
| K062 | Atom DTU LoRaWAN470 |
14+
| K063 | Atom DTU LoRaWAN868 |
15+
16+
Please note that all the six products above (compatible with this library) are EOL. For new LoRaWAN products like Unit LoRaWAN-US915 (U184-US915) and Atom DTU LoRaWAN-US915 (A152-US915), please use [M5-LoRaWAN-RAK](https://github.com/m5stack/M5-LoRaWAN-RAK) library instead.
17+
18+
Contains M5Stack-**LoRaWAN** series related case programs. The hardware is based on the ASR6501 series of modules to realize the LoRaWAN communication function.
819

920
## Related Link
1021

11-
[Document & AT Command M5Unit-LoRaWAN470](https://docs.m5stack.com/en/unit/lorawan470)
22+
[Document & AT Command Unit LoRaWAN470](https://docs.m5stack.com/en/unit/lorawan470)
23+
24+
[Document & AT Command Unit LoRaWAN868](https://docs.m5stack.com/en/unit/lorawan868)
25+
26+
[Document & AT Command Unit LoRaWAN915](https://docs.m5stack.com/en/unit/lorawan915)
1227

13-
[Document & AT Command M5Unit-LoRaWAN868](https://docs.m5stack.com/en/unit/lorawan868)
28+
[Document & AT Command Atom DTU LoRaWAN470](https://docs.m5stack.com/en/atom/atom_dtu_lorawan470)
1429

15-
[Document & AT Command M5Unit-LoRaWAN915](https://docs.m5stack.com/en/unit/lorawan915)
30+
[Document & AT Command Atom DTU LoRaWAN868](https://docs.m5stack.com/en/atom/atom_dtu_lorawan868)
1631

32+
[Document & AT Command Atom DTU LoRaWAN915](https://docs.m5stack.com/en/atom/atom_dtu_lorawan915)
1733

1834
## License
1935

examples/LoRaWAN_OTAA/LoRaWAN_OTAA.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void setup() {
2222
while (!LoRaWAN.checkDeviceConnect())
2323
;
2424
Serial.println("Module Config...");
25-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
25+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
2626
"0000000000000000", // APP EUI
2727
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
2828
"2" // Upload Download Mode

examples/Unit_LoRaWAN470_M5Atom/Unit_LoRaWAN470_M5Atom.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setup() {
4444

4545
Serial.println("LoraWan config");
4646
// Set Join Mode OTAA.
47-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
47+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
4848
"0000000000000000", // APP EUI
4949
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5050
"2" // Upload Download Mode

examples/Unit_LoRaWAN470_M5Core/Unit_LoRaWAN470_M5Core.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
display.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
54+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5555
"0000000000000000", // APP EUI
5656
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN470_M5Core2/Unit_LoRaWAN470_M5Core2.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
display.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
54+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5555
"0000000000000000", // APP EUI
5656
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN470_M5StickC/Unit_LoRaWAN470_M5StickC.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
display.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
54+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5555
"0000000000000000", // APP EUI
5656
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN470_M5StickCPlus/Unit_LoRaWAN470_M5StickCPlus.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
display.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
54+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5555
"0000000000000000", // APP EUI
5656
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN868_M5Atom/Unit_LoRaWAN868_M5Atom.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setup() {
4444

4545
Serial.println("LoraWan config");
4646
// Set Join Mode OTAA.
47-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
47+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
4848
"0000000000000000", // APP EUI
4949
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5050
"2" // Upload Download Mode

examples/Unit_LoRaWAN868_M5Core/Unit_LoRaWAN868_M5Core.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
Serial.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
54+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5555
"0000000000000000", // APP EUI
5656
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN868_M5Core2/Unit_LoRaWAN868_M5Core2.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
Serial.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
54+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5555
"0000000000000000", // APP EUI
5656
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN868_M5StickC/Unit_LoRaWAN868_M5StickC.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup() {
5050

5151
Serial.println("LoraWan config");
5252
// Set Join Mode OTAA.
53-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
53+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5454
"0000000000000000", // APP EUI
5555
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5656
"2" // Upload Download Mode

examples/Unit_LoRaWAN868_M5StickCPlus/Unit_LoRaWAN868_M5StickCPlus.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup() {
5050

5151
Serial.println("LoraWan config");
5252
// Set Join Mode OTAA.
53-
LoRaWAN.configOTTA("00bb9da5b97addf1", // Device EUI
53+
LoRaWAN.configOTAA("00bb9da5b97addf1", // Device EUI
5454
"0000000000000000", // APP EUI
5555
"27dfe264ca33ac1957c005eb48ba4721", // APP KEY
5656
"2" // Upload Download Mode

examples/Unit_LoRaWAN915_M5Atom/Unit_LoRaWAN915_M5Atom.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
Serial.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("d896e0ff00000240", // Device EUI
54+
LoRaWAN.configOTAA("d896e0ff00000240", // Device EUI
5555
"0000000000000001", // APP EUI
5656
"98929b92f09e2daf676d646d0f61d250", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN915_M5Core/Unit_LoRaWAN915_M5Core.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
Serial.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("d896e0ff00000240", // Device EUI
54+
LoRaWAN.configOTAA("d896e0ff00000240", // Device EUI
5555
"0000000000000001", // APP EUI
5656
"98929b92f09e2daf676d646d0f61d250", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN915_M5Core2/Unit_LoRaWAN915_M5Core2.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
Serial.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("d896e0ff00000240", // Device EUI
54+
LoRaWAN.configOTAA("d896e0ff00000240", // Device EUI
5555
"0000000000000001", // APP EUI
5656
"98929b92f09e2daf676d646d0f61d250", // APP KEY
5757
"2" // Upload Download Mode

examples/Unit_LoRaWAN915_M5StickC/Unit_LoRaWAN915_M5StickC.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup() {
5050

5151
Serial.println("LoraWan config");
5252
// Set Join Mode OTAA.
53-
LoRaWAN.configOTTA("d896e0ff00000240", // Device EUI
53+
LoRaWAN.configOTAA("d896e0ff00000240", // Device EUI
5454
"0000000000000001", // APP EUI
5555
"98929b92f09e2daf676d646d0f61d250", // APP KEY
5656
"2" // Upload Download Mode

examples/Unit_LoRaWAN915_M5StickCPlus/Unit_LoRaWAN915_M5StickCPlus.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup() {
5151

5252
Serial.println("LoraWan config");
5353
// Set Join Mode OTAA.
54-
LoRaWAN.configOTTA("d896e0ff00000240", // Device EUI
54+
LoRaWAN.configOTAA("d896e0ff00000240", // Device EUI
5555
"0000000000000001", // APP EUI
5656
"98929b92f09e2daf676d646d0f61d250", // APP KEY
5757
"2" // Upload Download Mode

library.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "M5-LoRaWAN",
3-
"description": "Library for UNIT LoRaWAN",
4-
"keywords": "M5Stack Unit LoRaWAN",
3+
"description": "Library for Unit LoRaWAN and Atom DTU LoRaWAN",
4+
"keywords": ["M5Stack Unit LoRaWAN", "M5Stack Atom DTU LoRaWAN"],
55
"authors": {
66
"name": "M5Stack",
77
"url": "http://www.m5stack.com"
@@ -10,7 +10,7 @@
1010
"type": "git",
1111
"url": "https://github.com/m5stack/M5-LoRaWAN.git"
1212
},
13-
"version": "0.0.1",
13+
"version": "0.0.2",
1414
"frameworks": "arduino",
1515
"platforms": "espressif32"
1616
}

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name=M5-LoRaWAN
2-
version=0.0.1
2+
version=0.0.2
33
author=M5Stack
44
maintainer=M5Stack
5-
sentence=Library for UNIT LoRaWAN
5+
sentence=Library for Unit LoRaWAN and Atom DTU LoRaWAN
66
paragraph=See more on http://M5Stack.com
77
category=Device Control
88
url=https://github.com/m5stack/M5-LoRaWAN

src/M5_LoRaWAN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ String M5_LoRaWAN::receiveMsg() {
9090
* @param app_key Node AppKey
9191
* @param ul_dl_mode Setting the upstream and downstream co-channel 1:
9292
* Co-channel mode 2: Co-channel mode */
93-
void M5_LoRaWAN::configOTTA(String device_eui, String app_eui, String app_key,
93+
void M5_LoRaWAN::configOTAA(String device_eui, String app_eui, String app_key,
9494
String ul_dl_mode) {
9595
writeCMD("AT+CJOINMODE=0\r\n");
9696
writeCMD("AT+CDEVEUI=" + device_eui + "\r\n");

src/M5_LoRaWAN.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class M5_LoRaWAN {
2626
bool checkDeviceConnect();
2727
bool checkJoinStatus();
2828
void writeCMD(String command);
29-
void configOTTA(String device_eui, String app_eui, String app_key,
29+
void configOTAA(String device_eui, String app_eui, String app_key,
3030
String ul_dl_mode);
3131
void configABP(String device_addr, String app_skey, String net_skey,
3232
String ul_dl_mode);

0 commit comments

Comments
 (0)