Alternating current charging pile order processing method and device and electronic equipment
By using the OCPP protocol in the AC charging pile system for real-time communication and order information reporting, the problems of untimely and inaccurate order information reporting, complex order processing and poor compatibility in the existing system are solved, and compatibility between charging piles and accurate transmission of order information is achieved, and the stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202510054161.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-27
AI Technical Summary
In the existing AC charging pile system, the order information reporting is not timely and inaccurate, the order processing process is complex and can easily lead to inconsistent data or loss, and the lack of unified standard protocols makes charging piles of different manufacturers difficult to be compatible.
Open Charging Protocol (OCPP) is used as the communication protocol between the charging pile and the charging management platform, and the charging status is detected in real time and order information is reported in real time according to the status changes, optimizing database operations and data interaction processes to simplify order processing.
It realizes compatibility and interoperability between charging piles of different manufacturers, ensures timely and accurate reporting of order information, simplifies the order processing process, and enhances the stability and reliability of the system.
Smart Images

Figure CN120047212A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric vehicle charging equipment, and in particular, to a method, device, and electronic device for processing AC charging pile orders. Background Art
[0002] In the existing AC charging pile system, there are often the following problems in order processing: First, the reporting of order information is not timely and accurate enough, resulting in the charging management platform being unable to obtain the charging status of the charging pile in real time; second, the order processing process is complex, involving multiple database operations and data interactions, which easily leads to data inconsistency or loss; third, there is a lack of a unified standard protocol to regulate the communication between the charging pile and the charging management platform, making it difficult for charging piles from different manufacturers to be compatible. Summary of the Invention
[0003] To solve the existing technical problems, embodiments of the present invention provide a method, device, electronic device, and computer-readable storage medium for processing AC charging pile orders.
[0004] In a first aspect, embodiments of the present invention provide a method for processing AC charging pile orders, including: detecting the charging status of the charging pile in real time based on the Open Charge Protocol, where the charging status includes starting charging, charging, and stopping charging; when it is detected that the charging status is starting charging, determining whether there is data to be uploaded for the charging order; if so, reporting the order start information in the database to the platform, and the platform returns the order number of the charging order and writes it into the database; when it is detected that the charging status is charging, reporting the sampling value of the metering chip and the order number to the platform; when it is detected that the charging status is stopping charging, reporting the sampling value of the metering chip and the reason for stopping charging to the platform; the platform determines that the charging order has been completed.
[0005] Optionally, when it is detected that the charging status is starting charging, determining whether there is data to be uploaded for the charging order includes: when it is detected that the charging status is starting charging, determining whether there is data to be uploaded for the charging order based on the order synchronization interface parameter; when the order synchronization interface parameter is 1, it indicates that there is no data to be uploaded for the charging order, and when the order synchronization interface parameter is 0, it indicates that there is data to be uploaded for the charging order.
[0006] Optionally, the order start information at least includes: start time, meter value at start, and start method.
[0007] Optionally, the sampling value of the metering chip at least includes: electricity quantity, voltage, current, power, meter reading, frequency, temperature, or fault code.
[0008] Optionally, when it is detected that the charging state is the stop charging, reporting the sampling value of the metering chip and the reason for the stop charging to the platform, including: when it is detected that the charging state is the stop charging and the order synchronization interface parameter is not 0, reporting the sampling value of the metering chip and the reason for the stop charging to the platform.
[0009] Optionally, the platform determines that the charging order is completed, including: after the platform responds to the reception, assigning the order synchronization interface parameter of the database to 1 and determining that the charging order processing is completed.
[0010] In a second aspect, an embodiment of the present invention further provides an alternating current charging pile order processing device, including: a state judgment module, a start synchronization module, a continuous synchronization module, and a stop synchronization module; the state judgment module is used to detect the charging state of the charging pile in real time based on the open charging protocol, and the charging state includes start charging, charging in progress, and stop charging; the start synchronization module is used to determine whether there is data to be uploaded for the charging order when it is detected that the charging state is the start charging; if so, reporting the order start information in the database to the platform, and the platform returns the order number of the charging order and writes it into the database; the continuous synchronization module is used to report the sampling value of the metering chip and the order number to the platform when it is detected that the charging state is the charging in progress; the stop synchronization module is used to report the sampling value of the metering chip and the reason for the stop charging to the platform when it is detected that the charging state is the stop charging; the platform determines that the charging order is completed.
[0011] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, the memory stores a computer program, the processor executes the computer program stored in the memory, and when the computer program is executed by the processor, the alternating current charging pile order processing method described in the first aspect above is implemented.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the alternating current charging pile order processing method described in the first aspect above is implemented.
[0013] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed, the alternating current charging pile order processing method described in the first aspect or any possible design manner of the first aspect can be implemented.
[0014] The AC charging pile order processing method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present invention adopt the OCPP protocol as the communication protocol between the charging pile and the charging management platform, realizing the compatibility and interoperability between charging piles of different manufacturers. By following unified communication standards and specifications, the charging pile can be easily connected to the charging management platform to achieve unified management and monitoring of order information. Through the OCPP protocol, real-time communication between the charging pile and the charging management platform is realized. During the charging process, corresponding order information is reported in real time according to the state change, ensuring the timely reporting and accurate transmission of order information. Moreover, by optimizing database operations and data interaction processes, the order processing process is simplified, and the stability and reliability of the system are enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the drawings required to be used in the embodiments of the present invention or the background art will be described below.
[0016] Figure 1 The flowchart of an AC charging pile order processing method provided by the embodiments of the present invention is shown;
[0017] Figure 2 The specific method flowchart of the AC charging pile order processing method provided by the embodiments of the present invention is shown;
[0018] Figure 3 The structural schematic diagram of an AC charging pile order processing device provided by the embodiments of the present invention is shown;
[0019] Figure 4 The structural schematic diagram of an electronic device for executing the AC charging pile order processing method provided by the embodiments of the present invention is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0020] The embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
[0021] Figure 1 The flowchart of an AC charging pile order processing method provided by the embodiments of the present invention is shown. As Figure 1 shown, the method includes the following steps 101-104.
[0022] Step 101: Real-time detect the charging state of the charging pile based on the Open Charge Protocol, and the charging state includes starting charging, charging, and stopping charging.
[0023] The AC charging pile order processing method provided by the embodiments of the present invention is applied to the internal system of the charging pile. Among them, the open charging protocol can be abbreviated as the OCPP protocol (Open Charge Point Protocol), and through the OCPP protocol, real-time communication between the charging pile and the charging management platform (i.e., the platform in this application) can be achieved, thereby ensuring the timely reporting and accurate transmission of order information. Specifically, the present invention can detect three charging states of the charging pile in real time based on the OCPP protocol, including starting charging, charging, and stopping charging.
[0024] Step 102: When it is detected that the charging state is starting charging, determine whether there is data to be uploaded for the charging order; if so, report the order start information in the database to the platform, and the platform returns the order number of the charging order and writes it into the database.
[0025] When it is detected in real time based on the OCPP protocol that the charging state of the charging pile is starting charging, that is, when a new charging order appears and the charging pile system enters the charging state, it can automatically determine whether there is data to be uploaded for the charging order. If there is data to be uploaded for the charging order, it automatically reports the order start information in the database of the charging pile system to the platform (i.e., the charging management platform), thereby achieving real-time communication with the platform and synchronizing to the platform in the first time when a new charging order appears. After the platform responds to the charging order, it writes the order number of the charging order into the database. Optionally, the order start information at least includes: start time, meter value at startup, and start method, where the start method is reported to the platform through the StartCharge interface.
[0026] Step 103: When it is detected that the charging state is charging, report the sampling value of the metering chip and the order number to the platform.
[0027] When it is detected in real time based on the OCPP protocol that the charging state of the charging pile is charging, that is, when it is detected that the charging pile system is continuously charging, in other words, in the thread for uploading process information, it can automatically report the sampling value of the metering chip and the order number of the charging order to the platform through the SendMeterValues interface, so as to report information data to the platform in a timely manner during the charging process. Optionally, the sampling value of the metering chip at least includes: power consumption, voltage, current, power, meter reading, frequency, temperature, or fault code, etc.
[0028] Step 104: When it is detected that the charging state is stopping charging, report the sampling value of the metering chip and the reason for stopping charging to the platform; the platform determines that the charging order has been completed.
[0029] When the charging state of the charging pile is detected as stopped charging in real time based on the OCPP protocol, that is, when it is detected that the charging pile system enters the stopped charging state, the sampling value of the metering chip and the reason for stopping charging are automatically reported to the platform. After the platform responds and receives them, it confirms that the processing of this charging order is completed.
[0030] The AC charging pile order processing method provided by the embodiments of the present invention uses the OCPP protocol as the communication protocol between the charging pile and the charging management platform, realizing the compatibility and interoperability between charging piles of different manufacturers. By following the unified communication standards and specifications, the charging pile can be easily connected to the charging management platform to realize the unified management and monitoring of order information. Through the OCPP protocol, real-time communication between the charging pile and the charging management platform is achieved. During the charging process, corresponding order information is reported in real time according to the state changes, which can ensure the timely reporting and accurate transmission of order information. Moreover, by optimizing the database operations and data interaction processes, the order processing flow is simplified, and the stability and reliability of the system are enhanced.
[0031] Optionally, the above step 102 "When it is detected that the charging state is starting to charge, determine whether there is data to be uploaded for the charging order" includes:
[0032] When it is detected that the charging state is starting to charge, determine whether there is data to be uploaded for the charging order based on the order synchronization interface parameters. Among them, the order synchronization interface parameters can be the OrderSync parameter fields. When the order synchronization interface parameter OrderSync is 1, it means that there is no data to be uploaded for the charging order. When the order synchronization interface parameter OrderSync is 0, it means that there is data to be uploaded for the charging order. That is to say, by judging the specific parameter of the order synchronization interface parameter OrderSync, it is determined whether there is data to be uploaded for the charging order (data waiting to be uploaded to the platform).
[0033] Optionally, the above step 104 "When it is detected that the charging state is stopped charging, report the sampling value of the metering chip and the reason for stopping charging to the platform" includes:
[0034] When it is detected that the charging state is stopped charging and the order synchronization interface parameter is not 0, for example, the synchronization flag in the database is not written as 1, report the sampling value of the metering chip and the reason for stopping charging to the platform through the StopCharge interface.
[0035] Optionally, the above step 104 "The platform determines that the charging order is completed" includes: after the platform responds and receives, assign the value of 1 to the order synchronization interface parameter in the database, that is, change the OrderSync parameter field to 1, indicating that there is no data to be uploaded for the charging order, and then determine that the processing of the charging order is completed. Refer to Figure 2 As shown,Figure 2 The specific flowchart of the AC charging pile order processing method is shown for reference.
[0036] It should be noted that the internal system of the charging pile that executes the AC charging pile order processing method may also include a TransactionId parameter field. The TransactionId parameter field represents the order number responded by the platform after the pile synchronizes with the platform when charging starts; an OrderStatus parameter field, and the OrderStatus parameter field represents that the local order charging is completed regardless of whether the pile is connected to the network. The most recently created order record can be queried by writing db.Query("SELECT*FROM chargeRecord WHERE OrderSync=0ORDER BY id DESC LIMIT 1;").
[0037] In the embodiment of the present invention, inside the charging pile, a separate management process is provided to process the order in real time, and the database status is updated according to the processing result. At the same time, communication with the charging management platform is realized through a unified interface function, reducing the complexity and error rate of data interaction.
[0038] The AC charging pile order processing method provided by the embodiment of the present invention is described in detail above. This method can also be implemented by a corresponding device. The AC charging pile order processing device provided by the embodiment of the present invention is described in detail below.
[0039] Figure 3 The structural schematic diagram of an AC charging pile order processing device provided by the embodiment of the present invention is shown. As Figure 3 shown, the AC charging pile order processing device includes a processor. The processor includes: a status judgment module 31, a start synchronization module 32, a continuous synchronization module 33, and a stop synchronization module 34.
[0040] The status judgment module 31 is used to detect the charging status of the charging pile in real time based on the open charging protocol, and the charging status includes starting charging, charging, and stopping charging.
[0041] The start synchronization module 32 is used to judge whether there is data to be uploaded for the charging order when it is detected that the charging status is the start charging; if so, report the order start information in the database to the platform, and the platform returns the order number of the charging order and writes it into the database.
[0042] The continuous synchronization module 33 is used to report the sampling value of the metering chip and the order number to the platform when it is detected that the charging status is the charging.
[0043] The stop synchronization module 34 is used to report the sampled values of the metering chip and the stop charging reason to the platform when it is detected that the charging state is the stop charging state; the platform determines that the charging order has been completed.
[0044] Optionally, the start synchronization module 32 includes: when it is detected that the charging state is the start charging state, determining whether there is data to be uploaded for the charging order based on the order synchronization interface parameter; the order synchronization interface parameter being 1 indicates that there is no data to be uploaded for the charging order, and the order synchronization interface parameter being 0 indicates that there is data to be uploaded for the charging order.
[0045] Optionally, the order start information at least includes: start time, electricity meter value at start, and start method.
[0046] Optionally, the sampled values of the metering chip at least include: electricity quantity, voltage, current, power, electricity meter reading, frequency, temperature, or fault code.
[0047] Optionally, the stop synchronization module 34 includes: when it is detected that the charging state is the stop charging state and the order synchronization interface parameter is not 0, reporting the sampled values of the metering chip and the stop charging reason to the platform.
[0048] Optionally, the stop synchronization module 34 includes: after the platform responds to the reception, assigning the order synchronization interface parameter of the database to 1 and determining that the charging order processing is completed.
[0049] The device provided by the embodiments of the present invention uses the OCPP protocol as the communication protocol between the charging pile and the charging management platform, realizing the compatibility and interoperability between charging piles of different manufacturers. By following the unified communication standards and specifications, the charging pile can be easily connected to the charging management platform to realize the unified management and monitoring of order information. Through the OCPP protocol, real-time communication between the charging pile and the charging management platform is achieved. During the charging process, corresponding order information is reported in real time according to the state change, which can ensure the timely reporting and accurate transmission of order information. Moreover, by optimizing the database operation and data interaction process, the order processing process is simplified, and the stability and reliability of the system are enhanced.
[0050] It should be noted that when the AC charging pile order processing device provided in the above embodiments realizes the corresponding functions, only the division of the above function modules is used as an example. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the AC charging pile order processing device provided in the above embodiments and the embodiments of the AC charging pile order processing method belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.
[0051] According to one aspect of the present application, an embodiment of the present invention further provides a computer program product, which includes a computer program containing program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part. When the computer program is executed by the processor, it executes the AC charging pile order processing method provided in the embodiments of the present application.
[0052] In addition, an embodiment of the present invention further provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected through the bus. When the computer program is executed by the processor, it realizes each process of the above AC charging pile order processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0053] Specifically, as shown in Figure 4 the electronic device includes a bus 1110, a processor 1120, a transceiver 1130, a bus interface 1140, a memory 1150, and a user interface 1160.
[0054] In the embodiment of the present invention, the electronic device further includes: a computer program stored on the memory 1150 and executable on the processor 1120. When the computer program is executed by the processor 1120, it realizes each process of the above AC charging pile order processing method embodiment.
[0055] The transceiver 1130 is used to receive and send data under the control of the processor 1120.
[0056] In the embodiment of the present invention, the bus architecture (represented by the bus 1110), the bus 1110 may include any number of interconnected buses and bridges. The bus 1110 connects various circuits including one or more processors represented by the processor 1120 and the memory represented by the memory 1150 together.
[0057] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and a memory controller, a peripheral bus, an Accelerated Graphics Port (AGP), a processor, or a local bus using any of the various bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.
[0058] Processor 1120 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments may be completed by the integrated logic circuit in the processor or instructions in software form. The above processors include: general-purpose processors, central processing units (CPUs), network processors (NPs), digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), programmable logic arrays (PLAs), microcontroller units (MCUs), or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated on a single chip or located on multiple different chips.
[0059] The processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in connection with the embodiments of the present invention can be directly executed by a hardware decoding processor or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in a readable storage medium well known in the art such as a Random Access Memory (RAM), a Flash Memory, a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), a register, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.
[0060] The bus 1110 can also connect together various other circuits such as, for example, peripheral devices, voltage regulators, or power management circuits. The bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are all well known in the art. Therefore, the embodiments of the present invention will not be further described herein.
[0061] The transceiver 1130 can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. For example: the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send the data processed by the processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 can also be provided, such as: a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, a stylus.
[0062] It should be understood that in the embodiments of the present invention, the memory 1150 may further include a memory remotely disposed relative to the processor 1120, and these remotely disposed memories may be connected to the server through a network. One or more parts of the above network may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a wireless wide area network (WWAN), a metropolitan area network (MAN), the Internet, a public switched telephone network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above networks. For example, the cellular telephone network and the wireless network may be a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, an Advanced Long Term Evolution (LTE-A) system, a Universal Mobile Telecommunications System (UMTS) system, an Enhance Mobile Broadband (eMBB) system, a massive Machine Type of Communication (mMTC) system, an UltraReliable Low Latency Communications (uRLLC) system, etc.
[0063] It should be understood that the memory 1150 in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or Flash Memory.
[0064] The volatile memory includes: a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 1150 of the electronic device described in the embodiments of the present invention includes, but is not limited to, the above and any other suitable types of memory.
[0065] In the embodiments of the present invention, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets or extended sets thereof.
[0066] Specifically, the operating system 1151 includes various system programs, such as: a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 1152 includes various application programs, such as: a media player and a browser, for implementing various application services. The program for implementing the method of the embodiments of the present invention may be included in the application program 1152. The application program 1152 includes: applets, objects, components, logics, data structures, and other computer system executable instructions for performing specific tasks or implementing specific abstract data types.
[0067] In addition, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above-described embodiment of the method for processing an order of an AC charging pile, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0068] A computer-readable storage medium includes: permanent and non-permanent, removable and non-removable media, which are tangible devices that can retain and store instructions for use by an instruction execution device. The computer-readable storage medium includes: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination of the above. The computer-readable storage medium includes: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves on which instructions are recorded), or any other non-transmission medium that can be used to store information accessible by a computing device. As defined in the embodiments of the present invention, the computer-readable storage medium does not include transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagated through waveguides or other transmission media (such as light pulses passing through an optical fiber cable), or electrical signals transmitted through wires.
[0069] In several embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the displayed or discussed couplings or direct couplings or communication connections between each other can be indirect couplings or communication connections through some interfaces, devices, or units, or can be in the form of electrical, mechanical, or other connections.
[0070] 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. They can be located in one position or distributed to multiple network units. Some or all of the units can be selected according to actual needs to solve the problems to be solved by the solution of the embodiments of the present invention.
[0071] In addition, in each embodiment of the present invention, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0072] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (including a personal computer, a server, a data center, or other network devices) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the above-mentioned storage medium includes various media that can store program codes as listed above.
[0073] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as a method, a device, an electronic device, and a computer-readable storage medium. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), and a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage media contain computer program codes.
[0074] The above-mentioned computer-readable storage media can adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs), flash memories, optical fibers, compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any combination of the above. In the embodiments of the present invention, the computer-readable storage media can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or component.
[0075] The computer program codes contained in the above-mentioned computer-readable storage media can be transmitted by any suitable medium, including: wireless, wire, optical cable, radio frequency (RF), or any suitable combination of the above.
[0076] Computer program code for performing the operations of the embodiments of the present invention may be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including conventional procedural programming languages such as C language or similar programming languages. The computer program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), and may also be connected to an external computer.
[0077] The embodiments of the present invention describe the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0078] It should be understood that each block of the flowchart and / or block diagram, and the combinations of blocks in the flowchart and / or block diagram, can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine. These computer-readable program instructions, when executed by a computer or other programmable data processing device, produce a device for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0079] These computer-readable program instructions can also be stored in a computer-readable storage medium that can cause a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product that includes the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0080] The computer-readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device, so that a series of operation steps are executed on the computer, other programmable data processing device, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing device to provide a process for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0081] As described above, it is only the specific implementation manner of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the embodiments of the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for processing an AC charging pile order, characterized in that: include: Based on the open charging protocol, the charging status of the charging pile is detected in real time, and the charging status includes starting charging, charging, and stopping charging; When it is detected that the charging state is the start charging, determining whether there is data to be uploaded for the charging order; If yes, the order initiation information in the database is reported to the platform, and the platform returns the order number of the charging order and writes it into the database; When it is detected that the charging state is charging, the sampling value of the metering chip and the order number are reported to the platform; When it is detected that the charging state is the stop charging, the sampling value of the metering chip and the reason for stopping charging are reported to the platform; The platform determines that the charging order has been completed.
2. The method according to claim 1, characterized in that When detecting that the charging state is the charging start state, determining whether there is data to be uploaded for the charging order includes: When it is detected that the charging status is the start charging, it is determined whether there is any data to be uploaded for the charging order based on the order synchronization interface parameters; if the order synchronization interface parameter is 1, it indicates that there is no data to be uploaded for the charging order, and if the order synchronization interface parameter is 0, it indicates that there is data to be uploaded for the charging order.
3. The method according to claim 1, characterized in that The order start information includes at least: start time, electric meter value at start and start method.
4. The method according to claim 1, characterized in that The sampling value of the metering chip includes at least: electric quantity, voltage, current, power, electric meter reading, frequency, temperature or fault code.
5. The method according to claim 2, characterized in that: When the charging state is detected to be the stop charging, reporting the sampling value of the metering chip and the reason for stopping charging to the platform includes: When it is detected that the charging state is the stop charging and the order synchronization interface parameter is not 0, the sampling value of the metering chip and the reason for stopping charging are reported to the platform.
6. The method according to claim 2, characterized in that The platform determines that the charging order has been completed, including: After receiving the response, the platform assigns a value of 1 to the order synchronization interface parameter of the database to determine that the charging order processing is completed.
7. An AC charging pile order processing device, characterized in that: include: Status judgment module, start synchronization module, continuous synchronization module, stop synchronization module; The state judgment module is used to detect the charging state of the charging pile in real time based on the open charging protocol, and the charging state includes starting charging, charging and stopping charging; The startup synchronization module is used to determine whether there is data to be uploaded for the charging order when the charging state is detected to be the startup charging; if so, report the order startup information in the database to the platform, and the platform returns the order number of the charging order and writes it into the database; The continuous synchronization module is used to report the sampling value of the metering chip and the order number to the platform when detecting that the charging state is charging; The stop synchronization module is used to report the sampling value of the metering chip and the reason for stopping charging to the platform when it is detected that the charging state is the stop charging; the platform determines that the charging order has been completed.
8. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor executes the computer program stored in the memory to implement the steps in the AC charging pile order processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the AC charging pile order processing method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The invention comprises a computer program, which, when executed, implements the steps in the AC charging pile order processing method as claimed in any one of claims 1 to 6.
Citation Information
Cited By
Charging pile and control system and control method thereof
CN120886689A