Charging pile management method, management device, electronic device and readable storage medium
Through the self-organizing network of IEEE802.15.4 wireless connection and Thread technology, the problem of unstable network quality of charging piles in poor 4G coverage environment is solved, and an economical and practical charging pile networking solution is realized, which reduces costs and improves connection stability. .
Patent Information
- Application Number
- CN202011086394.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-10-12
AI Technical Summary
The cost of deploying 4G modules in existing charging piles for networking is high and the quality of the network is unstable in environments with poor 4G coverage. The Zigbee network layer cannot directly communicate with TCP/IP and requires specific gateway conversion, which increases deployment complexity and cost.
IEEE802.15.4 is used for wireless connection, Thread technology is used to implement self-organizing network at the network layer, and the border router is connected to the 4G router to realize the networking of charging piles and cloud servers. The 4G module is discarded to reduce costs and improve connection stability.
Deploying charging piles in environments with poor 4G coverage reduces equipment manufacturing costs and operating costs, improves the connection stability of multiple charging piles, and achieves reliable networking between charging piles and the cloud.
Smart Images

Figure CN112203261B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging equipment, and in particular to a management method, a management device, an electronic device and a readable storage medium for a charging pile. Background Art
[0002] With the improvement of social environmental awareness, electric vehicles / electric bicycles have been widely used. The installation of charging piles / charging cabinets in various places has greatly facilitated users, but it has also encountered various environmental and cost constraints. At present, some merchants use the method of deploying 4G modules on each charging pile to realize the networking of charging piles in order to achieve the purpose of communication with the background. However, the 4G module itself is expensive, and the economic burden of configuring 4G modules on each one is self-evident for operators. Even if the cost factor is not considered, when the product is deployed in an environment with poor 4G wireless coverage such as an underground parking lot, the networking quality of the equipment is sometimes good and sometimes bad, and cannot be guaranteed. There are also merchants who use multiple local charging piles to deploy Zigbee modules, and connect to a gateway with networking capabilities to complete the networking function. However, because the Zigbee network layer is self-owned, it cannot be directly interoperable with TCP / IP. It must be converted through a specific gateway with the ability to convert Zigbee packets to IP packets to access the Internet.
[0003] The present invention is proposed in view of the above. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a charging pile management method to solve the method of deploying a 4G module on each charging pile in the prior art to realize the networking of the charging pile. At the same time, due to the defect that the Zigbee network layer is self-owned and cannot directly communicate with TCP / IP, it must be converted through a specific gateway with the ability to convert Zigbee data packets to IP data packets to access the Internet. By using IEEE802.15.4 at the bottom layer to complete the wireless connection and using Thread technology at the network layer, the charging pile / charging cabinet equipment will no longer directly use 4G connection, so that it can be deployed in an environment with poor 4G coverage (such as an underground parking lot), and the manufacturing cost of the equipment is significantly reduced by abandoning the 4G module on the equipment; and the self-organizing networking capability of Thread technology can effectively improve the connection stability of multiple charging piles / charging cabinets, which can greatly reduce the operating cost of the equipment.
[0005] Furthermore, each charging pile uses Thread technology to connect directly or indirectly to the border router via IP (ipv6), and the border router is connected to the 4G router via Ethernet; through the networking capability of the 4G router, each charging pile can achieve network access to the cloud-side backend server.
[0006] The present invention also provides a charging pile management device.
[0007] The present invention further provides an electronic device.
[0008] The present invention further provides a non-transitory computer-readable storage medium.
[0009] A charging pile management method according to an embodiment of the first aspect of the present invention is applied to a server, wherein the server is communicatively connected with a plurality of charging piles distributed in a charging area, and the method comprises:
[0010] Obtaining a request packet sent by the charging pile, and extracting characteristic information of the charging pile from the request packet;
[0011] According to the characteristic information, one of the charging piles is assigned as a parent node, and all the other charging piles are assigned as child nodes;
[0012] The charging post assigned as a parent node is communicatively connected with each of the charging posts assigned as child nodes to form a mesh network within the charging area.
[0013] According to one embodiment of the present invention, the step of obtaining the request packet sent by the charging pile and extracting the characteristic information of the charging pile from the request packet specifically includes:
[0014] Acquire an identification address corresponding to each of the charging piles in the charging area, and parameter information of each of the charging piles;
[0015] Establishing the characteristic information of each charging pile according to the identification address and the parameter information, and encapsulating the characteristic information to form the request packet;
[0016] The parameter information includes charging parameter characteristics of the charging pile for output charging and communication parameter characteristics of the charging pile for data transmission and reception.
[0017] Specifically, the characteristic positioning of the charging pile is obtained through the identification address and parameter information of the charging pile, that is, the corresponding relationship for accurately identifying the unique charging pile can be made.
[0018] Furthermore, the parameter information includes charging parameter characteristics. The charging parameter characteristics here refer to the charging state of the charging pile during the charging operation, whether the charging pile can meet the charging operation requirements, and then determine whether the charging pile is available. The purpose of this setting is that the charging output of the charging pile not only charges the batteries of vehicles, electric vehicles, etc., but also supplies power to itself as a router. Whether the charging pile can meet the endurance requirements is one of the important references for whether the charging pile can be used as a main router.
[0019] Furthermore, by verifying the communication parameter characteristics of the charging pile, it is ensured that the charging pile can communicate normally and that tasks such as task allocation and data transmission can be completed after the charging column is assigned as the main router.
[0020] According to an embodiment of the present invention, the step of allocating one of the charging piles as a parent node and allocating all the other charging piles as child nodes according to the characteristic information specifically includes:
[0021] Generating a confidence ranking for each of the charging posts according to the identification address and the parameter information;
[0022] The charging piles are assigned nodes according to the confidence ranking, one of the charging piles in the confidence ranking is assigned as a parent node, and all the other charging piles are assigned as child nodes.
[0023] Specifically, each charging pile is ranked according to its confidence level based on its charging parameter characteristics and communication parameter characteristics, and a charging pile is selected as the parent node based on the confidence ranking, thereby allocating the main router of the self-organizing network within the charging pile.
[0024] Furthermore, each charging pile uses Thread technology to connect directly or indirectly to the border router via IP (ipv6), and the border router is connected to the 4G router via Ethernet; through the networking capability of the 4G router, each charging pile can achieve network access to the cloud-side backend server.
[0025] According to one embodiment of the present invention, the step of performing node allocation on the charging piles according to the confidence ranking, allocating one of the charging piles in the confidence ranking as a parent node, and allocating all the remaining charging piles as child nodes specifically includes:
[0026] Generating a virtual address corresponding to each of the charging piles according to the confidence ranking;
[0027] Encapsulate the allocation result into a response packet and send it back to each of the charging piles;
[0028] The charging pile decodes the response packet and implements a communication connection between the parent node and each child node according to the virtual address in the response packet.
[0029] Specifically, by generating a virtual address corresponding to each charging pile, communication between a charging pile assigned as a parent node and a charging pile assigned as a child node is achieved.
[0030] According to one embodiment of the present invention, after the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are further included:
[0031] Sending the request packet to the server at a preset frequency within a preset time by the charging pile assigned as the parent node;
[0032] When the number of lost request packets reaches a preset value within the preset time, reallocating the parent node and the virtual address according to the confidence ranking in the child node;
[0033] The allocation result is encapsulated into the response packet and sent to each of the charging posts.
[0034] Specifically, during the communication between charging piles, it is possible that the charging pile assigned as the parent node fails or is in a lost state. At this time, the self-organizing network between the charging piles can automatically assign a new parent node to realize self-organizing network and avoid the occurrence of single point failure.
[0035] Furthermore, Thread is built on UDP over IPv6, which is secure, reliable, and fault-tolerant. Thread eliminates the complexity of existing mesh networking standards. There are only two different node types: Router Eligible and End Device. Router Eligible nodes become routers when needed to support mesh networking. The first Router Eligible node to build a network will automatically be designated as a router and act as a Leader. Leader performs additional network management tasks and makes decisions on behalf of the network. Other Router Eligible nodes in the network can also automatically take on the role of Leader, but there can only be one Leader in each network at a time.
[0036] Furthermore, no matter whether it is a charging pile assigned as a parent node or a charging pile assigned as a child node, they are all Router Eligible nodes in the present invention.
[0037] According to one embodiment of the present invention, after the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are further included:
[0038] The charging pile allocated as a subnode includes at least an activation state and a dormant state;
[0039] The charging pile in the activated state decodes the response packet and establishes a communication connection with the charging pile assigned as the parent node according to the virtual address;
[0040] The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile changes from the dormant state to the activated state, decodes the response packet;
[0041] After the charging pile is switched from the dormant state to the activated state, the charging pile is communicated with the charging pile assigned as the parent node;
[0042] The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile switches from the dormant state to the activated state, the step of decoding the response packet specifically includes:
[0043] If the parent node is reallocated when the charging pile is in a dormant state, the charging pile in the dormant state temporarily stores the received response packet and forms a temporary storage sequence arranged in order of receiving time;
[0044] After the charging pile is switched from the dormant state to the activated state, the parent node and the virtual address are updated according to the temporary storage sequence.
[0045] Specifically, as a dormant child node, it can still obtain response packets and sort the obtained response packets. When the dormant child node is activated, it can decode according to the sorting of the response packets, and then realize communication connection with the latest allocated virtual address, and realize joining the charging pile self-organizing network.
[0046] According to one embodiment of the present invention, after the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are further included:
[0047] The external device sends an access request to the charging pile assigned as the parent node;
[0048] The charging post assigned as the parent node generates a temporary address corresponding to the external device according to the access request, and broadcasts the temporary address within the network.
[0049] Specifically, the node to which the external device joins as an End Device does not support any routing function. Instead, the external device sends information to the router designated as the parent node, and the parent node performs routing operations on behalf of its child nodes. End Devices perform routing communications through parent nodes and can enter a "Sleepy" state to reduce power consumption. End Devices that cannot communicate with their parent nodes will automatically scan and connect to new parent nodes after multiple attempts; that is, when an external device fails to connect to the charging station assigned as the parent node after multiple attempts, it can pair and connect with other Router Eligible nodes to achieve communication connection.
[0050] In an application scenario, the user's mobile terminal acts as an external device. When the user enters the self-organizing network area of the charging pile, the mobile terminal attempts to communicate with the charging pile assigned as the parent node to access the self-organizing network of the charging pile, and then obtain the corresponding parameters of the charging pile and perform corresponding operations.
[0051] A charging pile management device according to an embodiment of the second aspect of the present invention includes:
[0052] An acquisition module, which acquires a request packet sent by the charging pile and extracts characteristic information of the charging pile from the request packet;
[0053] An allocation module, which allocates one of the charging piles as a parent node and all the other charging piles as child nodes according to the characteristic information;
[0054] The networking module is configured such that the charging pile assigned as a parent node is communicatively connected with each of the charging piles assigned as child nodes to form a mesh network within the charging area.
[0055] An electronic device according to an embodiment of a third aspect of the present invention includes:
[0056] A memory and a processor, wherein the memory and the processor communicate with each other via a bus;
[0057] The memory stores computer instructions that can be executed on the processor;
[0058] When the processor calls the computer program instructions, it can execute the above-mentioned charging pile management method.
[0059] According to a fourth aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned charging pile management method.
[0060] The above one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: a charging pile management method, a management device, an electronic device and a readable storage medium provided in the embodiments of the present invention adopt an economical and practical communication module to realize communication, so as to eliminate the dependence of each charging pile / charging cabinet on expensive 4G modules and reduce the cost of the product; at the same time, a general IP technology is adopted for networking to solve the problem of needing to deploy a specific Zigbee gateway.
[0061] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1 It is a first schematic diagram of a process of a charging pile management method provided by an embodiment of the present invention;
[0064] Figure 2 is a second schematic diagram of a process of a charging pile management method provided by an embodiment of the present invention;
[0065] Figure 3 is a third schematic diagram of a process of a charging pile management method provided by an embodiment of the present invention;
[0066] Figure 4 is a fourth schematic diagram of a process of a charging pile management method provided by an embodiment of the present invention;
[0067] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention.
[0068] Reference numerals:
[0069] 810: processor; 820: communication interface; 830: memory; 840: communication bus. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] The present application is described in detail below in conjunction with the drawings in the specification. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. In the description of the present application, unless otherwise specified, "at least one" includes one or more. "Multiple" refers to two or more. For example, at least one of A, B, and C includes: A exists alone, B exists alone, A and B exist at the same time, A and C exist at the same time, B and C exist at the same time, and A, B, and C exist at the same time. In the present application, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0072] In some specific embodiments of the present invention, Figures 1 to 4 As shown, this solution provides a charging pile management method, which is applied to a server, and the server is communicatively connected with a plurality of charging piles distributed in a charging area, and the method includes:
[0073] Obtaining a request packet sent by the charging pile, and extracting characteristic information of the charging pile from the request packet;
[0074] According to the characteristic information, one of the charging piles is assigned as a parent node, and all the other charging piles are assigned as child nodes;
[0075] The charging post assigned as a parent node is communicatively connected with each of the charging posts assigned as child nodes to form a mesh network within the charging area.
[0076] Specifically, the present invention proposes a charging pile management method to solve the problem that each charging pile is deployed with a 4G module in the prior art to realize the networking of the charging piles. At the same time, due to the defect that the Zigbee network layer is self-owned and cannot directly communicate with TCP / IP, and must be converted through a specific gateway with the ability to convert Zigbee data packets to IP data packets to access the Internet, the wireless connection is completed by using IEEE802.15.4 at the bottom layer and Thread technology at the network layer, so that the charging pile / charging cabinet equipment will no longer need to directly use 4G connection, so that it can be deployed in an environment with poor 4G coverage (such as an underground parking lot), and the manufacturing cost of the equipment is significantly reduced by abandoning the 4G module on the equipment; and the self-organizing networking capability of Thread technology can effectively improve the connection stability of multiple charging piles / charging cabinets, which can greatly reduce the operating cost of the equipment.
[0077] In some embodiments, the step of obtaining the request packet sent by the charging pile and extracting the characteristic information of the charging pile from the request packet specifically includes:
[0078] Acquire an identification address corresponding to each of the charging piles in the charging area, and parameter information of each of the charging piles;
[0079] Establishing the characteristic information of each charging pile according to the identification address and the parameter information, and encapsulating the characteristic information to form the request packet;
[0080] The parameter information includes charging parameter characteristics of the charging pile for output charging and communication parameter characteristics of the charging pile for data transmission and reception.
[0081] Specifically, the characteristic positioning of the charging pile is obtained through the identification address and parameter information of the charging pile, that is, the corresponding relationship for accurately identifying the unique charging pile can be made.
[0082] Furthermore, the parameter information includes charging parameter characteristics. The charging parameter characteristics here refer to the charging state of the charging pile during the charging operation, whether the charging pile can meet the charging operation requirements, and then determine whether the charging pile is available. The purpose of this setting is that the charging output of the charging pile not only charges the batteries of vehicles, electric vehicles, etc., but also supplies power to itself as a router. Whether the charging pile can meet the endurance requirements is one of the important references for whether the charging pile can be used as a main router.
[0083] Furthermore, by verifying the communication parameter characteristics of the charging pile, it is ensured that the charging pile can communicate normally and that tasks such as task allocation and data transmission can be completed after the charging column is assigned as the main router.
[0084] In some embodiments, the step of allocating one of the charging piles as a parent node and allocating the remaining charging piles as child nodes according to the characteristic information specifically includes:
[0085] Generating a confidence ranking for each of the charging posts according to the identification address and the parameter information;
[0086] The charging piles are assigned nodes according to the confidence ranking, one of the charging piles in the confidence ranking is assigned as a parent node, and all the other charging piles are assigned as child nodes.
[0087] Specifically, each charging pile is ranked according to its confidence level based on its charging parameter characteristics and communication parameter characteristics, and a charging pile is selected as the parent node based on the confidence ranking, thereby allocating the main router of the self-organizing network within the charging pile.
[0088] Furthermore, each charging pile uses Thread technology to connect directly or indirectly to the border router via IP (ipv6), and the border router is connected to the 4G router via Ethernet; through the networking capability of the 4G router, each charging pile can achieve network access to the cloud-side backend server.
[0089] In some embodiments, the step of assigning nodes to the charging piles according to the confidence ranking, assigning one of the charging piles in the confidence ranking as a parent node, and assigning all the remaining charging piles as child nodes specifically includes:
[0090] Generating a virtual address corresponding to each of the charging piles according to the confidence ranking;
[0091] Encapsulate the allocation result into a response packet and send it back to each of the charging piles;
[0092] The charging pile decodes the response packet and implements a communication connection between the parent node and each child node according to the virtual address in the response packet.
[0093] Specifically, by generating a virtual address corresponding to each charging pile, communication between a charging pile assigned as a parent node and a charging pile assigned as a child node is achieved.
[0094] In some embodiments, after the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are further included:
[0095] Sending the request packet to the server at a preset frequency within a preset time by the charging pile assigned as the parent node;
[0096] When the number of lost request packets reaches a preset value within the preset time, reallocating the parent node and the virtual address according to the confidence ranking in the child node;
[0097] The allocation result is encapsulated into the response packet and sent to each of the charging posts.
[0098] Specifically, during the communication between charging piles, it is possible that the charging pile assigned as the parent node fails or is in a lost state. At this time, the self-organizing network between the charging piles can automatically assign a new parent node to realize self-organizing network and avoid the occurrence of single point failure.
[0099] Furthermore, Thread is built on UDP over IPv6, which is secure, reliable, and fault-tolerant. Thread eliminates the complexity of existing mesh networking standards. There are only two different node types: Router Eligible and End Device. Router Eligible nodes become routers when needed to support mesh networking. The first Router Eligible node to build a network will automatically be designated as a router and act as a Leader. Leader performs additional network management tasks and makes decisions on behalf of the network. Other Router Eligible nodes in the network can also automatically take on the role of Leader, but there can only be one Leader in each network at a time.
[0100] Furthermore, no matter whether it is a charging pile assigned as a parent node or a charging pile assigned as a child node, they are all Router Eligible nodes in the present invention.
[0101] In some embodiments, after the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are further included:
[0102] The charging pile allocated as a subnode includes at least an activation state and a dormant state;
[0103] The charging pile in the activated state decodes the response packet and establishes a communication connection with the charging pile assigned as the parent node according to the virtual address;
[0104] The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile changes from the dormant state to the activated state, decodes the response packet;
[0105] After the charging pile is switched from the dormant state to the activated state, the charging pile is communicated with the charging pile assigned as the parent node;
[0106] The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile switches from the dormant state to the activated state, the step of decoding the response packet specifically includes:
[0107] If the parent node is reallocated when the charging pile is in a dormant state, the charging pile in the dormant state temporarily stores the received response packet and forms a temporary storage sequence arranged in order of receiving time;
[0108] After the charging pile is switched from the dormant state to the activated state, the parent node and the virtual address are updated according to the temporary storage sequence.
[0109] Specifically, as a dormant child node, it can still obtain response packets and sort the obtained response packets. When the dormant child node is activated, it can decode according to the sorting of the response packets, and then realize communication connection with the latest allocated virtual address, and realize joining the charging pile self-organizing network.
[0110] In some embodiments, after the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are further included:
[0111] The external device sends an access request to the charging pile assigned as the parent node;
[0112] The charging post assigned as the parent node generates a temporary address corresponding to the external device according to the access request, and broadcasts the temporary address within the network.
[0113] Specifically, the node to which the external device joins as an End Device does not support any routing function. Instead, the external device sends information to the router designated as the parent node, and the parent node performs routing operations on behalf of its child nodes. End Devices perform routing communications through parent nodes and can enter a "Sleepy" state to reduce power consumption. End Devices that cannot communicate with their parent nodes will automatically scan and connect to new parent nodes after multiple attempts; that is, when an external device fails to connect to the charging station assigned as the parent node after multiple attempts, it can pair and connect with other Router Eligible nodes to achieve communication connection.
[0114] In an application scenario, the user's mobile terminal acts as an external device. When the user enters the self-organizing network area of the charging pile, the mobile terminal attempts to communicate with the charging pile assigned as the parent node to access the self-organizing network of the charging pile, and then obtain the corresponding parameters of the charging pile and perform corresponding operations.
[0115] A charging pile management device according to an embodiment of the second aspect of the present invention includes:
[0116] An acquisition module, which acquires a request packet sent by the charging pile and extracts characteristic information of the charging pile from the request packet;
[0117] An allocation module, which allocates one of the charging piles as a parent node and all the other charging piles as child nodes according to the characteristic information;
[0118] The networking module is configured such that the charging pile assigned as a parent node is communicatively connected with each of the charging piles assigned as child nodes to form a mesh network within the charging area.
[0119] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the management method of the charging pile.
[0120] It should be noted that the electronic device in this embodiment can be a server, a PC, or other devices in specific implementation, as long as its structure includes the following: Figure 5 The processor 810, communication interface 820, memory 830 and communication bus 840 shown in the figure, wherein the processor 810, communication interface 820, memory 830 communicate with each other through the communication bus 840, and the processor 810 can call the logic instructions in the memory 830 to execute the above method. This embodiment does not limit the specific implementation form of the electronic device.
[0121] Among them, the server can be a single server or a server group. The server group can be centralized or distributed (for example, the server can be a distributed system). In some embodiments, the server can be local or remote relative to the terminal. For example, the server can access information stored in a user terminal, a database, or any combination thereof via a network. As another example, the server can be directly connected to at least one of the user terminal and the database to access the information and / or data stored therein. In some embodiments, the server can be implemented on a cloud platform; as an example only, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-cloud, a multi-cloud, etc., or any combination thereof. In some embodiments, the server and the user terminal can be implemented on an electronic device having one or more components in the embodiments of the present application.
[0122] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0123] Furthermore, an embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments.
[0124] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the charging pile management method provided in the above embodiments is implemented.
[0125] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A charging pile management method, characterized in that: Applied to a server, the server is communicatively connected with a plurality of charging piles distributed in a charging area, the method comprising: Obtaining a request packet sent by the charging pile, and extracting characteristic information of the charging pile from the request packet; According to the characteristic information, one of the charging piles is assigned as a parent node, and all the other charging piles are assigned as child nodes; The charging pile assigned as a parent node is communicatively connected with each of the charging piles assigned as child nodes to form a mesh network within the charging area; The step of obtaining the request packet sent by the charging pile and extracting the characteristic information of the charging pile from the request packet specifically includes: Acquire an identification address corresponding to each of the charging piles in the charging area, and parameter information of each of the charging piles; Establishing the characteristic information of each charging pile according to the identification address and the parameter information, and encapsulating the characteristic information to form the request packet; The parameter information includes charging parameter characteristics of the charging pile for output charging and communication parameter characteristics of the charging pile for data transmission and reception; The step of allocating one of the charging piles as a parent node and allocating the remaining charging piles as child nodes according to the characteristic information specifically includes: Generating a confidence ranking for each of the charging posts according to the identification address and the parameter information; Performing node allocation for the charging piles according to the confidence ranking, allocating one of the charging piles in the confidence ranking as a parent node, and allocating the remaining charging piles as child nodes; The step of performing node allocation on the charging piles according to the confidence ranking, allocating one of the charging piles in the confidence ranking as a parent node, and allocating all the remaining charging piles as child nodes specifically includes: Generating a virtual address corresponding to each of the charging piles according to the confidence ranking; Encapsulate the allocation result into a response packet and send it back to each of the charging piles; The charging pile decodes the response packet and realizes the communication connection between the parent node and each child node according to the virtual address in the response packet; After the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are also included: Sending the request packet to the server at a preset frequency within a preset time by the charging pile assigned as the parent node; When the number of lost request packets reaches a preset value within the preset time, reallocating the parent node and the virtual address according to the confidence ranking in the child node; Encapsulating the allocation result into the response packet and sending it to each of the charging piles; After the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are also included: The charging pile allocated as a subnode includes at least an activation state and a dormant state; The charging pile in the activated state decodes the response packet and establishes a communication connection with the charging pile assigned as the parent node according to the virtual address; The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile changes from the dormant state to the activated state, decodes the response packet; After the charging pile is switched from the dormant state to the activated state, the charging pile is communicated with the charging pile assigned as the parent node; The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile switches from the dormant state to the activated state, the step of decoding the response packet specifically includes: If the parent node is reallocated when the charging pile is in a dormant state, the charging pile in the dormant state temporarily stores the received response packet and forms a temporary storage sequence arranged in order of receiving time; After the charging pile is switched from the dormant state to the activated state, the parent node and the virtual address are updated according to the temporary storage sequence.
2. A charging pile management method according to claim 1, characterized in that: After the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are also included: The external device sends an access request to the charging pile assigned as the parent node; The charging pile assigned as the parent node generates a temporary address corresponding to the external device according to the access request, and broadcasts the temporary address within the network.
3. A charging pile management device, characterized in that: Applied to a server, the server is communicatively connected with a plurality of charging piles distributed in a charging area, and the device comprises: An acquisition module, which acquires a request packet sent by the charging pile and extracts characteristic information of the charging pile from the request packet; An allocation module, which allocates one of the charging piles as a parent node and all the other charging piles as child nodes according to the characteristic information; A networking module, wherein the charging pile assigned as a parent node is communicatively connected with each of the charging piles assigned as child nodes to form a mesh network within the charging area; The step of obtaining the request packet sent by the charging pile and extracting the characteristic information of the charging pile from the request packet specifically includes: Acquire an identification address corresponding to each of the charging piles in the charging area, and parameter information of each of the charging piles; Establishing the characteristic information of each charging pile according to the identification address and the parameter information, and encapsulating the characteristic information to form the request packet; The parameter information includes charging parameter characteristics of the charging pile for output charging and communication parameter characteristics of the charging pile for data transmission and reception; The step of allocating one of the charging piles as a parent node and allocating the remaining charging piles as child nodes according to the characteristic information specifically includes: Generating a confidence ranking for each of the charging posts according to the identification address and the parameter information; Performing node allocation for the charging piles according to the confidence ranking, allocating one of the charging piles in the confidence ranking as a parent node, and allocating the remaining charging piles as child nodes; The step of performing node allocation on the charging piles according to the confidence ranking, allocating one of the charging piles in the confidence ranking as a parent node, and allocating all the remaining charging piles as child nodes specifically includes: Generating a virtual address corresponding to each of the charging piles according to the confidence ranking; Encapsulate the allocation result into a response packet and send it back to each of the charging piles; The charging pile decodes the response packet and realizes the communication connection between the parent node and each child node according to the virtual address in the response packet; After the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are also included: Sending the request packet to the server at a preset frequency within a preset time by the charging pile assigned as the parent node; When the number of lost request packets reaches a preset value within the preset time, reallocating the parent node and the virtual address according to the confidence ranking in the child node; Encapsulating the allocation result into the response packet and sending it to each of the charging piles; After the step of the charging pile assigned as the parent node and each of the charging piles assigned as the child nodes being communicatively connected to form a mesh network within the charging area, the following steps are also included: The charging pile allocated as a subnode includes at least an activation state and a dormant state; The charging pile in the activated state decodes the response packet and establishes a communication connection with the charging pile assigned as the parent node according to the virtual address; The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile changes from the dormant state to the activated state, decodes the response packet; After the charging pile is switched from the dormant state to the activated state, the charging pile is communicated with the charging pile assigned as the parent node; The charging pile in the dormant state temporarily stores the received response packet, and when the charging pile switches from the dormant state to the activated state, the step of decoding the response packet specifically includes: If the parent node is reallocated when the charging pile is in a dormant state, the charging pile in the dormant state temporarily stores the received response packet and forms a temporary storage sequence arranged in order of receiving time; After the charging pile is switched from the dormant state to the activated state, the parent node and the virtual address are updated according to the temporary storage sequence.
4. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor communicate with each other via a bus; The memory stores computer instructions that can be executed on the processor; When the processor calls the computer instruction, it can execute the charging pile management method described in claim 1 or 2.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the charging pile management method described in claim 1 or 2 are implemented.
