Network switching method, networking monitoring equipment, system and storage medium

By obtaining multiple networking addresses and network priority rules for network monitoring devices, the first target networking method is selected, which solves the problem of poor communication reliability of existing energy gateways in complex environments, and realizes the network connection stability of network monitoring devices.

CN120151969APending Publication Date: 2025-06-13SOLAR POWER NETWORK TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510301761.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-13
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

Existing energy gateways usually communicate in a single network mode, which affects the sustainability and reliability of communication in complex working environments.

Method used

By obtaining the networking address corresponding to the networking monitoring device under multiple networking methods, combining the networking addresses of various networking methods and network priority rules, the first target networking method is selected, so that the networking monitoring device is connected to the network server based on the first target networking method.

Benefits of technology

It realizes the network mode that is the best communication among multiple network modes, avoids the problems of poor reliability and stability of a single network mode, and ensures the stability of network connections of network monitoring devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151969A_ABST
    Figure CN120151969A_ABST
Patent Text Reader

Abstract

The invention provides a network switching method, networking monitoring equipment, a networking monitoring system and a storage medium, and the network switching method comprises the steps: obtaining corresponding networking addresses of the networking monitoring equipment in a plurality of networking modes, wherein the plurality of networking modes comprise at least two of wireless local area network networking, mobile communication networking and wired local area network networking; according to the acquired networking address and a preset network priority rule, determining a first target networking mode of the networking monitoring equipment in a plurality of networking modes; and controlling the networking monitoring equipment to be switched to the first target networking mode, so that the networking monitoring equipment is connected to the network server based on the first target networking mode. According to the application, a redundancy design of a multi-network mode is adopted, and the first target networking mode meeting the requirement is selected by using the network priority rule, so that the network connection stability of the networking monitoring equipment is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technologies, and particularly relates to a network switching method, an Internet-connected monitoring device, a system, and a storage medium. Background Art

[0002] Currently, an energy gateway is a key node connecting a micro-inverter and an energy management server. The energy gateway can forward messages between the micro-inverter and the energy management server, thereby realizing remote monitoring and remote control of the operating state of the micro-inverter. However, existing energy gateways usually communicate in a single network mode. This method may perform well in a simple environment, but its communication continuity and reliability may be affected in a complex working environment. Summary of the Invention

[0003] This application provides a network switching method, an Internet-connected monitoring device, a system, and a storage medium to solve the above technical problems.

[0004] In a first aspect, this application provides a network switching method, including:

[0005] Obtaining the network addresses corresponding to an Internet-connected monitoring device under multiple networking methods, where the multiple networking methods include at least two of wireless local area network networking, mobile communication networking, and wired local area network networking;

[0006] Determining a first target networking method of the Internet-connected monitoring device among the multiple networking methods according to the obtained network addresses and a preset network priority rule;

[0007] Controlling the Internet-connected monitoring device to switch to the first target networking method so that the Internet-connected monitoring device connects to a network server based on the first target networking method.

[0008] In some embodiments, the step of controlling the Internet-connected monitoring device to switch to the first target networking method so that the Internet-connected monitoring device connects to a network server based on the first target networking method includes:

[0009] Obtaining initial networking data of the Internet-connected monitoring device, where the initial networking data includes the server name and port number to which the Internet-connected monitoring device is connected to the network server before switching to the first target networking method;

[0010] Controlling the Internet-connected monitoring device to re-initiate a connection according to the server name and port number in the first target networking method so that the Internet-connected monitoring device connects to the network server in the first target networking method.

[0011] In some embodiments, after the step of controlling the Internet-connected monitoring device to switch to the first target networking method so that the Internet-connected monitoring device connects to a network server based on the first target networking method, the method further includes:

[0012] Control the networked monitoring device to send heartbeat information to the network server every first preset time interval, and continuously monitor the confirmation information fed back by the network server to the networked monitoring device based on the heartbeat information;

[0013] When the networked monitoring device does not receive the confirmation information within the second preset time, control the networked monitoring device to reconnect to the network server based on the first target networking method.

[0014] In some embodiments, the method further includes:

[0015] When the networked monitoring device does not receive the confirmation information within the second preset time, determine that the first target networking method is abnormal and record the number of abnormalities of the first target networking method;

[0016] When the number of abnormalities of the first target networking method is greater than the first preset value, update the network priority rule to reduce the priority of the first target networking method in the network priority rule.

[0017] In some embodiments, after the step of controlling the networked monitoring device to reconnect to the network server based on the first target networking method when the networked monitoring device does not receive the confirmation information within the second preset time, the method further includes:

[0018] Record the network reconnection duration of the networked monitoring device reconnecting to the network server based on the first target networking method;

[0019] When the network reconnection duration exceeds the third preset time, determine the second target networking method of the networked monitoring device among multiple networking methods according to multiple network addresses and the updated network priority rule;

[0020] Control the networked monitoring device to switch to the second target networking method so that the networked monitoring device connects to the network server based on the second target networking method.

[0021] In some embodiments, the step of determining the first target networking method of the networked monitoring device among multiple networking methods according to the obtained network addresses and the preset network priority rule includes:

[0022] When the number of obtained network addresses is 1, determine the networking method corresponding to the obtained network address as the first target networking method;

[0023] When the number of obtained network addresses is greater than 1, determine the first target networking method based on the preset network priority rule.

[0024] In some embodiments, the method further includes:

[0025] Obtain the load data volume of the networked monitoring device;

[0026] When the load data volume of the networked monitoring device is greater than the second preset value, update the network priority rule so that the priorities of multiple networking methods are sorted by bandwidth.

[0027] In a second aspect, the present application provides a networked monitoring device, including:

[0028] Multiple network communication modules, where the multiple network communication modules include at least two of a local area network wireless communication module, a mobile communication module, and a local area network wired communication module;

[0029] A memory and a processor, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the network switching method described in the first aspect.

[0030] In a third aspect, the present application provides a networked monitoring system, including a data acquisition device, a networked monitoring device as described in the second aspect, at least one network communication device, and a server that are communicatively connected in sequence; wherein, at least one network communication device is correspondingly connected to the multiple network communication modules.

[0031] In a fourth aspect, the present application provides a storage medium, characterized in that the storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the network switching method described in the first aspect.

[0032] The present application selects the first target networking method by obtaining the networking addresses corresponding to the networked monitoring device in multiple networking methods, combining the networking addresses of multiple networking methods and the network priority rule, so that the networked monitoring device can be connected to the network server based on the first target networking method. That is to say, the present application adopts a redundant design of a multi-network mode, and uses the network priority rule to select the first target networking method that meets the requirements, which can not only avoid the problems of poor reliability and stability of a single network mode, but also select the network mode with the best communication among multiple network modes, thus ensuring the network connection stability of the networked monitoring device. Description of the Drawings

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative efforts.

[0034] Figure 1 Shows a schematic diagram of a networked monitoring system in an embodiment of the present application;

[0035] Figure 2Shows a schematic flow chart of the network switching method in the embodiment of the present application;

[0036] Figure 3 Shows a schematic flow chart of networking in the first target networking mode in the embodiment of the present application;

[0037] Figure 4 Shows a schematic flow chart of network abnormal reconnection in the embodiment of the present application;

[0038] Figure 5 Shows another schematic flow chart of the network switching method in the embodiment of the present application;

[0039] Figure 6 Shows a schematic flow chart of updating the network priority rule in the embodiment of the present application;

[0040] Figure 7 Shows another schematic flow chart of the network switching method in the embodiment of the present application;

[0041] Figure 8 Shows another schematic flow chart of the network switching method in the embodiment of the present application;

[0042] Figure 9 Shows a schematic diagram of the network connection monitoring device in the embodiment of the present application. Detailed implementation manners

[0043] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.

[0044] In the description of the present invention, the term "exemplary" is used to mean "serving as an example, illustration, or description". Any embodiment described as "exemplary" in the present application is not necessarily construed as being more preferred or having more advantages than other embodiments. In order to enable any person skilled in the art to implement and use the present invention, the following description is given. In the following description, details are set forth for the purpose of explanation. It should be understood that those skilled in the art can realize that the present invention can be implemented without these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed in the present application.

[0045] Embodiments of the present application provide a network switching method, an Internet-connected monitoring device, a system, and a storage medium, which will be described in detail below.

[0046] First, refer to Figure 1 , Figure 1 which shows a schematic diagram of an Internet-connected monitoring system in an embodiment of the present application. Among them, the Internet-connected monitoring system includes a data acquisition device 110, an Internet-connected monitoring device 120, at least one network communication device 130, and a server 140 that are communicatively connected in sequence.

[0047] Specifically, the data acquisition device 110 is used to obtain relevant data on the operation of the corresponding device (such as a micro-inverter), so that the data acquisition device can send the acquired data to the server 140 through the Internet-connected monitoring device 120 and the network 130. Exemplarily, the data acquisition device 110 may include a camera device 111, a temperature sensor 112, a voltage sensor 113, and a current sensor 114. Among them, the camera device 111 can obtain an operation environment image of the micro-inverter to facilitate remote monitoring of the micro-inverter by the server; the temperature sensor 112 can obtain the operating temperature of the micro-inverter to facilitate the server to determine whether the temperature of the micro-inverter is abnormal; the voltage sensor 113 can detect the AC voltage output by the micro-inverter to facilitate the server to determine whether the AC voltage output by the micro-inverter is abnormal (such as phase, amplitude, etc.); the current sensor 114 can detect the input current or output current of the micro-inverter to facilitate the server to determine whether there is a current abnormality (such as an overcurrent phenomenon) in the micro-inverter.

[0048] It can be understood that the data acquisition device 110 is not limited to the above exemplary devices or sensors. For example, the data acquisition device may further include an insulation detection device to facilitate determining whether the insulation impedance of the micro-inverter meets the requirements through the insulation detection device; or, in some possible embodiments, the data acquisition device may also include the micro-inverter itself, and the micro-inverter sends a signal to the Internet-connected monitoring device 120, so as to forward data such as alarms and abnormalities of the micro-inverter to the server 140 through the Internet-connected monitoring device 120.

[0049] The networked monitoring device 120 serves as the networked device of the data acquisition device 110, so that the data acquired by the data acquisition device 110 can be forwarded to the server 140 via the network 130 through the networked monitoring device 120. It should be noted that the networked monitoring device 120 can access the network in various ways. For example, the networked monitoring device 120 can have a local area network wireless communication module, a mobile communication module, and a local area network (LAN) wired communication module, so that the networked monitoring device can access the network using wireless local area network mode, mobile communication mode, wired communication mode, etc. Exemplarily, the local area network wireless communication module can include, but is not limited to, a general Wi-Fi module or an embedded Wi-Fi module, the mobile communication module can include, but is not limited to, a 2G wireless communication module, a 3G wireless communication module, a 4G wireless communication module, or a 5G wireless communication module, and the local area network wired communication module can include, but is not limited to, an Ethernet module, an RS-232 module, an RS-485 module, an optical fiber module, etc.

[0050] The network communication device 130 communicatively connects the networked monitoring device 120 and the server 140, enabling communication between the two to facilitate the exchange of information and / or data. At least one network communication device 130 is correspondingly connected to multiple networked communication modules of the networked monitoring device 120, so that the networked communication modules can communicatively connect to the server 140 through the network communication device 130. In some embodiments, at least one network communication device 130 can include network connection devices such as a base station and a router; taking the networked monitoring device 120 having a local area network wireless communication module, a mobile communication module, and a local area network wired communication module as an example, the local area network wireless communication module of the networked monitoring device 120 can wirelessly communicate with the router and communicatively connect to the base station through the router, the mobile communication module of the networked monitoring device 120 can directly wirelessly communicate with the base station, and the local area network wired communication module of the networked monitoring device 120 is communicatively connected to the router through a cable and finally communicatively connected to the base station through the router.

[0051] Server 140 can process data and / or information from the networked monitoring device 120. For example, server 140 can receive data such as the rated DC power, maximum DC voltage, MPPT voltage range, maximum AC power, maximum AC current, etc. of the micro-inverter sent by the networked monitoring device 120 to facilitate determining whether the micro-inverter is operating normally. For another example, server 140 can receive the alarm information of the abnormal micro-inverter sent by the networked monitoring device 120 so that server 140 can send the alarm information to the operation and maintenance personnel in a timely manner. In some embodiments, server 140 can be a single server or a server group. The server 140 group can be a centralized server group connected to the network 130 via an access point, or a distributed server group connected to the network 130 via at least one access point respectively. In some embodiments, the server can be implemented on a cloud platform. By way of example only, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-layer cloud, etc. or any combination thereof.

[0052] It can be understood that the above scenario is only an exemplary application scenario of the network switching method of the present application and does not constitute a limitation on the network switching method of the present application. For example, the network switching method of the present application can also be applied to scenarios of home appliances such as smart door locks, refrigerators, washing machines, etc.; for another example, the network switching method of the present application can also be applied to scenarios of shared terminals such as shared bicycles, shared electric vehicles, shared cars, etc.; for another example, the network switching method of the present application can also be applied to Internet of Things scenarios such as agricultural terminals (such as greenhouse temperature control terminals, greenhouse humidity control terminals), logistics terminals (such as logistics robots), industrial terminals (such as industrial robots), etc.

[0053] Continue to refer to Figure 2 , Figure 2 which shows a schematic flowchart of a network switching method in an embodiment of the present application. Figure 1 The control unit (such as a CPU or an MCU) in the networked monitoring device described in

[0054] Step S201, obtain the network addresses corresponding to the networked monitoring device under multiple networking methods;

[0055] Specifically, the multiple networking methods include at least two of the wireless local area network (WLAN) networking method, the mobile communication networking method, and the wired local area network (LAN) networking method. For example, when the networked monitoring device has a configured LAN wireless communication module and a LAN wired communication module, the multiple networking methods of the networked monitoring device include the WLAN networking method and the wired LAN networking method; for another example, when the networked monitoring device has a configured mobile communication module and a LAN wired communication module, the multiple networking methods of the networked monitoring device include the mobile communication networking method and the wired LAN networking method.

[0056] Exemplarily, the LAN wireless communication module may include, but is not limited to, a general Wi-Fi module or an embedded Wi-Fi module. The mobile communication module may include, but is not limited to, a 2G wireless communication module, a 3G wireless communication module, a 4G wireless communication module, or a 5G wireless communication module. The LAN wired communication module may include, but is not limited to, an Ethernet module, an RS-232 module, an RS-485 module, an optical fiber module, etc.

[0057] It should be noted that after the networked monitoring device is powered on, the communication modules in the networked monitoring device will be automatically configured with network addresses. For example, in an embodiment where the networked monitoring device has a configured LAN wireless communication module, a mobile communication module, and a LAN wired communication module, after the networked monitoring device is powered on, the LAN wireless communication module, the mobile communication module, and the LAN wired communication module will be respectively configured with a GOT IP as the network address. The GOT IP can indicate whether the corresponding communication module can be normally networked. Therefore, the control unit in the networked monitoring device can determine whether the corresponding communication module is working properly by obtaining the network addresses corresponding to multiple networking methods, and select the communication module that is working properly for networking through the network address.

[0058] It should be pointed out that step S201 can be executed once after the networked monitoring device is powered on and started or after the network access of the networked monitoring device changes, so as to select the first target networking method according to the preset network priority rules after starting or accessing a new networking mode. For example, step S201 is executed after the networked monitoring device is powered on and started to select the corresponding networking method after the networked monitoring device is powered on and started; for another example, during the operation of the networked monitoring device, if the LAN wired communication module of the networked monitoring device accesses a communication cable and is configured with a GOT IP, step S201 can also be executed to select the wired LAN networking method as the first target networking method.

[0059] Step S202, determine the first target networking method of the networked monitoring device among the multiple networking methods according to the obtained network addresses and the preset network priority rules;

[0060] In some embodiments of the present application, when the number of obtained network addresses is 1, the networking method corresponding to the obtained network address can be determined as the first target networking method. For example, if the obtained network address only contains the mobile GOTIP, then the mobile communication networking method can be determined as the first target networking method; for another example, if the obtained network address only contains the wireless local area network GOT IP, then the wireless local area network networking method can be determined as the first target networking method.

[0061] In some embodiments of the present application, when the number of obtained network addresses is greater than 1, the first target networking method can be determined based on a preset network priority rule. The preset network priority rule is used to represent the priority order of multiple networking methods, and this network priority rule can be stored in the storage circuit in the form of data. For example, the preset network priority rule is stored in the register as a key-value pair data composed of the networking method - priority level. The control unit in the network monitoring device determines the networking method with a higher priority among multiple networking methods as the first target networking method of the network monitoring device by reading the data in the register.

[0062] For example, assume that the network priority rule is that the priority of the wired local area network networking method > the priority of the wireless local area network networking method > the priority of the mobile communication networking method, and the obtained network addresses include the wired local area network GOT IP, the wireless local area network GOT IP, and the mobile GOT IP. Then the wired local area network networking method can be determined as the first target networking method; for another example, assume that the network priority rule is that the priority of the wired local area network networking method > the priority of the mobile communication networking method > the priority of the wireless local area network networking method, and the multiple network addresses include the wireless local area network GOT IP and the mobile GOT IP. At this time, it indicates that the wired local area network communication module is not working properly (for example, the cable is not connected). Then the mobile communication networking method can be determined as the first target networking method.

[0063] In some embodiments of the present application, the network priority rule may be based on the bandwidth size order of multiple networking methods as the priority sorting rule. For example, if the bandwidth of the wired local area network (LAN) networking method > the bandwidth of the wireless LAN networking method > the bandwidth of the mobile communication networking method, then the network priority rule is that the priority of the wired LAN networking method > the priority of the wireless LAN networking method > the priority of the mobile communication networking method. In some embodiments of the present application, the network priority rule may be based on the stability order of multiple networking methods as the priority sorting rule. For example, during the historical operation of the networking monitoring device, the stability of the mobile communication networking method > the stability of the wired LAN networking method > the stability of the wireless LAN networking method, then the network priority rule is that the priority of the mobile communication networking method > the priority of the wired LAN networking method > the priority of the wireless LAN networking method.

[0064] In some embodiments of the present application, the network priority rule may be fixed. For example, for the embodiment where the network priority rule is that the priority of the wired LAN networking method > the priority of the wireless LAN networking method > the priority of the mobile communication networking method, the priorities of the wired LAN networking method, the wireless LAN networking method, and the mobile communication networking method are fixed. In any case, when it is possible to access the Internet via the wired LAN networking method, the wired LAN networking method is preferentially selected as the first target networking method, followed by the wireless LAN networking method as the first target networking method, and finally the mobile communication networking method as the first target networking method.

[0065] In some embodiments of the present application, the network priority rule may be dynamically set. For example, when a certain networking method frequently disconnects during the networking process, the network priority rule can be changed to lower the priority of this networking method. For example, for the embodiment where the network priority rule is that the priority of the wired LAN networking method > the priority of the wireless LAN networking method > the priority of the mobile communication networking method, when the wired LAN networking method frequently disconnects, the network priority rule can be modified to the priority of the wireless LAN networking method > the priority of the wired LAN networking method > the priority of the mobile communication networking method to preferentially select the wireless LAN.

[0066] It can be understood that those skilled in the art can set the network priority rule according to actual needs. For example, the network priority rule is that the priority of the wired LAN networking method > the priority of the mobile communication networking method > the priority of the wireless LAN networking method; or, the network priority rule can also be comprehensively sorted by combining network bandwidth and stability. For example, the priority score of each networking method is obtained according to network bandwidth and stability, and finally the priorities of multiple networking methods are sorted according to the high and low of the priority scores to determine the network priority rule.

[0067] Step S203: Control the network-connected monitoring device to switch to the first target network connection method, so that the network-connected monitoring device is connected to the network server based on the first target network connection method.

[0068] After determining the first target network connection method, the network-connected monitoring device can be controlled to switch to the first target network connection method, so that the network-connected monitoring device is connected to the network server based on the first target network connection method. For example, assuming that the wired local area network connection method is the first target network connection method, then the network-connected monitoring device can be connected to the network server through the local area network wired communication module; another example, assuming that the mobile communication connection method is the first target network connection method, then the network-connected monitoring device can be connected to the network server through the mobile communication module (such as a 4G communication module).

[0069] In the embodiment of the present application, the present application selects the first target network connection method by obtaining the network connection addresses corresponding to the network-connected monitoring device in multiple network connection methods, combining the network connection addresses of multiple network connection methods and the network priority rules, so that the network-connected monitoring device can be connected to the network server based on the first target network connection method. That is to say, the present application adopts a redundant design of a multi-network mode and uses the network priority rules to select a network connection method that meets the requirements, which can not only avoid the problems of poor reliability and stability of a single network mode, but also select the network mode with the best communication in multiple network modes, thus ensuring the network connection stability of the network-connected monitoring device.

[0070] In some embodiments of the present application, refer to Figure 3 , Figure 3 shows a schematic flowchart of networking in the first target network connection method in the embodiment of the present application. Among them, the steps of controlling the network-connected monitoring device to switch to the first target network connection method so that the network-connected monitoring device is connected to the network server based on the first target network connection method include:

[0071] Step S301: Obtain the initial network connection data of the network-connected monitoring device;

[0072] Step S302: Control the network-connected monitoring device to re-initiate a connection according to the server name and port number in the first target network connection method, so that the network-connected monitoring device is connected to the network server in the first target network connection method.

[0073] Specifically, the initial network connection data may include the server name and port number to which the network monitoring device was connected to the network server before switching to the first target network connection method. Among them, the server name refers to the name or identifier used to uniquely identify the server in the network environment. For example, the server name may include a host name composed of a string of letters, numbers, and hyphens, an IP address which is a digital combination used to locate the server on the network, and a domain name used to identify and access the server on the Internet, etc. The port number is a specific digital identifier used to distinguish different services of the server in network communication. For example, the port number may be, but is not limited to, port 80 for HTTP service, port 443 for HTTPS service, or port 21 used by FTP service, etc.

[0074] In the above embodiment, since the server name and port number to which the network monitoring device was connected to the network server before switching to the first target network connection method are obtained, when the network monitoring device switches to the first target network connection method, the network monitoring device only needs to re-initiate a connection to the network server according to the server name and port number in the first target network connection method. This can ensure that the upper-layer application link of the network is consistent with the connection of the underlying device. At the same time, after the network monitoring device successfully establishes a connection with the cloud server, the data sent by the network server will automatically be switched to the corresponding underlying network mode link for transmission to the network monitoring device, and the reporting of the network monitoring device data will also automatically switch to the corresponding reporting link channel at the bottom layer. Finally, the network monitoring device automatically switches the corresponding data transmission link during the network switching process to ensure the reliability of data transmission.

[0075] In some embodiments of the present application, refer to Figure 4 , Figure 4 FIG. shows a schematic flowchart of network anomaly reconnection in an embodiment of the present application. Among them, after the step of controlling the network monitoring device to switch to the first target network connection method so that the network monitoring device is connected to the network server based on the first target network connection method, the network switching method further includes:

[0076] Step S401, controlling the network monitoring device to send heartbeat information to the network server at intervals of a first preset duration, and continuously listening for the confirmation information fed back by the network server to the network monitoring device based on the heartbeat information;

[0077] Step S402, when the network monitoring device does not receive the confirmation information within a second preset duration, controlling the network monitoring device to reconnect to the network server based on the first target network connection method.

[0078] It should be noted that during the networking process of the networked monitoring device, there may be abnormal or interrupted network connections, which may cause the network connection of the networked monitoring device to be interrupted and the networked monitoring device to be unable to continue reporting the operation data of the micro-inverter to the network server. In the above embodiment, since the networked monitoring device can send heartbeat information to the network server every first preset time period (for example, 1 minute), and the network server can feed back confirmation information based on the heartbeat information, if the networked monitoring device does not receive the confirmation information within the second preset time period (for example, 2 minutes), it indicates that the network connection between the networked monitoring device and the network server is interrupted. Thus, the networked monitoring device can be controlled to reconnect to the network server based on the first target networking method to avoid, as much as possible, the continuous abnormal or interrupted network connection of the networked monitoring device.

[0079] In some embodiments of the present application, refer to Figure 5 , Figure 5 which shows another schematic flowchart of the network switching method in the embodiments of the present application. Among them, after the step of controlling the networked monitoring device to reconnect to the network server based on the first target networking method when the networked monitoring device does not receive the confirmation information within the second preset time period, the network switching method further includes:

[0080] Step S501, record the network reconnection duration of the networked monitoring device reconnecting to the network server based on the first target networking method;

[0081] Step S502, when the network reconnection duration exceeds the third preset time period, control the networked monitoring device to restart.

[0082] It should be noted that during the process of the networked monitoring device reconnecting to the network server based on the first target networking method, there may be a phenomenon that the network cannot be reconnected for a long time, which will cause the networked monitoring device to be continuously disconnected from the network and unable to report data. In the above embodiment, since the network reconnection duration of the networked monitoring device reconnecting to the network server based on the first target networking method is recorded, if the network reconnection duration exceeds the third preset time period (for example, 10 minutes or 1 hour), the networked monitoring device can be controlled to restart. After the networked monitoring device is powered on again, the above steps S201 to S203 will be repeated, so that the networked monitoring device connects to the network server based on the re-determined first target networking method.

[0083] For example, if the network reconnection duration of the networked monitoring device to reconnect to the network server based on the wired local area network connection method exceeds 1 hour, when the networked monitoring device is powered on again, it will obtain the network addresses corresponding to multiple network connection methods. Since the wired local area network connection method cannot connect to the network normally, at this time, it can only obtain the wireless local area network GOT IP and the mobile GOT IP. Therefore, the networked monitoring device can select the wireless local area network connection method or the mobile communication connection method as the first target network connection method according to the network priority rule and reconnect to the network server.

[0084] It can be understood that if the wired local area network connection method can connect to the network normally after the networked monitoring device is restarted, then the networked monitoring device can also select the wired local area network connection method as the first target network connection method according to the network priority rule and connect to the network server.

[0085] In some embodiments of the present application, refer to Figure 6 , Figure 6 shows a schematic flowchart of a process for updating the network priority rule in an embodiment of the present application. Among them, the steps for updating the network priority rule include:

[0086] Step S601, when the networked monitoring device does not receive the confirmation information within the second preset duration, determine that the first target network connection method is abnormal and record the number of abnormal times of the first target network connection method;

[0087] Step S602, when the number of abnormal times of the first target network connection method is greater than the first preset value, update the network priority rule to reduce the priority of the first target network connection method in the network priority rule.

[0088] It should be noted that due to factors such as communication module aging and device environment, for different networked monitoring devices, the network with stable communication may not be fixed. For example, for networked monitoring device A and networked monitoring device B, the network connection method with the most stable communication for networked monitoring device A may be the wired local area network connection method, and the network connection method with the most stable communication for networked monitoring device B may be the mobile communication connection method. If the same fixed network priority rule is used to determine the first target network connection method, it may cause problems with poor communication network quality for some networked monitoring devices.

[0089] In the above embodiment, since the number of abnormal times of the first target network connection method is recorded when the networked monitoring device does not receive the confirmation information within the second preset duration, the network priority rule can be updated to reduce the priority of the first target network connection method in the network priority rule when the number of abnormal times of the first target network connection method is greater than the first preset value (for example, 5 times).

[0090] For example, before the update, the network priority rule is that the priority of the wired local area network connection method > the priority of the wireless local area network connection method > the priority of the mobile communication connection method. Whenever the network monitoring device reconnects to the network server based on the wired local area network connection method, it is recorded as the number of exceptions for the wired local area network connection method. If the number of exceptions for the wired local area network connection method exceeds 5, then the network priority rule can be modified to the priority of the wireless local area network connection method > the priority of the wired local area network connection method > the priority of the mobile communication connection method, so as to reduce the priority of the wired local area network connection method in the network priority rule.

[0091] It can be seen that the above embodiments can update the network priority rule according to the actual network connection situation of the network monitoring device, so that different network monitoring devices can all use the best network connection method to connect to the network server, thereby ensuring the communication stability of the network monitoring device.

[0092] In some embodiments of the present application, continue to refer to Figure 7 , Figure 7 which shows another flowchart of the network switching method in the embodiments of the present application. Among them, after the step of controlling the network monitoring device to reconnect to the network server based on the first target network connection method when the network monitoring device does not receive the confirmation information within the second preset duration, the network switching method further includes:

[0093] Step S701, record the network reconnection duration of the network monitoring device reconnecting to the network server based on the first target network connection method;

[0094] Step S702, when the network reconnection duration exceeds the third preset duration, determine the second target network connection method of the network monitoring device among multiple network connection methods according to multiple network addresses and the updated network priority rule;

[0095] Step S703, control the network monitoring device to switch to the second target network connection method, so that the network monitoring device connects to the network server based on the second target network connection method.

[0096] It should be noted that in the above embodiments, since the network reconnection duration of the network monitoring device reconnecting to the network server based on the first target network connection method is recorded, if the network reconnection duration exceeds the third preset duration (such as 10 minutes or 1 hour), it means that the first target network connection method cannot connect to the network normally. Therefore, the network monitoring device can re-determine the second target network connection method of the network monitoring device among multiple network connection methods according to the network priority rule updated in the above steps S601 to S602 and multiple network addresses, so that the network monitoring device connects to the network server based on the second target network connection method.

[0097] For example, before the update, the network priority rule was that the priority of the wired local area network connection method > the priority of the wireless local area network connection method > the priority of the mobile communication connection method. The network monitoring device reconnected to the network server based on the wired local area network connection method. After updating the network priority rule to the priority of the wireless local area network connection method > the priority of the wired local area network connection method > the priority of the mobile communication connection method, it can be determined that the wireless local area network connection method is the second target connection method of the network monitoring device, and the network monitoring device is made to reconnect to the network based on the wireless local area network connection method.

[0098] It can be seen that in the above embodiments, after updating the network priority rule, it is also possible to promptly reselect a connection method with a higher priority according to the updated network priority rule, so that the network monitoring device can quickly switch to a stable network.

[0099] In some embodiments of the present application, referring to Figure 8 , Figure 8 shows another schematic flowchart of the network switching method in the embodiments of the present application. Among them, the network switching method further includes:

[0100] Step S801, obtaining the load data volume of the network monitoring device;

[0101] Step S802, when the load data volume of the network monitoring device is greater than a second preset value, updating the network priority rule so that the priorities of multiple connection methods are sorted by bandwidth.

[0102] It should be noted that with the increase in the usage scenarios of micro-inverters, the number of connected micro-inverters, the data acquisition volume, the reporting volume of basic data and real-time data, and important fault alarm situations, etc., the load data volume of the network monitoring device will increase. Due to the limitations of the network priority rule (for example, the network priority rule is sorted according to network stability), it may cause the network monitoring device not to adopt a connection method with a larger bandwidth, resulting in problems such as network congestion, increased latency, and packet loss.

[0103] In the above embodiments, since the network switching method also obtains the load data volume of the network monitoring device, if the load data volume of the network monitoring device is greater than the second preset value, the network priority rule can be updated so that the priorities of multiple connection methods are sorted by bandwidth, and then the network monitoring device can adopt a connection method with a larger bandwidth, ultimately avoiding problems such as network congestion, increased latency, and packet loss caused by insufficient network bandwidth.

[0104] For example, before the update, the network priority rule is that the priority of the mobile communication networking method > the priority of the wireless local area network (WLAN) networking method > the priority of the wired local area network (LAN) networking method. When the load data volume of the networking monitoring device is greater than the second preset value, since the bandwidth of the wired LAN networking method > the bandwidth of the WLAN networking method > the bandwidth of the mobile communication networking method, the updated network priority rule can be that the priority of the wired LAN networking method > the priority of the WLAN networking method > the priority of the mobile communication networking method.

[0105] It can be seen that the network switching method of the present application can also, when the load data volume is large, modify the network priority rule to enable the networking monitoring device to preferentially select a network connection with a large and stable bandwidth for access, thereby ensuring the network connection stability of the networking monitoring device when the load data volume is large.

[0106] Those skilled in the art can understand that the load data volume can be determined according to the size of data packets transmitted during the networking process, the sending frequency, the duration, etc., and the present application does not make specific limitations.

[0107] It should be noted that the above content regarding the network switching method is intended to clearly illustrate the implementation verification process of the present application. Those skilled in the art can make equivalent modified designs under the guidance of the present application. For example, the network priority rule can be updated in combination with the abnormal times of the networking method and the bandwidth.

[0108] Furthermore, in order to better implement the network switching method in the embodiments of the present application, based on the network switching method, the present application also provides a networking monitoring device. Refer to Figure 9 , Figure 9 which shows a schematic diagram of the networking monitoring device in the embodiments of the present application. Among them, the networking monitoring device includes:

[0109] Multiple networking communication modules 903, and the multiple networking communication modules include at least two of a local area network wireless communication module, a mobile communication module, and a local area network wired communication module;

[0110] A memory 902 and a processor 901. The memory 902 stores a computer program, and the processor 901 is configured to run the computer program in the memory to execute the steps in the network switching method described in any of the above embodiments.

[0111] The network communication module 903 is a unit responsible for network access and data network transmission in the network monitoring device. The network communication module 903 can receive the data sent by the processor 901 and transmit it to the server via the access network. Among them, multiple network communication modules can include at least two of a local area network wireless communication module, a mobile communication module, and a local area network wired communication module. Exemplarily, the local area network wireless communication module can include, but is not limited to, a general Wi-Fi module or an embedded Wi-Fi module. The mobile communication module can include, but is not limited to, a 2G wireless communication module, a 3G wireless communication module, a 4G wireless communication module, or a 5G wireless communication module. The local area network wired communication module can include, but is not limited to, an Ethernet module, an RS-232 module, an RS-485 module, an optical fiber module, etc.

[0112] The processor 901 is the control center of the system, connecting various parts of the entire system through various interfaces and lines. By running or executing software programs and / or modules stored in the memory, and by calling the data stored in the memory, it executes various functions of the system and processes data, thereby monitoring the system as a whole. Optionally, the processor 901 may include one or more processing cores; the processor 901 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0113] The memory 902 can be used to store software programs and modules. The processor 901 executes various functional applications and data processing by running the software programs and modules stored in the memory 902. The memory 902 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the network monitoring device. In addition, the memory 902 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. Correspondingly, the memory 902 can also include a memory controller to provide the processor with access to the memory.

[0114] Specifically, in this embodiment, the processor 901 in the networked monitoring device will load the executable files corresponding to the processes of one or more application programs into the processor 901 according to the following instructions, and the processor 901 will run the application programs stored in the memory, so as to implement various functions as follows:

[0115] Obtain the network addresses corresponding to the networked monitoring device under multiple networking modes, where the multiple networking modes include at least two of wireless local area network networking, mobile communication networking, and wired local area network networking;

[0116] Determine the first target networking mode of the networked monitoring device among multiple networking modes according to multiple network addresses and a preset network priority rule;

[0117] Control the networked monitoring device to switch to the first target networking mode, so that the networked monitoring device is connected to the network server based on the first target networking mode.

[0118] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0119] For this reason, an embodiment of the present invention provides a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disc, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any network switching method provided by the embodiment of the present invention. For example, when the computer program is loaded by the processor, the following steps can be executed:

[0120] Obtain the network addresses corresponding to the networked monitoring device under multiple networking modes, where the multiple networking modes include at least two of wireless local area network networking, mobile communication networking, and wired local area network networking;

[0121] Determine the first target networking mode of the networked monitoring device among multiple networking modes according to multiple network addresses and a preset network priority rule;

[0122] Control the networked monitoring device to switch to the first target networking mode, so that the networked monitoring device is connected to the network server based on the first target networking mode.

[0123] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the detailed descriptions of other embodiments above, and details will not be repeated here.

[0124] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only an example and does not constitute a limitation to this application. Although not explicitly stated here, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are proposed in this application, so such modifications, improvements, and corrections still fall within the spirit and scope of the exemplary embodiments of this application.

[0125] At the same time, this application uses specific terms to describe the embodiments of this application. For example, "one embodiment", "an embodiment", and / or "some embodiments" mean a certain feature, structure, or characteristic related to at least one embodiment of this application. Therefore, it should be emphasized and noted that the "an embodiment" or "one embodiment" or "an alternative embodiment" mentioned twice or more at different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures, or characteristics in one or more embodiments of this application can be appropriately combined.

[0126] Similarly, it should be noted that, in order to simplify the expression of the disclosure of this application and thus help the understanding of one or more embodiments of the invention, in the foregoing description of the embodiments of this application, sometimes multiple features are grouped into one embodiment, drawing, or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this application are more than those mentioned in the claims. In fact, the features of the embodiment are less than all the features of the single embodiment disclosed above.

[0127] The above has introduced in detail a network switching method, a network-connected monitoring device, a system, and a storage medium provided by the embodiments of this application. Specific examples are used herein to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A network switching method, characterized in that: include: Acquire a network address corresponding to the networked monitoring device in a plurality of network modes, wherein the plurality of network modes include at least two of wireless local area network, mobile communication network and wired local area network; Determining a first target networking mode of the network monitoring device among the multiple networking modes according to the acquired networking address and a preset network priority rule; The network-connected monitoring device is controlled to switch to the first target networking mode, so that the network-connected monitoring device is connected to a network server based on the first target networking mode.

2. The network switching method according to claim 1, characterized in that: The step of controlling the network monitoring device to switch to the first target networking mode so that the network monitoring device is connected to the network server based on the first target networking mode includes: Acquire initial networking data of the networked monitoring device, the initial networking data including the server name and port number of the network server to which the networked monitoring device is connected before switching to the first target networking mode; The network monitoring device is controlled to re-initiate a connection according to the server name and the port number in the first target networking mode, so that the network monitoring device is connected to the network server in the first target networking mode.

3. The network switching method according to claim 1, characterized in that: After the step of controlling the network monitoring device to switch to the first target networking mode so that the network monitoring device is connected to the network server based on the first target networking mode, the method further includes: Control the networked monitoring device to send heartbeat information to the network server at intervals of a first preset time, and continuously monitor confirmation information fed back by the network server to the networked monitoring device based on the heartbeat information; When the network monitoring device does not receive the confirmation information within a second preset period of time, the network monitoring device is controlled to reconnect to the network server based on the first target networking mode.

4. The network switching method according to claim 3, characterized in that: The method further comprises: When the network monitoring device does not receive the confirmation information within the second preset time period, it is determined that the first target network mode is abnormal and the number of abnormal times of the first target network mode is recorded; When the number of abnormalities of the first target networking mode is greater than a first preset value, the network priority rule is updated to reduce the priority of the first target networking mode in the network priority rule.

5. The network switching method according to claim 4, characterized in that: After the step of controlling the network monitoring device to reconnect to the network server based on the first target networking mode when the network monitoring device does not receive the confirmation information within the second preset period of time, the method further includes: Recording the network reconnection time of the network monitoring device reconnecting to the network server based on the first target networking mode; When the network reconnection duration exceeds a third preset duration, determining a second target networking mode of the network monitoring device from among the multiple networking modes according to the multiple networking addresses and the updated network priority rule; The network-connected monitoring device is controlled to switch to the second target networking mode, so that the network-connected monitoring device is connected to a network server based on the second target networking mode.

6. The network switching method according to claim 1, characterized in that: The step of determining the first target networking mode of the network monitoring device among the multiple networking modes according to the acquired networking address and the preset network priority rule comprises: When the number of the acquired networking addresses is 1, determining the networking mode corresponding to the acquired networking address as the first target networking mode; When the number of the acquired networking addresses is greater than 1, the first target networking mode is determined based on the preset network priority rule.

7. The network switching method according to claim 1, characterized in that: The method further comprises: Obtaining the load data of the networked monitoring device; When the load data volume of the network monitoring device is greater than a second preset value, the network priority rule is updated so that the priorities of the multiple network modes are sorted by bandwidth.

8. A networked monitoring device, characterized in that: include: A plurality of networking communication modules, wherein the plurality of networking communication modules include at least two of a local area network wireless communication module, a mobile communication module, and a local area network wired communication module; A memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the network switching method according to any one of claims 1 to 7.

9. A network monitoring system, characterized in that: It comprises a data acquisition device, a networked monitoring device as claimed in claim 8, at least one network communication device and a server which are sequentially communicatively connected; Wherein, the at least one network communication device is correspondingly connected to the multiple network communication modules.

10. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the network switching method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Equipment communication method and device, electronic equipment and computer readable storage medium

    CN121564946A