background image

 

 

www.dragino.com

 

LGT-92 LoRa GPS Tracker User Manual

 

   

26 / 40 

 

5.

 

Developer Guide 

5.1

 

Source Code 

Software Source Code Download Link

. 

Hardware Source Code Download Link

 

 

5.2

 

Compile Source Code 

5.2.1

 

Set up Keil compile environment 

Assume you already hav

Keil uVision5

 installed. Below step shows how to install MDK support and get license.   

1: Open the 

web

http://www2.keil.com/stmicroelectronics-stm32/mdk

 

2: Download the 

keil

 

3: Login with an account that has administration rights. 

4: Right-click the µVision icon and select 

Run as Administrator...

 from the context menu. 

5: Open the dialog 

File — License Management...

 and select the 

Single-User License tab

 

6: Click the button 

Get LIC via Internet...

, then click the button 

OK

 to register the product. This action opens the 

License Management page on the Keil web site. 

Содержание LGT-92 LoRaWAN

Страница 1: ...ED description Buttons correct accelerometer payload info 2019 Mar 29 1 4 0 Add LGT 92 AA board description and photo Add Software hardware change log Change Payload to add Alarm flag 2019 May 11 1 4...

Страница 2: ...s a big change compare to previous one Please read chapter 2 for detail 2019 Nov 15 1 5 1 Add work flow for v1 5 LED status 2019 Nov 28 1 5 2 Fix work flow error Add new downlink payload in 1 5 2019 N...

Страница 3: ...Payload Analyze 14 2 3 2 Add Payload format in TTN 16 2 4 Downlink Payload 18 2 5 LED Status 18 2 6 Button Function 19 2 7 USB Port Function 19 2 8 Firmware Change Log 19 3 Use AT Command 20 3 1 Acces...

Страница 4: ...33 6 6 How to set up LGT 92 to work in 8 channel mode in US915 AU915 CN470 bands 34 6 7 What is the pin mapping for the USB program cable 35 6 8 How to set up LGT 92 to work with Single Channel Gatewa...

Страница 5: ...h performance ARM Cortex M0 32 bit RISC core operating at a 32 MHz frequency a memory protection unit MPU high speed embedded memories 192 Kbytes of Flash program memory 6 Kbytes of data EEPROM and 20...

Страница 6: ...rammable bit rate up to 300 kbps High sensitivity down to 148 dBm Bullet proof front end IIP3 12 5 dBm Excellent blocking immunity Low RX current of 10 3 mA 200 nA register retention Fully integrated...

Страница 7: ...ion sensing capability Power Monitoring Charging circuit via USB port for model LGT 92 LI 1000mA Li on Battery power for model LGT 92 LI 2 x AA battery holder for 1 5v AA battery for model LGT 92 AA T...

Страница 8: ...www dragino com LGT 92 LoRa GPS Tracker User Manual 8 40...

Страница 9: ...mA li on battery Enable charge circuit FPC internal LoRa Antenna Can power by USB port Real time tracking Short tracking period Rechargeable LGT 92 AA Without Enclosure With 1 5v AA type battery holde...

Страница 10: ...AN network user just need to input the OTAA keys in the LoRaWAN IoT server and power on the LGT 92 It will auto join the network via OTAA In case user can t set the OTAA keys in the LoRaWAN OTAA serve...

Страница 11: ...al 11 40 The LG308 is already set to connect to TTN network What the rest need to is register this device in TTN Step 1 Create a device in TTN with the OTAA keys from LGT 92 Each LGT 92 is shipped wit...

Страница 12: ...www dragino com LGT 92 LoRa GPS Tracker User Manual 12 40 Input these keys to their LoRaWAN Server portal Below is TTN screen shot Add APP EUI in the application Add APP KEY and DEV EUI...

Страница 13: ...GPS signal and the green LED will blink Once LGT 92 get the GPS info it will upload a LoRa message include battery GPS info X Y axis info If LGT 92 can t get GPS info into 2 minutes it will still upl...

Страница 14: ...use AT SGM 0 to enable the motion sensor to roll pitch info from accelerometer When accelerometer info is enable total payload will be 15 bytes please note 15 bytes won t work on DR0 on US915 AU915 f...

Страница 15: ...axis motion sensor the total payload will be 15 bytes while US915 AU915 DR0 accept only 11 bytes payload In this case the payload on server will be ignore and shows as below d While GPS can t get loca...

Страница 16: ...and frequency so can customized the movement detect thread hold See AT Command manual LON Enable Disable LED activity for uplink 0x00 Disable LED indicator 0x01 Enable LED indicator Default Value Roll...

Страница 17: ...www dragino com LGT 92 LoRa GPS Tracker User Manual 17 40...

Страница 18: ...AT MD Movment Detect Any A5 2 or 4 Total bytes 2 or 4 Example 0xA501 AT MD 1 0xA5031904 AT MD 3 25 04 AT KAT Keep Alive Time Any A9 4 Example 0xA9000258 Set AT KAT 0x258 600S The FPort no fix if the p...

Страница 19: ...vice RED button See work flow When keep pressing the Alarm button for more than 3 seconds the tracker will immediately send an empty uplink packet lat lon will be all 0x00 in this very first packet to...

Страница 20: ...supports AT Command set in stock firmware User can use a USB to TTL adapter to connect to LGT 92 for using AT command as below In PC User needs to set serial tool baud rate to 9600 to access serial co...

Страница 21: ...www dragino com LGT 92 LoRa GPS Tracker User Manual 21 40...

Страница 22: ...NWKID Network ID You can enter this command change only after successful network connection AT NWKSKEY Network Session Key Joining and sending date on LoRa network AT CFM Confirm Mode AT CFS Confirm...

Страница 23: ...SNR of the Last Received Packet AT VER Image Version and Frequency Band AT FDR Factory Data Reset AT PORT Application Port AT CHS Get or Set Frequency Unit Hz for Single Channel Mode AT CHE Get or Se...

Страница 24: ...pin ST LINK v2 SWCLK Dupont green pin ST LINK v2 SWDIO Dupont white pin LGT 92 power can be on or off Video Instruction is here https youtu be H 45v5 xI U Text step as below Step1 Install ST LINK driv...

Страница 25: ...will now blinking once see it blinks release the reset button on the LGT 92 Step6 The led on the ST LINK adapter will now blinking once see it blinks release the reset button on the LGT 92 The ST Lin...

Страница 26: ...install MDK support and get license 1 Open the web http www2 keil com stmicroelectronics stm32 mdk 2 Download the keil 3 Login with an account that has administration rights 4 Right click the Vision...

Страница 27: ...a GPS Tracker User Manual 27 40 7 Enter the Product Serial Number 4PPFW QBEHZ M0D5M along with your contact information and click the button Submit An e mail is sent back with the License ID Code LIC...

Страница 28: ...w dragino com LGT 92 LoRa GPS Tracker User Manual 28 40 8 To activate the Software Product enter the LIC in the field New License ID Code LIC of the dialog License Management and click Add LIC 9 Finis...

Страница 29: ...40 5 2 2 Install STM32L0 Series Device 1 Open the web https www keil com dd2 pack eula container 2 Find the STMicroelectronics STM32L0 Series Device and download it 3 Find the Software Pack and instal...

Страница 30: ...his error 5 2 3 Compile Source Code 1 Download the source code from Software Source Code Download Link 2 Use Keil to open the project file STM32CubeExpansion_LRWAN Projects Multi Applications LoRa DRA...

Страница 31: ...www dragino com LGT 92 LoRa GPS Tracker User Manual 31 40 4 If you want to change frequency modify the Preprocessor Symbols For example change EU868 to US915 5 Compile and build...

Страница 32: ...is placed outdoor and transmission periodically is 5 minutes The device can last about 19 days Please note this is an ideal case on the GPS signal strength Actually battery use time is affected by ma...

Страница 33: ...idn t provide further software develop support on this topic In this demo we will show the communication between LoRa Shield and LGT 92 both of them use the basic LoRa library LGT 92 will send a messa...

Страница 34: ...7 2 903 9 904 1 904 3 904 5 904 7 904 9 905 1 905 3 Channel 8 15 3 905 5 905 7 905 9 906 1 906 3 906 5 906 7 906 9 Channel 16 23 4 907 1 907 3 907 5 907 7 907 9 908 1 908 3 908 5 Channel 24 31 5 908...

Страница 35: ...8 8 919 919 2 919 4 919 6 919 8 Channel 16 23 4 920 920 2 920 4 920 6 920 8 921 921 2 921 4 Channel 24 31 5 921 6 921 8 922 922 2 922 4 922 6 922 8 923 Channel 32 39 6 923 2 923 4 923 6 923 8 924 924...

Страница 36: ...re above three keys match User can change either in TTN or Device to make then match In TTN NETSKEY and APPSKEY can be configured by user in setting page but Device Addr is generated by TTN User can a...

Страница 37: ...in a short period To overcome this issue you can 1 Try to type the command in a txt file and paste it to the console to shorter the input time for command 2 Try to run AT FDR first to reset the device...

Страница 38: ...ifferent version ST Link v2 The white one as below is the most stable and recommended one 2 The white version ST Link v2 such as below photo has different hardware version The original one doesn t hav...

Страница 39: ...nd CN470 LoRaWAN CN470 band 9 Packing Info Package Includes LGT 92 LoRa GPS Tracker x 1 USB recharge program cable x 1 Dimension and weight Device Size 85 x 48 x 15 cm Device Weight 50g 10 Support Sup...

Страница 40: ...www dragino com LGT 92 LoRa GPS Tracker User Manual 40 40 11 Reference Product Page DataSheet Image Download AT Command Manual TTN Frequency Bands...

Отзывы: