image-20231025175421-1.png

Table of Contents:

1.  Introduction

1.1  What is LoRaWAN Asset Tracker

TrackerD-LS is an Open Source LoRaWAN Asset Tracker based on ESP32 MCU and Semtech LoRa Wireless Chip. It can get the location data via GPS and set it to IoT server via LoRaWAN network.

TrackerD-LS supports Motion Detection, when there is motion, TrackerD-LS can send data more frequently and it will save power when no motion is detected.

The LoRa wireless technology used in TrackerD-LS allows the user to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional tracking services.

When there is no LoRaWAN network, TrackerD-LS can save the location data. It will send these data to IoT server when there is LoRaWAN network coverage.

TrackerD-LS is equipped with a 3000mAh Li-on rechargeable battery + Solar Panel which let the device can be used for many years. Each TrackerD-LS has a worldwide unique OTAA keys to join the LoRaWAN network. 

TrackerD-LS is program friendly. Developers can use Arduino IDE to customize the software of TrackerD-LS to fit their IoT solution.

image-20231025181237-2.png

Note: LoRaWAN server can be a general LoRaWAN server other than TTN.

1.2  Specifications

Micro Controller:

  • Espressif ESP32 PICO D4
  • MCU: ESP32 PICO D4
  • Integrated SPI flash : 4 MB
  • RAM: 448 KB
  • EEPROM: 520 KB
  • Clock Speed: 32Mhz

Common DC Characteristics:

  • Supply Voltage: 2.5v ~ 3.6v
  • Operating Temperature: -40 ~ 60°C

LoRa Spec:

  • Frequency Range,  168 dB maximum link budget.
    • Band 1 (HF): 862 ~ 1020 Mhz
  • +20 dBm - 100 mW constant RF output vs.
  • +14 dBm high efficiency PA.
  • Programmable 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 synthesizer with a resolution of 61 Hz.
  • FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
  • Built-in bit synchronizer for clock recovery.
  • Preamble detection.
  • 127 dB Dynamic Range RSSI.
  • Automatic RF Sense and CAD with ultra-fast AFC.
  • Packet engine up to 256 bytes with CRC.
  • LoRaWAN 1.0.3 Specification 

Battery:

  • 3000mA Li-on Battery power
  • Built-in Solar Panel

Power Consumption

  • Sleeping Mode: 60uA
  • LoRa Transmit Mode: 125mA @ 20dBm 44mA @ 14dBm
  • Tracking: max: 38mA

 

1.3  Features

  • LoRaWAN 1.0.3 Class A
  • ESP32 PICO D4
  • SX1276/78 Wireless Chip
  • Arduino IDE Compatible
  • Open source hardware / software
  • Regular/ Real-time GPS tracking
  • Built-in3 axis accelerometer.
  • Motion sensing capability
  • Power Monitoring
  • Charging circuit via USB port
  • 3000mA Rechargeable Li-on Battery + Solar Panel
  • Datalog

 

1.4  Applications

  • Logistics and Supply Chain Management

 

2.  Use TrackerD-LS

2.1  How it works?

TrackerD-LS is configured as LoRaWAN OTAA Class A GPS tracker by default. It has OTAA keys to join LoRaWAN network. To connect a LoRaWAN network, user need to input the OTAA keys in the LoRaWAN IoT server and push reset button of TrackerD-LS (next to USB port). TrackerD-LS will wake up and auto join the network via OTAA.

2.2  Quick guide to connect to LoRaWAN server

Here is an example for how to join the TTNv3 LoRaWAN Network. Below is the network structure, we use LPS8N as LoRaWAN gateway in this example.  

image-20231025181237-2.png

The LPS8N is already set to connect to TTN V3 network . What the rest need to is register this device in TTN V3:

Step 1: Create a device in TTN V3 with the OTAA keys from TrackerD-LS.

Each TrackerD-LS is shipped with a sticker with the default device EUI as below:

image-20230426085815-1.png

Input these keys to their LoRaWAN Server portal. Below is TTN V3 screen shot:

Add APP EUI in the application:

1664501711466-918.png

1664501721248-725.png

1664501734705-405.png

Add APP KEY and DEV EUI:

1654671889112-678.png

Step 2: Long press for 5 seconds to start. 

image-20231116144139-3.png  

Step 3: TrackerD-LS will auto join to the LoRaWAN network. After join success, TrackerD-LS will start to upload message to IoT server.

2.3  Positioning Mode(SMOD)

Users can set TrackerD-LS to different Positioning Mode for different applications. Below mod are supported.

  • GPS ONLY(Factory Settings):    Only get and uplink GPS location info.

Users can switch modes by changing SMOD.

2.4  Uplink Payload

2.4.1  Uplink FPORT=5, Device Status

Uplink the device configures with FPORT=5. Once TrackerD-LS Joined the network, it will uplink this message to the server. After the first uplink, TrackerD-LS will uplink Device Status every 12 hours.

Use can also get the Device Status uplink through the downlink command: Downlink:  0x2301

Size(bytes)1211211
ValueSensor ModelFirmware VersionFrequency BandSub-bandBATSMODStatus

1665301570342-765.png

Example of Device Status: 13014001FF0FA24002

Sensor Model:  For TrackerD-LS,this value is 0x13

Firmware Version:  0x0140,Means:v1.4.0 version

Frequency Band:

0x01: EU868

0x02: US915

0x03: IN865

0x04: AU915

0x05: KZ865

0x06: RU864

0x07: AS923

0x08: AS923-1

0x09: AS923-2

0x0a: AS923-3

Sub-Band: value 0x00~0x08(only forAU915,US915,Others are 0xFF)

BAT: shows the battery voltage for TrackerD-LS.

Ex1: 0x0FA2 = 4002mV

Use can also get the Device Status uplink through the downlink command:

SMOD Field (total 1 byte):0x40

Size(bit)1 bit2 bits4 bits
ValueSMODGPS_SettingsBLE_Settings

SMOD:

1 :   GPS ONLY

2 :   BLE ONLY

3 :   GPS/BLE Hybrid

GPS_MOD: Define how to send GPS payload

0 :    Enable uploading on-board Temperature and humidity values

1 :    Disable uploading on-board Temperature and humidity values

BLE_Settings:

1:    BLE Positioning with Strongest iBeacon

2:  WiFi Positioning with Strongest WiFi SSID

Status Field (total 1 byte):  0x02

Size(bit)5 Bits1 Bit1 Bit1 Bit
ValueReservePNACKMDLONTransport Mode

 

2.4.2  Uplink FPORT=2, Realtime GNSS Positioning + Temperature & Humidity

Users can use AT+SMOD=1,0,0 to enable uploading on-board Temperature and humidity values, and the total payload will be 15 bytes,

Size(bytes)442122
ValueLatitudeLongitudeFLAGHumTem

1665301636888-168.png

Alarm & BAT:

Size(bit)1 bit1 bit14 bits
ValuereserveAlarm IndicateBAT  

 

FLAG:

Size(bit)2 bits1 bit
ValueMODLON

Example: Payload: 0x02863D68 FAC29BAF 4B45 60 0202 011A  

Location info:

  • Latitude: 02863D68     ⇒  if (0x02863D68& 0x80000000 = 0 ):      value = 02863D68 /1000000 = 42.351976
  • Longitude: FAC29BAF  ⇒ if (0xFAC29BAF & 0x80000000 = 1 ):      value = (0xFAC29BAF – 0x 100000000)/1000000 =-87.909457

Important note:

1.  When power is low (<2.84v), GPS won't be able to get location info and GPS feature will be disabled and the location field will be filled with 0x0FFFFFFF, 0x0FFFFFFF.

2.  In this mode, the total payload will be 15 bytes, while US915/AU915 DR0 accepts only 11 bytes payload. In this case, the payload on server will be ignore and shows as below:

1664502116362-706.png

3.  While GPS can't get location info after timeout(FTIME Parameter), the latitude and longitude will be filled with all 0x00:

1664502166010-515.png

Alarm:

Example:  0x4B & 0x40 >> 6 = 0x01

BAT:

Example:  0x4B45 & 0x3FFF ⇒ 2885 (mV).

The battery info shows the battery voltage, User can use the below mapping to indicate the battery in percentage: \

  • > 4.0v :              80% ~ 100%
  • 3.85v ~3.99v:    60% ~ 80%
  • 3.70v ~ 3.84v:   40% ~ 60%
  • 3.40v ~ 3.69v:   20% ~ 40%
  • < 3.39v:             0~20%

MOD:

Example:  (0x60>>6) & 0x3f =1

Set the format of GPS data uplink link:

0x00:   Enable uploading on-board Temperature and humidity values
0x01:   Disable uploading on-board Temperature and humidity values

Set the format of BLE data uplink link:

0x01:    BLE Positioning with Strongest iBeacon

LON:

Example: (0x60>>5) & 0x01=1.

Enable/Disable LED activity for uplink

0x00:   Disable LED indicator.

0x01:   Enable LED indicator (Default Value)

Hum:

0202 = if (0x0202 & 0x8000 = 0 ):  value = 0x0202 / 100 = +514 ⇒ 51.4 degree

Tem:

011A =if (0x011A & 0x8000 = 1 ):   value =( 0x011A - 0x10000)/10(dec) ⇒ -28.2 degree

2.4.3  Uplink FPORT=3, Realtime GNSS Positioning (Default Mode)

The default uplink payload includes total 11 bytes (AT+SMOD=1,1,0). The payload is the first 11 bytes of Uplink FPORT=2, real-time GNSS positioning, (remove the temp and humidity)

Size(bytes)4421
ValueLatitudeLongitudeFLAG

1665301687277-443.png

2.4.4  Uplink FPORT=7, Alarm information status

The upward link device is configured to FPORT = 7. Once TrackerD-LS alarm, it will upload the news to the server.

Size(bytes)21
ValueAlarm & BATMod+lon

 image-20230302145315-1.png

alarm=(bytes[0] & 0x40)    // Alarm status

batV=(((bytes[0] & 0x3f) <<8) | bytes[1])/1000;     // Battery,units:V

mod = bytes[2] & 0xC0;

Lon=(bytes[2] & 0x20)

2.4.5  Add Payload format in TTN V3

In TTN V3, user can add a custom payload so it shows friendly.

In the page Applications --> Payload Formats --> Custom --> decoder

1664502649601-895.png

Add the decoder from this link:  dragino-end-node-decoder/TrackerD at main · dragino/dragino-end-node-decoder (github.com)

Save the change the uplink message will be parsed. As below:

1664502676891-606.png

2.5  Integrate with Datacake

After TrackerD-LS sends data to LoRaWAN server such as TTN, use can pass the data to Datacake and plot out, currently only support GPS plot.

Instruction is here:  http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20Data%20Cake/#H7.Example--AddTrackerDGPSTrackingInDataCake

1664502695771-538.png

2.6  Integrate with Tago

After TrackerD-LS sends data to LoRaWAN server such as TTN, user can pass the data to Datacake and plot out, currently only support GPS plot.

Instruction is here: http://wiki.dragino.com/xwiki/bin/view/Main/Tago.IO/#H3.A0Example-CreateTrackerD2FLGT92positioningwidget

1664502715371-321.png

2.7  Integrate with Node-red

1. Install node-red, please refer to the installation method in the link:

http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H1.A0Installation

2. Import the created flow template, please refer to the import method in the link:

http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/#H3.A0Importsampleflow
   

The address of the flow template: dragino-end-node-decoder/TrackerD.json at main · dragino/dragino-end-node-decoder · GitHub

Note: If you are using NODE-RED for the first time, please search and install the two plug-ins in the figure below in node-red to fully use the flow template.

image-20230307135914-1.png

image-20230307135932-2.png

3. Display the map
    Enter the link to the map:

    Change its suffix to ditu:http://119.91.62.30:1880/ditu/

    image-20230308115430-1.png

    Hit all input in input stream

   image-20230308115616-2.png

    View map again

image-20230308115701-3.png

2.8  Datalog Feature

total 273 entries,by default,

User can set PNACKMD=1, to enable Datalog feature.

Example use case.

image-20231026134207-6.png

image-20231026134244-7.png

2.9  Transport Mode

In Transport Mode, TrackerD-LS will check if there is motion (threldhold defined by PT) . If there is no motion, device will send uplinks every 20 minutes (Defined by TDC) . If there is motion, device will send uplink every 5 minutes(defined by MTDC).

When device is set in Transport Mode, it will uplink more frequenctly during moving. 

  • MTDC defines the Uplink Interval during transportation.
  • TDC defines the uplink interval when TrackerD-LS is stactic.
  • PT defines the threldhold to detect a motion.

2.10  LED Status

EventActionAT+LON to control on/off
Power OnBLUE, RED , Green flash onceN/A
Join requestGreen led fast blink once (200ms)Yes
Join SuccessGreen led on 5 secondN/A
Fixing LocationBLUE blinks 200ms per secondYes
Fixed and uplinkGREEN blinks twice (200ms per blink)Yes
Fail Fix and uplinkRED blinks twice (200ms per blink)Yes
Get DownlinkGREEN led on 1 secondYes
Movement DetectRED led on 500msN/A

  

2.11  Button Function

image-20231116143945-2.png

 

FunctionActionDescription
Factory settings wake upKeep Pressing button for more than 5 secondsDevice restart
Enter Deep Sleep Modequickly press the device 5 times to enter deep sleepThis is the mode ship out from factory. CPU will be complete in sleep mode and no LoRa activity, only use before deploy.

  

2.12  USB Port Function

The USB interface of TrackerD-LS has below functions:

  

2.13  Sleep Mode

Sleep Mode: To prevent accidental touch of the red button during transportation or assembly, so the peripherals of the device are turned off and enter deep sleep.

There are two ways to put the device into sleep mode:

1. Quickly press the device 5 times to enter deep sleep.

2. Use the AT+SLEEP command to put the device into sleep.

In SLEEP mode, you need to reset by reset button.

3.  Configure TrackerD-LS via AT command or LoRaWAN downlink

User can configure TrackerD-LS via AT Command or LoRaWAN Downlink.

LoRaWAN Downlink instruction for different platforms:  IoT LoRaWAN Server

3.1  Access AT   Command

TrackerD-LS supports the AT command set in stock firmware. User can connect to TrackerD-LS with TYPE-C cable to use AT commands as shown below. 

image-20231116143708-1.png

In PC, User needs to set serial tool baud rate to 115200 to access serial console for TrackerD-LS. TrackerD-LS will output system info once power on and user will be able to send AT commands:

1664503022490-662.png  

1664503035713-500.png

1664503047675-651.png

  

3.2  Command Set

3.2.1  Set Transmit Interval

Set device uplink interval.

  • AT Command:

AT+TDC=xxx 

Example:   AT+TDC=300000. Means set interval to 5 minutes(300 seconds)

  • Downlink Payload (prefix 0x01):

0x01 00 01 2C     //  Same as AT+TDC=300000

3.2.2  Set Alarm Packet transmission interval

Set alarm packet transmit interval

  • AT Command:

AT+ATDC=xx. 

Example:  AT+ATDC=60000    -->     Set Alarm Packet Interval to 60 seconds. TrackerD-LS will send every 60 seconds in Alarm mode, Default Value: 60000

  • Downlink Payload (prefix 0xB1):

0xB1 00 00 3C         //  Same as AT+ATDC=60000

3.2.3  Set Transport Mode Packet transmission interval

Set Transport Mode packet transmit interval

  • AT Command:

AT+MTDC=xx. 

Example:  AT+MTDC=300000       -->     Set Transport Mode Packet Interval to 300 seconds. TrackerD-LS will send every 300 seconds in Transport mode, Default Value: 300000

  • Downlink Payload (prefix 0x03):

0x03 00 01 2C       //  Same as AT+MTDC=3000000

3.2.4  Exit Alarm

Server send downlink command to exit Alarm mode

  • AT Command: No AT Command
  • Downlink Payload (prefix 0x02):

0x02 01       //  Exit Alarm Mode

3.2.5  Disable/Enable LED flash and buzzer

Disable/Enable LED for position, downlink and uplink

  • AT Command:

AT+LON=xx.  (Disable (0), Enable (1), default:1)

Example: AT+LON=0   -->  Disable LED for position, downlink and uplink.

  • Downlink Payload (prefix 0xAE):

0xAE 00        //  Same as AT+LON=0

3.2.6  Disable/Enable Transport Mode

Users can use this feature to enable/disable Transport Mode.

  • AT Command:

AT+INTWK=xx.  (Disable (0), Enable (1), default:0)

Example:  AT+INTWK=1   -->    Enable Transport Mode.

  • Downlink Payload (prefix 0xAF):

0xAF 01      //  Same as AT+INTWK=1

3.2.7  Set Positioning Mode

SMOD define how TrackerD-LS scan and uplink data:

  • AT Command:

AT+SMOD=aa,bb,cc

 aa:

  • 1: GPS ONLY(Factory Settings):    Only get and uplink GPS location info.

bb:

  • 0 :  GPS+ BAT+ State+Tem&Hum
  • 1 :  GPS +BAT State

Example:

  AT+SMOD=1,0,0    -->    GPS+ BAT+ State+Tem&Hum

  AT+SMOD=1,1,0    -->    GPS +BAT State

  • Downlink Payload (prefix 0xA5):

0xA5 01 00 00       //  Same as AT+SMOD=1,0,0

3.2.8  Set MAX GPS position time

Set max positioning time, default is 150 seconds. TrackerD-LS will try to get location info within this period. If fail to get position data within this time, TrackerD-LS will use 000000 for latitude and longitude.

If AT+FTIME=0. The GPS module will be always powered and positioning. This will highly increase the power consumption (up to 50mA). When AT+FTIME=0, it will improve fix accuracy and shorten the acquire time for next uplink.

  • AT Command:

AT+FTIME=xx   -->  Set to use xx as max fix time.

Example:  AT+FTIME=150

  • Downlink Payload (prefix 0xAA):

0xAA 00 96        //  Set AT+FTIME=150

3.2.9  Set PDOP value for GPS fix accuracy

PDOP(Position Dilution of Precision) filter, TrackerD-LS will only accept GPS data with a lower PDOP value than pre-configure PDOP value. If device can't get a valid GPS packet within FTIME timeout, it will use the GPS data with lowest PDOP value to server.

A GPS packet with lower PDOP has higher accuracy. PDOP default value is 2.0

  • AT Command:

AT+PDOP=2.5    -->   Set PDOP to 2.5

  • Downlink Payload (prefix 0xAD):

0xAD 00 0A      //  Set AT+PDOP=1       (0x0A / 10 =1)

0xAD 00 19      //  Set AT+PDOP=2.5    (0x19 / 10 =2.5)

0xAD 00 46      //  Set AT+PDOP=7       (0x46 / 10 =7)

3.2.10  Disable/Enable the confirmation mode

  • AT Command:

AT+CFM=xx

Example:

AT+CFM=0    -->    Disable confirmation 

AT+CFM=1    -->    Enable confirmation

  • Downlink Payload (prefix 0x05):

0x05 01          //  Same as AT+CFM=1

3.2.11  Auto Send None-ACK messages

TrackerD-LS will wait for ACK for each uplink, If TrackerD-LS doesn't get ACK from the IoT server, it will consider the message doesn't arrive server and store it. TrackerD-LS keeps sending messages in normal periodically. Once TrackerD-LS gets ACK from a server, it will consider the network is ok and start to send the not-arrive message.

  • AT Command: AT+PNACKMD

The default factory setting is 0.

Command Example Function Response:

AT+PNACKMD=1    //  Poll None-ACK message OK

  • Downlink Command: 0x34

Example: 0x34 01     //  Same as AT+PNACKMD=1

3.2.12  Disable/Enable Information printing

Users can use this feature to enable/disable Information printing.

AT Command:

AT+SHOWID=XX           //  (Disable (0), Enable (1), default:0)

Example:  AT+SHOWID=1   -->    Enable Information printing.

3.2.13  Get or Set Eight Channels Mode, only for us915, AU915

The Channels Mode in the LORAWAN LMIC library is from 0 ~ 7. When CHE = 8, 72 channels will be accessible to the network.

AT Command:

AT+CHE=1       // set one channels mode

Downlink Payload:0X24

Example: 0x24 01   // Same as AT+CHE=1

3.2.14  Get or Set Threshold for motion detect

User can set the motion detect thredhold for transportation mode. The smaller the value, the more sensitivity to trigger a motion event.

AT Command:

AT+PT=xx

Example:

AT+PT=14    -->    Set to detect car motion.

AT+PT=41    -->    set to detect walk motion.

Downlink Payload:0xB4

0xB4 14          //  Same as AT+PT=14

3.2.15  Set AT command window time

AT command window time setting, customers can set the required time according to their own operation mode.The unit is second.

AT Command:

AT+ATST=XX

Example:

AT+ATST=15    --> Set the time to 15 seconds

Downlink Payload:0XB5

0xB5 0F          //  Same as AT+ATST=15

3.2.16  Set the stepmeter mode

After setting the step counting mode, it cannot be interrupted by motion. This mode is very power consuming. Used on some special occasions.

AT Command:

AT+PM=xx

Example:

AT+PM=1    -->  Turn on step counting mode

AT+PM=0    -->  Turn OFF step counting mode

Downlink Payload:0XB6

0xB6 01          //  Same as AT+PM=1

4.  Upload Firmware

4.1  Firmware Change Log

See this link

4.2  How to upgrade firmware

User can use the TrackerD-LS's USB port to upgrade firmware into it. The hardware connection for upgrade firmware is as below:

Step1:  Connect TrackerD-LS and PC via USB cable shipped with TrackerD-LS.

image-20231116143708-1.png

Step2:  Install CH9102 driver in the PC.

After installation of the driver and plug in TrackerD-LS, user should be able to see com port in PC's device manager.

image-20231107105146-1.png

Step3:  Download and Install Flash Tool:  https://www.espressif.com.cn/en/support/download/other-tools?keys=Flash%2BDownload%2BTools

Step4:  Run Flash Download Tool and configure chip type to ESP32

1664503563660-578.png

1664503574618-659.png

Step5:  Select the firmware file (.bin format), com port and proper SPI configure. Clink Start. Bin file location:

https://github.com/dragino/TrackerD/releases

Users need to use below files:

boot_app0.bin @0e000

US915.bin @ 0x10000(Select the bin file of the frequency band you need)

image-20221207120501-1.png

After upgrade finish, it will show finish as below:

image-20221207133911-7.png

5.  Developer Guide

5.1  Compile Source Code

5.1.1  Set up ARDUINO compile environment

Install IDE on PC, open and click File --> Preference, add the following URL:  https://dl.espressif.com/dl/package_esp32_index.json

1664503635019-941.png

  • Go to tools --> Boards --> Boards Manager, find the esp32 information and install it.

1664503715811-892.png

5.1.2  Build the development environment

1. Download and install arduino IDE

https://www.arduino.cn/thread-5838-1-1.html

2. Download the ESP32 development package in the arduino IDE

image-20221213100007-1.png

Input: https://dl.espressif.com/dl/package_esp32_index.json

image-20221213100626-2.png

Restart the IDE after the addition is complete, then:

image-20221213100808-3.png

image-20221213101040-4.png

Note: Currently version 1.04 is almost impossible to download, you can choose version 1.03.
Don't quit halfway.~! If you quit halfway, there is a high probability that it will freeze, and you will need to download again next time. (If you click to continue downloading, an error will be reported after completion)

Then enter a long waiting process. If you don't want to wait, you can go to the Internet to download directly, and then import:

Methods as below:

1. Download: https://github.com/dragino/TrackerD/releases/tag/v1.4.4

2. Find the arduino installation path, hardware → create a new espressif folder → create a new esp32 folder, unzip the compressed package here.

Find the path of SP32 installation, find the file as shown in Figure 1, and change the SPI pin to the shown in Figure 2.

image-20221213102311-5.png

3. Find tools→get.exe in the decompressed file and run it (it will close automatically after completion)

image-20221213102334-6.png

Note: This step requires a python environment

Either way, in the end:

The final effect is to open the arduino and you can see the esp32

image-20221213110952-8.png

image-20221024105643-1.png

                                                                                Figure1

image-20221024105643-2.png

                                                                                   Figure2

Put the Library in the TrackerD-LS directory into the libraries file in the Arduino directory:

1664503752288-974.png

5.2  Source Code

  • Open the example in the TrackerD-LS file, please select the correct port in the IDE, as shown below:

1664503794261-827.png

  • Click to upload

1664503808294-336.png

  • Check the result, if the upload is successful, as shown below, open the serial port to view the data

1664503824081-592.png  1664503831430-500.png

6.  FAQ

6.1  How to change the LoRa Frequency Bands/Region?

User can follow the introduction for how to upgrade image. When download the images, choose the required image file for download.

6.2  What is the pin mapping for the USB program cable?

1664499635206-262.png

PinColorUSB Pin
A4,B4,A9,B9RedVCC
A7,B7WhiteD- (N/A)
A6,B6GreenD+(N/A)
A1,B1,A12,B12BlackGND
A5PurpleMTDC/GOIO13
B5BlueMTDC/GPIO12
A8YellowMTMS/GPIO14
B8GreyMTDO/GPIO15

  

6.3  Notes on using different serial port tools for TrackerD-LS

6.3.1  Serial port utility  

1698284199922-935.png

   

6.3.2  SecureCRT

The default command window of SecureCRT is not displayed. Entering a command requires a complete input of the entire command. You can open the command window in the view.

image-20221102140704-3.png

image-20221102140712-4.png

6.3.3  PUTTY

image-20221102140748-5.png

Since putty does not have a command window, you need to fill in the complete command externally, and then copy it to putty.The information copied outside can be pasted by right-clicking the mouse in putty.

image-20221102140801-6.png

6.4 How to modify source code to compile different frequency band bin file?

Important: Developer MUST follow the Arduino Environment Instruction exactly include change the SPI pin mappings.
See : Set Up Arduino Compile Environment for TrackerD-LS

1. When compiling the frequency band, you need to find LMIC_PROJECT_CONFIG.H file.

image-20221116111844-1.png

2. Open LMIC_PROJECT_CONFIG.H, find the corresponding macro definition and open it(AS923_2,AS923_3,AS923_4 except).

image-20221116111844-2.png

3. Compile the AS923_JP band, please refer to the intention shown

image-20221116111844-3.png

4. In other frequency bands in AS923, you need to find Lorabase_as923.H, path arduino-lmic \ src \ lmic, as shown in the figure below.

image-20221116111844-4.png

image-20221116111844-5.png

6.5 Are there example python example for BLE Indoor Positioning?

Operating instructions for BLE indoor positioning

6.6 Can alert mode and transport mode be used together?

Yes, you can also press the panic button to sound the alarm if set to transport mode

6.7 Can i get the datalog record from console?

Since firmware v1.0.3, User is able to get the datalog record from console as well.

image-20240329120023-1.png

7  Trouble Shooting

7.1  TDC is changed to 4294947296 and cause no uplink.

Before firmware v1.4.0: When the Transport Mode is enabled (AT+INTWK=1), the TDC needs to be greater than MTDC, otherwise, TDC setting will because 4294947296 after wakre up from motion. This bug is fixed in firmware v1.4.1

7.2  Device not able get AT Command or show output after wake up from deep sleep mode

ESP32 is not able to accept the Interrupt from UART after wake up from deep sleep mode. User need to press the button (one click) and TrackerD-LS will be able to accept UART command, it there is no action in UART for 15 seconds. it will go to deep sleep mode.

7.3  Problem after Upgrading Firmware

7.3.1  "rst: (0x3 SW_RESET)" and Continue Restart after upgrading

Error Output

image-20221122100004-4.png

Some partition is missed during upgrade, please upgrade below four files as example:

image-20221207120524-2.png

7.3.2  TrackerD-LS's led light is always GREEN on after upgrading

It is because the partitions are different when upgrading versions above 1.4.1, and a new partition file needs to be added. Please refer to the operation steps in chapter 7.3.1

7.3.3  "flash read err" after upgrade firmware

Error shows below, user might erase the entire flash include u-boot partition which cause this issue.

image-20221122100004-1.png

User need to upgrade again with below four files to solve this issue.

 image-20221207120530-3.png

                                       Figure 2

7.3.4  "Device Key become ff ff ff ff ff ff ff ff " after upgrade firmware

User might erase the entire flash include keys and default settings which cause this issue.

After the upgrade is completed, enter AT+CFG as shown in the figure below.

image-20221122100004-3.png

Please AT+FDR which will reset all settings to factory settings. , and then input the following keys by the information on the label.

After AT+FDR. please set

  • AT+PDOP=7
  • AT+FTIME=180000

Example:

AT+PDOP=7.00

AT+FTIME=180

AT+DEUI=70B3D57ED0053981   

AT+APPEUI=D23345667BCBCCAF

AT+APPKEY=F402A1A7A350445A7CD2DEA95511BFA1 

AT+DADDR=260b4dce    ( no need for OTAA)

AT+NWKSKEY=71cb7672441f573a53d4f34d307fc61d  ( no need for OTAA)

AT+APPSKEY=dacce2299ecd97a73ee3f80b5a46a559   ( no need for OTAA)

7.4  When positioning, it will restart or the PDOP setting is unsuccessful

Please download version 1.4.2 again

7.5  How to deal with unsuccessful GPS positioning?

1) Make Sure the device is in Open Area where can see the sky. 

2)   Set PDOP to a higher value. 

  • AT+PDOP=2 (can be positioned precisely.)
  • AT+PDOP=7 (Quickly locate in open spaces)
  • AT+PDOP=14.7 (Positioning can be acquired in complex environments)

Please refer to this link on how to set up PDOP

7.6  When upgrading the firmware, the data is not completely erased, and the information does not return to normal after multiple resets

When upgrading, use the erase button to upgrade

image-20221207120536-4.png

The parameters are displayed abnormally and cannot be fixed using AT+FDR

image-20221128103040-2.png

Please upgrade these four files,link(The boot_app0 file is in the version folder you need)

image-20221207134028-8.png

Reboot information after upgrade

image-20221128111443-4.png

Use AT+FDR command to reset and then use AT+CFG to check whether the configuration is back to normal

image-20221128111850-5.png

After the parameters return to normal, upgrade to the version you need again

image-20221207120601-5.png

At this point, the parameters return to normal after running AT+FDR again

image-20221128112035-7.png

7.7  If you encounter the following problems, please upgrade to the latest version

1. Press and hold the red button (more than 5 seconds), and the device and server do not respond.

2. Send some commands through the serial port to prompt an error (Example:AT+SMOD=1,0,1)

7.8  Why when using some serial consoles, only inputting the first string port console will return "error"?

Need to enter the entire command at once, not a single character.
User can open a command window or copy the entire command to the serial console.

8.  Order Info

Part Number: TrackerD-LS-XXX

XXX: The default frequency band

  • EU433: Default frequency band EU433
  • EU868: Default frequency band EU868
  • IN865: Default frequency band IN865
  • KR920: Default frequency band KR920
  • AS923: Default frequency band AS923
  • AU915: Default frequency band AU915
  • US915: Default frequency band US915

  

9.  Packing Info

Package Includes:

  • TrackerD-LS LoRaWAN Asset Tracker x 1
  • Solar charging & program cable x 1

Dimensions and Weight:

  • Device Size:  mm
  • Weight: g

  

10.  Support

  • Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
  • Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to support@dragino.com.

 

11.  Reference

Tags:
Created by Xiaoling on 2023/10/25 17:51
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0