. Introduction

E870-LXXXLG12-O is our company's latest open source LoRaWAN gateway, its main features are:

1. Support 1 wired WAN port;

2. Support 1 button (user-defined);

3. Support 8 LED indicators (except the PWR light, the other seven lights are user-defined);

4. Support Shell configuration mode;

5. Wired network ports support 10/100/1000Mbps rate;

6. Built-in Chirpstack server;

7. Built-in Node-RED;

8. Support firmware secondary development;

9. Fully open source;

. Use of configuration tool

 1. Use a USB data cable to connect the device debugging port, open the configuration tool - MobaXterm software (the installation package can be downloaded from the official website, and the user can install it by himself), and click "Session" in the upper left corner.

2. Click Serial.

3. Select the port number, change the baud rate to 115200, and click OK after completing the settings.

4. After completing the previous step, enter this interface (there is no "T113-lorawanopen login:" at the beginning, you need to press Enter to display it), enter the account and password in sequence, the account and password are both "root".


5. Enter your account and password and wait to enter the configuration. When the following figure is displayed, you can start configuring and using related functions.

 

. Node, gateway, and server related instructions

 1. Gateway script:

Script file: /root/lorawanopen/gateway/gw.sh

Quick command: gw

Script help (prompt instructions): gw -h (gw --help)

gw status: Check the running status of the gateway.

gw start: Start the gateway service.

gw stop: Stop the gateway service.

gw restart: Restart the gateway service.

gw enable: Enable the gateway service, and start it automatically at boot.

gw disable: Disable the gateway service, and turn off the automatic startup.

gw switch: Switch the frequency band of the region where the gateway runs, a total of 8. After switching, you need to restart the gateway service to take effect (the switched frequency band must be supported by the current device to be used normally).

Note: The default eight regional frequency bands mentioned above correspond to the following:

(1) CN470 CN470_0

(2) EU868 EU868

(3) IN865 IN865

(4) RU864 RU864

(5) AS923 AS923

(6) AU915 AU915_0

(7) KR920 KR920

(8) US915 US915_0

If you need to use other sub-bands, you need to modify them in the frequency band configuration file (.json file)

2. Server script:

Script file: /root/lorawanopen/chirpstack/cs.sh

Quick command: cs

Script help: cs -h (cs --help)

cs status: Check the server running status.

cs start: Start the server.

cs stop: Stop the server.

cs restart: Restart the server.

cs enable: Enable the server, and start it automatically.

cs disable: Disable the server, and turn off the automatic start.

cs switch: Switch the regional frequency band where the server runs. There are 8 in total. After switching, you need to restart the server to take effect (you need to stop and then start it again. Restarting directly can only restart the service, but cannot make the configuration file effective).

3. Node configuration:

The device has already set up 3 node devices in the built-in chirpstack service when it 3.  3. leaves the factory. The information is as follows:

Type

Default frequency band

DevEUI

APPEUI

APPKEY

915

US915

0000000000000924

0000000000000000

7b530db8623ed2a0cfceb02cb1eb2a3e

470

CN470

0000000000000925

0000000000000000

f06675ca596fdb5c54c63b4d6f82748e

868

EU868

0000000000000926

0000000000000000

d9352a74891c5903fff8b014af59ee00

The above information needs to be configured into the node device through AT commands before the node device is connected to the network. The following example node uses E78-400TBL-02 (E78-470LN22S(6601) test board) for verification test. The configuration steps are as follows:

1. Configure DevEUI: AT+CDEVEUI=0000000000000925

2. Configure APPEUI: AT+CAPPEUI=0000000000000000

3. Configure APPKEY: AT+CAPPKEY=f06675ca596fdb5c54c63b4d6f82748e

4. Change regional parameters: AT+REGIONCFG=CN470

5. Node access: AT+CJOIN=1,1,3,3 (After sending the access command, you need to wait for a short time. If the access is successful, it will reply OK first, and then reply +CJOIN:OK after a while. If it fails, it will display FAIL. After the node device successfully accesses the network, it will remain in the network state without power failure, and there is no need to access the network again.)

. Communication test:

Node device report:

Send the AT command "AT+DTRX=1,1,4,FFFFFFFF" to the node device through the serial port. If the transmission and reception are normal, it will display OK+RECV: xxxxxxx. If the transmission and reception are successful and the RECV information contains the sent information, it means that the Node-RED service inside the gateway is running normally. If the transmission and reception are successful, but the returned information does not contain the sent information, it means that the communication is normal, but the Node-RED service inside the gateway is not running normally. If the transmission and reception fails, it will display ERR+SENT: xx, which means that the communication fails, indicating that the server or gateway program in the gateway is not running normally.

Server dispatch:

The device has a built-in chirpstack server when it leaves the factory. You can enter the chirpstack server interface by querying the current IP address of the device + ":8080". The IP address of the device used in the example is 192.168.1.10, so enter 192.168.1.10:8080 in the browser to enter the chirpstack server interface. The default account and password are both admin. To test the server's active delivery, you need to set the node device to CLASS C mode, the AT command is "AT+CCLASS=2", and the gateway needs to be set to node CLASS C mode. The content in the queue will be actively sent by the server to the gateway, and pushed to the node device by the gateway. If the serial port software is connected, the RECV information can be seen.