-
Notifications
You must be signed in to change notification settings - Fork 4
Dragino LSN50 Node
IoTThinks.com edited this page May 14, 2020
·
25 revisions
To use Dragino LSN50 as LoRaWAN node
- Manual: Dragio LSN50 UserManual 1.6.2 and LSN50_LoRa_Sensor_Node_UserManual_v1.6.2.pdf
- Hardware is Dragino LSN50 v1.0: https://wiki.dragino.com/index.php?title=Lora_Sensor_Node-LSN50
- Internal LoRaST module: https://wiki.dragino.com/index.php?title=LoRa_ST
- All firmware and manuals for LoRaST: http://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/
Original at https://github.com/dragino/Lora/blob/master/LoRaST/v1.0/LoRa%20ST%20v1.0_Sch.pdf
Driver is at https://www.st.com/en/development-tools/st-link-v2.html#tools-software
- LSN50 -> STLink v2
- PA14 -> SWCLK
- PA13 -> SWDIO. NOTE: NEXT TO PA13 is PB14. WE NEED PA14!!!
- VCC -> 3.3+
- GND -> GND
Switch of LSN50 is ISP to upload code. It's recommended to remove UART TTL USB before uploading code via STLink
STLink v2 will show up in USB Device, not Ports (COM & LPT)
- LSN50 -> CP1202 USB TTL
- GND -> GND
- PA2 -> RX
- PA3 -> TX
- STM32 Flasher: https://www.st.com/en/development-tools/flasher-stm32.html
- Use USB UART TTL to upload: Plug in battery, switch to ISP and reset board
- After finish uploading, swith to Flash and reset board to run.
Select the first one.
References:
- All LoRaST references: http://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/
- LSN50 AT Commands v1.6.3: http://www.dragino.com/downloads/downloads/LSN50-LoRaST/DRAGINO_LSN50_AT_Commands_v1.6.3.pdf and DRAGINO_LSN50_AT_Commands_v1.6.3.pdf
Use UART TTL
- Speed 9600
- Data 8 bit, Parity none, Stop bits 1, Flow control none.
To join ABP into Single channel gateway
- AT+FDR Reset Parameters to Factory Default, Keys Reserve
- AT+NJM=0 Set to ABP mode
- AT+ADR=0 Set the Adaptive Data Rate Off
- AT+DR=3 Set Data Rate (SF9, 125Khz)
- AT+TDC=300000 Set transmit interval to 5 minutes
- AT+CHS=433175000 Single channel mode
- AT+RX2FQ=433175000 Frequency for RX2
- AT+DADDR=? Get Device Address to 26 01 1A F1
- AT+CFM=1 ConfirmedDataUp
- ATZ Reset MCU
LoRaWAN Frequency - Use Channel 0
- { 433175000, 125, 7, 12, 433175000, 125, 7, 12}, // Channel 0, 433.175 MHz/125 primary
- { 433375000, 125, 7, 12, 433375000, 125, 7, 12}, // Channel 1, 433.375 MHz primary
- { 433575000, 125, 7, 12, 433575000, 125, 7, 12}, // Channel 2, 433.575 MHz primary
- { 433775000, 125, 7, 12, 433775000, 125, 7, 12}, // Channel 3, 433.775 MHz primary
- { 433975000, 125, 7, 12, 433975000, 125, 7, 12}, // Channel 4, 433.975 MHz primary
- { 434175000, 125, 7, 12, 434175000, 125, 7, 12}, // Channel 5, 434.175 MHz primary
- { 434375000, 125, 7, 12, 434375000, 125, 7, 12}, // Channel 6, 434.375 MHz primary
- { 434575000, 125, 7, 12, 434575000, 125, 7, 12}, // Channel 7, 434.575 MHz primary
- { 434775000, 125, 7, 12, 434775000, 125, 7, 12} // Channel 8, 434.775 MHz primary
Data rate - Use DR3
Easy LoRaWAN WiKi