You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+62-1Lines changed: 62 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# pico-lorawan
2
-
Enable LoRaWAN communications on your [Raspberry Pi Pico](https://www.raspberrypi.org/products/raspberry-pi-pico/) or any RP2040 based board using a [Semtech SX1276 radio module](https://www.semtech.com/apps/product.php?pn=SX1276).
2
+
Enable LoRaWAN communications on your [Raspberry Pi Pico](https://www.raspberrypi.org/products/raspberry-pi-pico/) or any RP2040 based board using a [Semtech SX1276 radio module](https://www.semtech.com/apps/product.php?pn=SX1276) or [Waveshare's SX1262-based LoRaWAN module](https://www.waveshare.com/wiki/Pico-LoRa-SX1262-868M).
3
3
4
4
Based on the Semtech's [LoRaWAN end-device stack implementation and example projects](https://github.com/Lora-net/LoRaMac-node).
5
5
@@ -11,9 +11,13 @@ Based on the Semtech's [LoRaWAN end-device stack implementation and example proj
11
11
* Semtech SX1276 board
12
12
*[Adafruit RFM95W LoRa Radio Transceiver Breakout - 868 or 915 MHz - RadioFruit](https://www.adafruit.com/product/3072)
13
13
*[Adafruit LoRa Radio FeatherWing - RFM95W 900 MHz - RadioFruit](https://www.adafruit.com/product/3231)
@@ -26,8 +30,63 @@ Based on the Semtech's [LoRaWAN end-device stack implementation and example proj
26
30
| GPIO 9 | RESET |
27
31
| GPIO 10 | DIO1 / G1 |
28
32
33
+
Default Pinout for Semtech SX1262 on Waveshare Pico-LoRa-SX1262-868M:
34
+
35
+
| Raspberry Pi Pico / RP2040 | Waveshare Pico-LoRa-SX1262-868M |
36
+
| ----------------- | -------------- |
37
+
| 3.3V | VCC |
38
+
| GND | GND |
39
+
| GPIO 10 | SCK |
40
+
| GPIO 11 | MOSI |
41
+
| GPIO 12 | MISO |
42
+
| GPIO 3 | NSS / CS |
43
+
| GPIO 15 | RESET |
44
+
| GPIO 20 | DIO1 |
45
+
| GPIO 2 | BUSY |
46
+
29
47
GPIO pins are configurable in examples or API.
30
48
49
+
## Enabling support for Waveshare Pico-LoRa-SX1262-868M
50
+
51
+
By default this library only supports the Semtech SX1276 boards mentioned in the first section. Support for Waveshare's SX1262-based Raspberry Pi Pico Hat is available, but needs to be enabled actively.
52
+
53
+
Take the following steps to switch from SX1276 to Waveshare SX1262 support:
54
+
55
+
Uncomment
56
+
57
+
```
58
+
set(WITH_WAVESHARE_SX126X ON)
59
+
```
60
+
61
+
in `CMakeLists.txt`.
62
+
63
+
In your example application, e.g. otaa_temperature_led/ set the region to EU868 in `config.h`:
64
+
65
+
```
66
+
#define LORAWAN_REGION LORAMAC_REGION_EU868
67
+
```
68
+
69
+
_(and also provide your Device EUI, App EUI and App Key here!)_
70
+
71
+
In the example application's `main.c` make sure that you're using the proper `sx12xx_settings` for your SX1262 Waveshare module:
_**There is no guarantee that other SX1262-based boards will work. Tests have only been run using Waveshare's board.**_
89
+
31
90
## Examples
32
91
33
92
See [examples](examples/) folder.
@@ -60,5 +119,7 @@ make
60
119
61
120
A big thanks to [Alasdair Allan](https://github.com/aallan) for his initial testing of EU868 support!
62
121
122
+
Thanks to Waveshare and [siuwahzhong](https://github.com/siuwahzhong) for providing their modified version of this library. Parts of their work have been merged back into this library by [Thomas Leister](https://github.com/ThomasLeister). Original source: [ZIP](https://www.waveshare.com/w/upload/0/08/Pico-LoRa-SX1262-868M_Code.zip) | [GitHub](https://github.com/siuwahzhong/lorawan-library-for-pico)
123
+
63
124
This project was created on behalf of the [Arm Software Developers](https://developer.arm.com/) team, follow them on Twitter: [@ArmSoftwareDev](https://twitter.com/armsoftwaredev) and YouTube: [Arm Software Developers](https://www.youtube.com/channel/UCHUAckhCfRom2EHDGxwhfOg) for more resources!
0 commit comments