5G industrial router network automatic diagnosis method and device
By automatically obtaining and analyzing communication module and base station information in the 5G industrial router network, real-time monitoring and automatic diagnosis of network status are achieved, and the problem of difficult to identify and solve network failures in the prior art is solved, and the self-repair ability and stability of the network are improved.
Patent Information
- Application Number
- CN202510100392.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-09
AI Technical Summary
The prior art is difficult to realize real-time monitoring and automatic diagnosis in 5G industrial router networks, and it is impossible to effectively identify and resolve network failures, especially when "false normal" situations occur.
A 5G industrial router network automatic diagnosis method is proposed. By obtaining communication module and base station information, the network form and substantial state are judged. If abnormal, the connection will be automatically re-dialized, and the network diagnosis server will be regularly accessed for status verification, and the exception log will be recorded.
It realizes automatic recovery and logging of 5G industrial routers in the event of network failure, significantly improves self-repair capabilities, reduces manual operation and maintenance costs and response time, and ensures the continuity and stability of network services.
Smart Images

Figure CN119967459A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communications, and in particular to a 5G industrial router network automatic diagnosis method and device. Background Art
[0002] 5G industrial routers play a vital role in modern production environments, connecting and managing various devices and systems to ensure the smooth progress of industrial production. However, with the popularization of the industrial Internet and the continuous expansion of the scale of industrial networks, the stability and reliability of industrial router networks are particularly critical to production efficiency and product quality.
[0003] AT commands are used for connection and communication between terminal devices and PC applications. AT stands for Attention. Each AT command line can only contain one AT command; for sending AT commands, in addition to the two characters AT, a maximum of 1056 characters (including the last null character) can be received.
[0004] Traditional industrial router network problem identification and diagnosis methods often rely on manual intervention and periodic inspections, which cannot meet the needs of rapidly changing network environments and real-time response to network failures. Therefore, there is an urgent need for an automated industrial router network diagnosis method that can monitor network status in real time, identify potential failures, and provide effective solutions.
[0005] In the application scenarios of 5G industrial routers, a "false normal" phenomenon sometimes occurs: the communication module shows that the network status and base station connection are normal, but in fact the communication quality between the router and the base station is poor or there is a hidden fault, resulting in inefficient or failed data transmission. In this case, although the indicator light on the device panel may show that everything is normal, users may encounter problems such as increased latency, increased packet loss, or complete inability to access the Internet. Summary of the invention
[0006] In order to solve the above problems, the present invention proposes a 5G industrial router network automatic diagnosis method and device, which can realize automatic recovery and record abnormal information of embedded network equipment after network disconnection in an abnormal situation in an actual production environment.
[0007] The specific plan is as follows:
[0008] On the one hand, a 5G industrial router network automatic diagnosis method includes:
[0009] Basic network information acquisition step, obtaining the communication module information in the 5G industrial router and the base station information corresponding to the 5G industrial router;
[0010] The network abnormality judgment and recovery steps are as follows: confirm whether the network status of the 5G industrial router is normal according to the network standard or IP address in the communication module information; if the network status is normal, set the polling detection time and the network diagnostic server address, and perform network status detection on the 5G industrial router regularly through the network diagnostic server address; if the network status is abnormal, re-establish the connection with the base station by dialing;
[0011] The network abnormality log storage step stores the abnormality logs of the 5G industrial router when the network form status and network actual status are abnormal.
[0012] Furthermore, the communication module information includes: signal strength, network standard, SIM card status, SIM card number, IMEI number, IP address, reference signal received power, reference signal received quality, signal to interference plus noise ratio and received signal strength indication; the base station information includes: mobile country code, mobile network code, tracking area code, absolute radio frequency channel number and physical cell identification.
[0013] Furthermore, the network anomaly judgment and recovery steps specifically include:
[0014] Use AT commands to query the network standard or IP address in the communication module information, confirm whether there is an abnormal network status such as no service or IP address does not exist, and if there is an abnormal network status, push the network standard service status, abnormal signal value and base station information to the front-end webpage of the 5G industrial router device, and disconnect the link between the communication module and the base station; receive the configured APN and ID card authentication information, and re-establish a connection with the base station by dialing based on the APN and ID card authentication information; after confirming that the connection is successfully established, confirm that the network is successfully established through the AT command to query the network results;
[0015] If the network status of the communication module is normal, the polling detection time and the network diagnostic server address are set. When the polling detection time is reached, the 5G industrial router accesses the IP addresses of the network diagnostic servers in sequence through the network protocol to confirm whether the network path from the 5G industrial router to the network diagnostic server is reachable; if any network diagnostic server is reachable, the network actual status of the 5G industrial router is determined to be normal; if all network diagnostic servers are unreachable, the network actual status of the 5G industrial router is determined to be abnormal; when the time of the abnormal network actual status reaches the set abnormal threshold, the 5G industrial router automatically restarts.
[0016] Furthermore, the network protocol is ICMP or TCP.
[0017] Furthermore, the number of the network diagnostic servers is greater than or equal to 1; when all network diagnostic servers are unreachable, it is determined that the actual network status of the 5G industrial router is abnormal.
[0018] Furthermore, after determining that the network status of the 5G industrial router is abnormal, redial the connection immediately.
[0019] Furthermore, the 5G industrial router has a higher priority in performing redial connection than automatic restart.
[0020] Furthermore, the network abnormality log storage step specifically includes:
[0021] The storage includes the time node of the network interface abnormality, the serial number of the device, the status of all network interfaces, base station information and communication module information, the routing status of the 5G industrial router device network, the ARP table, the CPU usage, the memory usage, the storage usage and the AT interaction log.
[0022] Furthermore, the 5G industrial router network automatic diagnosis method also includes compressing abnormal logs and supporting export.
[0023] On the other hand, a 5G industrial router network automatic diagnosis device includes:
[0024] Basic network information acquisition module, used to obtain the communication module information in the 5G industrial router and the base station information corresponding to the 5G industrial router;
[0025] The network anomaly judgment and recovery module is used to confirm whether the network status of the 5G industrial router is normal according to the network standard or IP address in the communication module information; if the network status is normal, set the polling detection time and the network diagnostic server address, and perform network status detection on the 5G industrial router regularly through the network diagnostic server address; if the network status is abnormal, reconnect with the base station by dialing;
[0026] The network abnormality log storage module is used to store the abnormality logs of the 5G industrial router when the network form status and network actual status are abnormal.
[0027] The present invention adopts the above technical solution and has the following beneficial effects:
[0028] (1) The present invention significantly improves the self-healing capability of 5G industrial routers in the event of network failures through an automated network anomaly detection and recovery mechanism. Even in harsh and difficult-to-maintain industrial scenarios, when the network is disconnected or "falsely normal", the system can automatically reconfigure and establish a connection with the base station, greatly reducing manual operation and maintenance costs and response time, and ensuring the continuity and stability of network services.
[0029] (2) The present invention improves the accuracy of identifying hidden faults by periodically accessing multiple network diagnostic servers to verify network status;
[0030] (3) The present invention supports log compression and export through detailed log recording and analysis, which facilitates remote troubleshooting and technical support. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flow chart of a 5G industrial router network automatic diagnosis method according to an embodiment of the present invention;
[0032] Figure 2 This is a structural block diagram of a 5G industrial router network automatic diagnosis device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.
[0034] like Figure 1 As shown, the present invention provides a 5G industrial router network automatic diagnosis method, comprising:
[0035] S1 basic network information acquisition step, obtaining the communication module information in the 5G industrial router and the base station information corresponding to the 5G industrial router;
[0036] Specifically, the basic network information acquisition step specifically includes:
[0037] Obtain the communication module information in the 5G industrial router, including: signal strength, network standard, SIM card status, SIM card number, IMEI number, IP address, reference signal receiving power, reference signal receiving quality, signal to interference plus noise ratio and received signal strength indicator;
[0038] The base station information corresponding to the 5G industrial router includes: mobile country code, mobile network code, tracking area code, absolute radio frequency channel number and physical cell identification.
[0039] Specifically, the base station information includes: MCC (Mobile Country Code, used to identify the country or region to which the mobile network operator belongs), MNC (Mobile Network Code, used to identify the mobile network operator), TAC (Tracking Area Code, used to identify the tracking area where the mobile device is located in the LTE network), ARFCN (Absolute Radio Frequency Channel Number, used to allocate different channels in wireless communication), PCI (Physical Cell Identification, used to uniquely identify a cell in the LTE network); the communication module information in the 5G industrial router includes: signal strength, network standard (5G / 4G / 3G / 2G), SIM card status, SIM card ICCID (SIM card number), IMEI number, IP address, SS-RSRP / RSRP (reference signal received power, used to measure the reference signal power received in the network), SS-RSRQ / RSRQ (reference signal received quality, used to evaluate the signal quality in the network), SINR (Signal to Interference and Noise Ratio, used to measure the relationship between signal quality and interference level), RSSI (Received Signal Strength Indicator, used to indicate the received signal strength level). By recording the above two types of information, it is possible to determine whether the module and the base station interact normally.
[0040] Specifically, in this embodiment, ICMP or TCP type detection is configured, and redialing is performed when the server is unreachable. If dialing fails after reaching a threshold time, the system automatically restarts.
[0041] S2 network anomaly judgment and recovery step, confirm whether the network status of the 5G industrial router is normal according to the network standard or IP address in the communication module information; if the network status is normal, set the polling detection time and the network diagnostic server address, and perform network status detection on the 5G industrial router regularly through the network diagnostic server address; if the network status is abnormal, re-establish the connection with the base station by dialing.
[0042] Specifically, the network anomaly judgment and recovery steps specifically include:
[0043] Use AT commands to query the network standard or IP address in the communication module information, confirm whether there is an abnormal network status such as no service or IP address does not exist, and if there is an abnormal network status, push the network standard service status, abnormal signal value and base station information to the front-end webpage of the 5G industrial router device, and disconnect the link between the communication module and the base station; receive the configured APN and ID card authentication information, and re-establish a connection with the base station by dialing based on the APN and ID card authentication information; after confirming that the connection is successfully established, confirm that the network is successfully established through the AT command to query the network results;
[0044] If the network status of the communication module is normal, the polling detection time and the network diagnostic server address are set. When the polling detection time is reached, the 5G industrial router accesses the IP addresses of the network diagnostic servers in sequence through the network protocol to confirm whether the network path from the 5G industrial router to the network diagnostic server is reachable; if any network diagnostic server is reachable, the network actual status of the 5G industrial router is determined to be normal; if all network diagnostic servers are unreachable, the network actual status of the 5G industrial router is determined to be abnormal; when the time of the abnormal network actual status reaches the set abnormal threshold, the 5G industrial router automatically restarts.
[0045] Specifically, the network protocol is ICMP or TCP.
[0046] Specifically, the number of the network diagnostic servers is greater than or equal to 1; when all network diagnostic servers are unreachable, it is determined that the actual network status of the 5G industrial router is abnormal.
[0047] Specifically, redial the connection immediately after determining that the network status of the 5G industrial router is abnormal.
[0048] Specifically, the 5G industrial router has a higher priority than automatic restart in executing redial connection.
[0049] Specifically, in this embodiment, network anomalies are divided into two types. The first case is that when the mobile network interface of the communication module in the 5G industrial router is abnormal (the network status of the 5G industrial router is abnormal), a dial-up connection is re-established with the base station; the second case is when the mobile network interface is normal, the network diagnostic server is accessed through the set polling detection time, and multiple servers are supported for backup. When all servers are inaccessible, the dial-up connection is redialed; after the redial connection fails, an automatic restart is performed (the processing when the network status of the 5G industrial router is abnormal).
[0050] Specifically, in the detection process of this embodiment, the comparison network standard is first queried to see whether there is no service, and whether there is an IP address currently. If the current network standard is abnormal or the IP does not exist, the logical interface is closed and redialed; when the mobile network is already in the resident state and the network standard is obtained normally and the IP address is valid and exists, the set server is accessed through the pre-set polling detection time, and multiple servers are filled in for backup. The access is performed through the set protocol. When the TCP port connection detection is used, if the TCP port is in the open state, it is determined that the current network connectivity is normal; if the network port is in the closed state, it is determined that the current network connection status is abnormally connected. When the ICMP connection detection is used, if the server IP can be PINGed, it is determined that the current network connectivity is normal; if it cannot be PINGed, it is determined that the current network connection status is abnormally connected. When all servers are inaccessible, the communication module is allowed to reconnect with the base station. When the dial-up Internet access cannot be achieved after the set time, it is restarted.
[0051] Specifically, send an AT command such as AT+CGREG? Response +CGREG:0,1, where the second to last digit 0 means disabling network registration and actively providing network registration results, and 1 means enabling network registration and actively providing network registration results; in the last digit, the digit 0 means that the current network is not registered, and the communication module is not searching and registering a new operator; 1 means registering the home network; 2 means not registered, and the communication module is searching and registering a new operator; 3 means registration is rejected; 4 means unknown status; 5 means registering the roaming network.
[0052] S3 network abnormality log storage step, stores the abnormality log of 5G industrial router under network abnormality.
[0053] Specifically, the network abnormality log storage step specifically includes:
[0054] The storage includes the time node of the network interface abnormality, the serial number of the device, the status of all network interfaces, base station information and communication module information, the routing status of the 5G industrial router device network, the ARP table, the CPU usage, the memory usage, the storage usage and the AT interaction log.
[0055] Specifically, it also includes compressing the abnormal log of the 5G industrial router and supporting export.
[0056] Specifically, the detailed current status of the system and the system logs will be stored and saved when a network anomaly is triggered, so that the fault information can be viewed and the cause of the problem can be confirmed when necessary.
[0057] Specifically, when the 5G industrial router network is abnormal, the node log analysis shows at least the following situations:
[0058] (1) By checking the SIM card mechanism, it can be determined whether the SIM card is not recognized or whether an abnormality is caused by manual insertion or removal of the SIM card during use. The SIM card number can also be used to determine whether the SIM card has been replaced.
[0059] (2) By detecting the reference signal received power, reference signal received quality, signal to interference plus noise ratio, and received signal strength, it is determined whether the current network anomaly is caused by weak base station signals in the area and insufficient coverage;
[0060] (3) Through the IP address records, it can be compared whether it is the normal IP lease time of the base station to reallocate the IP or the IP change caused by abnormal redialing;
[0061] (4) When a 5G industrial router is used on a moving vehicle or device, and the network suddenly disconnects or freezes when it moves to a certain location, the base station information such as tracking area codes and physical cells can be used to analyze whether the network anomaly is caused by switching base stations. At this time, you can conduct an in-depth investigation and apply for further analysis of the base station with the operator's network optimization.
[0062] Specifically, in this embodiment, the industrial router works in a harsh working environment to provide a network for devices that need to be connected to the Internet. When data transmission is interrupted, the user's industrial control IoT platform will receive an alarm, and at this time, it is necessary to check the fault node and the cause of the occurrence. After the industrial router finds the network disconnection fault, it records the current fault time node for comparison with the user's platform, and the serial number is used to analyze whether there are common fault points of the same batch of equipment for subsequent analysis by R&D or technical personnel. Then the network interface status is queried to check whether the current state of the logical interface is caused by a network interruption caused by an application or system abnormality. The base station information and module content are used to analyze whether the network connection is interrupted due to the base station or the module itself. The routing status of the device can know whether the interface for traffic forwarding is normal at this moment, whether the traffic cannot be forwarded due to the abnormal routing entry at this moment, the CPU and memory can be used for the current system's operating status, and whether the network disconnection is caused by insufficient system resources. The stored AT instructions for the interaction between the router and the module can be used to record what operations the current system has performed on the module and whether the returned network information is normal. For example, the instruction AT+CGREG? Used to determine whether a network anomaly is returned; AT+C5GREG is used to query the network status of 5G; the AT^MONSC command is used to query the parameter values of the current resident cell, and will return base station information, such as physical cell ID, tracking area code, signal value, reference signal received power, reference signal received quality, signal-to-noise ratio and the like. There are also many AT command interactions, which can help you find traces when the device is disconnected from the network.
[0063] Specifically, the use positioning of industrial routers is to place the equipment inside certain industrial equipment, or inside certain power facilities, or in areas with harsh environments and sparse populations. These areas are basically difficult to maintain, and ordinary routers are difficult to handle such scenarios. Once the network is disconnected and cannot be restored, operation and maintenance personnel are required to operate on site, especially when encountering some special faults, such as a base station may be abnormal at a certain time point. At this time, it is difficult to troubleshoot and you need to stay on site and wait for reproduction. When the network is abnormally disconnected and cannot be reconnected, a relatively high cost of manual operation and maintenance is required. The present invention can judge the abnormal state and re-establish a connection with the base station, which is conducive to greatly reducing the operation and maintenance costs of personnel. When there is a special fault, the network cannot be restored. Storing logs is a big advantage, which is conducive to the analysis of logs by operation and maintenance personnel, so as to realize automatic diagnosis of industrial network faults and storage of logs, so as to reduce the interference of network faults on industrial production and improve reliability and stability.
[0064] like Figure 2 As shown, this embodiment also discloses a 5G industrial router network automatic diagnosis device, including:
[0065] The basic network information acquisition module 21 is used to obtain the communication module information in the 5G industrial router and the base station information corresponding to the 5G industrial router;
[0066] The network abnormality judgment and recovery module 22 is used to confirm whether the network status of the 5G industrial router is normal according to the network standard or IP address in the communication module information; if the network status is normal, set the polling detection time and the network diagnostic server address, and perform network status detection on the 5G industrial router regularly through the network diagnostic server address; if the network status is abnormal, re-establish the connection with the base station by dialing;
[0067] The network abnormality log storage module 23 is used to store the abnormality log of the 5G industrial router when the network form status and network actual status are abnormal.
[0068] The specific implementation of a 5G industrial router network automatic diagnosis device is the same as the 5G industrial router network automatic diagnosis method, and this embodiment will not be repeated.
[0069] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.
Claims
1. A 5G industrial router network automatic diagnosis method, characterized in that: include: Basic network information acquisition step, obtaining the communication module information in the 5G industrial router and the base station information corresponding to the 5G industrial router; The network abnormality judgment and recovery steps are as follows: confirm whether the network status of the 5G industrial router is normal according to the network standard or IP address in the communication module information; if the network status is normal, set the polling detection time and the network diagnostic server address, and perform network status detection on the 5G industrial router regularly through the network diagnostic server address; if the network status is abnormal, re-establish the connection with the base station by dialing; The network abnormality log storage step stores the abnormality logs of the 5G industrial router when the network form status and network actual status are abnormal.
2. The 5G industrial router network automatic diagnosis method according to claim 1 is characterized in that: The communication module information includes: signal strength, network standard, SIM card status, SIM card number, IMEI number, IP address, reference signal received power, reference signal received quality, signal to interference plus noise ratio and received signal strength indication; The base station information includes: mobile country code, mobile network code, tracking area code, absolute radio frequency channel number and physical cell identification.
3. The 5G industrial router network automatic diagnosis method according to claim 1 is characterized in that: The network anomaly judgment and recovery steps specifically include: Use AT commands to query the network standard or IP address in the communication module information, confirm whether there is an abnormal network status such as no service or IP address does not exist, and if there is an abnormal network status, push the network standard service status, abnormal signal value and base station information to the front-end webpage of the 5G industrial router device, and disconnect the link between the communication module and the base station; receive the configured APN and ID card authentication information, and re-establish a connection with the base station by dialing based on the APN and ID card authentication information; after confirming that the connection is successfully established, confirm that the network is successfully established through the AT command to query the network results; If the network status of the communication module is normal, the polling detection time and the network diagnostic server address are set. When the polling detection time is reached, the 5G industrial router accesses the IP addresses of the network diagnostic servers in sequence through the network protocol to confirm whether the network path from the 5G industrial router to the network diagnostic server is reachable; if any network diagnostic server is reachable, the network actual status of the 5G industrial router is determined to be normal; if all network diagnostic servers are unreachable, the network actual status of the 5G industrial router is determined to be abnormal; when the time of the abnormal network actual status reaches the set abnormal threshold, the 5G industrial router automatically restarts.
4. The 5G industrial router network automatic diagnosis method according to claim 3 is characterized in that: The network protocol is ICMP or TCP.
5. The 5G industrial router network automatic diagnosis method according to claim 3 is characterized in that: The number of the network diagnostic servers is greater than or equal to 1; when all network diagnostic servers are unreachable, it is determined that the network actual state of the 5G industrial router is abnormal.
6. The 5G industrial router network automatic diagnosis method according to claim 3 is characterized in that: After determining that the network status of the 5G industrial router is abnormal, redial the connection immediately.
7. The 5G industrial router network automatic diagnosis method according to claim 6 is characterized in that: The 5G industrial router has a higher priority than automatic restart in performing redial connection.
8. The 5G industrial router network automatic diagnosis method according to claim 1 is characterized in that: The network abnormality log storage step specifically includes: The storage includes the time node of the network interface abnormality, the serial number of the device, the status of all network interfaces, base station information and communication module information, the routing status of the 5G industrial router device network, the ARP table, the CPU usage, the memory usage, the storage usage and the AT interaction log.
9. The 5G industrial router network automatic diagnosis method according to claim 1 is characterized in that: It also includes compressing the exception log and supporting export.
10. A 5G industrial router network automatic diagnosis device, characterized in that: include: Basic network information acquisition module, used to obtain the communication module information in the 5G industrial router and the base station information corresponding to the 5G industrial router; The network anomaly judgment and recovery module is used to confirm whether the network status of the 5G industrial router is normal according to the network standard or IP address in the communication module information; if the network status is normal, set the polling detection time and the network diagnostic server address, and perform network status detection on the 5G industrial router regularly through the network diagnostic server address; if the network status is abnormal, reconnect with the base station by dialing; The network abnormality log storage module is used to store the abnormality logs of the 5G industrial router when the network form status and network actual status are abnormal.