0% found this document useful (0 votes)
590 views61 pages

MG6 4G Bluetooth® Stellar Gateway Gateway Configuration Guide V003 Publish20250206

The Product Configuration Guide details the setup and configuration of the 4G Bluetooth® Stellar Gateway (Model MG6-A-kiwi) released on February 6, 2025. It covers basic configuration methods, network configurations, BLE data acquisition, and other functionalities including firmware upgrades and troubleshooting. The document serves as a comprehensive resource for users to effectively manage and utilize the gateway's features.

Uploaded by

thomas.c
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
590 views61 pages

MG6 4G Bluetooth® Stellar Gateway Gateway Configuration Guide V003 Publish20250206

The Product Configuration Guide details the setup and configuration of the 4G Bluetooth® Stellar Gateway (Model MG6-A-kiwi) released on February 6, 2025. It covers basic configuration methods, network configurations, BLE data acquisition, and other functionalities including firmware upgrades and troubleshooting. The document serves as a comprehensive resource for users to effectively manage and utilize the gateway's features.

Uploaded by

thomas.c
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

Product Configuration Guide

PRODUCT CONFIGURATION GUIDE

MODEL NO/DESCRIPTION
Product Name: 4G Bluetooth® Stellar Gateway
Model: MG6-A-kiwi

Version V 003

release time 2025-02-06

1
SHENZHEN MINEW TECHNOLOGIES CO LTD

catalogue
preface ............................................................................................................................................. 5
1. Basic configuration ..................................................................................................................... 5
1.1 Configuration Method ....................................................................................................... 5
1.1.1 Connect to the gateway AP to access the configuration page ................................ 5
1.1.2 Access the configuration page within the LAN ..................................................... 7
1.2 Login Password of Configuration Page ............................................................................ 9
1.3 AP configuration ................................................................................................................9
1.3.1 Close or open the AP ............................................................................................10
1.3.2 Hide or display the AP ......................................................................................... 12
1.3.3 Configure the password for the AP ...................................................................... 12
2. Network configuration .............................................................................................................. 13
2.1 Ethernet Connection ........................................................................................................13
2.1.1 DHCP pattern ....................................................................................................... 13
2.1.2 Static pattern .........................................................................................................14
2.2Wireless linkage ............................................................................................................... 16
2.2.1 DHCP pattern ....................................................................................................... 16
2.2.2 Static pattern .........................................................................................................18
2.3 Cellular linkage ............................................................................................................... 20
2.4 Failover ............................................................................................................................22
2.4.1 Ethernet + Wireless connection ............................................................................23
2. 4.2 Ethernet + Cellular connection ............................................................................25
2. 4.3 Ethernet + Wireless + Cellular connection ..........................................................26
2. 5 Relay function ................................................................................................................ 27
3. BLE data acquisition & Service access .....................................................................................28
3.1 BLE data acquisition ....................................................................................................... 28
3.2 Service access ..................................................................................................................31
3.2.1 MQTT access ....................................................................................................... 31

Website:www.minew.com Email: [email protected] 2


SHENZHEN MINEW TECHNOLOGIES CO LTD

3.2.2 HTTP access .........................................................................................................37


3.2.3 TCP access ............................................................................................................39
3.3 Data Filtering ...................................................................................................................39
3.4 BLE scan parameter configuration ..................................................................................41
3.5 Remote Control (only MQTT) ........................................................................................ 43
4. Other configurations ..................................................................................................................43
4.1 Meaning of LED lamp .....................................................................................................43
4.2 Time configuration .......................................................................................................... 44
4.2.1 Using the NTP server for synchronization ........................................................... 44
4.2.2 Set the time manually ...........................................................................................45
4.3 Automatic management ...................................................................................................46
4.3.1 Automatic restart .................................................................................................. 47
4.3.2 Regular restart ...................................................................................................... 47
4.4 Firmware upgrade ........................................................................................................... 47
4.4.1 WiFi firmware upgrade ........................................................................................ 48
4.4.1.1 Air upgrade (OTA) .................................................................................... 48
4.4.1.2 FILE upgrade .............................................................................................49
4.4.1. 3 LAN upgrade ............................................................................................50
4.4.1. 4 Upgrade of customer customized firmware ............................................. 50
4.4.1.5 USB upgrade ............................................................................................. 51
4.4.2 Bluetooth Firmware upgrade ................................................................................52
4.4.2. 1 Air Upgrade (OTA) .................................................................................. 52
4.4.2.2 FILE upgrade .............................................................................................53
4.4.2. 3 LAN upgrade ............................................................................................53
4.4.2. 4 Upgrade of customer customized firmware ............................................. 54
4.4.2. 5 USB upgrade ............................................................................................ 54
4.5 Troubleshooting ...............................................................................................................55
4.5.1 command ping ...................................................................................................... 55
4.5.2 Command traceroute ............................................................................................ 56
Website:www.minew.com Email: [email protected] 3
SHENZHEN MINEW TECHNOLOGIES CO LTD

4.6 Restart the gateway ......................................................................................................... 57


4.7 Restore the factory settings ............................................................................................. 58
4.7.1 Reset button ..........................................................................................................58
4.7.2 Web page configuration ........................................................................................58
4.8 Rescue brick mode .......................................................................................................... 59
4.8.1 mini-web server ....................................................................................................59
4.8.2 Serial port burn and record ...................................................................................60
5. statement ....................................................................................................................................60

Website:www.minew.com Email: [email protected] 4


SHENZHEN MINEW TECHNOLOGIES CO LTD

preface

This specification applies to the MG6-A-kiwi model gateway.


release
date author description
version

V001 2024.01.10 Wu Ruiyu first draft

V002 2024.11.03 Wu Ruiyu Modified to No LoRaWAN version

1. Basic configuration

Visit the configuration web page to make its basic configuration.

1.1 Configuration Method

You can access the configuration page of the gateway in the following two ways.

1.1.1 Connect to the gateway AP to access the configuration page

The gateway has the AP mode, which can be used for the gateway configuration. Does not
affect the networking mode of the current gateway as a client.
The AP mode provides a WiFi hotspot with the SSID name "GW-XXXXXXXXXXXX", and the
XXXXXXXXXXXX is the hexadecimal capital character corresponding to the gateway MAC
address. After connecting to the gateway WiFi, use a computer or mobile phone browser to open
the link: http://192.168.99.1 to enter the login interface of the configuration interface (see the
figure below).
By default, no password is required to connect to this WiFi hotspot. If you need to control
the access rights of third parties, you can modify the AP SSID name in the configuration
interface, the IP address should be set as 192.168.X.1 (the gateway subnet network segment

Website:www.minew.com Email: [email protected] 5


SHENZHEN MINEW TECHNOLOGIES CO LTD

cannot be the same as the access route), and set the WiFi connection password.1

The interface fields are detailed below.

field name description


MAC Address gateway The gateway MAC address in hexadecimal lowercase
MAC characters.
Firmware Firmware Firmware model of the gateway
Model model
WiFi The WiFi Firmware version number of the WiFi in the gateway
Firmware firmware
Version version
BLE Firmware The BLE Firmware version number of BLE in the gateway
Version firmware
version
Network Mode Network Displays the mode in which the gateway is connected to the
mode network. There are three modes ethernet, wireless, and
cellular. N/A is displayed when there is no connection.
WAN IP Internet IP IP obtained as a client connected to the external network,
address displayed as N / A when not connected

1
Network segment: For example, IP: 192.168.X.1, when the X is the same, the network segment is the same, and
when the X is different, the network segment is different.

Website:www.minew.com Email: [email protected] 6


SHENZHEN MINEW TECHNOLOGIES CO LTD

Disabled Whether to Turn off or open the WiFi hotspot


turn off the
AP
Hidden Whether to Hide or display the WiFi hotspots
hide the AP
SSID AP SSID Configure the SSID in the AP mode
Key AP password Configure the connection password in AP mode, 8 characters
or more password
LAN IP The AP Configure the IP with AP mode with the default of 192.168.9
Address Intranet IP 9.1
address
New Password Set the new The login password used to configure the gateway
login configuration page
password
Confirm Confirm the The login password used to configure the gateway
Password new login configuration page
password

1.1.2 Access the configuration page within the LAN

As long as the devices with browsers such as computers and mobile phones are in the same
LAN as the gateway, the computer can enter the configuration page of the gateway by entering
the IP address in the browser without connecting to the WiFi hotspot of the gateway.
It should be noted that the IP address of the gateway device is not necessarily 192.168.99.1,
and you can scan the IP address acquired by the gateway through the ARP scanning tool (through
the router or Linux command, etc.)

View through router

Some enterprise-level routers can view the ARP list (the list of IP addresses and MAC
addresses) on the management page of the router.
Website:www.minew.com Email: [email protected] 7
SHENZHEN MINEW TECHNOLOGIES CO LTD

View from a Linux computer

 Take Ubuntu as an example, install the arp-scan command


$ sudo apt-get install arp-scan
 Run the command to view the IP-MAC list
$ sudo arp-scan -l
 Run the command to filter out the MAC address of the gateway
$ sudo arp-scan -l | grep "ac:23"

View from a Windows computer

Download the arp-scan tool from github


https://github.com/QbsuranAlang/arp-scan-windows-
If your LAN is 192.168.0.1, the subnet mask is 255.255.255.0
Run the command as follows:
arp-scan -t 192.168.0.1/24
The meaning here is to scan the LAN IP: 192.168.0.x (from 192.168.0.1 to 192.168.0.255).
24 means the number of binary 1s in the subnet mask (255.255.255.0).

Website:www.minew.com Email: [email protected] 8


SHENZHEN MINEW TECHNOLOGIES CO LTD

View through the batch configuration assistant developed by our company


The batch configuration assistant is a tool for batch configuration based on the local area
network. It can scan the IP address of the gateway in the local area network. If necessary, you
can contact our sales team.

1.2 Login Password of Configuration Page

The default login password on the gateway configuration page is empty, and you can log in
directly by clicking login. For security, please set the administrator login password in ADMIN
PASSWORD on the "status" page.
After changing the password, please remember that if you forget, you can only log in
through the console or modify it.

1.3 AP configuration

The gateway AP / WiFi hotspot is turned on by default, which can hide or close the AP
hotspots, or set the connection password in AP mode. There are two ways to control the AP of
the gateway WiFi: through the Reset button of the gateway or through the web page
Website:www.minew.com Email: [email protected] 9
SHENZHEN MINEW TECHNOLOGIES CO LTD

configuration.

Note: The shutdown of WiFi hotspots does not affect the current gateway networking mode
as a client.

1.3.1 Close or open the AP

1, Request key:
When the gateway is fully started, that is, when the gateway blue light is no longer always
on, hold down the Reset key of the device through the Reset hole for less than 2 seconds and
release, and the gateway WiFi hotspot AP is turned on or closed.

Note: Press and hold the Reset button for no more than 2 seconds, and the factory settings will be
restored when the time exceeds 5 seconds.

2. Web page configuration:


Close AP: Check the "Disabled" option in the "Status" page , click the "Save" button,
click the "Apply" button, a pop-up will ask whether to restart the gateway service immediately
(see the figure below), click "Apply" to take effect immediately , and then click "OK". Then
refresh the page, wait for the gateway service to restart and update the interface information, as
shown in the following figure.

Website:www.minew.com Email: [email protected] 10


SHENZHEN MINEW TECHNOLOGIES CO LTD

Open AP: Uncheck the "Disabled" option in the "Status" page, click the "Save" button,
click the "Apply" button, it will ask whether to restart the gateway service immediately (see the
figure below), click "Apply" to take effect immediately, Click "OK" again. Then refresh the
page, wait for the gateway service to restart and update the interface information, as shown in the
following figure.

Website:www.minew.com Email: [email protected] 11


SHENZHEN MINEW TECHNOLOGIES CO LTD

1.3.2 Hide or display the AP

The hotspot can be hidden only when the AP is on. In the "Status" page, check the
"Hidden" option, click the "Save" button and then click "OK" , you can also hide or display
the WiFi hotspot, as shown in the figure below.

1.3.3 Configure the password for the AP

In the AP setting column under "Status" of the gateway WEB configuration interface , the
user can set the connection password in AP mode (see the figure below). After clicking the
"Apply" button, it will take effect immediately, or you can click "Cancel" to cancel, and it will
take effect after restarting.

Website:www.minew.com Email: [email protected] 12


SHENZHEN MINEW TECHNOLOGIES CO LTD

2. Network configuration

The MG6 gateway can connect to the network in three ways: Ethernet, Wireless, and
Cellular. The MG6 gateway can maintain the connection of multiple networks at the same time,
and the combination of connecting networks can be Ethernet + Wireless, Ethernet + Cellular, and
Ethernet + Wireless + Cellular. The Gateway enables the dhcp mode by default.

2.1 Ethernet Connection

The MG6 gateway has an RJ45 port, which can be used to access the Internet via a network
cable.
Ethernet Mode has two submodes, DHCP mode (default) and STATIC mode, DHCP mode is
that the gateway automatically obtains the IP address from the superior router, and STATIC mode
is to manually assign a fixed IP address to the gateway. Click on the drop-down menu to select.

2.1.1 DHCP pattern

In the Ethernet Settings column of the gateway configuration interface, select the DHCP
mode and click the "Save" button before the network Settings will take effect. Connect the MG6
gateway and the superior router with the network cable, and the gateway will automatically
Website:www.minew.com Email: [email protected] 13
SHENZHEN MINEW TECHNOLOGIES CO LTD

obtain the IP address and connect to the network from the superior router through the DHCP
protocol.
If you are already connected to Ethernet, the status items will show Network Mode as
ethernet, and Ethernet IP Address will show the IP of Ethernet, otherwise Ethernet IP Address
will display N/ A.

2.1.2 Static pattern

Connect the MG6 gateway and the superior router with the network cable, select the static
mode in the Ethernet column of the gateway configuration page, fill in the IP address
information, click the "Save" button, and the network setting will take effect and automatically
connect to the network.
If you are already connected to Ethernet, the status item will display Network Mode as
ethernet and Ethernet IP Address displays Ethernet IP, otherwise Ethernet IP Address will display
N / A.

Website:www.minew.com Email: [email protected] 14


SHENZHEN MINEW TECHNOLOGIES CO LTD

The interface fields are detailed below.

field name description


Mode model Either the dhcp mode or the static mode
IP Address IP address Confirm that the IP address is not occupied
NetMask subnet mask Conconsistent with the subnet mask of the superior
router
Gateway Address default Consistent with the ip address of the upper router
gateway
Primary DNS Preferred Preferred DNS address, default 114.114.114.114
DNS
Secondary DNS reserve DNS Backby DNS address, default 8.8.8.8
Network checking Network Test the specified IP or domain name by ping to
connection check whether the current network is normal or
reliability not.
detection You can set it to test connectivity through a
different network, the default is to check for an

Website:www.minew.com Email: [email protected] 15


SHENZHEN MINEW TECHNOLOGIES CO LTD

Ethernet connection. Please make sure the server


has ICMP protocol enabled, or has a page,
otherwise the gateway will not be able to ping its
IP or WGET URL.

2.2Wireless linkage

The MG6 gateway can be used as a WLAN client to connect to the WLAN AP and realize
the data communication with the server.
Wireless Mode has two submodes, DHCP mode (default) and STATIC mode, DHCP mode is
that the gateway automatically obtains the IP address from the superior router, and STATIC mode
is to manually assign a fixed IP address to the gateway.

2.2.1 DHCP pattern

In the Wireless Settings section of the Network Configuration interface, Profile list is the list
of configured WLAN SSID.
Select the WLAN SSID that the gateway wants to connect from the Available Access Point
list, and the corresponding relevant information, such as ssid, bssid (MAC address), encryption
and signal channel, is displayed in the text box below.
We only need to select the corresponding SSID, fill in the password, select the dhcp mode,
and then click "Save profile" to add only the WIFI profile. If you have multiple WIFI AP, you
can repeat the above, add multiple alternate WIFI to a "Profile", switching WLAN SSID and
"save profile" will not delete the previously configured WIFI. The gateway tries to switch to the
available WIFI in the current Profile.
It is worth noting that the Save profile button means that only the profile is saved to the
gateway, but it does not take effect. If it needs to take effect immediately, click "Apply" to restart
the network service.
If you have been connected to the specified WIFI, the status item displays Network Mode as
ethernet> wireless and Wireless IP Address shows the IP of WIFI, otherwise Wireless IP Address
Website:www.minew.com Email: [email protected] 16
SHENZHEN MINEW TECHNOLOGIES CO LTD

displays N / A.

In order to meet the needs of different customers, we can fill in the hidden WIFI SSID in the
SSID column, or the router MAC address locked to the corresponding router (SSID name can be
set the same, MAC is unique); Besides, we also added support for 802.1x enterprise AP
connection, you can select the corresponding encryption mode and related configuration in the
Encryption column (see the figure below). The specific verification method corresponds to the
relevant configuration of the upper router, which users need to fill in by themselves.

Website:www.minew.com Email: [email protected] 17


SHENZHEN MINEW TECHNOLOGIES CO LTD

2.2.2 Static pattern

In the Wireless Settings column of the gateway configuration interface, select the WLAN
SSID and the password to connect from the Available Access Point list, select static mode, fill in
the IP address information and DNS address information, then click "Save profile" to add only
the WIFI configuration file, and then click "Apply" to restart the network service.
If you have been connected to the specified WIFI, the status item displays Network Mode as
ethernet> wireless, and Wireless IP Address shows the connected IP of the wireless network,
otherwise Wireless IP Address displays N / A.

Website:www.minew.com Email: [email protected] 18


SHENZHEN MINEW TECHNOLOGIES CO LTD

The interface fields are detailed below.

field name description


Available Access Available As a client to automatically get the nearby available
Point WLANs WLAN SSID
nearby
SSID selected The SSID selected by default, if it is hidden, you can
SSID modify it by yourself
BSSID MAC The corresponding router can be locked by MAC
address
Encryption Encryption Various encryption methods are available
Cipher Wireless set on the wireless router. It has nothing to do with
Security how to connect to the network, the default is auto
Encryption
Protocol
Key WLAN The connection password for connecting to the
password specified WLAN
Website:www.minew.com Email: [email protected] 19
SHENZHEN MINEW TECHNOLOGIES CO LTD

Proto pattern Either the dhcp mode or the static mode


IP Address IP address Confirm that the ip address is not occupied
Net Mask subnet mask Confirm the consistency with the subnet mask of the
superior router
Gateway Address default Consistent with the ip address of the superior router
gateway
Primary DNS Preferred Preferred DNS address, default 114.114.114.114
DNS
Secondary DNS reserve DNS Backby DNS address, default 8.8.8.8
Network checking Network Test the specified IP or domain name by ping to check
connection whether the current network is normal or not.
reliability You can set it to test connectivity through a different
detection network, the default is to check for an WiFi
connection. Please make sure the server has ICMP
protocol enabled, or has a page, otherwise the gateway
will not be able to ping its IP or WGET.

2.3 Cellular linkage

The MG6 gateway can connect to the cellular network and realize the data communication
with the server.
In the Cellular Settings column of the Network configuration interface, remove the Disabled
check and click the "Save" button, the network Settings will take effect and automatically
connect to the network.
If already connected to the cellular network, the status item will show Network Mode as
ethernet> cellular, and Cellular IP Address shows the connected IP of the cellular network,
otherwise Cellular IP Address will show N / A.

Website:www.minew.com Email: [email protected] 20


SHENZHEN MINEW TECHNOLOGIES CO LTD

The interface fields are detailed below.

field name description


Disabled Disabled Whether to open the cellular network connectivity
IMEI IMEI The unique identification number of the cellular
module
Signal Strength signal The signal intensity of cellular modules, measured
intensity in dBm, is usually measured in negative values,
with smaller values indicating stronger signal.
For example, -70 dBm, indicating a stronger
signal than-80 dBm.
SIM Detect SIM card SIM card status: gray is not inserted, green
status indicates that SIM card can dial normally, red
detection indicates that SIM card is inserted but cannot dial.
APN APN Access point name, it is not set by default
Username Username User name, it is not set by default
Password Password Password, which is not set by default
Authentication Type Validation Validation type: NONE, PAP, CHAP, MSCHAPV2.
type The default is for NONE

Website:www.minew.com Email: [email protected] 21


SHENZHEN MINEW TECHNOLOGIES CO LTD

2.4 Failover

Gateways support any network in Ethernet, WIFI, and cellular networks, and can also enable
networking where two or three of them coexist. When multiple networks coexist, the network
usage priority is from high to low as: Ethernet> Wireless> Cellular. The gateway will adjust the
network mode according to the availability and priority of the network.
In any case, no matter how the user configure WIFI, whether the cellular network is usable,
as long as the gateway is plugged and the network is available, the Ethernet connection is
preferred. Assuming all three gateway network connections exist, it will try to switch to WIFI
when Ethernet is unavailable, and again, when WIFI is not available, it will try to switch to a
cellular network.
Failover Please refer to for the detailed description of the general properties interface 2.4.1
Ethernet + Wireless connection

pour: There is a detailed explanation


Website:www.minew.com Email: [email protected] 22
SHENZHEN MINEW TECHNOLOGIES CO LTD

Note: If only WIFI is currently available and the WIFI network check fails, the gateway
switches between multiple WIFI hotspots. If no WIFI hotspot is available, it switches to the AP _
only mode.
AP _ ONLY mode: AP _ ONLY mode refers to the gateway does not connect to the
superior WiFi hotspot, and only launches its own hot spot, so that after the superior WiFi
hotspot fails, users can also re-enter the configuration page with the help of the gateways
own hot spot.

2.4.1 Ethernet + Wireless connection

If the gateway is connected to Ethernet and WIFI is configured, Network Mode is E thernet>
wireless in the status item.
Ethernet IP Address Display the connected IP of Ethernet, otherwise Ethernet IP Address
displays N / A.
Wireless IP Address Display the IP of the wireless network, otherwise Wireless IP Address
will display N / A.

Network usage priority is: Ethernet> Wireless. When Ethernet is not available, it will try to

Website:www.minew.com Email: [email protected] 23


SHENZHEN MINEW TECHNOLOGIES CO LTD

switch to WIFI. If the hotspot network inspection in the current Profile List fails, the gateway
will switch to other hot spots in the Profile List in order. When the network inspection fails many
times, the gateway will add the failed hot spots to the blacklist. When the hot spot is added to the
blacklist, the gateway will not try again until the blacklist expires. When none of the hotspots in
the Profile List are available, the gateway switches to the AP_ONLY mode, and during the
AP_ONLY mode, the gateway automatically retries to connect to the Profile List hotspot.
If the later Ethernet is available, the gateway will use an Ethernet connection.

The WIFI specific attribute interface fields are described below.

field description
Hidden property of ssid Is the current WIFI sf d hidden.(Do not arbitrarily change the
hidden properties of the hotspot, otherwise the failover function
may not find the hotspot.)
Network checking Test the specified IP or domain name by ping to check whether the
current network is normal or not.
You can set it to test connectivity through a different network, the
Website:www.minew.com Email: [email protected] 24
SHENZHEN MINEW TECHNOLOGIES CO LTD

default is to check for an WiFi connection. Please make sure the


server has ICMP protocol enabled, or has a page, otherwise the
gateway will not be able to ping its IP or WGET URL.

Failover The generic attribute interface field is detailed below.

field description

Network checking Network check time interval (in seconds)


interval
Number of times retry Number of retries before listing it (0 means that hotspots will not be
before blacklist it automatically blacklisted)
Number of seconds for Number of seconds blacklist expired (0 does not expire until
a blacklisting to expire gateway restart)
Minimum network Minimum network traffic when connected is active (in bytes / s)
traffic in bytes per If the traffic on the current network reaches the set value, then the
second to consider that Network checking is not performed to detect the current network.
connection is ative When set to 0 will never detect, it is recommended not to set it.

2. 4.2 Ethernet + Cellular connection

If the gateway is connected to Ethernet and configured with a cellular network, Network
Mode is ethernet > cellular.
Ethernet IP Address Display the connected IP of Ethernet, otherwise Ethernet IP Address
displays N / A.
Cellular IP Address Display the IP connected to the cellular network, otherwise Cellular IP
Address displays N / A.

Website:www.minew.com Email: [email protected] 25


SHENZHEN MINEW TECHNOLOGIES CO LTD

Network usage priority is: Ethernet> Cellular. Then when Ethernet is not available, it will try
to switch to the cellular network. If the later Ethernet is available, the gateway will use an
Ethernet connection.

2. 4.3 Ethernet + Wireless + Cellular connection

If the gateway is connected to Ethernet and configured with WIFI and cellular networks, the
Network Mode is ethernet> wireless> cellular.
Ethernet IP Address Display the connected IP of Ethernet, otherwise Ethernet IP Address
displays N / A.
Wireless IP Address Display the connected IP of the wireless network, otherwise Wireless IP
Address will display N / A.
Cellular IP Address Display the IP connected to the cellular network, otherwise Cellular IP
Address displays N / A.

Website:www.minew.com Email: [email protected] 26


SHENZHEN MINEW TECHNOLOGIES CO LTD

The network usage priority is: Ethernet> Wireless> Cellular. When Ethernet is not available,
it will try to switch to WIFI, see above for the WIFI section The Ethernet + Wireless connection
As described in, again, when WIFI is not available, it will try to switch to a cellular network. If
the later Ethernet is available, the gateway will use an Ethernet connection.

2. 5 Relay function

The bridging relay mode means that the LAN interface of the gateway will use the IP
segment of the upstream router. In this mode, the downlink gateway is in the same network
segment, which is convenient for batch management.
Nonbridging relay mode means that the LAN interface of the gateway creates its subnet. In
this mode, the uplink gateway cannot directly access the downlink gateway, which is not
conducive to batch management.

Website:www.minew.com Email: [email protected] 27


SHENZHEN MINEW TECHNOLOGIES CO LTD

The interface fields are detailed below.

field name description


Disabled To to the relay Turn the relay mode on or off
mode
Repeater Repeater Mode You can choose either a bridging relay mode or a
Mode non-bridging relay mode
Network Network mode You can choose either an Ethernet or wireless network. In
Mode bridging relay mode, if selecting Ethernet, means bridge relay
to Ethernet; if selecting wireless network, means bridge relay
to wireless network.

3. BLE data acquisition & Service access

3.1 BLE data acquisition

After the MG6 Bluetooth gateway is started, the Bluetooth broadcast data will be collected
continuously, and the default data will be sent to the connected server in one second when the
network is available.
Website:www.minew.com Email: [email protected] 28
SHENZHEN MINEW TECHNOLOGIES CO LTD

Data uploaded by the MG6 Bluetooth gateway comes in three formats (with the firmware
updates, the format may increase, subject to the actual display), MINEW-CONNECT,
JSON-RAW, and JSON-PREPARSED. The gateway defaults to the upload server using the
MINEW-CONNECT format.
The MG6 Bluetooth Gateway supports the offline storage feature, which takes effect when
the function is turned on and a TF card is inserted. The gateway will write data into the storage
media when disconnected and prioritize the upload when the internet connection is restored.
As shown in the figure below, you can choose your favorite data format by modifying the
Data format parameters:

field name description

Time interval to
Upload
uploading the Units can be selected, and the default is 1s
Interval
broadcast packets

Website:www.minew.com Email: [email protected] 29


SHENZHEN MINEW TECHNOLOGIES CO LTD

By default, only the one-road Bluetooth module is


used for scanning.
If the multi-channel scan is set, after the platform
BLE modules Number of normal
issues the BLE connection command, the gateway
for scanning BLE Bluetooth
will automatically switch to the 1-channel Bluetooth
during regular modules used for
module for scanning. When there is no Bluetooth
times scanning
connection command, the gateway will automatically
switch back to the multi-channel Bluetooth module
for scanning.
Disabled by default. When this feature is
enabled,MG6 will detect if an external storage is
inserted, if so it will try to write the data to be
reported to the storage media after disconnecting
from the network, and wait until the network is
reconnected, and then prioritize the uploading of
Check to
the historical data in chronological order.
enable the offline storage
The MG6 supports TF card, and when the light effect
offline storage feature
is enabled, if the LED blinks green quickly within 15
feature
seconds it means it is successfully recognized, if it
doesn't, it means the format is incompatible or the
contact is poor. LED yellow light flashes fast after
disconnection means data is being written. FAT32
format is recommended, but NTFS etc. are also
supported.
The data uploaded by the gateway is available in
three formats (subject to the actual configuration),
Data format data format namely MINNEW-CONNECT, JSON-RAW, and
JSON-PREPARSED
Default value: MINEW-CONNECT
Check to The default is ‘True’, where the field is ignored.
Whether to ignore
ignore ‘no’ ‘No’ field indicates which Bluetooth module receives
the no field in the
filed of json the broadcast package, the application does not need
json format
data format this field.

Website:www.minew.com Email: [email protected] 30


SHENZHEN MINEW TECHNOLOGIES CO LTD

Valid when Data format selects JSON-PREPARSED,


Preparsed type Pre-resolved ble
see [email protected] for
list type is supported
more content
by default True.
Check to Whether to upload
If you want to parse the BLE broadcast package
upload only the options
yourself, you can remove the check and parse the
preparsed type checked in the
original data of the broadcast package on the
only Preparsed type list
platform.

Note: Because the length is too long, the detailed data format, Please refer to the
[email protected] document for more information.

3.2 Service access

The MG6 Bluetooth gateway currently supports using the MQTT, HTTP, and TCP network
protocols to communicate with local or Internet servers. Users can choose a suitable network
protocol according to their own server architecture, and recommend using the MQTT protocol.
Service access of the MG6 Bluetooth gateway needs to be supported by the back-end MQTT or
HTTP or TCP service. The MG6 gateway ships with default access to Minew's TagCloud IoT
service.
MG6 Bluetooth gateway by default with the TagCloud IoT service and console in the cloud
as a demonstration, you can quickly experience the application of the Bluetooth gateway.

3.2.1 MQTT access

When using MQTT access, MG6 Bluetooth gateway supports timing Bluetooth data
uploading and remote command control function.
MG6 Bluetooth gateway can support MQTT 3.1.1 protocol standard server. Please refer to
MQTT 3.1.1 protocol document for detailshttp://mqtt.org。
The MQTT-related libraries, which can be viewed from the URL below
Website:www.minew.com Email: [email protected] 31
SHENZHEN MINEW TECHNOLOGIES CO LTD

https://github.com/mqtt/mqtt.github.io/wiki/libraries。

field name description


Service access
Protocol select MQTT
mode
scheme+domain name/IP Address+port
scheme: Optional value tcp: //, ssl: //
The Url for the
Url port: when scheme is tcp: //, port default 1883,
MQTT server
when scheme is ssl: //, port default 8883
Default: tcp://tagcloud.minew.com: 2883
Proxy proxy server Set up the sock5 proxy server for the MQTT
The Client ID defined by the MQTT protocol is the
identity of the client
Default: ${gatewayMAC}
Client ID MQTT Client ID
${gatewayMAC} is the hexadecimal lowercase
character form of the gateway's Mac, such as
aabbcddeeff
The QoS level defined by the MQTT protocol.
Qos MQTT QoS Grade QoS=0: at most once, possibly duplicate or lost.
QoS=1: At least once, possibly repeated.
Website:www.minew.com Email: [email protected] 32
SHENZHEN MINEW TECHNOLOGIES CO LTD

QoS=2: Yes and only once.


Default: 0
The keep alive interval defined by the MQTT
The heartbeat protocol defaults to 10 seconds. Some MQTT cloud
keep alive
interval of the servers do not allow such a small heartbeat interval.
interval
MQTT For example, Alibaba Cloud needs to adjust this
parameter to 60 seconds to connect.
Username MQTT user name Username defined by the MQTT protocol
Password MQTT password Ciphers defined by the MQTT protocol
Topic for the gateway to publish BLE data
Default: /gw/${gatewayMac}/status
Status Publish Topic for collecting
${gatewayMac} is the hexadecimal lowercase
Topic data and publishing
character form of the gateway's Mac, such as
/gw/aabbcddeeff/status.
It is used by the gateway to receive control
commands. The message is in JSON format.
Currently, only the " restart" command is supported.
Action Topic of control
Default: /gw/${gatewayMac}/action
Control Topic command message
${gatewayMac} is the hexadecimal lowercase
character form of the gateway's Mac, such as
/gw/aabbcddeeff/action.
It is used by the gateway to respond to control
Action commands, and the message is in JSON format.
Control Topic that controls Default: /gw/${gatewayMac}/response.
Response command response ${gatewayMac} is the hexadecimal lowercase
Topic character form of the gateway's Mac, such as
/gw/aabbcddeeff/response.

MQTT with Proxy Way of this

When using MQTT access, it supports Proxy Socks5 (the proxy resolves the URL hostname).

Website:www.minew.com Email: [email protected] 33


SHENZHEN MINEW TECHNOLOGIES CO LTD

Any of the following formats will work:


username: password@host:1080
username:password@host
username@host:1080
username@host
host:1080
host
The MQTT with SSL / TLS mode

When using MQTT access, it supports SSL/TLS protocol. After selecting "ssl://" in the
drop-down list of Url parameters, the parameters displayed are used to configure the loading
certificate to the gateway. Both USB and HFS are supported. As shown below.

Website:www.minew.com Email: [email protected] 34


SHENZHEN MINEW TECHNOLOGIES CO LTD

field name description


Optional values: USB and HFS (Http File
Server)
How to upload the
File Upload Method USB: Upload the certificate using USB
certificate
HFS: Upload certificates using HFS
FILE: Upload certificate via browser
Support HFS for gateway to download
Url Path of HFS URL PATH part of HFS certificate file
Default: http://192.168.0.3/ssl/
Username of basic If HFS does not have basic
Username for HFS Basic
authentication in authentication, you can leave this
Authentication
HFS parameter blank
Password of basic If HFS does not have basic
Password for HFS Basic
authentication in authentication, you can leave this
Authentication
HFS parameter blank
File name of CA certificate in U
disk/HFS
USB: The gateway will directly
download the certificate file to the root
File of Certificate Gateway trusted CA directory of the U disk
trusted by client certificate HFS: The gateway will download the
certificate file directly to the ${Urlpath}
path
FILE: The gateway will download the
certificate file through the browser
The file name of the gateway certificate
in the U disk/HFS
USB: The gateway will directly
download the certificate file to the root
File of Certificate
directory of the U disk
for client to present Gateway's certificate
HFS: The gateway will download the
to server
certificate file directly to the ${Urlpath}
path
FILE: The gateway will download the
certificate file through the browser
filename of keyfile in HFS
The client 's Private The private key of the USB: The gateway will directly
Key gateway certificate download the certificate file to the root
directory of the U disk

Website:www.minew.com Email: [email protected] 35


SHENZHEN MINEW TECHNOLOGIES CO LTD

HFS: The gateway will download the


certificate file directly to the ${Urlpath}
path
FILE: The gateway will download the
certificate file through the browser
The Password of Password for the private If the private key of the gateway
client ' s Private key of the gateway certificate is encrypted, this password
Key certificate must be provided

The configuration description for the SSL / TLS certificate is as follows:

USB Upload Method

method of uploading the certificate file using USB is as follows:


1. "Upload Way" on the web configuration page ;
2. Name the certificate to be uploaded as the file name of the corresponding input box;
3. Copy the named certificate file to the root directory of the U disk;
4. Insert the U disk into the USB port of the gateway;
5. Click the corresponding Upload button on the configuration page to upload the corresponding
certificate file.

HFS Upload Method

The method of uploading the certificate file in HFS mode is as follows:


Preliminary preparation: link under HFS software: https://sourceforge.net/projects/hfs/
Click to open the hfs.exe software to open the HFS service. The premise is that the gateway must
be configured with a network to communicate with HFS.
1. " Upload Way" on the webpage configuration page ;
2. Name the certificate to be uploaded as the file name of the corresponding input box;
3. Add the named certificate file to the path of HFS, as shown in the following figure;

Website:www.minew.com Email: [email protected] 36


SHENZHEN MINEW TECHNOLOGIES CO LTD

4. Fill in the path where the certificate is located in the Urlpath input box, for example:
http://192.168.0.51/ssl ;
5. Click the corresponding Upload button on the configuration page to upload the corresponding
certificate file.

FILE Upload Method

The method of uploading the certificate file in FILE mode is as follows:


1. "File Upload Method" on the web configuration page ;
2. "Choose File" on the webpage configuration page to select the corresponding certificate file;
3. Click the corresponding "Upload" button on the configuration page to upload the
corresponding certificate file.

3.2.2 HTTP access

When using HTTP access, the MG6 Bluetooth gateway only supports the function of
regularly uploading and collecting data.
The MG6 Bluetooth gateway support the HTTP / HTTPS protocol. In the service connection
setting column of the gateway WEB configuration interface, select HTTP and fill in the URL
information of the HTTP server, which will take effect after saving.
The HTTP Server Development Description:

Website:www.minew.com Email: [email protected] 37


SHENZHEN MINEW TECHNOLOGIES CO LTD

1. The HTTP server must be able to receive requests for the HTTP Post method.
2. The HTTP server should receive any packets uploaded by the gateway, including empty
packets (this is the request packet used to test if the HTTP server is online). Only after the HTTP
server returns HTTP status code 200, the gateway can continue to send the next packet.

field name description


Service access select HTTP
Protocol
method
It is used for the gateway to upload data regularly,
starting with http:// or https://, using the POST
method
http://tagcloud.minew.com:8080/gw/${gatewayMa
URL for collecting
Url c}/status
data
${gatewayMac} is the hexadecimal lowercase
character of the gateway's Mac, for example
http://tagcloud.minew.com:8080/gw/aabbcddeeff/st
atus.
Optional values: none (do not use HTTP
Authentication HTTP authentication), basic (use HTTP basic
Type Authentication Type Authentication)
Default: none
Username username Username for HTTP basic authentication
Password password Password for HTTP basic authentication
Website:www.minew.com Email: [email protected] 38
SHENZHEN MINEW TECHNOLOGIES CO LTD

3.2.3 TCP access

When using TCP access, the G1 Bluetooth gateway only supports the function of regularly
uploading and collecting data.
MG6 Bluetooth gateway can support the web server of TCP protocol. In the service
connection setting column of the gateway WEB configuration interface, select TCP, and fill in
the URL information of the TCP server, and it will take effect after saving.

field name description


Protocol networking protocol select TCP

The URL for the For the gateway timing to upload data,
Url acquisition of the The URL format is the {host / IP}: {port}
data release For example, 192.168.0.3:10000

3.3 Data Filtering

The data filtering of the three services access is the same, as shown in the figure below.

Website:www.minew.com Email: [email protected] 39


SHENZHEN MINEW TECHNOLOGIES CO LTD

field name description


Only upload data whose signal strength is greater
than this value, in dBm
When not filled, it means no filtering, the value can
Filter by rssi Rssi value filtering
be filled in -100 < rssi < 0
For example: when filling in -67, the weak signal of
-68 and below will not be uploaded to the server
Regular expression for BLE mac
For example: only want to receive BLE mac data
Filter BLE mac by
Filter by mac starting with AC23 or 0CEF, the regular expression
regex
is: ^AC23.*|^0CEF.*
Note: Here BLE mac is not case sensitive, no colon.
Regular expression for raw data
This filter is applicable to all data formats. This
filter condition can be used as long as the broadcast
packets of the BLE device are regular.
Filter raw data by For example: only want to receive UUID as
Filter by raw
regular expression FDA50693A4E24FB1AFCFC6EB07647825

the iBeacon broadcast package, the expression can


be written as ^.* FDA50693A4E24FB1AFCFC6EB07647825 .*
Note: Although this version does not have the Filter
by blename option, it is possible to use Filter by raw

Website:www.minew.com Email: [email protected] 40


SHENZHEN MINEW TECHNOLOGIES CO LTD

instead of Filter by blename by converting the ascii


code of the BLE name into hexadecimal form.
Default NO, optional YES, NO;
There are three ways to set filtering conditions:
mac: Broadcast packets with the same mac address
are considered duplicate data;
Whether to filter mac+type: broadcast packets with the same mac
Filter duplicate
duplicate data within address and the same type are considered duplicate
data
the upload interval data;
mac+raw: broadcast packets with the same mac
address and the same raw data are considered
duplicate data

Minew By default, only broadcast packets using the Minew


Connect V3 Connect V3 protocol are received. Uncheck to
/
advertising receive more BLE advertising packets if needed.
packets only
To save data usage or cost, it is not uploaded by
Should an empty
Upload when default. If you want to use it to determine if the
packet be uploaded
no ble adv was gateway is online, you can enable this option. In this
when no BLE
collected way, the gateway will upload data at the interval of
broadcast is scanned
the upload interval.

3.4 BLE scan parameter configuration

This part of the parameter is used to configure the scanning strategy of the Bluetooth module. As
shown in the figure below.

Website:www.minew.com Email: [email protected] 41


SHENZHEN MINEW TECHNOLOGIES CO LTD

field name description


When enabled, only data that conforms to the
Minew advertising format will be scanned, which
is related to the Minew Connect V3 advertising
format.
The difference between this option and the
Whether to only scan "Minew Connect V3 advertising packets only"
Minew only
Minew devices option is that "Minew Only" is used by the BLE
firmware, while the "Minew Connect V3
advertising packets only" option is used by the
WiFi firmware.
Please uncheck to receive more BLE advertising
packets.
1. There are two types of broadcast packets of
BLE tags: broadcast packets and scan reply
packets. The broadcast packet is actively
broadcast by the BLE tag; the scan reply packet is
passively broadcast after the BLE tag receives the
request after the scanner sends a request.
Whether to enable 2. The scanning strategy of the BLE module of
Active Scan
active scanning the gateway is correspondingly divided into two
types, active scanning and passive scanning.
Active scanning will send a request for reply
packets to the BLE tag, while passive scanning
will only receive broadcast packets and will not
send a request for reply packets.
3. If your BLE tag does not have reply packets,
Website:www.minew.com Email: [email protected] 42
SHENZHEN MINEW TECHNOLOGIES CO LTD

you can uncheck this option, which can improve


the scanning rate of BLE broadcast packets.
Please choose at least one rate according to the
Rate BLE speed
actual situation.1Mbps is selected by default.

3.5 Remote Control (only MQTT)

Remote control can send the command to the gateway and transmit the command data to the
BLE device through the gateway.

Note: Please refer to the [email protected] document for more


information.

4. Other configurations

4.1 Meaning of LED lamp

The top lamp effect means as follows:

state meaning
Green light is always on: when DC power supply or POE network cable is
Power supply
connected, the power supply is normal
indicator lamp Green light off: indicates the power is not connected or the hardware
failure.
(PWR)
--hardware control
Blue light is always on: LoRaWAN Working condition is normal
LoRaWAN lamp Blue light off: LoRaWAN not working / abnormal, network server not
(LoRa) connected
Blue light flashing: LoRaWAN transfer data

The Blue light is always on: the Bluetooth works normally


Bluetooth lamp Blue light off: Bluetooth inactive / abnormal (one or multi-channel
(BLE) Bluetooth failure)
Blue light flashing: OTA upgrade

Website:www.minew.com Email: [email protected] 43


SHENZHEN MINEW TECHNOLOGIES CO LTD

Network indicator
Blue light is always on: select Ethernet / WiFi to upload data
light
Blue light goes off: Ethernet / WiFi upload data is not selected
(Net)

When the SIM card is inserted, the blue light is long and out,
LTE pilot lamp No inserted card or recognition failure, the blue light long out and short
(LTE) light.
Blue light flash during module data communication.
Start / Reart: in the start process (UBOOT), the blue light may always be
on, light off or white light.
Status indicator WIFI, network port or LTE network flow: green light is always on; network
interruption or drop: red light is always on.
light: the RGB (Wifi) OTA upgrade: red light flashing, (wifi) OTA upgrade, upgrade failure
light will restart (UBOOT mode) jump to rescue brick mode.
All the problems lead to the rescue brick mode is the white light always on.
Recovery of factory setting: set successfully, the gateway performs the
restart operation (according to the first effect), and if the setting fails, the
restart operation is not performed (still the current effect).

4.2 Time configuration

The gateway does not have an RTC clock, so it is necessary to synchronize the time of the
NTP server to obtain the accurate time or manually synchronize the time of the host where the
browser is located to the gateway.

4.2.1 Using the NTP server for synchronization

Both the time zone and the NTP server address can be set. In the time configuration column
of "Other" on the web page, you can set the time zone (UTC by default) and NTP server (default
is the ntp server of openwrt). After filling in your own information, click the "Apply" button to
complete the configuration. Effective immediately. As shown below.

The default UTC time zone is 0 time zone. If the timezone is in the east time zone, it can be
set to UTC-time zone number. For example, if it is set to UTC-8, it is the time zone of our east
eighth zone;

Website:www.minew.com Email: [email protected] 44


SHENZHEN MINEW TECHNOLOGIES CO LTD

If the timezone can be set in the western time zone, it can be set to UTC+time zone number. For
example, if it is set to UTC+8, it is the time zone of the western eighth zone.

Sync interval Indicates the interval for synchronizing time with the server. For example, if it
is set to 60, it means that the time synchronization with the server will be performed
automatically every minute.

Tips: China time zone can also be set to CST-8, more detailed Timezone
Settingshttps://wiki.openwrt.org/doc/uci/system

4.2.2 Set the time manually

Set the gateway system time manually, you can click Apply with host time or click Apply.
Current time Show is the time of the gateway system. As shown in the figure below.
When you click Apply with host time, the gateway will actively obtain the time that the
browser is hosting and synchronize the time to the gateway. Before clicking Apply with host
time, the Timezone parameter must be the same time zone as the time zone of the host where the
browser is located, otherwise the set time is sometimes an error.
When clicking Apply, the gateway is to obtain Time time synchronization to the gateway.

Website:www.minew.com Email: [email protected] 45


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.3 Automatic management

The automatic management module is divided into Automatic Reboot (automatic restart) and
Timing Reboot (timed restart). As shown below.

Website:www.minew.com Email: [email protected] 46


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.3.1 Automatic restart

The gateway does not enable the automatic restart function by default. If the gateway is
disconnected from the server for more than a specified time during the stable connection with the
server (the reason for the disconnection may be the server or the gateway network), the gateway
will automatically restart. After the gateway is restarted, if the server has not been connected to
the server, the gateway will not restart again . The automatic restart will only occur during the
process of being disconnected in the middle.

4.3.2 Regular restart

The timing restart function is disabled by default on the gateway. After enabling this
function, the gateway will restart at the specified time (the time zone used by the time is the time
zone in the previous time configuration ).

4.4 Firmware upgrade

Gateways consists of WiFi modules and BLE modules, so gateway upgrades involve two
types of firmware: WiFi firmware and BLE firmware. It is recommended that you upgrade the
BLE firmware and then upgrade the WiFi firmware.
Different firmware versions correspond to different function adjustment and upgrade, which
can be selected on demand.

Website:www.minew.com Email: [email protected] 47


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.4.1 WiFi firmware upgrade

WiFi firmware upgrades support USB upgrades, FILE upgrades, On The Air upgrades
(OTA), LAN upgrades, and customer custom firmware upgrades (essentially OTA).

Note: The entire upgrade process lasts for 2 to 3 minutes, the USB upgrade is the fastest, and
the air upgrade time depends on the network status. During the upgrade process, the status light
of the gateway turns red and flashes, and the upgrade process is not over until the blue light is
often on. Before the state light becomes blue light often on, do not disconnect the power of the
gateway, otherwise there is a risk of brick.

4.4.1.1 Air upgrade (OTA)

In the case that the gateway can connect to the Internet, Firmware Type select WiFi in the
“Other” Settings bar of the web, and Upgrade Type select OTA Upgrade. If you want to save the
current configuration parameters, please check "Save current configuration", click "Upgrade"
button and then click "OK" to confirm the upgrade.
After confirming the upgrade, it will take some time to download the firmware. During the
upgrade process, the status light of the gateway turns red and flashes, and the upgrade process is
not over until the blue light is often on. Before the state light becomes blue light often on, do not
disconnect the power of the gateway, otherwise there is a risk of brick.
If the gateway does not flash with a red light after 2 minutes after clicking the upgrade, it
means that the gateway obtains the upgrade firmware timeout and the upgrade fails. See the web

Website:www.minew.com Email: [email protected] 48


SHENZHEN MINEW TECHNOLOGIES CO LTD

panel below.

4.4.1.2 FILE upgrade

In the Other Settings bar of the web interface, Firmware Type select WiFi and Upgrade
Method select FILE Upgrade. If you want to save the current configuration parameters, check
"Save current configuration" and click "Choose file" to select the firmware version to be
upgraded through the browser, click the "Upgrade" button and then click "OK" to confirm the
upgrade.
After confirming the upgrade, it will take some time to download the firmware. During the
upgrade process, the status light of the gateway turns red and flashes, and the upgrade process is
not over until the blue light is often on. Before the state light becomes the blue light, do not
disconnect the power of the gateway, otherwise there is a risk of brick. See the lower bound
diagram for the web surface.

Website:www.minew.com Email: [email protected] 49


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.4.1. 3 LAN upgrade

If the gateway cannot upgrade with USB and cannot connect to the external network,
Firmware Type select WiFi in the Other setting bar of the web interface. If you want to save the
current configuration parameters, please check "Save current configuration" and fill in the URL
of the firmware (for how to build HFS, please refer to the previousMQTT insert) Click the
"Upgrade" button and then click "OK" to confirm the upgrade.
After confirming the upgrade, it will take some time to download the firmware. During the
upgrade process, the status light of the gateway turns red and flashes, and the upgrade process is
not over until the blue light is often on. Before the state light becomes blue light often on, do not
disconnect the power of the gateway, otherwise there is a risk of brick.
If the gateway does not flash with a red light 2 minutes after clicking the upgrade, the
gateway obtains the upgrade firmware timeout and the upgrade fails. See the web panel below.

4.4.1. 4 Upgrade of customer customized firmware

In the case that the gateway can connect to the external network, Firmware Type select WiFi
in the “Other” setting bar of the web interface, Upgrade Type select Customization Upgrade, and
fill in the version number of our firmware customized for customers. If you want to save the
current configuration parameters, please check "Save current configuration", click the "Upgrade"
button and then click "OK" to confirm the upgrade.
After confirming the upgrade, it will take some time to download the firmware. During the
upgrade process, the status light of the gateway turns red and flashes, and the upgrade process is

Website:www.minew.com Email: [email protected] 50


SHENZHEN MINEW TECHNOLOGIES CO LTD

not over until the blue light is often on. Before the state light becomes blue light often on, do not
disconnect the power of the gateway, otherwise there is a risk of brick.
If the gateway does not flash with a red light after 2 minutes after clicking the upgrade, it
means that the gateway obtains the upgrade firmware timeout and the upgrade fails. See the web
panel below.

4.4.1.5 USB upgrade

First renrenaming the WiFi firmware to "thingoo_WiFi_upgrade.bin", Then copy the


thingoo_WiFi_upgrade.bin file to the root directory of the U disk, Insert the USB interface into
the gateway device, In the Other setup bar of the web interface, Firmware Type Select WiFi,
Upgrade Type Select the USB Upgrade, If you want to save the current configuration parameters,
Please check "Save the configuration" on, Click the "Upgrade" button and then click "OK" to
confirm the upgrade.
During the upgrade process, the status light of the gateway turns red and flashes, and the
upgrade process is not over until the blue light is often on. Before the state light becomes blue
light often on, do not disconnect the power of the gateway, otherwise there is a risk of brick. See
the lower bound diagram for the web surface.

Website:www.minew.com Email: [email protected] 51


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.4.2 Bluetooth Firmware upgrade

Bluetooth firmware upgrades support USB upgrades, air upgrades (OTA), FILE upgrades,
LAN upgrades, and customer custom firmware upgrades (essentially air upgrades).
Note: When upgrading, the gateway will simultaneously upgrade the firmware of all its
Bluetooth modules, taking about 30s.

4.4.2. 1 Air Upgrade (OTA)

If the gateway can be connected to the external network, Firmware Type select BLE and the
OTA Upgrade, select the version number to be upgraded, click the "Upgrade" button and then
click "OK" to confirm the upgrade. See the following figure for the web interface.

Website:www.minew.com Email: [email protected] 52


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.4.2.2 FILE upgrade

In the “Other” setting bar of the web interface, Firmware Type select BLE, Upgrade Method
select FILE Upgrade, click "Choose file" to select the firmware version to be upgraded through
the browser, click the "Upgrade" button and then click "OK" to confirm the upgrade. See the
following figure for the web interface.

4.4.2. 3 LAN upgrade

In the “Other” setting bar of the web interface, Firmware Type select BLE, and Upgrade
Method select LAN Upgrade to fill in the URL of the firmware (as for how to build HFS, please
refer to the upload certificate section of the previous MQTT service access). Click the "Upgrade"
button and then click "OK" to confirm the upgrade. See the following figure for the web
interface.

Website:www.minew.com Email: [email protected] 53


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.4.2. 4 Upgrade of customer customized firmware

In the case that the gateway can be connected to the external network, Firmware Type select
BLE in the “Other” setting bar of the web interface, Upgrade Method select Customization
Upgrade, fill in the version number of our customized firmware for customers, click the
"Upgrade" button and then click "OK" to confirm the upgrade. See the following figure for the
web interface.

4.4.2. 5 USB upgrade

First rename the Bluetooth firmware to "thingoo_ble_upgrade.zip", then copy the


thingoo_ble_upgrade.zip file to the root directory of the U disk, insert the USB interface into the
gateway device, select BLE in the Firmware Type in the Other setting bar of the web interface,
select USB Upgrade in the Upgrade Type in the “Other” Settings bar of the web interface, click
the "Upgrade" button and then click "OK" to confirm the upgrade. See the following figure for
the web interface.

Website:www.minew.com Email: [email protected] 54


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.5 Troubleshooting

Check whether the network configuration of the gateway is normal, you can use the ping and
traceroute commands. The ping command is a common command to detect whether the network
is unblocked, while the traceroute command is the different router that shows the packet reaching
the target address to determine the node of the problem. The two are often used together.

4.5.1 command ping

The ping is used to determine whether the specified target address is accessible and to detect
whether the gateway network is smooth.

Website:www.minew.com Email: [email protected] 55


SHENZHEN MINEW TECHNOLOGIES CO LTD

The interface fields are detailed below.

field description
For the selected network test command, select the ping
Command
command
Max time to execute Maximum command execution time setting (5-120), in seconds,
command the default is 5 seconds

Number of packets sends


The number of packets sent is set (1-50), and the default is 1
only

Host/IP Target host or address, the default is www.baidu.com

4.5.2 Command traceroute

traceroute You can view the routing status of the packet reaching the target address to
determine the node of the problem.

Website:www.minew.com Email: [email protected] 56


SHENZHEN MINEW TECHNOLOGIES CO LTD

The interface fields are detailed below.

field description
For the selected network test command, select the traceroute
Command
command
Max time to execute Maximum command execution time setting (5-120), in seconds,
command the default is 5 seconds

Max number of hops Maximum jump number setting (1-30), the default is 1

Host/IP Target host or address, the default is www.baidu.com

4.6 Restart the gateway

Click the Reboot button in the column of "Other" on the web page to achieve a one-click
restart, as shown in the figure below.

Website:www.minew.com Email: [email protected] 57


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.7 Restore the factory settings

There are two ways to restore the factory settings: through the gateway Reset button or
through the web page configuration
Reset by any of the following methods. If a successful reset, the gateway should be restarted,
namely shutdown the light first, and then the blue light is always on, which means that the
factory setting has been successfully restored and the gateway is starting. If the lamp effect does
not change, the recovery is failed and the restart is not performed.
Since the previous configuration will be lost after restoring to factory settings, please
operate with caution.

4.7.1 Reset button

When the gateway is fully started, that is, when the blue light is no longer on, hold the Reset
key of the device through the Reset hole for 5s and release, and the device will resume the
factory setting with lighting effect indication.

4.7.2 Web page configuration

Click the "Factory Reset" button in the "Other" page to restore the factory settings, as
shown in the figure below.

Website:www.minew.com Email: [email protected] 58


SHENZHEN MINEW TECHNOLOGIES CO LTD

4.8 Rescue brick mode

When the gateway is powered off during the upgrade process, or the wrong firmware is
flashed, the gateway may become bricked. There are two ways to save the brick, one is through
the web page (mini-web server), and the other is serial port burning.

4.8.1 mini-web server

operating steps:

1. Power off the gateway device (or unplug the power cord).
2. Use the network cable to directly connect the gateway network port and the computer. At this
time, the network port is the LAN port. In addition to this case, the network port can only be
used as a WAN port.
3. Use the pin to press and hold the RESET button of the gateway device without releasing it,
then power up the gateway (or plug in the power cord).
4. The gateway will change from the static 6 -color light to the static white light within 6 seconds.
After entering the static white light state, it means that the gateway has started the web server,
and you can release the RESET button at this time .
5 . The uboot firmware does not support dhcp mode, so the computer should set a static ip
address in advance, the parameters are as follows:
ip: 192.168.99.2 , subnet mask: 255.255.255.0 , gateway: 192.168.99.1 .
6. Enter 192.168.99.1 on the computer browser to enter the web interface of the gateway. Upload
the firmware upgrade package of the WiFi module according to the prompt on the webpage, and
click upgrade to complete the rescue of the brick.
7 . The web interface is shown in the figure below. Note that you should update the WiFi module
Website:www.minew.com Email: [email protected] 59
SHENZHEN MINEW TECHNOLOGIES CO LTD

firmware when the gateway is bricked. Do not update U-Boot without special instructions . Do
not disconnect the power supply during the firmware update process.
7. The web interface is shown in the figure below. Note that when the gateway is brick, you
should update WiFi module firmware. Do not update U-Boot without special instructions, and do
not disconnect the power while updating the firmware.

4.8.2 Serial port burn and record

Serial programming needs to open the gateway shell, connect the serial cable and other
operations. It is more complicated and is not provided for the time being. The gateway using
64MB Flash needs to save the brick in this way. If required, please contact our sales team for
operating instructions.

5. statement

Statement of rights: This manual and all the contents contained therein are owned by Shenzhen
Yunliwuli Technology Co., Ltd. and are protected by relevant copyright laws in Chinese laws
and applicable international conventions. The company has the right to change the contents of
this manual according to the needs of technological development, and the changed version will
not be notified. Without the written permission and authorization of the company, any individual,
company, or organization shall not modify the contents of this manual or use part or all of the
contents of this manual in other ways. Violators will be held accountable according to law.
Disclaimer: Shenzhen Yunliwuli Technology Co., Ltd. reserves the final right of interpretation
for the differences between this manual and the actual product, and is subject to change without
prior notice. The company does not assume the responsibility for property or personal injury
caused by the abnormal operation of the customer. Please develop the corresponding product
according to the technical specifications and reference design in the manual.

Website:www.minew.com Email: [email protected] 60


SHENZHEN MINEW TECHNOLOGIES CO LTD

Website:www.minew.com Email: [email protected] 61

You might also like