background image

33

/

33

 

 

 

 

EXAMPLES 

 

For finding code examples look at documentation: 

- „LoRaNodeATCommands.pdf“  

- „LoRaNodeLibraryFunctions.pdf“  

 

REFERENCE 

 

1)

 

https://www.thethingsnetwork.org/ 

2)

 

„LoRaNodeLibraryFunctions.pdf“, Documentation for Telethings LoRa Node library 

3)

 

„LoRaNodeATCommands.pdf“,  Documentation  for  Telethings  LoRa  Node  AT 
Commands 

4)

 

„AN4967  Application  note  Examples  of  AT  commands  on  I-CUBE-LRWAN“, 
Docummentation about AT commands 

 

 

Summary of Contents for LoRa Node

Page 1: ...User Manual for Telethings LoRa Node Lejleku a bb 75320 Gra anica Bosna i Hercegovina Tel 387 35 700 209 Fax 387 35 700 201 Mail info TeleThings com Web www telethings com...

Page 2: ...ure 7 Telethings Lora Node as AT Slave device 9 Instalation Hardware and Software 9 Introduction 9 Hardwer preparation 9 Software preparation 12 Telethings Lora Node as programmable device with daught...

Page 3: ...elethings LoRa module i e its technical specifications and how to use it Special attention will be given to the module as an AT Slave device which is a programmable module installed on the Daughter bo...

Page 4: ...Lib Library LoRa Long Range modulation technique MAC Medium Access Control MIC Message Integrity Code MCU Microcontroller unit ND Non define OTAA Over the air activation PHY Physical layer Rx Receive...

Page 5: ...o switch off the main switch The manufacturer will not be responsible for the correct and safe operation of the device if another network adapter is used Clean the device when disconnected do not use...

Page 6: ...range is up to 2 kilometers in urban areas If it is a module that works as an AT Slave device it should be noted that the device as such already has firmware ready for operation and it is necessary t...

Page 7: ...h 32 MHz CPU Host Interface LPUART Power supply 3 3 V 2 A DC External Dimensions 20 x 28 x 2 5mm Weight 20 gr Temperatures Storage temperature 40 65 Operating temperature 35 60 Frequency EU868 863 870...

Page 8: ...SX SPI Chip select MOSI SX SPI MOSI MISO SX SPI MISO DIO0 SX LoRa Sigfox module debug pin DIO1 SX LoRa Sigfox module debug pin DIO2 SX LoRa Sigfox module debug pin GND GND GND GND GND DIO1_SX RESET_SX...

Page 9: ...N PORTB TLN PIN6 TLN PB7 TLN PORTB TLN PIN7 Table 1 Table of Telethings LoRa Node pin describes TLN PORTx TLN PINx ADC UART I2C GPIO TLN PA0 IN0 UART 4 TX TLN PA1 IN1 UART4 RX TLN PA2 IN2 UART 2 TX TL...

Page 10: ...will be directly transferred to the computer The Termite v3 1 application will be used as a console application and it will show communication with the module HARDWER PREPARATION In order for the dev...

Page 11: ...10 33 Figure 3 Solder the coaxial cable for antenna Figure 4 Solder wires on GND pin i VDD pins 1 VDD 2 GND...

Page 12: ...o be paid to these changes if the Node is embedded on another master device Assuming that all the changes have been made the connection of the module with TTL Figure 5 will follow and it will represen...

Page 13: ...es but we opted for Termite v3 1 Given that this application is selected only for the purpose of testing nodes i e to show how nodes communicate over UART installation of the aforementioned will not b...

Page 14: ...13 33 Figure 7 Device Manager Checking COM port of UART Debugger Open Termite v3 1 and check Termite settings Figure 8 Termite settings Now hardware and software are prepared for action...

Page 15: ...ed by the client This package also includes a library for programming the aforementioned The shape of the development board is adapted for connecting the sensors for which the connectors are provided...

Page 16: ...d a few basic files that accompany the library The project will not have any particular functionality the basis is to prepare the project until the first successful building It will be assumed that th...

Page 17: ...16 33 Figure 11 Creating test project in Atollic Studio Figure 12 Step 1 Setting project name and location for saving project...

Page 18: ...17 33 Figure 13 Step 2 Selecting STM32L071KB for hardware settings...

Page 19: ...18 33 Figure 14 Step 3 Selecting software settings Figure15 Step 4 Selecting hardware debug settings...

Page 20: ...A MAIN and OTHER must be created and then paste files into it as on Figure 17 This folders and files organization is for test project and folders can be named optional and also organizing folders and...

Page 21: ...20 33 Figure 19 Add include path n every new added folder Figure 20 Confirm adding include path for folder...

Page 22: ...21 33 Figure 21 Selecting properties of project Figure 22 Folder paths which now don t exist must be deleted the same thing applies for Language S s asm...

Page 23: ...22 33 Figure 23 Updated status with including path for folders Figure 24 In tab Symbols new simbol NO_MAC_PRINTF must be added...

Page 24: ...23 33 Figure 25 In tab Libraries Telethings Lora Node Library must be added Figure 26 In tab Library Paths path for library file must be added Now test application is ready for building...

Page 25: ...www thethingsnetwork org and create account Assuming user already got LoRa Gateway and account on TTN site and is logged in from now this document will be focused for LoRa Node Application Figure 27...

Page 26: ...on interface on ttn site First screen after clicking Console option should look like this on Figure 28 and then add application should be selected A form will open like on Figure 29 Figure 29 Form for...

Page 27: ...26 33 Figure 30 Filled with random data form for creating Application for node Figure 31 Exmaple of wrong input for Application ID 1 2 3...

Page 28: ...on must be filled and clicked on button Add application Figure 32 Application ID already exist error try input another Application ID Figure 33 Application form for node Now Application for Node is cr...

Page 29: ...28 33 Figure 34 For registration of Node device on this site register device option should be clicked on screen Figure 35 Application form for register node...

Page 30: ...Node call function from library void lib_tln_lora_dev_eui uint8_t dev_eui Figure 36 Application form for register node filled by test data Data Device ID and Device EUI must be filled in application...

Page 31: ...30 33 Figure 38 Finally Application form for the node Now ABP join mode should be selected and that can be done when user clicks on tab Settings Figure 39 Option Setting...

Page 32: ...lecting ABP mode instead OTAA Figure 40 Selecting ABP activation mode instead OTAA mode Now in user s Node application Network Session Key and App Session key will be available Figure 41 Application f...

Page 33: ...y clicking on copy icon Now the application is prepared and there are available keys which are needed for Node After Application for Node is prepared user should set keys to Node using library functio...

Page 34: ...tions pdf REFERENCE 1 https www thethingsnetwork org 2 LoRaNodeLibraryFunctions pdf Documentation for Telethings LoRa Node library 3 LoRaNodeATCommands pdf Documentation for Telethings LoRa Node AT Co...

Reviews: