Table of Contents

Advertisement

Quick Links

4G Router
User Manual
 MIR652R-W

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MIR652R-W and is the answer not in the manual?

Questions and answers

Summary of Contents for Maiwe MIR652R-W

  • Page 1 4G Router User Manual  MIR652R-W...
  • Page 2 Version: V1.0 Please read this user manual carefully before using this product...
  • Page 3 Copyright Statement Copyright © Wuhan Maiwe Communications Co., LTD. It is the special brand trademark of Wuhan Maiwe Communications Co., LTD. Microsoft and Windows are registered trademarks of Microsoft Corp. All relevant trademarks mentioned in this operating manual are separately owned by the relevant manufacturer.
  • Page 4 Safety Instructions: This product has reliable performance within its designed scope of use. However, it is essential to avoid any human-caused damage or destruction to the device.  Read the manual carefully and keep it for future reference.  Do not place the device near water sources or in humid areas. ...
  • Page 5: Table Of Contents

    Contents Product Introduction ........................1 Product Introduction .......................... 1 Product Features ..........................1 Product Display ..........................3 Specifications ............................ 3 Interfaces and Indicator Lights ......................6 1.5.1 Power input interface and RS232/485 interface ................7 1.5.2 Restart / restore the factory setting button ..................7 1.5.3...
  • Page 6 3.5.7 Static routing ............................ 33 3.5.8 Link check ............................36 3.5.9 Network Diagnosis ........................... 37 Firewall ............................38 3.6.1 Basic Settings ..........................38 3.6.2 Port forwarding ..........................39 3.6.3 Access control ..........................40 3.6.4 Custom rules ........................... 43 3.6.5 DMZ ..............................
  • Page 7 4.4.2.3 GRE Client ..............................99 4.4.2.4 OPENVPN client ............................101 4.4.3 VPN server ............................ 104 4.4.3.1 PPTP server ............................... 104 4.4.3.2 L2TP server ............................... 105 4.4.3.3 IPSec server .............................. 106 SNMP settings ..........................109 LLDP settings ..........................111 Cloud Service ..........................112 Maintenance and Service ......................
  • Page 8: Product Introduction

    Product Introduction Product Introduction MIR652R-W is a 2-port 100M card-rail 4G wireless industrial router specially designed and developed for industrial communication network applications. It supports multi-network online such as LAN, WAN, WLAN, 4G LTE, etc., intelligent Switch multi-network backup, which can realize serial port, wireless, and wired terminal equipment networking.
  • Page 9 Support IPv4/IPv6 Ping, IPv4/IPv6 Traceroute, Nslookup, and packet capture for network  diagnosis or fault analysis The firewall supports SYN-flood defense, port mapping, IP/MAC/DNS address filtering,  iptables command custom rules, DMZ isolated area, UPnP, IP/MAC speed limit, QoS limit...
  • Page 10: Product Display

    Product Display Specifications Table 1-1 MIR652R-W Performance Specification Table Software function  Support traffic statistics, running status, network status, local machine address and other status information  Support static address, DHCP, PPPoE external network connection, support WAN/LAN mode ...
  • Page 11  Support IP/MAC/domain name filtering, iptables, DMZ, UPnP, IP/MAC/QoS speed limit  Support IPv4/IPv6 Ping, IPv4/IPv6 Traceroute, Nslookup, capture network packets  Support time zone, NTP client/server, management port, system management Crontab, remote/local log  Support user rights management ...
  • Page 12  Baud rate: 300bps-230400bps  Data bits: 5bit, 6bit, 7bit, 8bit  Stop bit: 1bit, 2bit  Check digit: None, Odd, Even 3-way SMA-K (external threaded inner hole) antenna interface, one Antenna interface of which is used to connect to a 4G cellular antenna, and the other two are used to connect to a 2.4G Wi-Fi antenna...
  • Page 13: Interfaces And Indicator Lights

    Interfaces and Indicator Lights Note: MIR652R-W is equipped with a 4G antenna.
  • Page 14: Power Input Interface And Rs232/485 Interface

    1.5.1 Power input interface and RS232/485 interface It adopts 7-position 3.81mm spacing terminals, 1 and 2 are power input interfaces, and the voltage input range is: DC 9~36V; 3, 4, 7 are RS485 interfaces, 5, 6, 7 are RS232 interfaces mouth, defined as shown in the figure.
  • Page 15: Lan Interface

    1.5.4 LAN Interface Local Area Network (LAN) interface, mainly used for wired communication between the router and devices within the local network. Pin No. Signal Name Transmit Data+ (TD+) Transmit Data- (TD-) Receive Data+ (RD+) Receive Data- (RD-) 4, 5, 7, 8 Unused 1.5.5 Status Indicator...
  • Page 16: Antenna

    1.5.6 Antenna 1* 4G antenna and 2*Wi-Fi antennas. 1.5.7 SIM card slot and its button By default, it supports dual Nano SIM card slots, dual SIM and single standby. Installation Size MIR652R-W Size (in mm)
  • Page 17: Quick Internet Connection

    Quick Internet Connection Environmental preparation For a quick internet connection with the 4G router, you need to prepare a PC, One router, One ethernet cable, One DC12V/1A power supply, One 4G SIM card, The hardware connection is shown in Figure 2-1.
  • Page 18: Router Indicator

    Figure 2-2 network connection Use the standard DC12V power supply to power on the router.  After powering on, wait for about 2 minutes. When the 4G network connection status light  and the signal strength light are on, it indicates that the 4G router is successfully connected to the network and can access the internet normally.
  • Page 19: Web Login And Networking Test

    WEB login and networking test The initial account parameters for logging into the MIR652R-W series 4G router WEB are shown in Table 2-1. Table 2-1 WEB Initial Account Table Parameter Initial value LAN port IP address 192.168.16.253 User name...
  • Page 20: Web Basic Function Configuration

    When using the MIR652R-W series 4G router for WEB interface configuration, you can connect via a PC using an Ethernet cable to the LAN port of the MIR652R-W series 4G router, or connect wirelessly to the router's WLAN. After connecting, you can log in to the WEB management interface for configuration.
  • Page 21 Figure 3-1: User name and password input interface The default login user for this router is only one, with the role of a super administrator. The username is "admin", and it can configure all the functionalities of the router. If you need to create other users, please refer to section 3.7.2.
  • Page 22: Introduction To The New User Guide Page

    If it's not the first time logging in, you will be directed straight to the WEB management main page, as shown in Figure 3-3. Figure 3-3 WEB main page Introduction to the New User Guide Page When users log in to the WEB server for the first time, the system will enter the new user guide page, as shown in the above Figure 3-2.
  • Page 23 Figure 3-4: WAN Information Interface WAN/LAN Mode: When connecting to the external network via the WAN port, it must be set  to WAN mode (default is WAN mode). Protocol: WAN port protocols include static address, DHCP, and PPPoE. The default is ...
  • Page 24: Settings

    DHCP: By making a request to the DHCP server, it automatically obtains the IP address,  gateway, and DNS assigned by the server. PPPoE: Connect by setting up a username and password (obtained from the broadband  service provider), as shown in Figure 3-6.
  • Page 25: Wireless Settings

    Figure 3-7 4G setting interface 3.2.3 Wireless Settings You can configure the Wi-Fi status, SSID name, and password, as shown in Figure 3-8. Figure 3-8 The Wi-Fi setting interface...
  • Page 26: Main

    Main Page Introduction After the user logs into the WEB interface for the first time and completes the novice guide operation, they can enter the WEB main interface, as shown in the aforementioned Figure 3-3. It mainly consists of two areas: top and bottom. The upper part has a Logo area on the left and a function menu area on the right.
  • Page 27 Display the MAC and IP addresses of WAN, LAN, and WAN_4G Interface and add basic information of some VPN Client interfaces. WAN setting Configure connection parameters for WAN LAN setting Configure network parameters for LAN and DHCP Display the signal strength of the SIM card and configure the...
  • Page 28: Status

    Dynamic DNS Set the basic information of the dynamic domain name Set the basic information of servers such as PPTP, L2TP, and VPN server IPSec Configure parameters such as setting information, community, SNMP settings trap, etc. LLDP settings Set LLDP protocol connection parameters...
  • Page 29: Network Status

    Platform ID: The platform ID of the router  Device Model: The device model of the router  Device code: the device code of the router when it leaves the factory  Hardware Version: Router hardware version number ...
  • Page 30: Traffic Statistics

    Figure 3-12 Local machine address information MAC address: router LAN port MAC address  IP Address: The IP address of the LAN port of the router  Subnet mask: It is used to indicate which bits of an IP address are the subnet where the ...
  • Page 31: Network

    Figure 3-13 Flow statistics Total download volume: the current total download data flow of the router  Total upload volume: The current total upload data flow of the router  Network The network module includes interface, WAN setting, LAN setting, 4G setting, wireless setting, access device, static route, link check and network diagnosis.
  • Page 32: Wan Port Settings

    Figure 3-14 Basic information of the interface The new interface is mainly to add the VPN client network interface, and the protocols of the new interface include PPTP, L2TP, GRE, OPENVPN (TUN/TAP). For creating a VPN client network interface, please refer to the "4.4.2 VPN Client" section.
  • Page 33 Figure 3-15 Static address page WAN/LAN mode: Configure the working mode of the WAN port. The default is WAN mode  (used to connect to the external network). If it is configured as LAN mode, the network port is equivalent to a LAN port, and its usage is the same as other LAN ports Protocol: The currently selected WAN port networking protocol (static address, DHCP and ...
  • Page 34: Lan Port Settings

    Internet account: Enter the Internet account, the length is 4-32 characters, only numbers  and letters can be included Internet password: The password length is 4-32 digits and can only include numbers, letters  and some special symbols (~!@#$%^&*()_+-.) Confirm Internet access password: Confirm the Internet access password in case of wrong ...
  • Page 35: Settings

    Item description Basic Settings protocol Default is static address IP address The default IP address is 192.168.16.253, which can be modified subnet mask The default subnet mask is 255.255.255.0, which can be modified IP address of the device for the end user interface for other networks...
  • Page 36 Figure 3-18 The SIM card configuration page IMEI number: 4G module serial number  Firmware version: 4G module firmware version number  ICCID: SIM card number  Network Operator: current network operator  Network Mode: The network mode of the current router ...
  • Page 37: Wireless Settings

    3.5.5 Wireless settings It is mainly used to display and set the basic information of wireless. Wireless AP settings, as shown in Figure 3-19: Figure 3-19 Wireless configuration page In this interface, you can switch the wireless network on and off, set wireless parameters such as SSID, and modify the Wi-Fi encryption method and password.
  • Page 38 Figure 3-20 Wireless Client configuration page Click "Search" on the interface to search the list of wireless hotspots around you. Users can select the wireless hotspot they need to connect to, enter the hotspot password, and connect to the hotspot after application.
  • Page 39: Access Device

    Figure 3-21 The wireless AP + Client configuration page AP parameter setting can set wireless parameters such as SSID, and can also modify the encryption method and password. The legal length of the wireless password is 8-32 bytes, which can only include numbers, letters, and some special symbols (~!@#$%^&*()_+-.).
  • Page 40: Static Routing

    Figure 3-22 Access device page The access device in this chapter is the terminal device assigned IP by the router DHCP Server. If it is a static IP device, you can view it from the "Terminal Device" list on the status page.
  • Page 41 Main Router IP:192.168.1.1 4G Router A 4G Router B WAN:192.168.1.100 WAN:192.168.1.102 LAN:192.168.20.254 LAN:192.168.30.254 IP:192.168.20.120 IP:192.168.30.153 Figure 3-23 Network connection diagram The WAN ports of 4G routers A and B are both connected to the network of the main router 192.168.1.0, and the LAN port of router A is 192.168.20.0 subnet (you need to modify the static...
  • Page 42 64 bytes from 192.168.30.254: seq=3 ttl=64 time=0.302 ms 64 bytes from 192.168.30.254: seq=4 ttl=64 time=0.288 ms --- 192.168.16.253 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.288/0.320/0.384 ms Figure 3-25 ping page It can be seen that the static route has taken effect, otherwise the LAN port of router B cannot be accessed from T1.
  • Page 43: Link Check

    Note: The static routing example above shows the routing configuration method for device T1 under router A to access device T3 under router B. If you want device T3 under route B to access device T1 under router A, the same You need to set up a static route on router B, and then enable the forwarding function from the WAN port of router A to the LAN port.
  • Page 44: Network Diagnosis

    Notice: Enabling it will improve the stability of the network. It is strongly recommended to configure a suitable target IP and enable this function. 3.5.9 Network Diagnosis This interface provides simple gateway network testing functions, including Ping diagnosis, TraceRoute, Nslookup query, etc. Figure 3-29 shows the diagnostic result of Ping through the...
  • Page 45: Firewall

    Firewall 3.6.1 Basic Settings The default configuration in the basic firewall settings is shown in Figure 3-30. Figure 3-30 Basic settings page Inbound: data packets accessing the router IP  Outbound: the data packet to be sent out by the router IP ...
  • Page 46: Port Forwarding

    If there is an "inbound" packet, such as someone intending to log in to the router's webpage from the WAN port, it will be allowed. If there is an "outbound" data packet, such as a router accessing the external network through a WAN port or a 4G port, this action is allowed.
  • Page 47: Access Control

    Figure 3-31 New port forwarding page Name: The name of the port forwarding rule note, the legal value length is 1-32 bytes, and  can only include numbers, letters and some special symbols (~!@#$%^&*()_+-.) Protocol: The default is TCP+UDP, the network protocol corresponding to the current ...
  • Page 48 Figure 3-33 Add to the IP page Source IP address: the IP address of the host to be filtered  Source port: Generally, this parameter does not need to be set, and the default is to filter all ...
  • Page 49 Figure 3-34 Add MAC page MAC address: the MAC address of the host to be filtered.  Filter rules: The filter rules default to deny, that is, to restrict hosts with MAC addresses from  accessing the external network through routers.
  • Page 50: Custom Rules

    Figure 3-36 Add domain name page Name : the comment name of the domain filter to be added  URL: domain name URL or domain name URL keyword to add domain filtering  Status: Whether the currently added domain name filter rule is enabled and effective, and it ...
  • Page 51: Upnp

    This buffer is located between the internal network and the external network of the enterprise. In the small network area between networks, some server facilities that must be disclosed can be placed in this small network area, such as enterprise WEB servers, FTP servers, etc.
  • Page 52: Network Speed Control

    Figure 3-39 UPnP settings 3.6.7 Network speed control Network speed control can limit the uplink and downlink speeds of devices connected to the router to access the network. It supports IP segment address speed limit and MAC address speed limit. Multiple rules can be added at the same time.
  • Page 53: Qos

    Figure 3-41 Add MAC network speed control page 3.6.8 QoS The full name of QoS is Quality of Service, which means service quality. It is specially used to solve the problem that the signal quality on the congested network is not treated equally. The QoS service is disabled by default, and the configuration interface is shown in Figure 3-42.
  • Page 54: System

    System 3.7.1 System Property The purpose of this function is to display the current system time, as well as the host name and time zone of the 4G router, which can be set, as shown in Figure 3-43. Figure 3-43 System properties System time: Get the current system time, you can click the clock icon to modify it, or you ...
  • Page 55: Administration Authority

    3.7.2 Administration Authority You can modify the administrator password on the management rights page, and you can also add new ordinary users (up to 5 ordinary users can be added, ordinary users cannot operate the network, firewall, service configuration interface, and can open SSH switch and set the SSH port number), as shown in Figure 3-44.
  • Page 56: Backup And Upgrade

    Figure 3-45 System restart page The scheduled restart function is enabled by default (the default scheduled restart time is set to 3:58 on Monday morning, and the scheduled restart function can be turned off), the scheduled restart is triggered cyclically on a weekly basis, and the router can be restarted at any time on any day of the week.
  • Page 57 Restore: After clicking the "Restore" button, the router will restore the factory parameter  settings and restart automatically. In addition, you can restore the factory settings by dialing up the router RESET button for more than 7 seconds and then dialing it down.
  • Page 58: Scheduled Task

    3.7.5 Scheduled task You can set custom plans on this page, as shown in Figure 3-47. Figure 3-47 Scheduled task page Writing a scheduled task requires the user to first understand the format of the scheduled task (refer to Notes). After the scheduled task is saved, the corresponding command can be executed automatically without human intervention.
  • Page 59 Figure 3-49 Local log interface Timed save: local log timed save switch, enabled by default  Storage cycle: The cycle setting for saving local logs at regular intervals. By default, the logs  are saved and backed up once every hour. It supports the functions of saving logs after...
  • Page 60 View: Support logs to be viewed by type. After selecting the type of log to be viewed, click  View to view the latest log content. Download logs: If you want to view all saved historical logs, please click Download Logs to ...
  • Page 61: Web Advanced Function Configuration

    WEB Advanced Function Configuration The advanced functions of the router are mainly located in the service module. Service modules include serial port to network, peanut shell intranet penetration, dynamic DNS, VPN (client and service device), SNMP settings, LLDP settings.
  • Page 62 Figure 4-1 Network parameter configuration interface The detailed configuration parameters of this interface are shown in Table 4-1. Table 4-1 Network configuration parameter list Network parameters This device supports the following working modes: Modbus RTU Master, Modbus RTU Slave, Modbus ASCII Master,Modbus ASCII...
  • Page 63 When the working mode of this device is MQTT, the user needs to select the server platform type, and the optional platforms include Alibaba Cloud, OneNet, Huawei Cloud, Maiwe Cloud, Tencent Cloud, and other clouds. Then configure the MQTT MQTT address, port number, subscription topic, device key, etc.
  • Page 64: Serial Port

    When the network working mode is in TCP mode, it detects the idle time of the current overtime time connection and the corresponding serial port, and disconnects the TCP connection when it exceeds the set value. Crypto_DES_ECB/Crypto_DES_CBC/Crypto_DES_NCBC/Crypto_DES_PCBC/ Crypto_DES_CFB/Crypto_DES_CFB64/Crypto_DES_OFB/Crypto_DES_OFB64/ Crypto_3DES_ECB/Crypto_3DES_CBC/Crypto_3DES_CFB/Crypto_3DES_CFB64/...
  • Page 65 Figure 4-2 Serial port parameter configuration interface RFC2217: RFC2217 enable control.  Baud rate: the baud rate of serial communication, the unit is bps.  Data bits: Set the valid data bits for serial communication.  Stop bit: Set the stop bit length for serial communication.
  • Page 66: Heartbeat Packet

    Receive Bytes: The number of bytes received by the serial port.  Sent Bytes: The number of bytes sent by the serial port.  4.1.3 Heartbeat packet A heartbeat packet refers to a custom command word that regularly notifies the other party of its...
  • Page 67: Registration Package

    20225. Then enable the heartbeat packet function 1, select the sending method as "send heartbeat to the server", set the heartbeat packet period to 5 seconds, and set the heartbeat packet data to hexadecimal 55aa. Then build a TCP Server on the PC to view the...
  • Page 68: Timeout Restart

    Registration package function: the sending method of the registration package. Disable:  Disable this function; Send once when establishing a connection with the server: The registration packet is only sent once when the network connection is established; Add a registration packet before each frame of data: The registration packet is sent to the network every time When sending data over the network, it is filled in front of the serial port data.
  • Page 69 In RTU Master mode, the RTU master device accesses the TCP slave device through the gateway. 1. The RTU master device sends a request to the gateway;  2. The gateway forwards the request to the TCP slave device;...
  • Page 70 Figure 4-8 Modbus WEB parameter configuration Modbus Poll software configuration: Open the Modbus Poll software, go to "Connect" -> "Connect", the connection parameter  configuration and read parameter configuration are as follows:...
  • Page 71 Figure 4-9 Modbus host serial port parameter configuration and read parameter configuration Read parameter configuration: the slave ID is 1, the function code is 03, the starting address  of the register to be read is 0, the number of registers to be read is 10, and the cycle is read, the interval is 1000ms.
  • Page 72: Slave Mode (Modbus Slave)

    View test results: Figure 4-11 The normal response of Modbus slave register value to the host The communication is normal, and the master can read the register data of the slave through the Modbus gateway device. 4.1.6.2 Slave mode (Modbus Slave) Take Modbus_RTU_Slave as an example (Modbus ASCII Slave is the same): In Modbus RTU Slave mode, the TCP master device accesses the RTU slave device through the gateway.
  • Page 73 Request ② ①Request Modbus Master Slave Gateway Device Device ③Response ④Response Figure 4-12 Modbus Slave mode Configure the "serial port parameters" of the Modbus gateway as 9600-8-N-1, the working mode in the "network parameters" as Modbus RTU Slave, and the local port as 31001.
  • Page 74 Figure 4-13 Modbus WEB parameter configuration Open the Modbus Poll software: Go to "Connect" -> "Connect", and configure the connection parameters as follows:...
  • Page 75 Figure 4-14 Modbus host network connection parameter configuration and device attribute definition Reading parameter configuration: the slave ID is 1, the function code is 03, the starting address of the register to be read is 0, the number of registers to be read is 10, and the cycle reading interval is 1000ms.
  • Page 76: Slave Address Mapping

    Test Results: Figure 4-16 The normal response of Modbus slave register value to the host 4.1.6.3 Slave Address Mapping The Modbus protocol stipulates that all slave devices must have a unique ID number (1~247). This ID number is used to identify the slave address in response to the request from the master device.
  • Page 77: Modbus Slave Read Ahead

    Figure 4-17 Slave station address mapping function setting 4.1.6.4 Modbus Slave Read Ahead After the slave pre-reading function is enabled, the Modbus gateway will automatically record up to 256 RTU or 128 ASCII commands, and then automatically execute these commands, and save the results in the Modbus gateway.
  • Page 78: Modbus Feature Function

    Modbus slave address aging time: If the user enables the slave pre-reading function, and a  recorded Modbus command exceeds the set time and does not continue to read the command from the slave, the command will be deleted from the Modbus gateway .
  • Page 79 Figure 4-19 Modbus feature function in slave mode The configuration in master mode is as follows:...
  • Page 80: Realcom Function

    COM port of the host in the form of TCP/IP. This device supports three RealCOM protocols: RealCOM_MCP mode is compatible with Moxa’s virtual serial port tool; RealCOM_CCP mode is compatible with Kanghai’s virtual serial port tool; RealCOM_MW mode supports Maiwe’s virtual serial port tool software.
  • Page 81 How to use Maiwe RealCOM: The WEB of this device is configured as RealCOM_MW mode; Install and open Maiwe virtual serial port management software; Click [Add Device], and the add serial port mapping interface will pop up; Click [Scan], the software will scan the devices in the LAN;...
  • Page 82: Httpd Client Function

    Figure 4-22 Virtual serial port management software creates a virtual serial port Connect the serial port of this device with the real serial port on the host, and use the serial port debugging tool to open the serial port created by the virtual serial port management software and the host respectively.The real serial port on the computer, and the two send data to each...
  • Page 83 Specific usage method: Select "Httpd Client" as the working mode; Fill in the HTTPD address, that is, the HTTP server address, which can be an IP address or a domain name (the ability to connect to the external network is required);...
  • Page 84: Websocket Client Function

    Figure 4-26 Httpd Client communication Wireshark packet capture example 4.1.9 WebSocket Client function This function is that the device acts as a WebSocket Client, transparently transmits the data received by the serial port to the WebSocket server in hexadecimal format, and the WebSocket...
  • Page 85 Figure 4-27 WebSocket Client configuration introduction Specific usage method: Select "WebSocket Client" as the working mode;  Fill in the address of the WebSocket server, which can be an IP address or a domain name  (the ability to connect to the external network is required);...
  • Page 86: Mqtt Function

    (The premise is that the device is in a state that can connect to the external network) Let's take Maiwe Cloud as the MQTT server as an example: Platform selection: Maiwe Cloud ...
  • Page 87 2s ping interval can be successfully connected; It is recommended that this value should not be too large or too small, and the typical value is 60s or 120s. Then log in to Maiwe Cloud: Find our product device in device management, click to connect.
  • Page 88 After connecting, use the serial port tool to open the corresponding serial port, and then send the string, the data can be sent and received normally on the Maiwe cloud server and the serial port, and the MQTT function verification is normal.
  • Page 89: Json Function

    4.1.11 JSON function The JSON function is only available in the three working modes of WebSocket Client, Httpd Client and MQTT. The JSON function is a data reporting function. The serial port is connected to the Modbus Slave device. This product acts as a Modbus Master to collect the data information of the slave device, and then compose JSON format data and send it to the server.
  • Page 90 Offsets the read value. (offset calculation is after scaling) For the data part, it can be configured as unquoted or with quotes, key value which can be configured according to the actual situation JSON delivery command parameters keywords...
  • Page 91 Figure 4-33 Example of JSON upload mode parameter configuration Open the Modbus Slave software to simulate the slave device, and confirm that the serial port parameter configuration is consistent. Figure 4-34 Example of serial port parameter configuration and Modbus Slave software configuration Open a WebSocket server, here we use WebSocketMan.exe software.
  • Page 92 Figure 4-35 Websocket server configuration example Since the JSON command we configured is to query the slave station whose device ID is 1, check the value of Modbus Slave software register address 1 is 11. Figure 4-36 Example of Modbus Slave address value...
  • Page 93 Then open the wireshark software to capture packets, and check that the data sent to the WebSocket server on the device is: {Dec202022-11:39:56,"json_name":11unit}, and the value on the corresponding address of the slave device is completed Convert it to JSON format and send it to the server.
  • Page 94 Figure 4-38 Configuration example of sending JSON parameters Then, the corresponding register value of the slave device is modified on the WebSocket server side by issuing keyword adding values. The issue format is keyword + colon + value + semicolon, as follows: keyword: Value;...
  • Page 95: Intranet Through Of Peanut Shell

    Notice:  Port numbers 80, 443, 4500, 4800, 57050, 57051, 57850, 57851 have been used by the system, please do not reuse them when configuring port numbers.  The device and the remote device must have the same baud rate, parity bit, data bit and stop bit;...
  • Page 96 Figure 4-40 Get the front page of the QR code When the status is ONLINE, the first login will display the QR code page that needs to be scanned and bound, as shown in Figure 4-41. Figure 4-41 Get the QR code page...
  • Page 97 After obtaining the QR code, you need to use the "Peanut Shell Management" APP on your mobile phone to scan the code and bind it You need to bind an account for the first login. After binding the account, the bound account will be displayed on the page, as shown in Figure 4-42.
  • Page 98 Figure 4-44 Add mapping page Set mapping, add mapping interface as shown in Figure 4-45 Figure 4-45 Add mapping page Application name: Set the name of the currently added mapping (arbitrary setting)  Mapping type: choose any mapping protocol such as TCP/UDP/HTTP/HTTPS...
  • Page 99 Extranet domain name: Select the domain name to be mapped in the options (apply for a  free domain name or purchase a paid domain name) Internet port: You can choose dynamic port (free) or fixed port (need to purchase) ...
  • Page 100: Dynamic Dns

    Figure 4-47 Switch mapping page Dynamic DNS Dynamic DNS configuration parameters are shown in Figure 4-48...
  • Page 101: Vpn

    Figure 4-48 Dynamic DNS settings Enable: Enable or disable DDNS function, DDNS is disabled by default §  Effective interface: Select the corresponding WAN port according to the needs, such as wan  (wired WAN port), g4wan (4G WAN port) Service provider: DDNS server address, the above picture uses peanut shells as an ...
  • Page 102: Vpn Client

    L2TP: L2TP (Layer 2 Tunneling Protocol, Layer 2 Tunneling Protocol) is a Layer 2 VPN  tunneling protocol that uses PPP (Point to Point Protocol, Point-to-Point Protocol) for data encapsulation, similar to PPTP, and Both add extra headers to the data.
  • Page 103 Figure 4-49 Create PPTP client page The name of the new interface: 1-6 characters in length, can be numbers, letters or _  New interface protocol: PPTP protocol must be selected here to create a PPTP client  VPN server: set the IP address or domain name of the PPTP server ...
  • Page 104: L2Tp Client

    Figure 4-50 PPTP advanced settings page MPPE: Set whether to enable MPPE encryption for the PPTP channel, which is enabled by  default MTU: set the MTU of PPTP channel, the default is 1482  MRU: set the MRU of PPTP channel, the default is 1482 ...
  • Page 105 Figure 4-51 Add L2TP client interface page The name of the new interface: 1-6 characters in length, can be numbers, letters or _  Protocol of the new interface: L2TP protocol must be selected here when creating an L2TP ...
  • Page 106: Gre Client

    The L2TP advanced setting parameters are shown in Figure 4-52. Figure 4-52 L2TP advanced settings page MTU: Set the MTU of the L2TP channel, the default is 1500  MRU: Set the MRU of the L2TP channel, the default is 1500 ...
  • Page 107 Figure 4-53 GRE protocol The name of the new interface: 1-6 characters in length, can be numbers, letters or _  Protocol of the new interface: to create a GRE client, the GRE protocol must be selected  here Remote address: WAN port IP address of peer GRE ...
  • Page 108: Openvpn Client

    TTL setting: set the TTL of the GRE channel, the default is 255  Set MTU: Set the MTU of the GRE channel, the default is 1500  4.4.2.4 OPENVPN client OPENVPN supports two-way certificate authentication. The client needs to authenticate the server, and the server also needs to authenticate the client.
  • Page 109 Figure 4-56 TAP protocol The name of the new interface: 1-6 characters in length, can be numbers, letters or _  New interface protocol: create OPENVPN client can choose TUN (routing mode) or TAP  (bridge mode) TCP/UDP communication: the protocol used by the channel, UDP or TCP can be selected, ...
  • Page 110 Figure 4-57 Advanced settings page Use LZO compression: enable or disable transfer data to use LZO compression  Use TLS: Whether to enable the method with TLS  TLS authentication key: the authentication key of the secure transport layer ...
  • Page 111: Vpn Server

    4.4.3 VPN server The VPN server supports VPN servers with three protocols: PPTP server, L2TP server, and IPSec server. The configuration methods are as follows. 4.4.3.1 PPTP server The PPTP server includes two parts: PPTP VPN server and user management, as shown in Figure 4-58.
  • Page 112: L2Tp Server

    MTU: set the MTU of PPTP channel, the default is 1482  MRU: set the MRU of PPTP channel, the default is 1482  Enable: Set whether to enable the login authentication user name and password in the ...
  • Page 113: Ipsec Server

    Figure 4-59 L2TP server L2TP VPN: Enable or disable L2TP VPN server  L2TP server IP: The virtual IP address of the VPN server, which cannot be located on the  same network segment as the LAN port IP Client IP address range: The IP address range assigned to the client, which must be in the ...
  • Page 114 Figure 4-60 Basic settings IPSecVPN: Enable or disable IPSec VPN server, IPSec VPN server is disabled by default  Connection name: Indicates the name of the connection, the length is 1~32 characters, and  the value is a letter, a number or _ Networking mode: divided into two modes: site-to-site and PC-to-site ...
  • Page 115 Figure 4-61 Advanced settings page Phase 1 settings Set the relevant parameters of the first phase of IKEv1  Negotiation mode: IKEv1 version supports two modes: main mode and aggressive mode,  the default is to select the main mode.
  • Page 116: Snmp Settings

    Enable DPD detection: whether to enable the DPD detection function, which will send DPD  packets regularly to quickly find out whether the peer is online Phase 2 Settings Set the relevant parameters of the second phase of IKEv1 ...
  • Page 117 Figure 4-63 Setting page SNMP Agent: Turn on or off the SNMP Agent function, the default SNMP Agent function is  The SNMP community setting page is shown in Figure 4-64. Figure 4-64 Community setting page Community name: set the name of the SNMP community, the length is 1-63 letters or ...
  • Page 118: Lldp Settings

    Enable SNMP Trap: Enable or disable the SNMP Trap function. The SNMP Trap function is  disabled by default. Before enabling the SNMP Trap function, you must first enable the SNMP Agent. Trap target host: set the IP address of the Trap target host ...
  • Page 119: Cloud Service

    The LLDP neighbor device information discovered by the router is displayed in real time in the LLDP neighbor information list. Cloud Service The device supports a very simple cloud service access configuration process. Only simple configuration steps are required to quickly realize the communication function between devices and cloud servers in various regions.
  • Page 120 Notice: If you need to modify the factory value of the configuration parameters of the device cloud service, please contact our technical staff.
  • Page 121: Maintenance And Service

    Ltd., during the warranty period, if the product has any malfunction or operational failure, Wuhan Maiwe Communication Co., Ltd. will repair or replace the product for the user free of charge. However, the above commitment does not cover damages caused by improper use, accidents, natural disasters, incorrect operation, or incorrect installation.

Table of Contents