Charging pile control method and device and electronic equipment
By using a combination solution of control message queue and communication module in the charging pile, the problem of untimely execution of remote control instructions of the charging pile is solved, and the stable and efficient management of the charging pile is achieved, ensuring the reliable and timely execution of the control instructions.
Patent Information
- Application Number
- CN202411227959.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-19
AI Technical Summary
In the remote control of charging piles, there are problems with the reliable and timely execution of control instructions, which leads to unstable charging pile management.
Using a combination scheme of control message queue and communication module, deterministic message communication is supported by receiving control instructions and storing them in message format to target topics, thereby realizing remote control of charging piles. The specific steps include the communication module receiving control instructions from the charging pile management system, performing data cleaning and outlier processing, encapsulating it into a message format, and cache it to the control message queue, and the control module subscribes to and executes the instructions from the target topic.
The reliability and timeliness of remote control of charging piles are realized, the timely execution of control instructions is ensured, and the management efficiency and stability of charging piles are improved.
Smart Images

Figure CN118977604A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of charging piles, and in particular to a charging pile control method and device, and electronic equipment. Background Art
[0002] With the rapid development of the electric vehicle industry, electric vehicles have gradually occupied an important position in the market and become an important choice for future travel. As an important infrastructure for electric vehicles, the stability and efficiency of charging piles have become the focus of industry attention. The wide distribution and efficient operation of charging piles are the key to the popularization and sustainable development of electric vehicles.
[0003] In order to ensure the stable and efficient operation of charging piles, remote control and management of charging piles is an indispensable technical means. Through remote control of charging piles, relevant management work of charging piles can be completed even when unattended. However, remote control of charging piles currently faces a reliability problem, that is, how to achieve reliable and timely execution of control instructions. Summary of the invention
[0004] The present disclosure provides a charging pile control method and device, and electronic equipment, the main purpose of which is to solve the problem of how to achieve reliable and timely execution of control instructions in related technologies.
[0005] According to a first aspect of the present disclosure, a charging pile control method is provided, the method is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, the method includes: Receiving a control instruction from a charging pile management system based on the communication module, and storing the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; Based on the control module subscribing to the control instruction from the target topic and executing it to complete the remote control of the charging pile, the control message queue supports deterministic message communication.
[0006] Optionally, when the communication module is a CAN communication module, the receiving of a control instruction from the charging pile management system based on the communication module and storing the control instruction in a message format in the control message queue and the target topic corresponding to the control instruction include: Receiving the control instruction from the charging pile management system through the CAN interface based on the CAN communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0007] Optionally, when the communication module is a serial communication module, the receiving of a control instruction from the charging pile management system based on the communication module and storing the control instruction in a message format in the control message queue and the target topic corresponding to the control instruction include: Receiving the control instruction from the charging pile management system through the RS485 interface or the RS232 interface based on the serial communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0008] Optionally, when the communication module is an Ethernet communication module, the receiving of control instructions from the charging pile management system based on the communication module and storing the control instructions in the control message queue in a message format and the target topic corresponding to the control instruction include: Based on the Ethernet communication module, the control instruction is received from the charging pile management system through any one of the RJ45 interface, the Wifi interface, the 4G interface, and the 5G interface; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0009] Optionally, the subscribing to the control instruction from the target topic based on the control module and executing the control instruction includes: subscribing to the control instruction from the target topic based on the target control submodule; The control instruction is parsed based on the target control submodule, and the corresponding task is executed according to the parsing result. The control module includes multiple control submodules and each control submodule is used to execute a fixed type of control instruction. The multiple control submodules include the target control submodule. Among the multiple control submodules, there is a software upgrade control module for remotely upgrading the software of the charging pile.
[0010] Optionally, the communication module may also be any one of a ZigBee communication module, a LoRa communication module, and a Bluetooth communication module.
[0011] Optionally, the method comprises: Based on the real-time monitoring unit monitoring the operating status of the control unit, the control unit and the real-time monitoring unit are independently arranged on the charging pile respectively; or the control unit and the real-time monitoring unit are integrated and arranged on the charging pile.
[0012] According to a second aspect of the present disclosure, a charging pile control device is provided, the device is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, the device includes: A receiving unit, configured to receive a control instruction from a charging pile management system based on the communication module, and store the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; A control unit is used to subscribe to and execute the control instruction from the target topic based on the control module to complete the remote control of the charging pile, and the control message queue supports deterministic message communication.
[0013] Optionally, when the communication module is a CAN communication module, the receiving unit is further used for: Receiving the control instruction from the charging pile management system through the CAN interface based on the CAN communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0014] Optionally, when the communication module is a serial communication module, the receiving unit is further used for: Receiving the control instruction from the charging pile management system through the RS485 interface or the RS232 interface based on the serial communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0015] Optionally, when the communication module is an Ethernet communication module, the receiving unit is further used for: Based on the Ethernet communication module, the control instruction is received from the charging pile management system through any one of the RJ45 interface, the Wifi interface, the 4G interface, and the 5G interface; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0016] Optionally, the control unit is further used for: subscribing to the control instruction from the target topic based on the target control submodule; The control instruction is parsed based on the target control submodule, and the corresponding task is executed according to the parsing result. The control module includes multiple control submodules and each control submodule is used to execute a fixed type of control instruction. The multiple control submodules include the target control submodule. Among the multiple control submodules, there is a software upgrade control module for remotely upgrading the software of the charging pile.
[0017] Optionally, the communication module may also be any one of a ZigBee communication module, a LoRa communication module, and a Bluetooth communication module.
[0018] Optionally, the device is also used for: Based on the real-time monitoring unit monitoring the operating status of the control unit, the control unit and the real-time monitoring unit are independently arranged on the charging pile respectively; or the control unit and the real-time monitoring unit are integrated and arranged on the charging pile.
[0019] According to a third aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0020] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0021] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0022] The present disclosure provides a charging pile control method, device, and electronic device, the method is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, the method includes: receiving a control instruction from a charging pile management system based on the communication module, and storing the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, the control instruction is used to remotely control the charging pile; based on the control module, subscribing to the control instruction from the target topic and executing it to complete the remote control of the charging pile, the control message queue supports deterministic message communication. Compared with the related art, by caching the control instruction based on the control message queue, and subscribing to the control instruction from the control message queue based on the control module, so as to execute the corresponding control task after parsing the control instruction, the remote control of the charging pile is realized and the reliability and timeliness of the execution of the control instruction are guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings: Figure 1 A schematic diagram of a charging pile control method provided by an embodiment of the present disclosure; Figure 2 A schematic diagram of the structure of a charging pile control device provided in an embodiment of the present disclosure; Figure 3 A schematic block diagram of an exemplary electronic device 300 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.
[0025] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.
[0026] In addition, the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein.
[0027] The following describes the charging pile control method and device, and electronic device according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0028] In order to at least solve the problem of how to realize reliable and timely execution of control instructions in the related art. And to realize the management and adjustment of various operations and functions during the operation of the charging pile, such as: when to start charging, when to stop charging, adjustment of charging power, charging pile software upgrade, etc. The present disclosure provides a charging pile control method, including: Figure 1 The following is a flow chart of a charging pile control method provided by an embodiment of the present disclosure. Figure 1 As shown, the method is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, and the specific steps of the method include: Step 101, receiving a control instruction from a charging pile management system based on the communication module, and storing the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; As a refinement of the above step 102, the target topic is a mechanism for classifying and filtering messages in the control message queue. The specific process is that the publisher (Producer) sends the message to the specified topic, and the subscriber (Consumer) subscribes to the topic of interest to receive the message. In this way, different subscribers can subscribe to different topics as needed to achieve directional transmission of messages.
[0029] Step 102: based on the control module subscribing to the control instruction from the target topic and executing it, the remote control of the charging pile is completed, and the control message queue supports deterministic message communication.
[0030] As a refinement of the above step 102, by setting the control message queue to transmit the control instruction, the average delay from storing the control instruction in the control message queue to the control module subscribing to the control instruction from the control message queue is less than 10 microseconds, and the maximum delay will not exceed 50 microseconds.
[0031] The present disclosure provides a charging pile control method, which is applied to a charging pile provided with a control unit, wherein the control unit includes a control message queue, a control module, and a communication module, and the method includes: receiving a control instruction from a charging pile management system based on the communication module, and storing the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; subscribing to and executing the control instruction from the target topic based on the control module to complete remote control of the charging pile, wherein the control message queue supports deterministic message communication. Compared with the related art, by caching the control instruction based on the control message queue, and subscribing to the control instruction from the control message queue based on the control module, so as to execute the corresponding control task after parsing the control instruction, remote control of the charging pile is achieved and reliability and timeliness of execution of the control instruction are ensured.
[0032] As a refinement of an embodiment of the present disclosure, when executing step 101 of receiving a control instruction from the charging pile management system based on the communication module, and storing the control instruction in a message format in the target topic corresponding to the control instruction in the control message queue, the following implementation methods may also be adopted but are not limited to, for example: when the communication module is a CAN communication module, the control instruction is received from the charging pile management system through a CAN interface based on the CAN communication module; data cleaning and outlier processing are performed on the control instruction to obtain a processed control instruction; the control instruction is encapsulated into the message format; the control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0033] As a refinement of an embodiment of the present disclosure, when executing step 101 of receiving a control instruction from the charging pile management system based on the communication module, and storing the control instruction in a message format in the target topic corresponding to the control instruction in the control message queue, the following implementation methods may also be adopted but are not limited to, for example: when the communication module is a serial communication module, the control instruction is received from the charging pile management system through an RS485 interface or an RS232 interface based on the serial communication module; data cleaning and outlier processing are performed on the control instruction to obtain a processed control instruction; the control instruction is encapsulated into the message format; the control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0034] As a refinement of an embodiment of the present disclosure, when executing step 101 of receiving a control instruction from the charging pile management system based on the communication module, and storing the control instruction in a message format in the target topic corresponding to the control instruction in the control message queue, the following implementation method may also be adopted but is not limited to, for example: when the communication module is an Ethernet communication module, the control instruction is received from the charging pile management system based on the Ethernet communication module through any one of the RJ45 interface, the Wifi interface, the 4G interface, and the 5G interface; the control instruction is cleaned and outlier processing is performed to obtain a processed control instruction; the control instruction is encapsulated into the message format; the control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0035] In some embodiments, the control message queue supports the creation of multiple topics, each topic caches one or several types of control instructions, multiple topics can be used to cache control instructions, and the depth of each topic can also be set.
[0036] As a refinement of the above embodiment, the step 102 described in which the control module subscribes to the control instruction from the target topic and executes includes: subscribing to the control instruction from the target topic based on the target control submodule; parsing the control instruction based on the target control submodule, and executing corresponding tasks according to the parsing results, the control module includes multiple control submodules and each control submodule is used to execute a fixed type of control instruction, the multiple control submodules include the target control submodule, and there is a software upgrade control module among the multiple control submodules for remotely upgrading the software of the charging pile.
[0037] As a refinement of the above embodiment, the control module can obtain control instructions from multiple topics in the control message queue in real time, and after obtaining the control instructions, parse and execute relevant instructions in real time. The control module may include multiple control submodules, each of which executes different types of control instructions.
[0038] In some embodiments, the communication module may also be any one of a ZigBee communication module, a LoRa communication module, and a Bluetooth communication module.
[0039] In some embodiments, the CAN communication module, serial communication module, and Ethernet communication module are optional for the control unit. For example, one or more of them can be selected according to the charging pile equipment model, cost, etc. These communication modules can also be extended to other protocols such as ZigBee communication module, LoRa communication module, Bluetooth communication module, etc.
[0040] As a refinement of the above embodiment, the method can also adopt but is not limited to the following implementation methods, for example: based on the real-time monitoring unit monitoring the operating status of the control unit, the control unit and the real-time monitoring unit are independently arranged on the charging pile; or the control unit and the real-time monitoring unit are integrated and arranged on the charging pile.
[0041] In summary, the embodiments of the present disclosure can achieve the following effects: 1. By caching the control instructions based on the control message queue and subscribing to the control instructions from the control message queue based on the control module, so as to execute the corresponding control task after parsing the control instructions, remote control of the charging pile is realized and the reliability and timeliness of the execution of the control instructions are guaranteed, and the control of the charging pile is made more timely and accurate.
[0042] Corresponding to the above-mentioned charging pile control method, the present invention also proposes a charging pile control device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0043] Figure 2 A schematic diagram of the structure of a charging pile control device provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the device is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, and the device includes: A receiving unit 21, configured to receive a control instruction from a charging pile management system based on the communication module, and store the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; The control unit 22 is used to subscribe to and execute the control instruction from the target topic based on the control module to complete the remote control of the charging pile, and the control message queue supports deterministic message communication.
[0044] The charging pile control device provided by the present disclosure is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, the device is used to: receive a control instruction from a charging pile management system based on the communication module, and store the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, the control instruction is used to remotely control the charging pile; subscribe to the control instruction from the target topic based on the control module and execute it to complete the remote control of the charging pile, the control message queue supports deterministic message communication. Compared with the related art, by caching the control instruction based on the control message queue, and subscribing to the control instruction from the control message queue based on the control module, so as to execute the corresponding control task after parsing the control instruction, the remote control of the charging pile is realized and the reliability and timeliness of the execution of the control instruction are guaranteed.
[0045] Optionally, when the communication module is a CAN communication module, the receiving unit 21 is further used for: Receiving the control instruction from the charging pile management system through the CAN interface based on the CAN communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0046] Optionally, when the communication module is a serial communication module, the receiving unit 21 is further used for: Receiving the control instruction from the charging pile management system through the RS485 interface or the RS232 interface based on the serial communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0047] Optionally, when the communication module is an Ethernet communication module, the receiving unit 21 is further used for: Based on the Ethernet communication module, the control instruction is received from the charging pile management system through any one of the RJ45 interface, the Wifi interface, the 4G interface, and the 5G interface; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
[0048] Optionally, the control unit 22 is further configured to: subscribing to the control instruction from the target topic based on the target control submodule; The control instruction is parsed based on the target control submodule, and the corresponding task is executed according to the parsing result. The control module includes multiple control submodules and each control submodule is used to execute a fixed type of control instruction. The multiple control submodules include the target control submodule. Among the multiple control submodules, there is a software upgrade control module for remotely upgrading the software of the charging pile.
[0049] Optionally, the communication module may also be any one of a ZigBee communication module, a LoRa communication module, and a Bluetooth communication module.
[0050] Optionally, the device is also used for: Based on the real-time monitoring unit monitoring the operating status of the control unit, the control unit and the real-time monitoring unit are independently arranged on the charging pile respectively; or the control unit and the real-time monitoring unit are integrated and arranged on the charging pile.
[0051] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.
[0052] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0053] Figure 3A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0054] like Figure 3 As shown, the device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 302 or a computer program loaded from a storage unit 308 to a RAM (Random Access Memory) 303. Various programs and data required for the operation of the device 300 can also be stored in the RAM 303. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O (Input / Output) interface 305 is also connected to the bus 304.
[0055] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0056] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 301 performs the various methods and processes described above, such as the charging pile control method. For example, in some embodiments, the charging pile control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to execute the aforementioned charging pile control method in any other appropriate manner (for example, by means of firmware).
[0057] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0058] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0059] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0060] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0061] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0062] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0063] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0064] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. A charging pile control method, characterized in that: The method is applied to a charging pile provided with a control unit, wherein the control unit includes a control message queue, a control module, and a communication module, and the method includes: Receiving a control instruction from a charging pile management system based on the communication module, and storing the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; Based on the control module subscribing to the control instruction from the target topic and executing it to complete the remote control of the charging pile, the control message queue supports deterministic message communication.
2. The method according to claim 1, characterized in that When the communication module is a CAN communication module, the control instruction is received from the charging pile management system based on the communication module, and the control instruction is stored in the control message queue in a message format. The target topic corresponding to the control instruction includes: Receiving the control instruction from the charging pile management system through the CAN interface based on the CAN communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
3. The method according to claim 1, characterized in that When the communication module is a serial communication module, the control instruction is received from the charging pile management system based on the communication module, and the control instruction is stored in the control message queue in a message format. The target topic corresponding to the control instruction includes: Receiving the control instruction from the charging pile management system through the RS485 interface or the RS232 interface based on the serial communication module; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
4. The method according to claim 1, characterized in that: When the communication module is an Ethernet communication module, the control instruction is received from the charging pile management system based on the communication module, and the control instruction is stored in the control message queue in a message format. The target topic corresponding to the control instruction includes: Based on the Ethernet communication module, the control instruction is received from the charging pile management system through any one of the RJ45 interface, the Wifi interface, the 4G interface, and the 5G interface; Performing data cleaning and outlier processing on the control instruction to obtain a processed control instruction; Encapsulating the control instruction into the message format; The control instruction in the message format is cached to the target topic, the control message queue includes multiple topics and each topic corresponds to at least one control instruction, and the target topic is one of the multiple topics.
5. The method according to any one of claims 1 to 4, characterized in that Subscribing to the control instruction from the target topic based on the control module and executing the control instruction comprises: subscribing to the control instruction from the target topic based on the target control submodule; The control instruction is parsed based on the target control submodule, and the corresponding task is executed according to the parsing result. The control module includes multiple control submodules and each control submodule is used to execute a fixed type of control instruction. The multiple control submodules include the target control submodule. Among the multiple control submodules, there is a software upgrade control module for remotely upgrading the software of the charging pile.
6. The method according to claim 5, characterized in that The communication module may also be any one of a ZigBee communication module, a LoRa communication module, and a Bluetooth communication module.
7. The method according to claim 6, characterized in that The method comprises: Based on the real-time monitoring unit monitoring the operating status of the control unit, the control unit and the real-time monitoring unit are independently arranged on the charging pile respectively; or the control unit and the real-time monitoring unit are integrated and arranged on the charging pile.
8. A charging pile control device, characterized in that: The device is applied to a charging pile provided with a control unit, the control unit includes a control message queue, a control module, and a communication module, and the device includes: A receiving unit, configured to receive a control instruction from a charging pile management system based on the communication module, and store the control instruction in a message format to a target topic corresponding to the control instruction in the control message queue, wherein the control instruction is used to remotely control the charging pile; A control unit is used to subscribe to and execute the control instruction from the target topic based on the control module to complete the remote control of the charging pile, and the control message queue supports deterministic message communication.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
