Network switching method and electronic equipment

By implementing the network switching method in the charging pile, detecting and switching to the backup network, the problem of instability of the charging pile network is solved, communication stability and operational efficiency are improved, and maintenance costs are reduced.

CN119729566APending Publication Date: 2025-03-28AUTEL UNITED CREATION SOFTWARE DEV CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411905806.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing charging pile network has problems such as network instability and disconnection, which leads to manual maintenance, which increases the maintenance cost of the charging station and affects operational efficiency.

Method used

A network switching method is provided, by detecting whether the long-distance communication network of the charging pile is abnormal, if it is abnormal, the backup network configuration information is obtained, the network of the charging pile is switched to the short-distance communication network, and the charging pile is controlled to connect to the target node based on the network.

Benefits of technology

It realizes that when the current network communication of the charging pile is abnormal, it switches to the backup network in time to continue communication, improves the communication stability of the charging pile, reduces the maintenance cost of the charging station, and improves operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729566A_ABST
    Figure CN119729566A_ABST
Patent Text Reader

Abstract

The invention relates to the field of charging piles, in particular to a network switching method and electronic device.The network switching method comprises the steps that whether a first network of a target charging pile is abnormal in communication or not is detected, the first network is a remote communication network, and the target charging pile is a charging pile in a charging station; if yes, backup network configuration information is obtained, a first network of the target charging pile is switched to a second network according to the backup network configuration information, the target charging pile is controlled to be connected with the target node based on the second network, the backup network configuration information is used for building the second network, and the second network is a near field communication network; the target node is a node with normal remote communication. Therefore, according to the embodiment of the invention, when the current network communication of the charging pile is abnormal, the communication can be switched to the backup network in time to continue communication, the communication stability of the charging pile is improved, and manual on-station maintenance is not needed, so that the maintenance cost of the charging station can be reduced, and the operation efficiency of the charging station is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of charging piles, and in particular to a network switching method and a charging pile. Background Art

[0002] With the transformation of the global energy structure, the need for environmental protection, the rapid development of the electric vehicle industry, and the relevant policies and technological advances in the construction of charging infrastructure, the demand for charging piles is increasing. As charging infrastructure, charging piles are used to provide electric energy for charging electric vehicles. Current charging piles have problems such as network instability and disconnection. When these problems occur, manual maintenance is required, which not only increases the maintenance cost of charging stations, but also seriously affects the operating efficiency of charging stations. Summary of the invention

[0003] An object of the present invention is to provide a network switching method and an electronic device to solve the technical problem that the existing charging pile network is unreliable.

[0004] In a first aspect, an embodiment of the present invention provides a network switching method, including:

[0005] Detecting whether a first network of a target charging pile has communication abnormality, wherein the first network is a long-distance communication network, and the target charging pile is a charging pile in a charging pile group;

[0006] If the communication of the first network is abnormal, the backup network configuration information is obtained, and the first network of the target charging pile is switched to the second network according to the backup network configuration information, and the target charging pile is controlled to be connected to the target node based on the second network. The backup network configuration information is used to back up the second network, the second network is a short-distance communication network, and the target node is a node with normal long-distance communication.

[0007] Optionally, before detecting whether the first network of the target charging pile has communication abnormality, the method further includes:

[0008] Get the node scanning results of each charging pile;

[0009] Determine at least one master node according to the node scanning result, wherein the master node is used to connect to the charging piles around it to form an initial network;

[0010] Obtaining the network signal strength of each node group, each of the node groups including two charging piles connected under the initial network;

[0011] Generate backup network configuration information according to the network signal strength.

[0012] Optionally, the node scanning result includes the number of nodes of charging piles that can be scanned in the surrounding area, and determining at least one master node according to the node scanning result includes:

[0013] The charging pile with the largest number of nodes is determined as the main node;

[0014] If the number of surrounding charging piles connected to the master node exceeds the maximum connection number of the master node, the charging pile with the second largest number of nodes is determined as the master node, and so on.

[0015] Optionally, generating the backup network configuration information according to the network signal strength includes:

[0016] Generate a node network map according to the network signal strength;

[0017] Determine a root node according to the node network map;

[0018] Backup network configuration information is generated based on the root node.

[0019] Optionally, generating a node network map according to the network signal strength includes:

[0020] Determine the physical distance between two charging piles in each node group according to the network signal strength;

[0021] Determine the map coordinates of each charging post according to the physical distance;

[0022] A node network map is generated according to the map coordinates.

[0023] Optionally, determining the physical distance between two charging piles in each node group according to the network signal strength includes:

[0024] Based on a free space loss algorithm, the physical distance between two charging piles in each of the node groups is determined according to the network signal strength.

[0025] Optionally, determining the root node according to the node network map includes:

[0026] Determine the shortest path between each charging pile and other charging piles according to the node network map;

[0027] A root node is determined according to the shortest path.

[0028] Optionally, determining the shortest path between each charging pile and other charging piles according to the node network map includes:

[0029] Based on the Dijkstra algorithm, the shortest path between each charging pile and other charging piles is determined according to the node network map.

[0030] Optionally, the network switching method further includes:

[0031] Determine whether there is an isolated node according to the node network map;

[0032] If there is an isolated node, the target master node is controlled to perform configuration synchronization with the isolated node based on Wi-SUN.

[0033] In a second aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the electronic device implements the network switching method as described above.

[0034] Compared with the prior art, the embodiment of the present invention provides a network switching method and a charging pile. The network switching method includes: detecting whether the first network of the target charging pile has abnormal communication, the first network is a long-distance communication network, and the target charging pile is a charging pile in a charging station. If the first network has abnormal communication, the backup network configuration information is obtained, and the first network of the target charging pile is switched to the second network according to the backup network configuration information, and the target charging pile is controlled to connect to the target node based on the second network. The backup network configuration information is used to back up the second network, the second network is a short-distance communication network, and the target node is a node with normal long-distance communication. Therefore, this embodiment can switch to the backup network in time to continue communication when the current network communication of the charging pile is abnormal, which is conducive to improving the communication stability of the charging pile, and does not require manual on-site maintenance, thereby reducing the maintenance cost of the charging station and improving the operating efficiency of the charging station. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0036] Figure 1 A schematic diagram of the structure of a charging system provided by an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a flow chart of a network switching method provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of a flow chart of a network switching method provided by another embodiment of the present invention;

[0039] Figure 4 A schematic diagram of node scanning of a charging pile provided in an embodiment of the present invention;

[0040] Figure 5 An initial network schematic diagram provided for an embodiment of the present invention;

[0041] Figure 6 A schematic diagram of network signal strength of an initial network provided by an embodiment of the present invention;

[0042] Figure 7 A schematic diagram of a flow chart of S27 in a network switching method provided in an embodiment of the present invention;

[0043] Figure 8 An initial network schematic diagram provided for another embodiment of the present invention;

[0044] Fig. 9 A schematic diagram of the structure of a network switching device provided by an embodiment of the present invention;

[0045] Fig.10 A schematic diagram of the structure of a network switching device provided by another embodiment of the present invention;

[0046] Fig.11 A schematic diagram of the structure of a generation module in a network switching device provided by an embodiment of the present invention;

[0047] Fig.12 A schematic diagram of the structure of a network switching device provided by another embodiment of the present invention;

[0048] Fig.13 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0050] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0051] See also Figure 1 , an embodiment of the present invention provides a charging system, such as Figure 1 As shown, the charging system includes a charging station 100 and a charging management device 200 .

[0052] The charging station 100 is a facility that provides charging services for electric vehicles in a city, highway or industrial area. The charging station 100 includes at least one charging group, such as Figure 1 As shown, the charging station 100 includes a first charging group 10 and a second charging group 20 . It is understandable that the charging station 100 may also include a greater number of charging groups, such as 3 or more.

[0053] The charging group can be a single-layer charging group or a multi-layer charging group. For example, if the first charging group 10 is a single-layer charging group, there are no subdivided charging groups in the first charging group 10. If the first charging group 10 is a multi-layer charging group, there are subdivided charging groups in the first charging group 10. For example, the first charging group 10 includes a third charging group and a fourth charging group.

[0054] It is worth noting that, for the convenience of description, unless otherwise specified, all charging groups in the charging stations described below are single-layer charging groups.

[0055] Each charging group includes at least two charging posts, each of which can charge a charging vehicle. Figure 1 As shown, the first charging group 10 includes a first charging pile 11 , a second charging pile 12 and a third charging pile 13 . The first charging pile 11 is charging a first charging vehicle 101 , the second charging pile 12 is charging a second charging vehicle 102 , and the third charging pile 13 is charging a third charging vehicle 103 .

[0056] The charging groups in the charging station 100 can be divided according to actual needs. For example, charging piles using the same power supply point are divided into one charging group. Figure 1As shown, the first charging pile 11, the second charging pile 12 and the third charging pile 13 use the first power supply point, the fourth charging pile 21, the fifth charging pile 22 and the sixth charging pile 23 use the second power supply point, and the first power supply point and the second power supply point are different power supply points.

[0057] When the charging pile is charging the charging vehicle, the charging vehicle can report the power it needs to the charging pile in real time, so that the charging pile can subsequently send the power that meets the charging needs of the charging vehicle to the charging vehicle.

[0058] In some embodiments, the charging pile includes a mobile communication module, a Wi-Fi module, a Wi-SUN (Wireless Smart Utility Network) module and a control circuit.

[0059] The mobile communication module is a module for realizing long-distance communication. The mobile communication module realizes functions such as data transmission, voice calls and SMS services through the network provided by the telecommunications operator, thereby realizing wireless communication between devices. In some embodiments, the mobile communication module may include a GSM (Global System for Mobile Communications) module, a GPRS (General Packet Radio Service) module, a 4G module, a 5G module, etc. Each charging pile may include a mobile communication module, or may include multiple mobile communication modules. For example, the first charging pile 11 includes a 4G module, and the second charging pile 12 includes a 4G module and a 5G module. It is understandable that a single charging pile can be inserted with an Internet of Things card, or multiple Internet of Things cards. For example, the first charging pile 11 is inserted with a China Mobile card, and the second charging pile 12 is inserted with a China Unicom card and a China Telecom card.

[0060] The Wi-Fi module is a module used to achieve short-range communication. The Wi-Fi module is used for wireless LAN technology based on the IEEE 802.11 standard, providing wireless connections between wireless routers and devices, and has the characteristics of large transmission bandwidth but relatively short transmission distance.

[0061] The Wi-SUN module is a wireless communication technology based on open standards, mainly used in smart grid, smart city and Internet of Things applications. It has the characteristics of long transmission distance but small transmission bandwidth.

[0062] The control circuit is electrically connected to the mobile communication module, the Wi-Fi module and the Wi-SUN module respectively, and is used to control the communication of the charging pile. In some embodiments, the control circuit can control the mobile communication module so that the charging pile can use the first network for communication, and the first network is a mobile communication network. It can also control the Wi-Fi module so that the charging pile can use the second network for communication, and the second network is a Wi-Fi communication network. The priority of the first network is higher than that of the second network. That is to say, under normal circumstances, each charging pile uses the first network for communication. When the first network has communication anomalies and cannot communicate normally, the charging pile will use the second network for communication, that is, the second network is a backup network.

[0063] The charging management device 200 is respectively connected to the charging piles in each charging group in the charging station 100, and can interact with each charging pile, send various information to the charging pile or receive various information sent by the charging pile. The charging management device 200 can obtain various information of the charging vehicle being charged through the charging pile, such as Figure 1 As shown, after the first charging pile 11 obtains the information of the first charging vehicle 101 , the information of the first charging vehicle 101 can be sent to the charging management device 200 .

[0064] The charging management device 200 can integrate various information of charging vehicles, load information of the power grid, and various information of charging piles, and manage the power of each charging group and the power of each charging pile in each charging group based on this information. In some embodiments, the charging management device 200 can be composed of one or more workstations or servers, which can realize the monitoring of charging piles and data collection and query, as well as data processing and analysis of the entire charging station.

[0065] The charging pile, the charging management device 200 or other devices can be used as electronic devices to execute the network switching method described below.

[0066] See also Figure 2 , an embodiment of the present invention provides a network switching method, such as Figure 2 As shown, the network switching method includes:

[0067] S21. Detect whether a first network of a target charging pile has communication abnormalities, where the first network is a long-distance communication network and the target charging pile is a charging pile in a charging station.

[0068] In this step, the electronic device can obtain whether the network port has an IP at regular intervals, and judge whether the first network of the charging pile in the charging station has abnormal communication. The first network can be any type of mobile communication network. As mentioned above, the first network can be a 4G network or a 5G network.

[0069] S22. If the communication of the first network is abnormal, the backup network configuration information is obtained, and the first network of the target charging pile is switched to the second network according to the backup network configuration information, and the target charging pile is controlled to connect with the target node based on the second network. The backup network configuration information is used to back up the second network. The second network is a short-distance communication network, and the target node is a node with normal long-distance communication.

[0070] In this step, the backup network configuration information includes any configuration information for backing up the second network, such as WAN port settings, LAN port settings, wireless network settings, etc. The second network, as a backup network, can be configured as any type of short-range communication network. As mentioned above, the second network is a Wi-Fi communication network.

[0071] The target node may include any type of device for providing remote communication services, including but not limited to charging piles, routers, terminal devices, servers, etc.

[0072] The electronic device can switch the first network of the target charging pile to the second network according to the backup network configuration information, and use Iptables (an open source instruction set under the Linux system) to share the northbound communication capability of the designated charging pile to the port of the second network. The designated charging pile can be any charging pile in the charging station except the target charging pile. The northbound communication capability refers to the information transmission and reception function realized by the northbound communication equipment. The northbound communication equipment can transmit data efficiently and stably through radio waves or wired media, and has high anti-interference ability and data transmission rate, ensuring the accuracy and timeliness of information during the transmission process.

[0073] Therefore, this embodiment can switch to the backup network in time to continue communication when the current network communication of the charging pile is abnormal, which is beneficial to improving the communication stability of the charging pile and does not require manual on-site maintenance, thereby reducing the maintenance cost of the charging station and improving the operating efficiency of the charging station.

[0074] In some embodiments, before detecting whether the first network of the target charging pile has abnormal communication, the electronic device needs to generate backup network configuration information first, so as to switch the first network to the second network in time when the first network communication is abnormal. Figure 3 , before S21, the network switching method also includes:

[0075] S23. Obtain the node scanning result of each charging pile.

[0076] In this step, each charging pile turns on the Wi-Fi module and the Wi-SUN module, so each charging pile acts as a charging pile to scan the surrounding charging piles. If a charging pile scans the surrounding charging piles, the information of the node is added to its scan list. When the node scans multiple charging piles, the node can be sorted in its scan list according to the signal strength. In some embodiments, the node scan result includes the number of nodes of the surrounding charging piles that can be scanned.

[0077] For example, see Figure 4 The charging station includes eight charging piles, A, B, C, D, E, F, G and H. Charging pile A can scan four charging piles, D, E, B and C, charging pile B can scan three charging piles, C, A and D, charging pile C can scan two charging piles, B and A, charging pile D can scan three charging piles, A, F and B, charging pile E can scan three charging piles, A, H and G, charging pile F can scan charging pile A, charging pile G can scan charging pile E, and charging pile H can scan charging pile E.

[0078] S24. Determine at least one master node according to the node scanning result. The master node is used to connect to the charging piles around it to form an initial network.

[0079] In this step, the electronic device may sort each charging pile according to the number of charging pile nodes that can be scanned around each charging pile, and determine the master node according to the sorting result.

[0080] In some embodiments, the electronic device can determine the charging pile with the largest number of nodes as the main node. If the number of surrounding charging piles connected to the main node exceeds the maximum connection number of the main node, the charging pile with the second largest number of nodes will be determined as the main node, and so on.

[0081] For example, as mentioned above, since the number of nodes of charging piles that can be scanned around charging pile A is 4, and charging pile A has the largest number of nodes, the electronic device uses charging pile A as the main node. Assuming that the maximum number of connections of charging pile A is 4, since there are more than 4 charging piles around charging pile A as the main node at this time, charging pile A cannot be connected to other charging piles after connecting to four charging piles D, E, B and C respectively. At this time, the electronic device uses charging piles D and charging pile E with the second largest number of nodes as the main nodes, and charging pile D is connected to the three charging piles A, F and B around it respectively, and charging pile E is connected to the three charging piles A, H and G around it respectively, thereby forming the following Figure 5 The initial network shown is a node network formed when the charging piles are pre-networked.

[0082] It can be understood that each master node is connected to one or more charging piles, and these non-master node charging piles are sub-nodes of the corresponding master node, such as Figure 5 As shown, the child nodes of the main node A are the two charging piles B and C, the child node of the main node D is the charging pile F, and the child nodes of the main node E are the two charging piles G and H.

[0083] In some embodiments, each master node synchronizes its own child node information with other master nodes, and each master node also maintains the same node table, which includes information about each charging pile. Heartbeat detection is maintained between master nodes. If a child node is lost, the master node of the child node notifies other master nodes to update the node table. In the updated node table, the information of the child node will be deleted. If a master node is lost, other master nodes will delete the information of the master node and its child nodes in the node table. Therefore, after the charging pile networking is completed, the discovery synchronization between the charging piles can be completed through the master node.

[0084] S25. Obtain the network signal strength of each node group, where each node group includes two charging piles connected under the initial network.

[0085] In this step, the network signal strength of the node group is the Wi-Fi signal strength between the two charging piles in the node group. As mentioned above, since charging pile A is connected to charging pile B, charging pile A and charging pile B can form a node group. If the node group is recorded as node group AB, please refer to Figure 6 , the Wi-Fi signal strength of node group AB is -65dB, charging pile A and charging pile C can form node group AC, and the Wi-Fi signal strength of node group AC is -71dB, charging pile A and charging pile D can form node group AD, and the Wi-Fi signal strength of node group AD is -58dB, charging pile A and charging pile E can form node group AE, and the Wi-Fi signal strength of node group AE is -61dB, charging pile D and charging pile F can form node group DF, and the Wi-Fi signal strength of node group DF is -71dB, charging pile E and charging pile G can form node group EG, and the Wi-Fi signal strength of node group EG is -88dB, charging pile E and charging pile H can form node group EH, and the Wi-Fi signal strength of node group EH is -71dB.

[0086] S26. Generate backup network configuration information according to network signal strength.

[0087] Therefore, on the one hand, this embodiment can reasonably establish an initial network, and on the other hand, this embodiment can generate backup network configuration information only based on the network signal strength between two charging piles connected under the initial network, which is beneficial to improving the backup efficiency of the second network.

[0088] In some embodiments, see Figure 7 , S26 includes:

[0089] S261. Generate a node network map according to network signal strength.

[0090] In this step, the node network map is a map used to represent the distribution of charging piles. The node network map includes map coordinates of each charging pile, and the map coordinates are used to mark the position of each charging pile in the preset map.

[0091] In some embodiments, the electronic device determines the physical distance between two charging piles in each node group according to the network signal strength, determines the map coordinates of each charging pile according to the physical distance, and generates a node network map according to the map coordinates.

[0092] In this embodiment, the electronic device can determine the physical distance between each node group according to the network signal strength based on the free space loss algorithm, wherein the free space loss algorithm is used to calculate the signal loss suffered by the radio wave when propagating in free space, and the algorithm can be expressed by the free space loss formula, which is Lfs=20lg(d)+20lg(f)-147.55, wherein Lfs is the space loss, F is the transmission frequency, and D is the distance. Since the network signal strength can determine the space loss, and the transmission frequency is known, the known space loss and transmission frequency are substituted into the formula to solve the physical distance D between the two charging piles in each node group. In some embodiments, the electronic device can determine the map coordinates of each charging pile according to the physical distance based on the triangle formula, mark the map coordinates in the preset map, and obtain a node network map.

[0093] S262. Determine the root node according to the node network map.

[0094] In this step, the root node is used as an AP hotspot to establish STA connection with other charging piles for networking. The AP hotspot is a wireless network access point, and the STA connection is a connection method for wireless terminal devices to connect to the network. The root node is the only node without an incoming edge in the tree structure or star structure. The root node can be a main node or a child node. Other nodes may include parent nodes or leaf nodes. The parent node is the direct upper node of a node in the tree structure, and the leaf node is a node without child nodes.

[0095] It is understandable that when the topology formed after networking is a star structure, there are only root nodes and leaf nodes, and when it is a tree structure, there are not only root nodes and leaf nodes, but also parent nodes.

[0096] In some embodiments, the electronic device may determine the shortest path from each charging post to other charging posts based on the node network map, and determine the root node based on the shortest path.

[0097] In this embodiment, the electronic device may determine the shortest path from each charging pile to other charging piles based on any suitable shortest path algorithm such as the Dijkstra algorithm, and may use the charging pile that appears most frequently in all the shortest paths as the root node.

[0098] In charging stations, some charging piles may not be covered by Wi-Fi signals due to their remote locations. Therefore, the long transmission distance of Wi-SUN can be used to solve the network problems of these charging piles.

[0099] In some embodiments, the electronic device determines whether there is an isolated node based on the node network map, and if there is an isolated node, controls the target master node to perform configuration synchronization with the isolated node based on Wi-SUN.

[0100] In this embodiment, the electronic device calculates the distance between a charging pile and each master node, and determines whether the distance is greater than a preset distance threshold. If the distance is greater than the preset distance threshold, the charging pile is determined to be an isolated node. The target master node can be determined according to actual needs, for example, the master node with the shortest distance to the isolated node is determined as the target master node. The synchronization configuration can be any parameter that the charging pile needs to use, including power parameters, Internet access parameters or other personalized settings.

[0101] It can be understood that if there are multiple isolated nodes, an isolated master node is determined, and the isolated master node can be a charging pile with the largest number of nodes among the charging piles that can be scanned in the surroundings, such as Figure 8 As shown, I, J and K are three isolated nodes, and the isolated node I can scan two charging piles J and K around it, the isolated node J can scan the charging pile I around it, and the isolated node K can scan the charging pile I around it, so the isolated master node is the isolated node I. It can also be understood that in this case, the target master node only needs to synchronize configuration with the isolated master node based on Wi-SUN, and other isolated nodes are connected to the isolated master node, thereby realizing long-distance communication.

[0102] Therefore, this embodiment can achieve long-distance communication of isolated charging piles by performing configuration synchronization based on Wi-SUN for charging piles that are beyond the coverage range of Wi-Fi signals.

[0103] S263: Generate backup network configuration information based on the root node.

[0104] Therefore, this embodiment can recommend an optimal charging pile as a root node among all charging piles according to the network signal strength between the charging piles, and then network with other charging piles based on the root node to generate backup network configuration information, which is conducive to improving the reliability and stability of the subsequent establishment of the second network.

[0105] It is understandable that if a charging pile is connected to an external network, the electronic device can use the charging pile as a root node.

[0106] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person of ordinary skill in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0107] As another aspect of an embodiment of the present invention, an embodiment of the present invention provides a network switching device, wherein the network switching device can be a software module, the software module includes a number of instructions, which are stored in a memory, and the processor can access the memory and call the instructions for execution to complete the network switching method described in each of the above embodiments.

[0108] In some embodiments, the network switching device can be constructed by hardware devices, for example, the network switching device can be constructed by one or more chips, and the chips can work in coordination with each other to complete the network switching methods described in the above embodiments. For another example, the network switching device can also be constructed by a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine), a programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components.

[0109] In some embodiments, see Fig. 9 The network switching device 900 provided in the embodiment of the present invention includes a detection module 90, a first acquisition module 91, a switching module 92 and a first control module 93.

[0110] The detection module 90 is used to detect whether the first network of the target charging pile has communication abnormalities. The first network is a long-distance communication network, and the target charging pile is a charging pile in a charging station. The first acquisition module 91 is used to obtain backup network configuration information when the first network communication is abnormal. The switching module 92 is used to switch the first network of the target charging pile to the second network according to the backup network configuration information. The first control module 93 is used to control the connection between the target charging pile and the target node based on the second network. The backup network configuration information is used to back up the second network. The second network is a short-distance communication network, and the target node is a node with normal long-distance communication.

[0111] In some embodiments, see Fig.10 The network switching device 900 further includes a second acquisition module 94 , a determination module 95 , a third acquisition module 96 and a generation module 97 .

[0112] The second acquisition module 94 is used to obtain the node scanning results of each charging pile node, the determination module 95 is used to determine at least one master node based on the node scanning results, the master node is used to connect to the charging piles around it to form an initial network, the third acquisition module 96 is used to obtain the network signal strength of each node group, each node group includes two charging piles connected under the initial network, and the generation module 97 is used to generate backup network configuration information based on the network signal strength.

[0113] In some embodiments, the node scanning result includes the number of nodes of charging piles that can be scanned in the surrounding area. The determination module 95 is specifically used to: determine the charging pile with the largest number of nodes as the main node; if the number of surrounding charging piles connected to the main node exceeds the maximum number of connections of the main node, then the charging pile with the second largest number of nodes is determined as the main node, and so on.

[0114] In some embodiments, see Fig.11 The generating module 97 includes a first generating unit 971 , a determining unit 972 and a second generating unit 973 .

[0115] The first generating unit 971 is used to generate a node network map according to the network signal strength, the determining unit 972 is used to determine the root node according to the node network map, and the second generating unit 973 is used to generate backup network configuration information based on the root node.

[0116] In some embodiments, the first generating unit 971 is specifically used to: determine the physical distance between two charging piles in each node group according to the network signal strength, determine the map coordinates of each charging pile according to the physical distance, and generate a node network map according to the map coordinates.

[0117] In some embodiments, the determination unit 972 is specifically used to: determine the shortest path between each charging pile and other charging piles according to the node network map, and determine the root node according to the shortest path.

[0118] In some embodiments, see Fig.12 The network switching device 900 also includes a determination module 98 and a second control module 99 .

[0119] The judging module 98 is used to judge whether there is an isolated node according to the node network map, and the second control module 99 is used to control the target master node to perform configuration synchronization with the isolated node based on Wi-SUN when there is an isolated node.

[0120] It should be noted that the above network switching device can execute the network switching method provided in the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the network switching device embodiment, please refer to the network switching method provided in the embodiment of the present invention.

[0121] See also Fig.13 , Fig.13 A schematic diagram of the hardware structure of an electronic device is provided in accordance with an embodiment of the present invention. Fig.13 As shown, the electronic device 1300 includes one or more processors 131 and a memory 132. Fig.13 A processor 131 is taken as an example.

[0122] The processor 131 is configured to support the computer device to perform the corresponding functions in the method in the above method embodiment. The processor 131 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0123] The memory 132 is used to store program codes. The memory 132 may include a volatile memory (VM), such as a random access memory (RAM); the memory may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 132 may also include a combination of the above-mentioned types of memory.

[0124] The memory 132 may be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the network switching method in the embodiment of the present invention. The processor 131 executes various functional applications and data processing of the network switching method and the network switching device by running the non-volatile software programs, instructions and modules stored in the memory 132, that is, realizes the functions of the network switching method and each module or unit of the network switching device provided in the above method embodiment.

[0125] The memory 132 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the network switching device, etc. In some embodiments, the memory 132 may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the network switching device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0126] The one or more modules are stored in the memory 132, and when executed by the one or more processors 131, the network switching method in any of the above method embodiments is executed, for example, the method steps described in the above method embodiments are executed to realize the functions of the modules described in the above device embodiments.

[0127] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method described in the above embodiment.

[0128] It is understood by those skilled in the art that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0129] Finally, it should be noted that the present invention can be implemented in many different forms and is not limited to the embodiments described in this specification. These embodiments are not intended to be additional limitations on the content of the present invention. The purpose of providing these implementations is to make the understanding of the disclosure of the present invention more thorough and comprehensive. And under the idea of ​​the present invention, the above-mentioned technical features continue to be combined with each other, and there are many other changes in different aspects of the present invention as described above, which are all considered to be within the scope of the present invention. Further, for those of ordinary skill in the art, improvements or changes can be made according to the above description, and all these improvements and changes should belong to the scope of protection of the claims attached to the present invention.

Claims

1. A network switching method, characterized in that: include: Detecting whether a first network of a target charging pile has communication abnormalities, wherein the first network is a long-distance communication network, and the target charging pile is a charging pile in a charging station; If the communication of the first network is abnormal, the backup network configuration information is obtained, and the first network of the target charging pile is switched to the second network according to the backup network configuration information, and the target charging pile is controlled to be connected to the target node based on the second network. The backup network configuration information is used to establish a second network, and the second network is a short-distance communication network. The target node is a node with normal long-distance communication.

2. The network switching method according to claim 1, characterized in that: Before detecting whether the first network of the target charging pile has abnormal communication, the method further includes: Get the node scanning results of each charging pile; Determine at least one master node according to the node scanning result, wherein the master node is used to connect to the charging piles around it to form an initial network; Obtaining the network signal strength of each node group, each of the node groups including two charging piles connected under the initial network; Generate backup network configuration information according to the network signal strength.

3. The network switching method according to claim 2, characterized in that: The node scanning result includes the number of nodes of the surrounding charging piles that can be scanned, and determining at least one master node according to the node scanning result includes: The charging pile with the largest number of nodes is determined as the main node; If the number of surrounding charging piles connected to the master node exceeds the maximum connection number of the master node, the charging pile with the second largest number of nodes is determined as the master node.

4. The network switching method according to claim 2, characterized in that: The generating the backup network configuration information according to the network signal strength includes: Generate a node network map according to the network signal strength; Determine a root node according to the node network map; Backup network configuration information is generated based on the root node.

5. The network switching method according to claim 4, characterized in that: Generating a node network map according to the network signal strength includes: Determine the physical distance between two charging piles in each node group according to the network signal strength; Determine the map coordinates of each charging post according to the physical distance; A node network map is generated according to the map coordinates.

6. The network switching method according to claim 5, characterized in that: Determining the physical distance between two charging piles in each node group according to the network signal strength includes: Based on a free space loss algorithm, the physical distance between two charging piles in each of the node groups is determined according to the network signal strength.

7. The network switching method according to claim 4, characterized in that: Determining the root node according to the node network map includes: Determine the shortest path between each charging pile and other charging piles according to the node network map; A root node is determined according to the shortest path.

8. The network switching method according to claim 7, characterized in that: Determining the shortest path between each charging pile and other charging piles according to the node network map includes: Based on the Dijkstra algorithm, the shortest path between each charging pile and other charging piles is determined according to the node network map.

9. The network switching method according to any one of claims 4 to 8, characterized in that: The network switching method further includes: Determine whether there is an isolated node according to the node network map; If there is an isolated node, the target master node is controlled to perform configuration synchronization with the isolated node based on Wi-SUN.

10. An electronic device, characterized in that: It includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the electronic device implements the network switching method as described in any one of claims 1 to 9.

Citation Information

Cited By

  • Network switching method and electronic device

    WO2026138004A1