Distributed charging pile real-time communication system
By using a distributed charging pile real-time communication system and a gateway service module to filter and evaluate cloud platform services, the problem of insufficient cloud platform service data processing caused by the increase in the number of charging piles has been solved. This has enabled fast and reliable communication connections and reduced version inconsistencies and security risks.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CSG SMART HEFEI SCI & TECH
- Filing Date
- 2023-12-29
- Publication Date
- 2026-06-02
Smart Images

Figure CN117863953B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of charging piles and relates to communication technology, specifically a distributed charging pile real-time communication system. Background Technology
[0002] Typically, multiple charging pile devices communicate with a single cloud platform service via TCP, sending data and receiving commands. However, as the number of charging piles increases, the amount of data received by the cloud platform service also increases. Without adding more cloud platform services, data processing becomes overwhelming, services cannot function properly, and in severe cases, the service may crash, leaving all charging piles offline. Adding a separate cloud platform service requires publishing a new charging pile application, pointing the application's internal cloud platform address to the new address. This leads to inconsistencies in the charging pile application version, posing certain risks, and the need to publish the application every time a new cloud platform service is added is cumbersome.
[0003] To address this, a distributed charging pile real-time communication system is proposed. Summary of the Invention
[0004] This invention aims to at least solve one of the technical problems existing in the prior art; to this end, this invention proposes a distributed charging pile real-time communication system to solve the technical problem of insufficient data processing capacity of cloud platform services due to the increase in the number of charging piles. This invention solves the above problem by adding a gateway service.
[0005] To achieve the above objectives, a first aspect of the present invention provides a distributed charging pile real-time communication system, including a charging pile monitoring module, a gateway service module, and a communication module;
[0006] The charging pile monitoring module is used to monitor the operating status of the charging pile; wherein, the operating status includes online, offline and fault status;
[0007] When a charging pile is put into service, the charging pile monitoring module sends a gateway service request to the gateway service module.
[0008] The gateway service module is used to obtain all currently operating cloud platform services and generate a cloud platform service list after receiving the gateway service request.
[0009] Return the address information of one of the cloud platform services in the cloud platform service list to the charging pile;
[0010] The communication module is used to establish communication between the charging pile and the cloud platform service.
[0011] Preferably, generating a cloud platform service list includes the following steps:
[0012] The gateway service module obtains the technical specifications information of the charging pile; wherein, the technical specifications information includes the communication protocol, interface standard and data format used by the charging pile;
[0013] Based on the technical specifications, the cloud platform service library is filtered to obtain cloud platform services with the same technical specifications, and a cloud platform service list is generated.
[0014] Establishing communication between charging piles and cloud platform services requires compatibility, necessitating the use of the same communication protocols, data formats, and interface standards by both parties. Therefore, it is necessary to select cloud platform services that can establish communication with charging piles from among all available cloud platform services to facilitate the subsequent selection of suitable cloud platform services.
[0015] Preferably, the cloud platform service library is used to store the technical specifications of various cloud platform services;
[0016] The cloud platform service library can manage and update the stored technical specifications information, ensuring the accuracy and timeliness of the information; this can provide users with more reliable and practical filtering and comparison services.
[0017] Preferably, returning the address information of one of the cloud platform services in the cloud platform service list to the charging pile includes the following steps:
[0018] The gateway service module obtains the number of charging piles connected to each cloud platform service in the cloud platform service list; and marks the number of charging piles as Sn; the fewer the number of charging piles connected to a cloud platform service, the higher the stability of the cloud platform service, so the number of charging piles can be used as an influencing parameter of the cloud platform service index.
[0019] The gateway service module obtains the configuration information of each cloud platform service in the cloud platform service list, and assigns values to the configuration parameters of the cloud platform services according to the configuration information; the configuration parameters are marked as Pn; the higher the configuration of the cloud platform service, the faster the processing speed of the cloud platform service; therefore, the configuration parameters can be used as the influencing parameters of the cloud platform service index.
[0020] Among them, the higher the configuration of the cloud platform service, the larger the corresponding configuration parameters;
[0021] Based on the number of charging piles and the configuration parameters, the cloud platform service index is calculated and obtained, and the cloud platform service index is marked as ZSn;
[0022] The formula for calculating the cloud platform service index is as follows:
[0023]
[0024] Arrange the cloud platform service indices in ascending order to obtain the cloud platform service index sequence;
[0025] Obtain the first cloud platform service in the cloud platform service index sequence and mark it as the target cloud platform service;
[0026] Where n is the number of the cloud platform service, and the value of n is 1, 2, 3...N, N is the total number of cloud platform services in the cloud platform service list; N is an integer greater than 0;
[0027] The gateway service module sends the address information of the target cloud platform service to the charging pile.
[0028] Preferably, when the minimum cloud platform service index exceeds one, the cloud platform service with the highest configuration parameters is selected as the target cloud platform service; this application prioritizes allocating a server with a higher configuration cloud platform service.
[0029] Preferably, the gateway service module is further configured to monitor the operating status and load of the cloud platform service after the address information is sent.
[0030] When the cloud platform service encounters an abnormal situation, the gateway service obtains new address information and sends it to the charging pile.
[0031] Preferably, the communication module establishes communication between the charging pile and the cloud platform service, including the following steps:
[0032] The charging pile receives the address information and establishes communication with the cloud platform service based on the address information.
[0033] After the communication connection is established, the charging pile sends request data to the target cloud platform service and receives response data from the cloud platform service.
[0034] The requested data includes charging pile status, charging request, payment information, and other information.
[0035] The response data includes charging status information, payment results, error messages or prompts, and other relevant information.
[0036] Preferably, it also includes a monitoring module;
[0037] The monitoring module performs heartbeat detection on the charging pile and cloud platform services;
[0038] If the connection is interrupted, re-establish the connection;
[0039] To maintain communication stability, charging stations and cloud platform services typically perform heartbeat checks periodically to confirm that the connection is still valid.
[0040] Compared with the prior art, the beneficial effects of the present invention are:
[0041] This invention obtains the technical specifications of charging piles through a gateway service module; filters the cloud platform service library based on the technical specifications to obtain cloud platform services with the same technical specifications, and generates a cloud platform service list; generates a cloud platform service list by generating the obtained cloud platform services; quickly and accurately finds cloud platform services that match the charging piles, reducing the possibility of manual intervention and incorrect matching; ensures that the selected cloud platform services match the technical requirements of the charging piles, and reduces safety risks caused by incompatibility or technical defects;
[0042] The gateway service module obtains distance data between the charging pile and cloud platform services in the cloud platform service list. Based on the log files of the cloud platform services in the list, the gateway service module calculates the cloud platform service index according to the distance data, stability data, and rate data. The cloud platform service indices are sorted in ascending order to obtain a cloud platform service index sequence. The first cloud platform service in the cloud platform service index sequence is selected and marked as the target cloud platform service. The gateway service module sends the address information of the target cloud platform service to the charging pile. Evaluating and selecting the best cloud platform service based on multiple factors helps ensure that the charging pile can connect to the best-performing and most reliable cloud platform service, improving service availability and response speed. The automated evaluation and selection process reduces the need for manual intervention, making decision-making faster and more accurate, and improving system efficiency and response speed. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a flowchart of the present invention;
[0045] Figure 2 This is a flowchart illustrating the process of obtaining a cloud platform service list in this invention;
[0046] Figure 3 This is a flowchart illustrating the communication process between the charging pile and the cloud platform service established by the communication module in this invention. Detailed Implementation
[0047] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] Please see Figures 1-3 The first aspect of the present invention provides a distributed charging pile real-time communication system, including: a charging pile monitoring module, a gateway service module and a communication module;
[0049] The charging pile monitoring module is used to monitor the operating status of the charging pile;
[0050] Specifically, the operating status includes online, offline, and fault states;
[0051] When a charging pile is put into service, the charging pile monitoring module sends a gateway service request to the gateway service module.
[0052] In one specific embodiment, a user activates charging station A.
[0053] The charging pile monitoring module detects that charging pile A is online and sends a gateway service request to the gateway service module.
[0054] The gateway service module is used to obtain all currently operating cloud platform services and generate a cloud platform service list after receiving the gateway service request.
[0055] Return the address information of one of the cloud platform services in the cloud platform service list to the charging pile;
[0056] In this embodiment, generating the cloud platform service list includes the following steps:
[0057] The gateway service module obtains the technical specifications information of the charging pile;
[0058] Specifically, the technical specifications include the communication protocols, interface standards, and data formats used by the charging piles. It should be noted that the technical specifications can be obtained by reading the technical documents of the charging piles, communicating with suppliers or manufacturers, etc.
[0059] It should be further explained that the communication protocols used by charging piles include TCP / IP, UDP, HTTP, etc.; different communication protocols have different data transmission methods and communication mechanisms, so it is necessary to determine the communication protocol used by the charging pile first.
[0060] The interface standards used by charging piles include RESTful API, SOAP, etc.; the interface standard determines the data exchange method and format, so it is necessary to clarify the interface standard used by the charging pile.
[0061] The data formats sent and received by charging piles include JSON, XML, etc.; different data formats have different encoding and decoding methods, so it is necessary to specify the data format used by the charging pile.
[0062] Based on the aforementioned technical specifications, the cloud platform service library is filtered to obtain cloud platform services with the same technical specifications, and a list of cloud platform services is generated. It should be further noted that the technical specifications of relevant cloud platform services can be queried through search engines, industry news websites, technical forums, and other means.
[0063] In one specific embodiment, after receiving a gateway service request, the gateway service module obtains the technical specifications information of charging pile A.
[0064] Charging pile A uses HTTP as the communication protocol; SOAP as the interface standard; and JSON as the data format.
[0065] Filter cloud platform services within the cloud platform service library that use HTTP as the communication protocol, SOAP as the interface standard, and JSON as the data format.
[0066] Generate a list of cloud platform services from the acquired cloud platform services;
[0067] All cloud platform services listed in the cloud platform service list use HTTP as the communication protocol, SOAP as the interface standard, and JSON as the data format.
[0068] In this embodiment, the cloud platform service library is used to store the technical specifications of various cloud platform services;
[0069] In this embodiment, returning the address information of one of the cloud platform services in the cloud platform service list to the charging pile includes the following steps:
[0070] The gateway service module obtains the number of charging piles connected to each cloud platform service in the cloud platform service list; and marks the number of charging piles as Sn.
[0071] The gateway service module obtains the configuration information of each cloud platform service in the cloud platform service list, and assigns values to the configuration parameters of the cloud platform services according to the configuration information; the configuration parameters are marked as Pn;
[0072] Specifically, the higher the configuration of the cloud platform service, the larger the corresponding configuration parameters;
[0073] Based on the number of charging piles and the configuration parameters, the cloud platform service index is calculated and obtained, and the cloud platform service index is marked as ZSn;
[0074] The formula for calculating the cloud platform service index is as follows:
[0075]
[0076] It should be noted that when there is more than one minimum cloud platform service index, the cloud platform service with the highest configuration parameters will be selected as the target cloud platform service.
[0077] Arrange the cloud platform service indices in ascending order to obtain the cloud platform service index sequence;
[0078] Obtain the first cloud platform service in the cloud platform service index sequence and mark it as the target cloud platform service;
[0079] In one specific embodiment, there are a total of 4 cloud platform services in the cloud platform service list, namely Cloud Platform Service No. 1, Cloud Platform Service No. 2, Cloud Platform Service No. 3 and Cloud Platform Service No. 4.
[0080] Two charging piles have been connected to the No. 1 Cloud Platform service, and their configuration parameters are set to 3 in the list.
[0081] The second cloud platform service has connected to two charging piles, and their configuration parameters are set to 2 in the list.
[0082] The No. 3 cloud platform service has connected 3 charging piles, and its configuration parameter is set to 4 in the list;
[0083] One charging pile has been connected to the No. 4 cloud platform service, and its configuration parameter is set to 1 in the list.
[0084] According to the calculation formula of the cloud platform service index, obtain its cloud platform service index respectively;
[0085] The cloud platform service index of the No. 1 cloud platform is 2 / 3;
[0086] The cloud platform service index for Cloud Platform No. 2 is 1.
[0087] The cloud platform service index of Cloud Platform No. 3 is 3 / 4;
[0088] The cloud platform service index for Cloud Platform No. 4 is 1.
[0089] The cloud platform service index of Cloud Platform No. 1 is the lowest, so Cloud Platform No. 1 is set as the target cloud platform service.
[0090] It should be further explained that n is the number of the cloud platform service, and the value of n is 1, 2, 3...N, where N is the total number of cloud platform services in the cloud platform service list; N is an integer greater than 0.
[0091] The gateway service module sends the address information of the target cloud platform service to the charging pile;
[0092] In this embodiment, the gateway service module is also used to monitor the running status and load of the cloud platform service after the address information is sent.
[0093] If a cloud platform service is found to be malfunctioning or overloaded, the gateway service needs to adjust the load balancing strategy in a timely manner, obtain new address information, and send it to the charging pile.
[0094] The communication module is used to establish communication between the charging pile and the cloud platform service.
[0095] The communication module establishes communication between the charging pile and the cloud platform service, including the following steps:
[0096] The charging pile receives the address information and establishes communication with the target cloud platform service based on the address information.
[0097] Specifically, the communication methods between charging piles and cloud platform services include protocols such as HTTP and WebSocket, which need to be determined based on actual needs and network environment.
[0098] In one specific embodiment, the charging pile obtains the address information of the target cloud platform service and establishes a communication connection with the target cloud platform service through the TCP protocol based on the address information of the target cloud platform service;
[0099] Once the communication connection is established, the charging pile can send request data to the target cloud platform service and receive response data from the cloud platform service.
[0100] Specifically, the requested data includes charging station status, charging request, payment information, and other information;
[0101] Charging pile status: The request sent by the charging pile may include its current status information, such as the charging pile model, version number, working status, etc.
[0102] Charging request: The charging station may send a charging request to the cloud platform service, including the amount of electricity to be charged, the charging time, the charging method, etc.
[0103] Payment information includes card number, battery level, and transaction fee.
[0104] Other information: In addition to the information mentioned above, the request sent by the charging station may also include other relevant information, such as the charging station's geographical location and usage time.
[0105] Specifically, the response data includes charging status information, payment results, error messages or prompts, and other relevant information;
[0106] Charging status information: The response data can include the charging status information of the charging station, such as whether charging has started, charging progress, and estimated charging time;
[0107] Payment result: If the charging station supports payment, the response data from the cloud platform may include the payment result, such as payment successful or payment failed.
[0108] Error messages or prompts: If the charging station's request is incorrect or other problems occur, the cloud platform's response data may contain error messages or prompts so that the charging station can take appropriate action.
[0109] Other relevant information: The response data may also contain other information related to the charging station request, such as the charging station's configuration information and service status.
[0110] In another preferred embodiment, the system further includes a monitoring module;
[0111] To maintain communication stability, charging stations and cloud platform services typically perform heartbeat checks periodically to confirm that the connection is still valid.
[0112] If the connection is interrupted, both parties will attempt to re-establish the connection.
[0113] Some of the data in the above formula are calculated by removing dimensions and taking their numerical values. The formula is the closest to the real situation obtained by software simulation of a large amount of collected data. The preset parameters and preset thresholds in the formula are set by those skilled in the art according to the actual situation or obtained through simulation of a large amount of data.
[0114] Working principle of the invention:
[0115] When a charging pile is put into service, the charging pile monitoring module sends a gateway service request to the gateway service module.
[0116] The gateway service module obtains the technical specifications information of the charging pile; filters the cloud platform service library according to the technical specifications information, obtains cloud platform services with the same technical specifications information, and generates a cloud platform service list; and generates a cloud platform service list from the obtained cloud platform services.
[0117] The gateway service module obtains distance data between the charging pile and the cloud platform services in the cloud platform service list. Based on the log files of the cloud platform services in the cloud platform service list, the gateway service module calculates and obtains the cloud platform service index according to the distance data, stability data, and rate data. The cloud platform service indexes are sorted in ascending order to obtain the cloud platform service index sequence. The first cloud platform service in the cloud platform service index sequence is obtained and marked as the target cloud platform service. The gateway service module sends the address information of the target cloud platform service to the charging pile.
[0118] The charging pile receives address information and establishes communication with the target cloud platform service based on the address information. After the communication connection is completed, the charging pile can send request data to the target cloud platform service and receive response data from the cloud platform service.
[0119] The above embodiments are only used to illustrate the technical methods of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical methods of the present invention without departing from the spirit and scope of the technical methods of the present invention.
Claims
1. A distributed charging pile real-time communication system, characterized in that, It includes a charging pile monitoring module, a gateway service module, and a communication module; The charging pile monitoring module is used to monitor the operating status of the charging pile; wherein, the operating status includes online, offline and fault status; When a charging pile is put into service, the charging pile monitoring module sends a gateway service request to the gateway service module. The gateway service module is used to obtain all currently operating cloud platform services and generate a cloud platform service list after receiving the gateway service request. Return the address information of one of the cloud platform services in the cloud platform service list to the charging pile; The communication module is used to establish communication between the charging pile and the cloud platform service. Generating a list of cloud platform services includes the following steps: The gateway service module obtains the technical specifications information of the charging pile; wherein, the technical specifications information includes the communication protocol, interface standard and data format used by the charging pile; Based on the technical specifications, the cloud platform service library is filtered to obtain cloud platform services with the same technical specifications, and a cloud platform service list is generated. To retrieve the address information of one of the cloud platform services from the cloud platform service list and send it to the charging station, the following steps are involved: The gateway service module obtains the number of charging piles connected to each cloud platform service in the cloud platform service list; and marks the number of charging piles as Sn. The gateway service module obtains the configuration information of each cloud platform service in the cloud platform service list, and assigns values to the configuration parameters of the cloud platform services according to the configuration information; the configuration parameters are marked as Pn; Among them, the higher the configuration of the cloud platform service, the larger the corresponding configuration parameters; Based on the number of charging piles and the configuration parameters, the cloud platform service index is calculated and obtained, and the cloud platform service index is marked as ZSn; The formula for calculating the cloud platform service index is as follows: ; Arrange the cloud platform service indices in ascending order to obtain the cloud platform service index sequence; Obtain the first cloud platform service in the cloud platform service index sequence and mark it as the target cloud platform service; Where n is the number of the cloud platform service, and the value of n is 1, 2, 3...N, N is the total number of cloud platform services in the cloud platform service list; N is an integer greater than 0; The gateway service module sends the address information of the target cloud platform service to the charging pile.
2. The distributed charging pile real-time communication system according to claim 1, characterized in that, The cloud platform service library is used to store the technical specifications of various cloud platform services.
3. The distributed charging pile real-time communication system according to claim 1, characterized in that, If there is more than one minimum cloud platform service index, select the cloud platform service with the highest configuration parameters as the target cloud platform service.
4. The distributed charging pile real-time communication system according to claim 1, characterized in that, The gateway service module is also used to monitor the operating status and load of the cloud platform service after the address information is sent. When the cloud platform service encounters an abnormal situation, the gateway service obtains new address information and sends it to the charging pile.
5. The distributed charging pile real-time communication system according to claim 1, characterized in that, The communication module establishes communication between the charging pile and the cloud platform service, including the following steps: The charging pile receives the address information and establishes communication with the cloud platform service based on the address information. After the communication connection is established, the charging pile sends request data to the target cloud platform service and receives response data from the cloud platform service. The requested data includes charging pile status, charging request, payment information, and other information. The response data includes charging status information, payment results, error messages or prompts, and other relevant information.
6. The distributed charging pile real-time communication system according to claim 1, characterized in that, It also includes a monitoring module; The monitoring module performs heartbeat detection on the charging pile and cloud platform services; If the connection is interrupted, re-establish the connection.