Telethings LoRa Node Скачать руководство пользователя страница 10

9

/

33

 

 

 

 

TELETHINGS LORA NODE AS  AT SLAVE DEVICE 

 

INSTALATION HARDWARE AND SOFTWARE 

 

INTRODUCTION 

 

Telethings LoRa Node in the function of the AT Slave device implies a module with 

already added firmware in order to perform the mentioned functionality. It is necessary to 
have some kind of master device, which should be connected to the module, in order for the 

module itself to perform its functionality. The master device connects to the module using 
UART  connection,  and  communicates  with  the  module  using  AT  commands.  A  list  of  AT 
commands, with description of each of them, as well as how to use them, is in the document 

“LoRaNodeATCommands.pdf”.  For  the  purpose  of  this  document,  and  an  easier  way  of 
clarifying  how  the  node  works,  the  master  device  will  be  simulated  using  TTL  (UART 
Debugger) that 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  device  to  function  properly,  it  is  necessary  to  do  some  hardware 

changes  before  connecting  the  device  to  the  power  supply.  Firstly,  antenna  should  be 
connected to the device, i.e. the coaxial cable must be soldered on the module. (Figure 3.) 

 

Then, TLN UART RX and TLN UART TX pins should be connected with wires (Figure 

5.), which will be connected to the TTL later on. After that, one wire should be wired to GND. 

The following and the last step is to solve the power supply or to solder the wires on the VDD 
MCU and VDD SX pins, through which a 3.3 V power will be supplied from the TTL. (Figure 

4.)  

 
Telethings LoRa Node actually uses LPUART, so pins TLN UART RX and TLN UART TX 

are actually TLN LP UART RX and TLN LP UART TX.

 

If all of the above mentioned changes have been made, the device is ready for use. 

 

Содержание LoRa Node

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 17: ...16 33 Figure 11 Creating test project in Atollic Studio Figure 12 Step 1 Setting project name and location for saving project...

Страница 18: ...17 33 Figure 13 Step 2 Selecting STM32L071KB for hardware settings...

Страница 19: ...18 33 Figure 14 Step 3 Selecting software settings Figure15 Step 4 Selecting hardware debug settings...

Страница 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...

Страница 21: ...20 33 Figure 19 Add include path n every new added folder Figure 20 Confirm adding include path for folder...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: