COTX Lora Data Collector - Development Manual

Created by Eason Chen, Modified on Wed, 31 Aug 2022 at 10:40 PM by Eason Chen





 

LoRa Data Collector 

 

Development Manual (Basic Version)

Helium Console  

 

 


 

、 Development Environment Preparation

Devices

Remarks

LoRa Data Collector PCBA

The frequency band needs to be kept consistent with the gateway

Cotx x3 Hotspot

Register to the helium app and stay online

USB-TTL Module

 

DuPont Line

 

Jlink downloader (optional)

 

Power cable (USB to IDC connector)

 

Helium Console Account

Separate registration required

Ⅱ、Hardware Connection

2.1Power supply method

Power supply method

Physical picture

1. DC power supply: DC_5V/1A

Provide accessory power supply cable (USB-WL)

 

2.Lithium battery power supply: DC_3.7V

(Default use 18650 battery)

 

After the device is powered on, it will automatically send incoming and report data, with a default interval of 2 minutes after successful incoming.

 

2.2 Serial debugging

Tools

Description

DuPont wire (female to female)

 

Serial Module

Serial Port Tools

Collector Setup Assistant V1.10

 

       Serial port location 

      

 

         Serial module connection method

 

Find the serial port connection location and connect the computer to the collector through the serial port module with a Dupont cable, after a successful connection. Open the development material of the collector setup assistant V1.10. Baud rate default: 115200, serial port number will be recognized automatically.


 

 

After opening, the following configurations can be set through the software.

AI-related configuration: (Unit: mV)

Maximum setting range of voltage: -5V~+5V

Hibernation-related configuration: Set the device hibernation time.

Function switches: Switches for debugging and controlling each function module.

Modbus configuration: standard Modbus protocol.

Hardware connection schematic

 

 

 

After connecting to Jlink, you can update the firmware and view the logs during debugging through Jlink. 

、Platform Account Registration

The helium Console account registration address is as follows

https://console.helium.com/

 

Ⅳ、Terminal Registration

After logging into the Helium console platform, click Device --> Add a new device to enter the Add Device interface.

Enter the triad information of LoRa Tracker PCBA (Deveui, Appear, APPkey) and click "Save Device".

(Note: the three groups of information to obtain the way: 1. From the manufacturer 2. scan the label QR code)

 

 

After adding, wait for the data to be received.

 

 

Ⅴ、Terminal Data View

Check the LoRa Tracker PCBA data on Helium Console. Click Device->Device name, view Device detail, and check the status data reported by LoRa Data Collector.

 

 

、Add custom scripts

Parses the reported raw data through a custom script. (See attachment/consult the manufacturer for examples of parsing scripts by message protocol.)

 

 

 

 

Copy and paste the custom parsing script into the location below.

 

 

 

 

 

 

 

 

 

 

、Add Application Integration

Configure the application platform to be forwarded (HTTP/MQTT)

 

 

 

 

 

If you choose MQTT, you need to add your personal server address in location 1. Location 2: Add the uplink band.

 

、Add flow chart

After adding device/product tags, scripts, and platform addresses, different devices/tags are connected to the corresponding platforms through specific parsing scripts.

 

 

 

 

Make the streamline connection. As shown below:


 

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article