image-20221028134937-1.jpeg

 

 

Table of Contents:

1. Introduction

1.1 What is LG01v2

The LG01v2 is an open-source single channel LoRa Gateway. It lets you bridge LoRa wireless network to an IP network via WiFi , Ethernet or Cellular Network (via Optional 4G module). The LoRa wireless allows users to send data and reach extremely long ranges at low data rates.

LG01v2 is specially designed for peer-to-peer LoRa protocol instead of LoRaWAN protocol. The LG01v2 uses a single-channel LoRa module to minimize the deployment cost for a private p2p LoRa wireless network.

Note: The LG01v2 can't register and connect to the LoRaWAN server(Such as The Things NetWork, AWS, or Chirpstack..)

LG01v2 uses Open Source Linux system. User can modify the Linux part and develop customize software base on it. It has 1.2Ghz Quad-Core CPU , 4GB eMMC storage and 512MB RAM for most application.

LG01v2 supports remote management. System Integrator can easy to remote monitor the gateway and maintain it.

1.2 Specifications

Hardware System:

  • CPU: Quad-core Cortex-A7 1.2Ghz
  • RAM: 512MB
  • eMMC: 4GB

Interface:

  • 10M/100M RJ45 Ports x 1
  • WiFi 802.11 b/g/n

Operating Condition:

  • Work Temperature: -20 ~ 65°C
  • Storage Temperature: -20 ~ 65°C
  • Power Input: 5V, 2A, DC

1.3 Features

  • Open Source Debian system
  • Managed by Web GUI, SSH via WAN or WiFi
  • Remote Management
  • Auto-provisioning for batch deployment and management
  • LoRa Gateway
  • Built-in  Node-Red local Application server 

1.4 Block Diagram

1.5 LED Indicators

LG01-V2 has totally four LEDs, They are:

➢ Power LEDimage-20231014092959-4.png: This RED LED will be solid if the device is properly powered

➢ ETH LEDimage-20231014092934-2.png:   This RGB LED will blink GREEN when the ETH port is connecting

➢ SYS LEDimage-20231014092954-3.png:   Undefined yet.  

➢ WIFI LEDimage-20231014092843-1.png: This LED shows the WIFI interface connection status.

1.6 Button Intruction

LG01-V2 has a black toggle button, which is:

➢ Long press 4-5s                   : the gateway will reload the Network and Initialize wifi configuration

                                                      LED status:  ETH LED will BLINKIND BULE Until the reload is finished.

➢ Long press more than 10s:    the gateway will restore the factory settings.

                                                     LED status:  ETH LED will SOLID BULE Until the restore is finished.

2. Quick Start

The LG01-V2 supports network access via Ethernet or Wi-Fi connection and runs without a network.

In most cases, the first thing you need to do is make the LG01-v2 accessible to the network.

2.1 Access and Configure LG01-v2

2.1.1 Find IP address of LG01-v2

Method 1:  Connect via Ethernet with DHCP IP from the router

Connect the LG01-V2 Ethernet port to your router and LG01-V2 can obtain an IP address from your router. In the router's management portal, you should be able to find what IP address the router has assigned to the LG01-V2.

You can also use this IP to connect.

image-20220622100129-1.png

Method 2:  Connect via LG01v2 Fallback IP

image-20230107084650-2.png

Steps to connect via fallback IP:

1. Connect the PC's Ethernet port to LG01v2's WAN port

2. Configure PC's Ethernet port has IP: 172.31.255.253 and Netmask: 255.255.255.252

Settings --> Network & Internet --> Ethernet --> Change advanced sharing options --> Double-click"Ethernet" --> Internet Protocol Version 4 (TCP/IPv4)

As in the below photo:

image-20230413172038-1.png

Configure computer Ethernet port steps video: fallback ip.mp4

If you still can't access the LG01v2 fallback ip, follow this connection to debug : Trouble Shooting

3. In the PC, use IP address 172.31.255.254 to access the LG01v2 via Web or Console.

image-20230506115438-13.png

Method 3:  Connect via WiFi with DHCP IP from the router

image-20220622100542-2.png

Fill in the WiFi information by checking the box and clicking Save&Apply

image-20230506113332-2.png

Wi-Fi configuration successful

image-20230506113432-3.png

2.1.2 Access Configure Web UI

Web Interface

Open a browser on the PC and type the LG01v2 ip address (depends on your connect method)

http://IP_ADDRESS  or http://172.31.255.254(Fallback IP)

You will see the login interface of LG01v2 as shown below.

The account details for Web Login are:

User Name: root

Password:   dragino

image-20230106153501-1.png

3. Web Configure Pages

3.1 Home

Shows the system running status:

image-20230506113531-4.png

3.2 Network Settings

3.2.1 Network --> WiFi

image-20230506113602-5.png

3.4.2 Network --> System Status

image-20230506113623-6.png

3.5 System

3.5.1  System --> System Overview

Shows the system info:

image-20230506113705-7.png

3.5.2 System --> Backup/Restore

image-20230506113722-8.png

3.5.3 System --> System General

In the System-> System General interface, Users can customize the configuration System Password and set Timezone.

In addition, Users can customize the FallBack IP address.

image-20230506113813-10.png

3.5.4 System --> Remoteit

In the System-> Remoteit interface, users can configure the gateway to be accessed remotely via Remote.it.

the users can refer to this link to configure them: Monitor & Remote Access Gateway

image-20230506113831-11.png

3.5.5 System --> Package Management

In the System --> Package Management interface, Users can check the current version of Core Packages.

image-20230506114127-12.png

4. Build in Server

The default factory version of LG01-V2 is installed with the built-in Applicant server: Node-Red

image-20230506113737-9.png

Note:

         Path: System --> Built-in Server

Troubleshooting:

         1. URL does not jump properly

                For the Node-Red, you can use the local IP address and the port is 1880 to access it.

4.1 Application Server -- Node-Red

You can access the gateway's built-in AS server of Node-Red via the URL(http://<hostname>:1880 or http://<local-IPV4-address>) in your browser.

Such as http://dragino-54ff12:1880  or http://<Local-IPV4-Address>

image-20220725172124-3.png

5. How to configure the Lora Gateway

5.1 Configure and Debug LoRa wireless of LG01v2

First, the user needs to access the Linux console of LG01v2 via ssh

IP address:     IP address of LG01v2

Port:               22

User Name:   root

Password:      dragino(default)

image-20230504100722-3.png

Users can access the Lora configuration page by running the following command, then select the option ''serial port setup":

root@dragino-2406ef:~# minicom -s

image-20221029174637-2.png

And then, change the setting:

Serial Device : /dev/ttyUSB0

Bps/Par/Bits : 9600 8N1

Note: Enter the corresponding letter to change the configuration, like A,B,C

image-20221029174703-3.png

Enter AT+CFG in the interface to get the configuration,

AT+FRE=868.100,868.100                   ---> TX and RX frequency
AT+GROUPMOD=0,0                          --->  TX and RX group
AT+BW=0,0                                         --->  TX and RX Bandwidth
AT+SF=12,12                                       --->  TX and RX Spreading Factor
AT+POWER=14                                   --->  TX Power Range
AT+CRC=1,1                                        --->  TX and RX CRC Type
AT+HEADER=0,0                                 --->  TX and RX Header Type
AT+CR=1,1                                          --->  TX and RX Coding Rate
AT+IQ=0,0                                           --->  TX and RX InvertIQ
AT+PREAMBLE=8,8                            --->  TX and RX Preamble Length
AT+SYNCWORD=0                             --->  Syncword(0: private,1: public)
AT+RXMOD=65535,0                         --->  Rx Timeout and Reply mode
AT+RXDAFORM=1
                               

5.2 Example: LG01v2

5.2.1 Introduce for the example:

image-20221104102736-3.png

In this example, there are two devices:

  • LA66 Shield + UNO + DHT11: The UNO will get the temperature and humidity and broadcast the value via LoRa protocol.
  • LG01v2 : LG01v2 is set to listening the LoRa Channel which LA66 is broadcasting. When LG01v2 get the data from LA66, LG01v2 will plot the data in built-in IoT server.

5.2.2 Set Up LA66 Shield + UNO

Set up LA66 Module

LA66 Module is loaded with the firmware LA66 Peer-to-Peer firmware and user can use AT Command to set up LA66 with below parameters:

LA66 Shield as Sender: 

LA66 Shield configuration:

AT+FRE=868.100,868.100                    ---> TX and RX frequency set: 868100000
AT+BW=0,0                                          ---> TX and RX Bandwidth set: 125kHz
AT+SF=12,12                                        ---> TX and RX Spreading Factor set: SF12
AT+POWER=14                                    ---> TX Power Range set: 14dBm
AT+CRC=1,1                                         ---> TX and RX CRC Type
AT+HEADER=0,0                                  ---> TX and RX Header Type
AT+CR=1,1                                           ---> TX and RX Coding Rate
AT+IQ=0,0                                            ---> TX and RX InvertIQ
AT+PREAMBLE=8,8                              ---> TX and RX Preamble Length set: 8
AT+SYNCWORD=0                              --->  Syncword(0: private,1: public)
AT+RXMOD=6,0                                  --->  Rx Timeout and Reply mode

Set up Arduino UNO

Hardware Connection

The DHT11 sensor connects to the LA66 Shield:

VCC   <---> 3.3V (Red line)
DATA <---> PIN8 (Purple line)
GND  <---> GND (White line)

image-20221108170731-5.png

1. Open Arduino IDE

image-20221108172149-6.png

2. Open project

Users can download Arduino files from this link: Log-Temperature-Sensor-and-send-data-to-Node-red.ino

Then click Compile and Upload to LA66 Shield, 

image-20221108172432-7.png

3. Open the Serial Monitor to check the LA66 Shield data

The UNO will now reads the temperature and humidity data from the sensor and broadcast it via LoRa wireless,

image-20221108174840-8.png

Sending out data as below.

image-20221108175113-9.png

5.2.3 Set Up LG01v2

Configure LG01v2 LoRa channel parameters so it can get data from LA66 Shield

LG01v2 as Receiver: (configured as AT+RXMOD=65535,2)

LG01-V2 configuration:

AT+FRE=868.100,868.100                    ---> TX and RX frequency set: 868100000
AT+BW=0,0                                          ---> TX and RX Bandwidth set: 125kHz
AT+SF=12,12                                        ---> TX and RX Spreading Factor set: SF12
AT+POWER=14                                    ---> TX Power Range set: 14dBm
AT+CRC=1,1                                         ---> TX and RX CRC Type
AT+HEADER=0,0                                  ---> TX and RX Header Type
AT+CR=1,1                                           ---> TX and RX Coding Rate
AT+IQ=0,0                                            ---> TX and RX InvertIQ
AT+PREAMBLE=8,8                              ---> TX and RX Preamble Length set: 8
AT+SYNCWORD=0                              --->  Syncword(0: private,1: public)
AT+RXMOD=65535,2                          --->  Rx Timeout and Reply mode, RX window always open(0:No ACK, 1:Reply mode, 2:Send an ACK once got a  message from another device. ACK Content is 0x00 FF )

5.2.4 Test result

After the above configuration is complete, users can send test simulation data to check whether the configuration is correct, In LA66 sheild serial console send:(AT+SEND=1,hello world,2,3).

When LG01v2 replies with ACK when it receives a packet sent by LA66 sheild.

image-20221108164413-2.png

In the real-time log of LG01v2:

image-20221108170314-3.png

5.2.5 Plot data chart in LG01v2

User can plot the temperature and humidity chat via LG01v2 built-in IoT server.

User can import this example in Node-Red: Log-Temperature-Sensor-and-send-data-to-Node-red.json

image-20221108180334-10.png

The temperature and humidity chart is displayed in the built-in node-red UI

Browser input: http://<local-IPV4-address>

image-20221108180458-11.png

6. OTA System Update

LG01v2 supports system auto update via OTA, please see this URL for the detail of this feature.

7. How users can access LG01v2 using serial USB

USB TTL to LG01v2  Connection:

Port 1 of the UART on the LG01v2 is GND

TXD  <---> UART RXD (Gray line)

RXD  <---> UART TXD (White line)

GND <---> GND (Black line)

LG01v2 UART connection photo

image-20230421094319-2.png

In the PC,you can use the serial port tool(such as putty in Windows), you need to set the serial baud rate to 115200 to access the serial console for LPS8v2. LPS8v2 will output system info once power on as below:

image-20220804164928-3.png

image-20220804164747-2.png

8. FAQ

8.1 How does LG01v2 communicate with Lora shield (LoRa.h)

This example describes how to use LG01v2, LoRa Shield to set up a LoRa network,

image-20221103152238-8.png

Prerequisites: The configurations of LG01v2 and Lora shield must match

LG01v2 configuration:

AT+FRE=868.100,868.100                    ---> TX and RX frequency set: 868100000
AT+BW=0,0                                          ---> TX and RX Bandwidth set: 125kHz
AT+SF=12,12                                        ---> TX and RX Spreading Factor set: SF12
AT+POWER=14                                    ---> TX Power Range
AT+CRC=1,1                                         ---> TX and RX CRC Type
AT+HEADER=0,0                                  ---> TX and RX Header Type
AT+CR=1,1                                           ---> TX and RX Coding Rate
AT+IQ=0,0                                            ---> TX and RX InvertIQ
AT+PREAMBLE=8,8                              ---> TX and RX Preamble Length set: 8
AT+SYNCWORD=0                              --->  Syncword(0: private,1: public), the corresponding Lora shield syncword is 0x12
AT+RXMOD=65535,0                          --->  Rx Timeout and Reply mode,RX window always open
AT+RXDAFORM=1     

Lora shield configuration: 

Lora Shield example: LoRa_Shield_Sketch_For_MQTT.inoarduino-LoRa-master.zip

image-20221101161318-2.png

Test LG01v2 to receive Lora Shield data:

image-20221101161951-3.png

Test the LG01v2 to send data:

image-20221101162527-4.png

8.2 How does LG01v2 communicate with Heltec LoRa Node

This example describes how to use LG01v2 and Heltec LoRa Node to set up a LoRa network,

image-20221112161111-2.png

Prerequisites: The configurations of LG01v2 and Lora shield must match

LG01v2 configuration:

AT+FRE=868.100,868.100                    ---> TX and RX frequency set: 868100000
AT+BW=0,0                                          ---> TX and RX Bandwidth set: 125kHz
AT+SF=12,12                                        ---> TX and RX Spreading Factor set: SF12
AT+POWER=14                                    ---> TX Power Range
AT+CRC=1,1                                         ---> TX and RX CRC Type
AT+HEADER=0,0                                  ---> TX and RX Header Type
AT+CR=1,1                                           ---> TX and RX Coding Rate
AT+IQ=0,0                                            ---> TX and RX InvertIQ
AT+PREAMBLE=8,8                              ---> TX and RX Preamble Length set: 8
AT+SYNCWORD=0                              --->  Syncword(0: private,1: public), the corresponding Lora shield syncword is 0x12
AT+RXMOD=65535,0                          --->  Rx Timeout and Reply mode,RX window always open
AT+RXDAFORM=1                               ---> RX data format(0: Hex ,1: String)

After we upload the sketch to Heltec LoRa Node, we can see below output from Arduino.

Lora Shield example: LoRa_send_trial.ino

image-20221112162733-3.png

And we can see the logread of gateway as below, means the packet arrive gateway:

image-20221112163119-4.png

8.3 How does LG01v2 communicate with LoRaWAN node

This example describes how to use LG01v2 and LSN50 to set up a  network,

In this case, users need to set LSN50 to work in ABP mode and transmit in only one frequency.

Assume we have a LG01v2 working in the frequency 868100000 now, below is the steps.

Step1: Configure the LG01v2

AT+FRE=868.100,868.100                    ---> TX and RX frequency set: 868100000
AT+BW=0,0                                          ---> TX and RX Bandwidth set: 125kHz
AT+SF=12,12                                        ---> TX and RX Spreading Factor set: SF12
AT+SYNCWORD=1                              --->  Syncword(0: private,1: public), the corresponding Lora shield syncword is 0x12

Step2:  Run AT commands to make the LSN50 work in Single frequency and ABP mode.

For more information on how to use AT commands in LSN50v2, please refer to this link: LSN50v2-S31-S31B Use AT Command

Below are the AT commands:

AT+FDR                                                ---> Reset Parameters to Factory Default, Keys Reserve
AT+NJM=0                                           --->  Set to ABP mode
AT+ADR=0                                           --->  Set the Adaptive Data Rate Off
AT+DR=0                                             ---> Set Data Rate (Set AT+DR=3 for 915 band)
AT+TDC=300000                                 --->  Set transmit interval to 5 minutes
AT+CHS=868100000                           ---> Set transmit frequency to 868.1Mhz
AT+DADDR=FFFFF111                    ---> Set Device Address to 26 01 1A F1
ATZ                                                      ---> Reset MCU

Step3:  Check result

User can plot the temperature and humidity chat via LG01v2 built-in IoT server.

User can import this example in Node-Red: LG01v2_LSN50v2_S31.json

First the user needs to fill in the NwkSkey and AppSkey in the LoraWan Packet Decrypter node.

image-20230620103535-2.png

image-20230620103153-1.png

The data will be displayed in the built-in node-red UI

Browser input: http://<local-IPV4-address>

image-20230620103923-3.png

8.4 How can users factory reset LG01v2

Users can download the image of LG01v2 from this link:dragino-lg01v2-1.7-0210

Then follow the steps in the link below to restore factory Settings to LG01v2:

How to flash a new image(OS) to the gateway

9. Trouble Shooting

9.1  Fallback IP does not work, how can users check

When the computer has completed the above fallback IP configuration,the LG01v2 Web UI is still not accessible via fallback IP.

1.Check whether the configuration is correct

Run the CMD command to ipconfig and ping 172.31.255.254.

If this fails, the user needs to reconfigure.

image-20230413170224-3.png

image-20230413170246-4.png

2. Check whether the firewall is disabled

If the firewall is not down, this will affect access to the gateway.

10. Supports

If you are experiencing issues and can't solve them, you can send mail to support@dragino.com.

With your question as detailed as possible. We will reply and help you in the shortest.

11. Reference

  • Install Tago Core: Refer Install Tago Core in LG01v2 in Instruction.

 

12. Order Info

LG01v2-XXX-YYY

XXX: Frequency Band

  • 868: For frequency : 863 ~ 870Mhz
  • 915: For frequency : 902 ~ 928Mhz

YYY: 4G Cellular Option

  • EC25-E:      EMEA, Korea, Thailand, India
  • EC25-AFX: America: Verizon, AT&T(FirstNet), U.S.Cellular; Canada: Telus
  • EC25-AUX: Latin America, New Zeland, Taiwan
  • EC25-J:       Japan, DOCOMO, SoftBank, KDDI

More info about valid bands, please see EC25-E product page.

13. Manufacturer Info

Shenzhen Dragino Technology Development co. LTD

Room 202, Block B, BCT Incubation Bases (BaoChengTai),  No.8 CaiYunRoad

LongCheng Street, LongGang District ; Shenzhen 518116,China

14. FCC Warning

This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:

-- Reorient or relocate the receiving antenna.

-- Increase the separation between the equipment and receiver.

-- Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.

-- Consult the dealer or an experienced radio/TV technician for help.

Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment.

The antenna(s) used for this transmitter must be installed to provide a separation distance of at least 20 cm from all persons and must not be co-located or operating in conjunction with any other antenna or transmitter.

 

Tags:
    
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0