Wifi cascade networking method and computer readable storage medium

By using the STA and AP nodes of the wifi module in the charging pile cluster, the main nodes are automatically determined and cascading networking is established, and the problems of complex operation and slow response in the charging pile networking technology are solved, and an efficient and automated networking process is realized, which improves user experience and network management convenience.

CN119922645APending Publication Date: 2025-05-02AUTEL UNITED CREATION SOFTWARE DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510118610.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing charging pile networking technology cannot respond quickly in the charging pile cluster and is complex in operation, which increases management costs and affects the rapid response and coordinated work between charging piles.

Method used

By starting the wifi module of each charging pile in the charging pile cluster, using the STA node and AP node, the main node is automatically determined and the SSID is broadcast, and a cascading network centered on the main node is established.

Benefits of technology

Automatic networking between charging piles is realized without manual configuration, which simplifies the network deployment process, improves efficiency and network adaptability and reliability, reduces management complexity and cost, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922645A_ABST
    Figure CN119922645A_ABST
Patent Text Reader

Abstract

The invention relates to the field of ad hoc networks, in particular to a wifi cascade networking method and a computer readable storage medium, and the wifi cascade networking method comprises the steps that a wifi module of each charging pile in a charging pile cluster is started, and the wifi module comprises an STA node and an AP node; according to the STA node of each charging pile, determining a main node in a network corresponding to the charging pile cluster, the main node being an AP node corresponding to a target charging pile in the charging pile cluster; according to the SSID corresponding to the main node broadcasted by the main node, a cascade networking with the main node as the center is established with other charging piles except the target charging pile, leaf nodes and / or relay nodes connected with the main node exist in the cascade networking, and the relay nodes are located between the leaf nodes and the main node. According to the method, the wifi module of each charging pile in the charging pile cluster is started, the main node is automatically determined, the SSID is broadcasted by using the main node, the cascade networking with the main node as the center is established, and automatic networking between the charging piles is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of self-organizing networks, and in particular to a wifi cascade networking method and a computer-readable storage medium. Background Art

[0002] With the popularity of electric vehicles, the construction and use of charging piles have become increasingly important. In practical applications, charging piles often do not exist independently, but appear in the form of clusters, which involves the networking of multiple charging pile devices. At present, one of the common wireless connection communication methods is WiFi, which is based on the IEEE 802.11 standard and can provide wireless connections between wireless routers and devices. In charging pile clusters, WiFi technology is widely used for near-field communication between charging piles.

[0003] However, existing wifi technology has certain limitations in the application of charging pile networking. Specifically, when the charging pile needs to connect to the wifi AP hotspot, the user is usually required to enter the account password for authentication. This process requires manual intervention and the operation is relatively troublesome and cumbersome. In the charging pile cluster environment, this operation method not only increases the management cost, but also may affect the rapid response and collaborative work between charging piles in an emergency. In addition, for general users who do not have professional knowledge, this operation method is not friendly enough. Summary of the invention

[0004] An object of an embodiment of the present invention is to provide a wifi cascade networking method and a computer-readable storage medium, which are used to solve the technical problems of the existing charging pile networking technology that cannot respond quickly and has complex operations.

[0005] In a first aspect, an embodiment of the present invention provides a wifi cascade networking method, which is applied to a charging pile cluster, wherein the charging pile cluster includes at least two charging piles, and the method includes:

[0006] Start the wifi module of each charging pile in the charging pile cluster, wherein the wifi module includes a STA node and an AP node;

[0007] According to the STA node of each charging pile, determine the master node in the network corresponding to the charging pile cluster, where the master node is the AP node corresponding to the target charging pile in the charging pile cluster;

[0008] According to the SSID corresponding to the master node broadcast by the master node, a cascade network centered on the master node is established with other charging piles except the target charging pile, and there are leaf nodes and / or relay nodes connected to the master node in the cascade network, and the relay node is located between the leaf node and the master node.

[0009] In a second aspect, an embodiment of the present invention provides a wifi cascade networking device, which is applied to a charging pile cluster, wherein the charging pile cluster includes at least two charging piles, and the device includes:

[0010] A starting unit, used to start the wifi module of each charging pile in the charging pile cluster, wherein the wifi module includes a STA node and an AP node;

[0011] A determination unit, configured to determine a master node in the network corresponding to the charging pile cluster according to the STA node of each charging pile, wherein the master node is an AP node corresponding to a target charging pile in the charging pile cluster;

[0012] A networking unit is used to establish a cascade network centered on the main node with other charging piles except the target charging pile according to the SSID corresponding to the main node broadcast by the main node, wherein the cascade network contains leaf nodes and / or relay nodes connected to the main node, and the relay node is located between the leaf node and the main node.

[0013] In a third aspect, a computer device is provided, 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 computer device implements the WiFi cascade networking method as described in the first aspect.

[0014] In a fourth aspect, a computer-readable storage medium is provided, 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 processor, the processor executes the WiFi cascade networking method as described in the first aspect.

[0015] In the embodiments implemented by the above-mentioned wifi cascade networking method, device, computer equipment and computer-readable storage medium, first, start the wifi module of each charging pile in the charging pile cluster, the wifi module includes a STA node and an AP node, then, according to the STA node of each charging pile, determine the main node in the corresponding networking of the charging pile cluster, the main node is the AP node corresponding to the target charging pile in the charging pile cluster, finally, according to the main node broadcasting the SSID corresponding to the main node, establish a cascade network centered on the main node with other charging piles except the target charging pile, there are leaf nodes and / or relay nodes connected to the main node in the cascade network, and the relay node is located between the leaf node and the main node. This embodiment realizes automatic networking between charging piles by starting the WiFi module of each charging pile in the charging pile cluster, without manual configuration one by one, greatly simplifying the network deployment process and improving efficiency; further, the master node is determined according to the STA node of each charging pile, so that the charging pile cluster can dynamically select the most suitable charging pile as the central node according to the actual situation, enhancing the adaptability and reliability of the network; then the SSID is broadcasted by the master node, so that other charging piles can be quickly connected to the master node, and a stable cascade network is established to ensure the efficient operation of the charging pile cluster. Therefore, through this automated networking process, manual intervention is reduced, the complexity and cost of network management are reduced, and the management of the charging pile cluster is made more convenient. Since there is no need for users to intervene in the network configuration process, the user experience is improved, and users can use charging services more conveniently without worrying about complex network connection problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] 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.

[0017] Figure 1 This is a schematic diagram of a network architecture of a charging pile cluster in one embodiment of the present invention;

[0018] Figure 2 It is a flow chart of a wifi cascade networking method in one embodiment of the present invention;

[0019] Figure 3 It is a structural schematic diagram of a wifi cascade networking device in one embodiment of the present invention;

[0020] Figure 4 It is a structural schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0021] 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.

[0022] 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.

[0023] See also Figure 1 , Figure 1 This is a schematic diagram of the network architecture of a charging pile cluster provided in the embodiment of the present application. Figure 1 In the figure, a charging pile cluster is shown, which includes four charging piles (charging pile 1, charging pile 2, charging pile 3 and charging pile 4).

[0024] Each charging pile is equipped with a wifi module, which can create two nodes: wlan0 and wlan1. wlan0 functions as a STA and wlan1 as an AP. The charging pile connects to the AP SSID broadcasted by other devices through STA, forming a cascade network.

[0025] Each charging pile can use the wifi module to create two nodes, wlan0 and wlan1. wlan0 functions as STA and wlan1 as AP. The charging pile connects to the AP SSID broadcasted by other devices through STA to form a cascade network.

[0026] exist Figure 1In the cascade network structure, charging pile 1 is used as the root node (Root node), its wlan1 broadcasts SSID, and other charging piles are connected to the SSID of charging pile 1 through their wlan0; charging pile 2: as a relay node (Relay node), its wlan0 is connected to the SSID of charging pile 1, and its wlan1 broadcasts SSID for other charging piles to connect; charging pile 3: as a leaf node (Leaf node), its wlan0 is connected to the SSID of charging pile 2; charging pile 4: as a leaf node (Leaf node), its wlan0 is connected to the SSID of charging pile 2.

[0027] To achieve reliable connection and data transmission, the AP SSID needs to follow specific rules. The components of the SSID are as follows:

[0028] Device type: fixed to the string "04", indicating a charging pile;

[0029] ServiceID: contains an 11-bit unique identification code and a 1-bit CRC check code, which is used to uniquely identify each charging pile;

[0030] Data: 2-digit customer-defined password verification code. The device has a default password when it leaves the factory. Customers can customize the password and choose to connect to an AP with the same password as the device.

[0031] Verification code: 2-digit verification code, which is verified by a string consisting of device type, ServiceID, data type, data length and data.

[0032] Specifically, the specific format of SSID is that the total length of the broadcast SSID of the Root node is 20 bits; the total length of the broadcast SSID of the Relay node and the Leaf node is 19 bits.

[0033] Therefore, in Figure 1 In the example, the SSID format of charging pile 1 is 20 bits; the SSID format of charging pile 2, charging pile 3, and charging pile 4 is 19 bits.

[0034] It can be seen that by starting the wifi module of each charging pile in the charging pile cluster and using STA nodes and AP nodes to establish a cascade network centered on the master node, the network performance, stability and scalability of the charging pile cluster can be significantly improved. The network architecture proposed in this embodiment not only simplifies the configuration process, but also enhances the network's self-healing ability and data transmission efficiency, providing reliable guarantee for the efficient operation of the charging pile cluster.

[0035] It should be noted that Figure 1 This is described only as an example and is not the only implementation method of this embodiment.

[0036] In view of this, the present application proposes a wifi cascade networking method to solve the above problems, which is described in detail below.

[0037] See also Figure 2 , Figure 2 A flow chart of a wifi cascade networking method provided in an embodiment of the present invention is applied to a charging pile cluster, wherein the charging pile cluster includes at least two charging piles. The method includes the following steps:

[0038] S10: Start the wifi module of each charging pile in the charging pile cluster, where the wifi module includes a STA node and an AP node.

[0039] The wifi module of each charging pile consists of two main nodes: STA node (Station Node) and AP node (Access Point Node). STA node (Station Node) is used to connect to the AP (Access Point) node of other devices; AP node (Access Point Node) is used to broadcast its own SSID for other devices to connect.

[0040] Specifically, in a charging pile cluster, the main function of the STA node is to enable the charging pile to access the wireless network created by other charging piles or network devices (such as wireless routers). When the STA node of the charging pile is activated, it scans the surrounding wireless signals, looks for available APs (Access Points), and tries to establish a connection with them according to the preset network security protocol (such as WPA, WPA2, etc.). The STA node enables the charging pile to receive control instructions from the upper network, synchronize data, upload status information, etc.

[0041] Specifically, the AP node allows the charging pile to act as a wireless access point and create its own wireless network for other devices (such as smartphones, STA nodes of other charging piles, etc.) to connect. When the AP node of the charging pile is activated, it broadcasts a specific SSID (Service Set Identifier), which is a network name. Other devices select and connect to the network created by the charging pile by identifying this SSID. The AP node enables the charging pile to provide wireless network access services to other devices, that is, allowing other charging piles in the charging pile cluster to form a network connection through this access point.

[0042] It can be seen that in this embodiment, by starting the wifi module of each charging pile in the charging pile cluster and through the collaborative work of the STA node and the AP node, a stable and highly scalable cascade network is formed.

[0043] S20. Determine a master node in the network corresponding to the charging pile cluster according to the STA node of each charging pile, where the master node is an AP node corresponding to a target charging pile in the charging pile cluster.

[0044] Among them, the master node is the Root node mentioned above. The master node is the charging pile with the strongest signal, the most stable connection or a pre-designated charging pile.

[0045] The target charging pile refers to the charging pile selected as the master node. The target charging pile is the charging pile with the strongest signal, the most stable connection or the most suitable as the network center point in the charging pile cluster.

[0046] In a specific implementation, the STA node of each charging pile scans the surrounding Wi-Fi network, searches for the AP nodes of other charging piles, determines the master node according to the preset rules or algorithms, and connects the STA nodes of other charging piles to the master node. The preset rules or algorithms may include, but are not limited to, selecting the charging pile with the strongest signal as the master node; designating a charging pile as the master node according to the preset rules or configuration files; selecting the charging pile that is most suitable as the master node according to the network topology; selecting the charging pile with the lightest current load as the master node according to the load of the charging pile, etc., which are not limited here.

[0047] Therefore, the selection of the master node can be static or dynamic. In a static configuration, the master node is pre-designated; while in a dynamic configuration, the master node can change according to changes in the network state. The dynamic method of selecting the master node provides higher network flexibility and robustness.

[0048] Among them, once the master node is determined, the STA nodes of other charging piles will be connected to the master node to form a network structure centered on the master node.

[0049] It can be seen that in this embodiment, the main node and the connection SSID are automatically determined through the STA node of each charging pile, which simplifies the network configuration process, reduces manual intervention, and improves the efficiency and stability of the Wi-Fi cascade networking method.

[0050] S30. According to the SSID corresponding to the master node broadcast by the master node, a cascade network centered on the master node is established with other charging piles except the target charging pile, wherein the cascade network contains leaf nodes and / or relay nodes connected to the master node, and the relay node is located between the leaf node and the master node.

[0051] Among them, in the cascade network, the leaf node refers to the charging pile directly connected to the main node, and they usually do not undertake further network relay tasks.

[0052] Among them, relay nodes are charging piles between leaf nodes and main nodes. They are not only connected to the main node, but also provide paths for other charging piles to connect to the network, thereby expanding the coverage of the network.

[0053] Among them, cascade networking is a network topology in which one charging pile (master node) serves as the center point, and other charging piles (leaf nodes and relay nodes) are organized into a network around it. In this structure, data is transmitted layer by layer through the master node and other nodes.

[0054] Among them, SSID (Service Set Identifier) ​​is the name of the wireless network. The master node will broadcast this SSID so that other charging piles can identify and connect to this network.

[0055] Among them, in the charging pile cluster, the charging pile selected as the main node has not only a STA node but also an AP node. The AP node is a wireless access point that can create a wireless network and allow other devices (in this case, other charging piles) to connect.

[0056] It can be seen that in this embodiment, by broadcasting the SSID according to the master node, a cascade network centered on the master node is established with other charging piles, thereby realizing automatic configuration, flexible expansion and efficient management of the charging pile network. The cascade network structure has strong scalability and flexibility, is suitable for various application scenarios, and has good stability and self-healing ability.

[0057] This embodiment realizes automatic networking between charging piles by starting the wifi module of each charging pile in the charging pile cluster, without manual configuration one by one, greatly simplifying the network deployment process and improving efficiency; further, the master node is determined according to the STA node of each charging pile, so that the charging pile cluster can dynamically select the most suitable charging pile as the central node according to the actual situation, enhancing the adaptability and reliability of the network; then the SSID is broadcasted by the master node, so that other charging piles can be quickly connected to the master node, and a stable cascade network is established to ensure the efficient operation of the charging pile cluster. Therefore, through this automated networking process, manual intervention is reduced, the complexity and cost of network management are reduced, and the management of the charging pile cluster is made more convenient. Since there is no need for users to intervene in the network configuration process, the user experience is improved, and users can use charging services more conveniently without worrying about complex network connection problems.

[0058] In one embodiment, the master node in the corresponding networking of the charging pile cluster is determined based on the STA node of each charging pile, and the master node is the AP node corresponding to the target charging pile in the charging pile cluster, including: obtaining a first instruction, and the first instruction is used to specify the target charging pile in the charging pile cluster; determining the AP node corresponding to the target charging pile as the master node, and the target charging pile is not connected to any network hotspot.

[0059] The first instruction is specified by the user and is used to explicitly select a charging pile in the charging pile cluster as the target charging pile. According to the first instruction specified by the user, the target charging pile is determined, and the AP node (Station Node) of the target charging pile will be set as the master node.

[0060] The source and form of the first instruction can be issued in a variety of ways, such as through the management system interface of the charging pile cluster, a mobile application, a remote console, or a physical button directly operated on the charging pile. The specific form of the instruction may be a simple selection operation, a text command, a graphical interface operation, etc.

[0061] Among them, the selection process of the target charging pile may consider the following factors: whether the location of the charging pile is convenient to serve as the network center; whether the hardware and software configuration of the charging pile supports serving as the main node; and whether the current status and load conditions of the charging pile are suitable for taking on more network management tasks.

[0062] The AP node of the target charging pile will not be connected to any other network hotspots. It acts as an independent network center instead of a slave device of other networks.

[0063] For example, the user inputs the command "Set charging pile A as the main node" through the management system. The system receives the command and confirms that charging pile A is the target charging pile. The AP node of charging pile A is set as the main node and is not connected to any other network hotspots. The AP node of charging pile A starts broadcasting SSID "ChargingStation_A". The STA nodes of charging piles B and C scan the SSID "ChargingStation_A" and connect. The AP nodes of charging piles B and C broadcast their respective SSIDs for the next-level nodes to connect to.

[0064] It can be seen that in this embodiment, through the first instruction specified by the user, the master node can be flexibly adjusted to optimize the network structure and performance, and the needs of different users can be met, thereby improving the flexibility of the method.

[0065] In one embodiment, determining the master node in the corresponding networking of the charging pile cluster according to the STA node of each charging pile includes: obtaining the initialization process of the wifi module of each charging pile in the charging pile cluster; determining the wifi module that completes the initialization process first as the target wifi module according to the initialization process of the wifi module of each charging pile; and determining the AP node in the target wifi module as the master node.

[0066] The initialization process includes hardware self-check, software startup, configuration loading, and network interface preparation.

[0067] Specifically, in the process of obtaining the initialization process of the wifi module of each charging pile in the charging pile cluster, all charging piles in the charging pile cluster are powered on simultaneously or successively; the wifi module of each charging pile starts the initialization process; the initialization status of the wifi module of each charging pile is monitored in real time; the initialization progress of the wifi module of each charging pile is recorded; the initialization progress of the wifi modules of each charging pile is compared; and the wifi module that completes the initialization first, i.e., the target wifi module, is determined.

[0068] Among them, in the process of determining the wifi module that completes the initialization process first as the target wifi module according to the initialization process of the wifi module of each charging pile, the initialization completion time of the wifi modules of all charging piles is compared, and the wifi module of the charging pile that completes the initialization first is selected as the target wifi module. This selection process is based on time competition, which ensures the rapid establishment of the network center point.

[0069] For example, the wifi module of charging pile A completes initialization within 5 seconds, charging pile B completes it within 3 seconds, and charging pile C completes it within 4 seconds; by comparing the initialization progress, it is determined that the wifi module of charging pile B completes initialization first, that is, the wifi module of charging pile B is the target wifi module, and the AP node of charging pile B is set as the main node. The AP node of charging pile B starts broadcasting SSID "ChargingStation_Main", and the STA nodes of charging piles A and charging piles C scan the SSID "ChargingStation_Main" and connect. The AP nodes of charging piles A and charging piles C broadcast their respective SSIDs for the next-level nodes to connect.

[0070] It can be seen that in this embodiment, the master node is automatically identified through the initialization process of the wifi module, and no additional configuration or manual intervention is required, which ensures that the network is quickly established and improves the timeliness of the method.

[0071] In one embodiment, after the initialization process of the wifi module of each charging pile, the method further includes: if there are multiple wifi modules that complete the initialization process at the same time; according to preset rules, among the multiple wifi modules, a target wifi module is screened out, and the AP node in the target wifi module is determined to be the main node.

[0072] If there are multiple wifi modules that complete the initialization process at the same time, it is because multiple charging piles are powered on almost at the same time, and their wifi modules complete the initialization in a similar time. Therefore, when the wifi modules of multiple charging piles are ready at almost the same time, an additional criterion is needed to determine which charging pile will become the master node.

[0073] Among them, the preset rule can be IP address judgment. Specifically, the charging pile judges by the IP address range obtained after connecting to the hotspot. If the IP address belongs to certain specific ranges (for example, the default IP range of a home router), the hotspot can be judged as a non-Mesh network hotspot; or the charging pile can check the gateway IP address. If the gateway IP address does not match the preset Mesh network gateway address, it can be judged as a non-Mesh network hotspot.

[0074] The preset rule may be determined by the SSID name. Specifically, the SSID prefix or suffix: the charging pile can be determined by the SSID name. If the SSID does not contain a specific prefix or suffix (for example, the SSID of all Mesh network hotspots contains the word "Mesh"), it can be determined as a non-Mesh network hotspot.

[0075] The preset rule can be determined according to a preset network configuration file. If the connected hotspot is not in the Mesh network list recorded in the configuration file, it can be determined as a non-Mesh network hotspot.

[0076] Optionally, the signal strength of all wifi modules that have completed initialization at the same time is measured, and the wifi module with the strongest signal is selected as the target wifi module. If there are multiple wifi modules with the same signal strength, other criteria may be further considered, such as the hardware version, software version or preset priority of the charging pile.

[0077] Among them, signal strength is an important indicator to measure the quality of wireless signals, which is usually related to the coverage and stability of the wireless network.

[0078] For example, suppose there are three charging piles: charging pile A, charging pile B and charging pile C. The wifi modules of charging piles A, B and C complete the initialization process at the same time, and the signal strength is measured: the signal strength of charging pile A is -50dBm, the signal strength of charging pile B is -45dBm, and the signal strength of charging pile C is -60dBm; therefore, the wifi module of charging pile B with the largest signal strength is selected as the target wifi module.

[0079] It can be seen that, in this embodiment, the screening process ensures that even when multiple charging piles are powered on at the same time, a charging pile that is most suitable as the network center point can be quickly and effectively selected, thereby ensuring the smooth operation of the cascade network of the entire charging pile cluster.

[0080] In one embodiment, according to the preset rules, a target wifi module is screened out from the multiple wifi modules, and an AP node in the target wifi module is determined to be a master node, including: performing hotspot scanning according to the STA nodes of the multiple wifi modules, and when a target wifi module is connected to a first hotspot, obtaining an IP address corresponding to the first hotspot to determine whether the IP address corresponding to the first hotspot complies with the preset rules; if the IP address corresponding to the first hotspot does not comply with the preset rules, determining that the AP node in the target wifi module is a master node; or, if the IP address corresponding to the first hotspot complies with the preset rules, determining that the target wifi module maintains the current connection state.

[0081] When the target wifi module is successfully connected to a hotspot (a first hotspot), the IP address assigned to the target wifi module by the hotspot is obtained.

[0082] Among them, if the IP address of the first hotspot does not meet the preset rules, the AP node of the target wifi module is determined to be the main node, the STA node of the target wifi module will no longer connect to other hotspots, and will start broadcasting its own SSID according to the AP node of the target wifi module for other charging piles to connect.

[0083] Among them, if the IP address of the first hotspot meets the preset rules, it will be determined that the target wifi module maintains the current connection state, and the target wifi module continues to serve as a normal node and is connected to the existing hotspot network.

[0084] For example, suppose there are three charging piles: charging pile A, charging pile B, and charging pile C. The STA nodes of charging piles A, B, and C start scanning the surrounding wifi hotspots to find a network that can be connected. The STA node of charging pile A connects to a hotspot and obtains the IP address of the hotspot, that is, obtains the IP address of the first hotspot connected to charging pile A, such as 192.168.1.10. At this time, the preset rule requires that the IP address must be in the 192.168.0.0 / 24 subnet. The IP address 192.168.1.10 of the first hotspot connected to charging pile A is not in the 192.168.0.0 / 24 subnet. It is judged that the IP address does not meet the preset rules, so charging pile A is determined to be the main node. The AP node of charging pile A disconnects from the first hotspot and starts broadcasting its own SSID for other charging piles to connect.

[0085] Specifically, among the multiple wifi modules, the STA node in each wifi module scans once to see if there is an AP SSID that meets the rules. If not, the AP with a 20-digit SSID is broadcast, and then the STA scan is used again. At this time, there will be multiple APs with a 20-digit SSID. Different wifi modules will connect to each other's AP, and add a 3-10S random number delay to return to the successful connection status. Once a wifi module receives a successful connection instruction, the AP of the wifi module is reset and the 19-digit SSID AP is broadcast instead.

[0086] It can be seen that in this embodiment, the master node in the network can be automatically selected and adjusted according to the real-time network status and preset rules, thereby ensuring the stability and reliability of the network.

[0087] In one embodiment, the SSID corresponding to the master node is broadcasted by the master node, and a cascade network centered on the master node is established with other charging piles except the target charging pile, including: starting the STA nodes corresponding to the other charging piles except the target charging pile, performing a network hotspot search within a preset range, and obtaining a network list corresponding to each of the other charging piles; searching for whether the master node exists in the network list corresponding to each of the other charging piles; if the first charging pile in which the master node is found exists in the network list corresponding to each of the other charging piles; connecting the STA node corresponding to the first charging pile to the master node.

[0088] The preset range may refer to a certain geographical range or signal strength range. The size of the preset range depends on the deployment environment of the charging pile and the wireless signal propagation characteristics, and is not limited here.

[0089] Among them, through searching, the STA node of each charging pile will collect a series of available wireless network (hotspot) information, including network name (SSID), signal strength, security type, etc., to form a network list.

[0090] The generation of the network list is a dynamic process and may be updated as the wireless environment changes. For example, if a new hotspot appears or an existing hotspot disappears, the network list will be updated accordingly.

[0091] Among them, the network list collected by each charging pile will be checked to find the hotspot created by the target charging pile (master node).

[0092] If the SSID of the master node is found in the network list of other charging piles, the charging pile is called the first charging pile, which means that the first charging pile can detect and connect to the network of the master node. The STA node of the first charging pile is connected to the master node, and the first charging pile is connected to the entire system through the network of the master node to achieve network connection and data communication.

[0093] Therefore, when the first charging pile successfully connects to the master node, it will become a slave node in the network, participating in data transmission and network communication, and can also serve as a relay node to help other charging piles connect to the network.

[0094] For example, assume there are three charging stations: charging station A (target charging station / main node), charging station B, and charging station C. Charging station A is determined as the main node, and its AP node starts broadcasting SSID "ChargingStation_Main".

[0095] Start the STA nodes of charging piles B and C and start scanning the surrounding network hotspots. The STA nodes of charging piles B and C search for network hotspots within the preset range, searching for all available wifi hotspots. After scanning, the STA node of charging pile B obtains a network list that lists all detected wifi hotspots and their related information (such as SSID, signal strength, etc.). After scanning, the STA node of charging pile C also obtains a similar network list. Search for the SSID "ChargingStation_Main" of the main node in the network list of charging piles B and charging piles C; when the network list of charging pile B contains SSID "ChargingStation_Main", it means that charging pile B can detect the network of the main node. Similarly, when the network list of charging pile C contains SSID "ChargingStation_Main", it means that charging pile C can also detect the network of the main node. Therefore, charging piles B and C are determined to be the first charging piles.

[0096] It can be seen that in this embodiment, through the network search of other charging piles, a wireless network centered on the master node can be quickly established to achieve effective communication and management between charging piles.

[0097] In one embodiment, the network list corresponding to each of the other charging piles is searched for the main node, including: if the main node is not found in the network list corresponding to each of the other charging piles; in each network list, the node with the largest signal strength is screened out as the target connection node; it is determined that the charging pile corresponding to the network list in which the target connection node is found is the second charging pile, and the second charging pile indicates that it is connected to the main node or the relay node; and the STA node corresponding to the second charging pile is connected to the AP node corresponding to the target connection node.

[0098] Among them, failure to find the master node means that no network marked as the master node is found in the searched network list, which is caused by weak signal, failure or other reasons of the master node.

[0099] For each charging pile's network list, the signal strength of each network hotspot in the list will be evaluated, and the hotspot with the strongest signal will be selected as the target connection node. The node with the strongest signal strength usually means that the connection quality of the node is the best, and the stability and speed of data transmission will also be higher. Selecting such a node will help improve the overall performance of the network.

[0100] The second charging pile can be directly connected to the main node, or directly connected to a relay node, which may be another charging pile connected to the main node. If the target connection node is a relay node, then after the second charging pile is connected to the relay node, it can further expand the coverage of the network and help other charging piles connect to the main node.

[0101] It can be seen that the selection and connection process of the second charging pile in this embodiment is automatic, ensuring that charging piles that cannot be directly connected to the main node can also access the network through the relay node, reducing the need for manual intervention and improving the level of automated management of the network.

[0102] In one embodiment, after the SSID corresponding to the master node is broadcasted according to the master node, and a cascade network centered on the master node is established with other charging piles except the target charging pile, the method further includes: if an AP node of a third charging pile in the cascade network is disconnected; determining whether the AP node corresponding to the third charging pile is the master node; if it is the master node, re-establishing the target cascade network, which is different from the cascade network; or, if it is not the master node, determining whether a STA node of a fourth charging pile is connected to the AP node of the third charging pile; if so, re-networking the fourth charging pile.

[0103] Among them, the third charging pile and the fourth charging pile are both charging piles that have been added to the cascade network. In the cascade network, it is continuously detected whether there is an AP node disconnected for a charging pile (referring to the third charging pile). If the AP node of the third charging pile is disconnected and it is the master node, the entire network needs to be re-established; if it is not the master node, but other charging piles (the fourth charging pile) rely on it to connect to the network, then these dependent charging piles need to be reconfigured to ensure the continuity and stability of the network. Among them, in the established cascade network, the AP node of the third charging pile is disconnected for some reason (such as hardware failure, power supply problem or configuration error). It will be checked whether the AP node of the third charging pile is the master node of the current network. If the third charging pile is the master node, then the network needs to be reconfigured, a new charging pile is selected as the master node, and a new cascade network is established. The target cascade network will be different from the original network structure.

[0104] Furthermore, if the third charging pile is not the master node, check whether the STA node of another charging pile (called the fourth charging pile) is connected to the AP node of the third charging pile. If the fourth charging pile is indeed connected to the AP node of the third charging pile, then after the AP node of the third charging pile is disconnected, the fourth charging pile needs to re-search and connect to other AP nodes in the network to maintain the continuity and stability of the network.

[0105] The AP node disconnection may be caused by network failure, device failure or other reasons.

[0106] It can be seen that in this embodiment, when some network components fail, the target cascade networking can be re-established so that the network can automatically adjust to maintain the overall operation.

[0107] In one embodiment, after the SSID corresponding to the master node is broadcasted by the master node and a cascade network centered on the master node is established with other charging piles except the target charging pile, the method further includes: when it is detected that the mobile network of the target charging pile corresponding to the master node is disconnected, obtaining at least one fifth charging pile, the STA node corresponding to the fifth charging pile is connected to the AP node of the target charging pile; detecting whether the at least one fifth charging pile maintains the mobile network connection; if any of the fifth charging piles maintains the mobile network connection, the fifth charging pile that maintains the mobile network connection will share the mobile network with the target charging pile.

[0108] The mobile network may be a 4G / 5G network, which is not limited here. The mobile network disconnection may be caused by weak signal, network failure or other reasons. At this time, the target charging pile cannot communicate with the outside world through the mobile network and needs to restore the connection through other means.

[0109] Among them, the fifth charging pile can be used as a relay node by connecting to the target charging pile to help the target charging pile restore network connection. The fifth charging pile that maintains mobile network connection can be used as a backup path for network connection to ensure the connectivity of the cascade network. The fifth charging pile can share the mobile network with the target charging pile through its AP node.

[0110] The method of sharing the mobile network may include setting up a mobile hotspot, using Wi-Fi bridging technology or other network sharing technologies. The sharing method enables the target charging pile to restore the connection with the external network.

[0111] Specifically, the specific steps of the sharing method may include: the AP node of the fifth charging pile turns on the hotspot sharing function; the STA node of the target charging pile searches for and connects to the AP node of the fifth charging pile; and establishes a stable wireless connection to ensure that the target charging pile can communicate through the mobile network of the fifth charging pile.

[0112] It can be seen that this embodiment ensures that even if the mobile network connection of the charging pile where the master node is located fails, the network can maintain service through the mobile network connection of other charging piles.

[0113] 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 skilled in the art can understand, based on the description of the embodiments of the present application, 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.

[0114] As another aspect of the embodiment of the present application, the embodiment of the present application provides a wifi cascade networking device. The wifi cascade networking device can be a software module, and the software module includes a number of instructions stored in a memory, and the processor can access the memory and call the instructions for execution to complete the wifi cascade networking method described in the above embodiments.

[0115] See also Figure 3 , Figure 3 Schematic diagram of a wifi cascade networking device provided in an embodiment of the present application. Applied to a charging pile cluster, the charging pile cluster includes at least two charging piles, such as Figure 3 As shown, the wifi cascade networking device 300 includes:

[0116] A starting unit 301 is used to start the wifi module of each charging pile in the charging pile cluster, wherein the wifi module includes a STA node and an AP node;

[0117] A determination unit 302 is used to determine a master node in the network corresponding to the charging pile cluster according to the STA node of each charging pile, wherein the master node is an AP node corresponding to a target charging pile in the charging pile cluster;

[0118] The networking unit 303 is used to establish a cascade network centered on the main node with other charging piles except the target charging pile according to the SSID corresponding to the main node broadcast by the main node, wherein the cascade network contains leaf nodes and / or relay nodes connected to the main node, and the relay node is located between the leaf node and the main node.

[0119] This embodiment realizes automatic networking between charging piles by starting the wifi module of each charging pile in the charging pile cluster, without manual configuration one by one, greatly simplifying the network deployment process and improving efficiency; further, the master node is determined according to the STA node of each charging pile, so that the charging pile cluster can dynamically select the most suitable charging pile as the central node according to the actual situation, enhancing the adaptability and reliability of the network; then the SSID is broadcasted by the master node, so that other charging piles can be quickly connected to the master node, and a stable cascade network is established to ensure the efficient operation of the charging pile cluster. Therefore, through this automated networking process, manual intervention is reduced, the complexity and cost of network management are reduced, and the management of the charging pile cluster is made more convenient. Since there is no need for users to intervene in the network configuration process, the user experience is improved, and users can use charging services more conveniently without worrying about complex network connection problems.

[0120] In one embodiment, in the determination of the master node in the network corresponding to the charging pile cluster based on the STA node of each charging pile, wherein the master node is the AP node corresponding to the target charging pile in the charging pile cluster, the determination unit 302 is further used to: obtain a first instruction, wherein the first instruction is used to specify the target charging pile in the charging pile cluster; determine the AP node corresponding to the target charging pile as the master node, and the target charging pile is not connected to any network hotspot.

[0121] In one embodiment, in determining the master node in the corresponding networking of the charging pile cluster according to the STA node of each charging pile, the determination unit 302 is further used to: obtain the initialization process of the wifi module of each charging pile in the charging pile cluster; determine the wifi module that completes the initialization process first as the target wifi module according to the initialization process of the wifi module of each charging pile; and determine the AP node in the target wifi module as the master node.

[0122] In one embodiment, after the initialization process of the wifi module of each charging pile, the determination unit 302 is also used to: if there are multiple wifi modules that complete the initialization process at the same time; according to preset rules, among the multiple wifi modules, filter out the target wifi module and determine the AP node in the target wifi module as the main node.

[0123] In one embodiment, according to preset rules, in screening out a target wifi module from the multiple wifi modules and determining that an AP node in the target wifi module is a master node, the determination unit 302 is further used to: perform hotspot scanning according to the STA nodes of the multiple wifi modules, and when a target wifi module is connected to a first hotspot, obtain an IP address corresponding to the first hotspot; determine whether the IP address corresponding to the first hotspot complies with preset rules; if the IP address corresponding to the first hotspot does not comply with the preset rules, determine that the AP node in the target wifi module is a master node; or, if the IP address corresponding to the first hotspot complies with the preset rules, determine that the target wifi module maintains the current connection state.

[0124] In one embodiment, in the process of establishing a cascade network centered on the master node with other charging piles other than the target charging pile based on the SSID corresponding to the master node broadcast by the master node, the networking unit 303 is further used to: start the STA nodes corresponding to other charging piles other than the target charging pile, perform network hotspot search within a preset range, and obtain a network list corresponding to each of the other charging piles; search whether the master node exists in the network list corresponding to each of the other charging piles; if the first charging pile where the master node is found exists in the network list corresponding to each of the other charging piles; connect the STA node corresponding to the first charging pile to the master node.

[0125] In one embodiment, in the network list corresponding to each of the other charging piles, the network unit 303 is further used to search whether the main node exists. If the main node is not found in the network list corresponding to each of the other charging piles; in each network list, select the node with the largest signal strength as the target connection node; determine that the charging pile corresponding to the network list in which the target connection node is found is the second charging pile, and the second charging pile indicates that it is connected to the main node or the relay node; and connect the STA node corresponding to the second charging pile to the AP node corresponding to the target connection node.

[0126] In one embodiment, after the SSID corresponding to the master node is broadcasted according to the master node, and a cascade network centered on the master node is established with other charging piles except the target charging pile, the networking unit 303 is further used for: if an AP node of a third charging pile in the cascade network is disconnected; determining whether the AP node corresponding to the third charging pile is the master node; if it is the master node, re-establishing the target cascade network, which is different from the cascade network; or, if it is not the master node, determining whether an STA node of a fourth charging pile is connected to the AP node of the third charging pile; if so, re-networking the fourth charging pile.

[0127] In one embodiment, after the SSID corresponding to the master node is broadcasted by the master node and a cascade network centered on the master node is established with other charging piles except the target charging pile, the networking unit 303 is further used to: upon detecting that the mobile network of the target charging pile corresponding to the master node is disconnected, obtain at least one fifth charging pile, and the STA node corresponding to the fifth charging pile is connected to the AP node of the target charging pile; detect whether the at least one fifth charging pile maintains the mobile network connection; if any of the fifth charging piles maintains the mobile network connection, the fifth charging pile that maintains the mobile network connection will share the mobile network with the target charging pile.

[0128] It should be noted that the above-mentioned wifi cascade networking device can execute the wifi cascade networking method provided in the implementation mode of this application, and has the corresponding functional modules and beneficial effects of the implementation method. For technical details not fully described in the implementation mode of the wifi cascade networking device, please refer to the wifi cascade networking method provided in the implementation modes S10-S30 of this application.

[0129] See also Figure 4 , Figure 4 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 4 As shown, the computer device 400 includes a processor 401 and a memory 402. The processor 401 is in communication connection with the memory 402.

[0130] The processor 401 is configured to support the computer device to perform the corresponding functions in the wifi cascade networking method in the above method embodiment. The processor 401 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.

[0131] Specifically, the processor 401 may include a sending card, a receiving card and a driving chip.

[0132] The memory 402 is used to store program codes, etc. The memory 402 may include a volatile memory (VM), such as a random access memory (RAM); the memory 402 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 402 may also include a combination of the above-mentioned types of memories.

[0133] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the WiFi cascade networking method as described in the above embodiment.

[0134] A person skilled in the art can understand 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 disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0135] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A WiFi cascade networking method, characterized in that: Applied to a charging pile cluster, the charging pile cluster includes at least two charging piles, and the method includes: Start the wifi module of each charging pile in the charging pile cluster, wherein the wifi module includes a STA node and an AP node; According to the STA node of each charging pile, determine the master node in the network corresponding to the charging pile cluster, where the master node is the AP node corresponding to the target charging pile in the charging pile cluster; According to the SSID corresponding to the master node broadcast by the master node, a cascade network centered on the master node is established with other charging piles except the target charging pile, and there are leaf nodes and / or relay nodes connected to the master node in the cascade network, and the relay node is located between the leaf node and the master node.

2. The method according to claim 1, characterized in that The determining, according to the STA node of each charging pile, a master node in the network corresponding to the charging pile cluster, wherein the master node is an AP node corresponding to a target charging pile in the charging pile cluster, includes: Obtaining a first instruction, where the first instruction is used to specify a target charging pile in the charging pile cluster; The AP node corresponding to the target charging pile is determined to be a master node, and the target charging pile is not connected to any network hotspot.

3. The method according to claim 1, characterized in that The determining, according to the STA node of each charging pile, a master node in the corresponding network of the charging pile cluster includes: Obtain the initialization process of the wifi module of each charging pile in the charging pile cluster; According to the initialization process of the wifi module of each charging pile, determine the wifi module that completes the initialization process first as the target wifi module; Determine the AP node in the target wifi module as the master node.

4. The method according to claim 3, characterized in that After the initialization process of the wifi module of each charging pile, the method further includes: If there are multiple wifi modules that complete the initialization process at the same time; According to preset rules, a target wifi module is screened out from the multiple wifi modules, and an AP node in the target wifi module is determined to be a master node.

5. The method according to claim 4, characterized in that The step of screening out a target wifi module from the multiple wifi modules according to a preset rule and determining an AP node in the target wifi module as a master node comprises: Perform hotspot scanning according to the STA nodes of the multiple wifi modules, and when there is a target wifi module connected to a first hotspot, obtain an IP address corresponding to the first hotspot; Determine whether the IP address corresponding to the first hotspot meets the preset rules; If the IP address corresponding to the first hotspot does not conform to the preset rule, determining the AP node in the target wifi module as the main node; or, If the IP address corresponding to the first hotspot meets the preset rule, it is determined that the target wifi module maintains the current connection state.

6. The method according to claim 1, characterized in that The method of broadcasting the SSID corresponding to the master node by the master node and establishing a cascade network centered on the master node with other charging piles except the target charging pile includes: Start the STA nodes corresponding to other charging piles except the target charging pile, search for network hotspots within a preset range, and obtain a network list corresponding to each of the other charging piles; In the network list corresponding to each of the other charging piles, searching whether the master node exists; If the first charging pile for which the master node is found exists in the network list corresponding to each of the other charging piles; Connect the STA node corresponding to the first charging pile to the master node.

7. The method according to claim 6, characterized in that The searching whether the master node exists in the network list corresponding to each charging pile in the other charging piles includes: If the master node is not found in the network list corresponding to each of the other charging piles; In each network list, select the node with the strongest signal strength as the target connection node; Determine that the charging pile corresponding to the network list of the target connection node found is a second charging pile, and the second charging pile indicates that it is connected to the master node or the relay node; The STA node corresponding to the second charging pile is connected to the AP node corresponding to the target connection node.

8. The method according to claim 1, characterized in that After the SSID corresponding to the master node is broadcasted by the master node, and a cascade network centered on the master node is established with other charging piles except the target charging pile, the method further includes: If the AP node of the third charging pile in the cascade network is disconnected; Determine whether the AP node corresponding to the third charging pile is the master node; If it is the master node, re-establishing a target cascade network, where the target cascade network is different from the cascade network; or, If it is not the master node, determine whether there is a STA node of the fourth charging pile connected to the AP node of the third charging pile; If it exists, the fourth charging pile is re-networked.

9. The method according to claim 1, characterized in that: After the SSID corresponding to the master node is broadcasted by the master node, and a cascade network centered on the master node is established with other charging piles except the target charging pile, the method further includes: If it is detected that the mobile network of the target charging pile corresponding to the master node is disconnected, at least one fifth charging pile is acquired, and the STA node corresponding to the fifth charging pile is connected to the AP node of the target charging pile; Detecting whether the at least one fifth charging pile maintains the mobile network connection; If there is any of the fifth charging piles that maintains the mobile network connection, the fifth charging pile that maintains the mobile network connection will share the mobile network with the target charging pile.

10. A computer-readable storage medium, characterized in that: 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 processor, the processor executes the WiFi cascade networking method according to any one of claims 1 to 9.