Charging pile order management method and device, equipment, storage medium and program product

CN122820291APending Publication Date: 2026-09-25SHAANXI GREEN ENERGY ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610444873.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-07
Publication Date
2026-09-25

AI Technical Summary

Benefits of technology

[0022]第三方面,本申请提供一种电子设备,该电子设备包括:处理器和存储器;存储器存储有所述处理器可执行的指令;处理器被配置为执行该指令时,使得电子设备实现如上述第一方面所提供的方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122820291A_ABST
    Figure CN122820291A_ABST
Patent Text Reader

Abstract

The application provides a charging pile order management method and device, equipment, a storage medium and a program product, and relates to the technical field of charging piles. The method comprises the following steps: acquiring a charging pile order storage pool; determining the priority of each charging pile order based on the order state and the creation timestamp in the order information; and in response to the creation of a new order and the fact that each order storage unit of the charging pile order storage pool stores order information, covering the order information of the new order to the order storage unit of the charging pile order with the lowest priority. The method is used for providing a reasonable charging pile order management scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of charging pile technology, and in particular to a charging pile order management method, device, equipment, storage medium and program product. Background Technology

[0002] During operation, electric vehicle charging stations continuously generate charging station orders. The order information of these charging station orders must be reliably reported to the operation platform to complete the settlement.

[0003] As a typical embedded device, the microcontroller unit (MCU) of a charging pile has extremely limited memory resources and cannot store unlimited order information for charging pile orders.

[0004] Therefore, we need to know how to manage charging pile orders properly. Summary of the Invention

[0005] This application provides a charging pile order management method, apparatus, equipment, storage medium, and program product, aiming to provide a reasonable charging pile order management solution.

[0006] Firstly, this application provides a charging pile order management method, which includes: obtaining a charging pile order storage pool; the charging pile order storage pool is a statically allocated array of structures; each element in the structure array corresponds to an order storage unit; each order storage unit is used to store the order information of a charging pile order; the order information includes the order status and the creation timestamp; the order status includes unsettled, settled, or settlement failed; determining the priority of each charging pile order based on the order status and creation timestamp in the order information; the priority of a charging pile order with a settled status is lower than the priority of a charging pile order with a settlement failed status; the priority of a charging pile order with a settlement failed status is lower than the priority of a charging pile order with an unsettled status; among charging pile orders with the same order status, the priority of a charging pile order with an earlier creation timestamp is lower than the priority of a charging pile order with a later creation timestamp; in response to the creation of a new order and each order storage unit in the charging pile order storage pool storing order information, overwriting the order information of the new order into the order storage unit of the lowest priority charging pile order.

[0007] It should be understood that current order management strategies typically employ a simple First-In-First-Out (FIFO) overwriting strategy, where newer orders overwrite the oldest ones when the memory pool is full. This method is highly susceptible to critical unsettled orders being overwritten by subsequent settled orders due to their earlier storage location, resulting in permanent data loss and economic losses. The charging pile order management method provided in this application determines the priority of each charging pile order based on its order status and creation timestamp. Specifically, charging pile orders with a settled status have a lower priority than those with a failed settlement status, and vice versa. Within the same order status, charging pile orders with earlier creation timestamps have a lower priority than those with later creation timestamps. This dual priority overwriting strategy, using both order status and creation timestamps, ensures that high-value unsettled orders (such as recently completed charging orders) are not easily overwritten by low-priority orders (such as settled or failed orders), significantly reducing the risk of order loss.

[0008] Furthermore, this application uses a static structure array to manage the charging pile order storage pool, eliminating the need for dynamic memory allocation or complex data structures (such as linked lists or queues), thus avoiding memory fragmentation. It is suitable for low-cost embedded controllers with less than 32KB of RAM. At the same time, the length of the order data field is configurable, balancing flexibility and compactness, and effectively controlling memory write overhead.

[0009] Optionally, the method further includes: periodically reporting the order information of the top M charging pile orders with the highest priority to the operation platform; M is a positive integer; receiving settlement response information sent by the operation platform; the settlement response information is used to indicate whether the reported charging pile order has been successfully settled; updating the order status of the reported charging pile order based on the settlement response information, and updating the priority of the reported charging pile order based on the updated order status.

[0010] Optionally, based on the settlement response information, the order status of the reported charging pile order is updated, including: if the settlement response information indicates that the settlement was successful, the order status of the reported charging pile order is changed to "settled"; if the settlement response information indicates that the number of settlement failures has reached a preset threshold, the order status of the reported charging pile order is changed to "settlement failed".

[0011] The charging pile order management method provided in this application can also periodically report the order information of the top M charging pile orders with the highest priority to the operation platform. If settlement is successful, the order status of the reported charging pile order is changed to "settled." If the number of settlement failures reaches a preset threshold, the order status of the reported charging pile order is changed to "settlement failed." This provides a closed-loop, controllable order reporting and retry control logic, avoiding unnecessary retries from consuming network resources.

[0012] Optionally, the order information of the top M charging pile orders with the highest priority is periodically reported to the operation platform, including: obtaining the network quality parameters of the communication network with the operation platform; in response to the network quality parameters being greater than or equal to the quality parameter threshold, reporting the order information of the top M charging pile orders with the highest priority to the operation platform at a first interval; in response to the network quality parameters being less than the quality parameter threshold, reporting the order information of the top M charging pile orders with the highest priority to the operation platform at a second interval; the second interval is longer than the first interval.

[0013] Optionally, the method further includes: in response to detecting a power failure signal, saving the order information in the charging pile order storage pool to persistent storage space.

[0014] Optionally, the method further includes: in response to power-on, reading order information from the charging pile order storage pool in persistent storage space; updating the order status of charging pile orders with a settlement failure status to unsettled status; and updating the priority of the charging pile orders based on the updated order status.

[0015] The charging pile order management method provided in this application can also save the order information of the charging pile order storage pool to non-volatile memory in the event of a power outage, avoiding data loss due to unexpected power failure. Then, after power is restored, it actively repairs the status of orders that failed to settle, ensuring reliable recovery from abnormal interruptions and improving the end-user experience and the accuracy of operational reconciliation.

[0016] Secondly, this application provides a fatigue driving detection device, which includes an acquisition module and a processing module. The acquisition module is used to acquire a charging pile order storage pool; the charging pile order storage pool is a statically allocated array of structures; each element in the structure array corresponds to an order storage unit; each order storage unit is used to store order information for a charging pile order; the order information includes order status and creation timestamp; the order status includes unsettled, settled, or settlement failed; the processing module is used to determine the priority of each charging pile order based on the order status and creation timestamp in the order information; the priority of a charging pile order with a settled status is lower than the priority of a charging pile order with a settlement failed status; the priority of a charging pile order with a settlement failed status is lower than the priority of a charging pile order with an unsettled status; among charging pile orders with the same order status, the priority of a charging pile order with an earlier creation timestamp is lower than the priority of a charging pile order with a later creation timestamp; in response to the creation of a new order and since each order storage unit in the charging pile order storage pool stores order information, the order information of the new order is overwritten in the order storage unit of the lowest priority charging pile order.

[0017] Optionally, the processing module is also used to periodically report the order information of the top M charging pile orders with the highest priority to the operation platform; M is a positive integer; receive settlement response information sent by the operation platform; the settlement response information is used to indicate whether the reported charging pile order has been successfully settled; based on the settlement response information, update the order status of the reported charging pile order, and update the priority of the reported charging pile order based on the updated order status.

[0018] Optionally, the processing module is specifically used to modify the order status of the reported charging pile order to "settled" when the settlement response information indicates successful settlement; and to modify the order status of the reported charging pile order to "settlement failed" when the number of settlement failures indicated by the settlement response information reaches a preset threshold.

[0019] Optionally, the processing module is specifically used to obtain network quality parameters of the communication network with the operation platform; in response to the network quality parameters being greater than or equal to the quality parameter threshold, to report the order information of the top M charging pile orders with the highest priority to the operation platform according to a first interval period; in response to the network quality parameters being less than the quality parameter threshold, to report the order information of the top M charging pile orders with the highest priority to the operation platform according to a second interval period; the second interval period is greater than the first interval period.

[0020] Optionally, the processing module is also configured to save the order information in the charging pile order storage pool to persistent storage space in response to the detection of a power failure signal.

[0021] Optionally, the processing module is also configured to, in response to a power-on reconnection, read order information from the charging pile order storage pool in persistent storage space; update the order status of charging pile orders with a settlement failure status to unsettled status; and update the priority of charging pile orders based on the updated order status.

[0022] Thirdly, this application provides an electronic device comprising: a processor and a memory; the memory storing instructions executable by the processor; the processor being configured to, when executing the instructions, cause the electronic device to perform the method provided in the first aspect above.

[0023] Fourthly, this application provides a readable storage medium comprising: software instructions; when the software instructions are executed in an electronic device, the electronic device causes the electronic device to implement the method provided in the first aspect above.

[0024] Fifthly, this application provides a computer program product including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method provided in the first aspect above.

[0025] The beneficial effects of aspects two through five above can be referred to in aspect one, and will not be repeated here. Attached Figure Description

[0026] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of the present invention and do not constitute a limitation on the technical solutions of the present invention.

[0027] Figure 1 A flowchart illustrating the charging pile order management method provided in this application embodiment; Figure 2 This is a schematic diagram illustrating the order priority of charging piles provided in an embodiment of this application. Figure 3 A schematic diagram illustrating the process of finding the lowest priority charging pile order provided in an embodiment of this application; Figure 4 Another flowchart illustrating the charging pile order management method provided in this application embodiment; Figure 5 A schematic diagram illustrating the process of finding the highest priority charging pile order provided in an embodiment of this application; Figure 6 A schematic diagram illustrating the composition of the order management device provided in the embodiments of this application; Figure 7 This is a schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] Unless the context otherwise requires, throughout the specification and claims, the term "comprise" and other forms such as the third-person singular "comprises" and the present participle "comprising" are interpreted as open-ended and encompassing, meaning "including, but not limited to." In the description of the specification, terms such as "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific example," or "some examples" are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this application. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics mentioned may be included in any suitable manner in any one or more embodiments or examples.

[0030] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0031] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0032] In addition, the use of “based on” implies openness and inclusivity, because processes, steps, calculations or other actions “based on” one or more of the stated conditions or values ​​may in practice be based on additional conditions or values ​​beyond those stated.

[0033] During operation, electric vehicle charging stations continuously generate charging station orders. The order information of these charging station orders must be reliably reported to the operation platform to complete the settlement.

[0034] As typical embedded devices, the MCUs of charging stations have extremely limited memory resources and cannot store unlimited order information for charging stations. For example, the Cortex-M0 / M3 has a limited random access memory (RAM) capacity (usually ≤64KB).

[0035] Therefore, we need to know how to manage charging pile orders properly.

[0036] Based on this, embodiments of this application provide a charging pile order management method, apparatus, equipment, storage medium, and program product, aiming to provide a reasonable charging pile order management solution.

[0037] The order management method for charging piles provided in this application embodiment is executed by an order management device. This order management device can be a charging pile; alternatively, it can be a processor within the charging pile (such as the aforementioned MCU); furthermore, it can be a functional module within the charging pile used to execute the order management method, etc. This application embodiment does not impose any limitations on these aspects.

[0038] For the sake of simplicity, the following description will take the order management device as the execution subject of the charging pile order management method provided in the embodiments of this application as an example.

[0039] Figure 1 This is a flowchart illustrating the charging pile order management method provided in an embodiment of this application. Figure 1 As shown, the method may include the following steps: S101. Obtain the charging pile order storage pool.

[0040] The charging pile order storage pool is a statically allocated array of structures. Each element in the structure array corresponds to an order storage unit. Each order storage unit is used to store the order information of a charging pile order. The order information includes the order status and creation timestamp. The order status includes unsettled, settled, or settlement failed.

[0041] As an example, the data structure of order information in the order storage unit can be shown in Table 1 below: Table 1 S102. Based on the order status and creation timestamp in the order information, determine the priority of each charging pile order.

[0042] Among them, the priority of charging pile orders with a settlement status is lower than that of charging pile orders with a settlement failure status; the priority of charging pile orders with a settlement failure status is lower than that of charging pile orders with an unsettled status; among charging pile orders with the same order status, the priority of the charging pile order with an earlier creation timestamp is lower than that of the charging pile order with a later creation timestamp.

[0043] For example, Figure 2 This is a schematic diagram illustrating the order priority of charging piles provided in an embodiment of this application. Figure 2 As shown, the priority of charging pile orders, from low to high, is as follows: orders with earlier creation timestamps and charging pile orders with a settled status. Figure 2 Taking "settled - old" as an example, orders with a later creation timestamp are considered "settled" charging pile orders. Figure 2 Taking "settled - new" as an example, orders with earlier creation timestamps are considered charging pile orders with settlement failure status. Figure 2 Taking the example of "failed - old", orders with later creation timestamps are charging pile orders with a settlement failure status. Figure 2 Taking "failed - new" as an example, orders with earlier creation timestamps are considered unsettled charging pile orders. Figure 2 Taking the example of "unsettled - old", charging pile orders with a later creation timestamp are shown as unsettled. Figure 2 (Example: Unsettled - Old)

[0044] S103. In response to the creation of a new order and the fact that each order storage unit in the charging pile order storage pool stores order information, the order information of the new order is overwritten to the order storage unit of the lowest priority charging pile order.

[0045] As an example, Figure 3 This is a schematic diagram illustrating the process of finding the lowest priority charging pile order provided in an embodiment of this application. Figure 3As shown, the order management device can first initialize the loop, setting i to 0, and then determine whether i is less than the upper limit of the number of order storage units in the charging pile order storage pool. If not, the traversal ends and the lowest index is returned. If yes, it determines whether there is an empty order storage unit in the current charging pile order storage pool. If yes, the traversal ends and the lowest index is returned. If no, it determines whether the current charging pile order is the lowest priority charging pile order. If yes, it records the first candidate and the lowest index. If no, it calls the priority comparison function to compare the current charging pile order with the current lowest priority charging pile order, and determines whether the current charging pile order has the lowest priority. If yes, it updates the current lowest priority charging pile order, updates the lowest index, and increments i by 1. If no, it increments i by 1 and returns the result, determining whether i is less than the upper limit of the number of order storage units in the charging pile order storage pool.

[0046] As an example, suppose the order storage pool includes 20 storage units, containing 12 orders with an unsettled status, 5 orders with failed settlement status, and 3 orders with a settled status. When the 21st new order is generated, the order management device can call the `Alg_Find_Lowest_Order_Index` function. This function first searches for an empty storage unit, which is unsuccessful. Then, it iterates through all orders, applying the `Order_Compare_Priority` rule. Among all orders, charging station orders with a settled status have the lowest priority. Of the three settled orders, the order management device identifies the storage unit with the oldest (earliest) timestamp. Ultimately, the new order will overwrite this identified "lowest-value" storage unit.

[0047] It should be understood that current order management strategies are typically simple First-In-First-Out (FIFO) overwriting strategies, where new orders overwrite the oldest orders when the memory pool is full. This method is highly susceptible to critical unsettled orders being overwritten by subsequent settled orders due to their earlier storage location, resulting in permanent data loss and economic losses. In the charging pile order management method provided in this application, the order management device can determine the priority of each charging pile order based on the order status and creation timestamp in the order information. Specifically, charging pile orders with a settled status have a lower priority than those with a failed settlement status, and vice versa. Within the same order status, charging pile orders with earlier creation timestamps have a lower priority than those with later creation timestamps. This dual priority overwriting strategy based on order status and creation timestamp ensures that high-value unsettled orders (such as recently completed charging orders) are not easily overwritten by low-priority orders (such as settled or failed orders), significantly reducing the risk of order loss.

[0048] Furthermore, this application uses a static structure array to manage the charging pile order storage pool, eliminating the need for dynamic memory allocation or complex data structures (such as linked lists or queues), thus avoiding memory fragmentation. It is suitable for low-cost embedded controllers with less than 32KB of RAM. At the same time, the length of the order data field is configurable, balancing flexibility and compactness, and effectively controlling memory write overhead.

[0049] In some possible embodiments, Figure 4 This is another flowchart illustrating the charging pile order management method provided in an embodiment of this application. Figure 4 As shown, after S103 above, the method may further include the following steps: S201. Periodically report the order information of the top M charging pile orders with the highest priority to the operation platform.

[0050] Where M is a positive integer. For example, M can be 1, 2, 3, 4, 5, or 6, etc. The embodiments of this application do not limit the specific value of M.

[0051] As an example, Figure 5 This is a schematic diagram illustrating the process of finding the highest priority charging pile order provided in an embodiment of this application. Figure 5As shown, the order management device can first initialize the loop, setting i to 0, and then determine whether i is less than the upper limit of the number of order storage units in the charging pile order storage pool. If not, the traversal ends and the highest index is returned. If yes, it determines whether the current order status is unsettled. If not, the traversal ends and the highest index is returned. If yes, it determines whether the current charging pile order is the highest priority charging pile order. If yes, it records the first candidate and the highest index. If not, it calls the priority comparison function to compare the current charging pile order with the current highest priority charging pile order, and determines whether the current charging pile order has the highest priority. If yes, it updates the current highest priority charging pile order and updates the highest index. If not, it increments i by 1 and returns the result, determining whether i is less than the upper limit of the number of order storage units in the charging pile order storage pool.

[0052] As an example, the order management device can obtain network quality parameters of the communication network with the operation platform; in response to the network quality parameters being greater than or equal to the quality parameter threshold, it reports the order information of the top M charging pile orders with the highest priority to the operation platform at a first interval; in response to the network quality parameters being less than the quality parameter threshold, it reports the order information of the top M charging pile orders with the highest priority to the operation platform at a second interval; the second interval is greater than the first interval.

[0053] For example, the order management device can determine network quality by pinging the gateway or detecting the TCP connection success rate, that is, using the connection success rate as a network quality parameter. When the connection success rate is greater than 80%, the reporting period is set to 10 seconds; when the connection success rate is less than 80%, the reporting period is set to 30 seconds.

[0054] S202. Receive settlement response information sent by the operation platform.

[0055] The settlement response information is used to indicate whether the reported charging pile order has been successfully settled.

[0056] S203. Based on the settlement response information, update the order status of the reported charging pile order, and update the priority of the reported charging pile order based on the updated order status.

[0057] As an example, if the settlement response information indicates that the settlement was successful, the order management device can change the order status of the reported charging pile order to "settled".

[0058] As another example, if the number of settlement failures indicated by the settlement response information reaches a preset threshold, the order management device can change the order status of the reported charging pile order to settlement failure.

[0059] The preset threshold number of times can be set to 3, 4, 5, or 6 times, etc. This application embodiment does not limit the specific number of times the preset threshold number of times is set.

[0060] In the charging pile order management method provided in this application embodiment, the order management device can also periodically report the order information of the top M charging pile orders with the highest priority to the operation platform. If settlement is successful, the order status of the reported charging pile order is changed to "settled." If the number of settlement failures reaches a preset threshold, the order status of the reported charging pile order is changed to "settlement failed." This provides a closed-loop controllable order reporting and retry control logic, avoiding invalid retries from consuming network resources.

[0061] In some possible embodiments, the order management device may also save the order information in the charging pile order storage pool to a non-volatile memory (e.g., Flash or Electrically Erasable Programmable Read-Only Memory, EEPROM) in response to the detection of a power failure signal.

[0062] In some possible embodiments, the order management device may also, in response to a power-on re-energization, read order information from the charging pile order storage pool in non-volatile memory; update the order status of charging pile orders with a settlement failure status to unsettled status; and update the priority of charging pile orders based on the updated order status.

[0063] For example, suppose the charging station experiences an unexpected power outage due to grid fluctuations. Within a millisecond window before the complete power loss, the hardware detects a voltage drop and triggers an interrupt. The charging station may be equipped with an onboard supercapacitor to ensure sufficient time after the power failure to atomically write all data from the charging station's order storage pool to non-volatile memory within the interrupt service routine. The next day, the charging station is powered on again. After the order management device's initialization code reads data from the non-volatile memory into memory, it executes a recovery routine: it iterates through the charging station's order storage pool and finds three orders with a settlement failure status. The order management device can reset the status of these orders to unsettled and clear their settlement failure count to zero. Subsequently, when the reporting task runs, these previously abandoned orders will re-enter the reporting queue as new unsettled orders, gaining another chance for settlement.

[0064] In the charging pile order management method provided in this application embodiment, the order management device can also save the order information of the charging pile order storage pool to a non-volatile memory in the event of a power outage, avoiding data loss due to accidental power failure. Then, after power is restored, it actively repairs the status of orders that failed to settle, ensuring reliable recovery from abnormal interruptions and improving the end-user experience and operational reconciliation accuracy.

[0065] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the aforementioned functions, each device, such as an order management device, includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0066] This application embodiment can divide the order management device into functional modules according to the above method embodiment. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one functional module. The integrated module can be implemented in hardware or software. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. The following description uses the example of dividing each functional module according to each function.

[0067] In an exemplary embodiment, this application provides an order management device. Figure 6 This is a schematic diagram illustrating the composition of an order management device provided in an embodiment of this application. Figure 6 As shown, the network switching device includes an acquisition module 601 and a processing module 602.

[0068] The acquisition module 601 is used to acquire the charging pile order storage pool; the charging pile order storage pool is a statically allocated array of structures; each element in the structure array corresponds to an order storage unit; each order storage unit is used to store the order information of a charging pile order; the order information includes the order status and creation timestamp; the order status includes unsettled, settled, or settlement failed; The processing module 602 is used to determine the priority of each charging pile order based on the order status and creation timestamp in the order information; the priority of charging pile orders with a settlement status is lower than the priority of charging pile orders with a settlement failure status; the priority of charging pile orders with a settlement failure status is lower than the priority of charging pile orders with an unsettled status; among charging pile orders with the same order status, the priority of the charging pile order with an earlier creation timestamp is lower than the priority of the charging pile order with a later creation timestamp; in response to the creation of a new order and since each order storage unit in the charging pile order storage pool stores order information, the order information of the new order is overwritten in the order storage unit of the lowest priority charging pile order.

[0069] In some possible embodiments, the processing module 602 is also used to periodically report the order information of the top M charging pile orders with the highest priority to the operation platform; M is a positive integer; receive settlement response information sent by the operation platform; the settlement response information is used to indicate whether the reported charging pile order has been successfully settled; based on the settlement response information, update the order status of the reported charging pile order, and update the priority of the reported charging pile order based on the updated order status.

[0070] In some possible embodiments, the processing module 602 is specifically used to modify the order status of the reported charging pile order to "settled" when the settlement response information indicates that the settlement is successful; and to modify the order status of the reported charging pile order to "settlement failed" when the number of settlement failures indicated by the settlement response information reaches a preset threshold.

[0071] In some possible embodiments, the processing module 602 is specifically used to obtain network quality parameters of the communication network with the operation platform; in response to the network quality parameters being greater than or equal to a quality parameter threshold, to report the order information of the top M charging pile orders with the highest priority to the operation platform at a first interval; in response to the network quality parameters being less than the quality parameter threshold, to report the order information of the top M charging pile orders with the highest priority to the operation platform at a second interval; the second interval is greater than the first interval.

[0072] In some possible embodiments, the processing module 602 is also configured to save the order information in the charging pile order storage pool to persistent storage space in response to the detection of a power failure signal.

[0073] In some possible embodiments, the processing module 602 is further configured to, in response to a power-on re-energization, read order information from the charging pile order storage pool in persistent storage space; update the order status of charging pile orders with a settlement failure status to unsettled status; and update the priority of the charging pile orders based on the updated order status.

[0074] It should be noted that the above Figure 6 Modules in a module can also be called units; for example, a processing module can be called a processing unit. Additionally, in... Figure 6 In the embodiments shown, the names of the modules may not be the same as those shown in the figure. For example, the acquisition module may also be called the transceiver module or the communication module.

[0075] Figure 6 If the various modules in the application are implemented as software functional modules and sold or used as independent products, they can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of software products. These software products are stored in a storage medium and include several instructions to cause an electronic device (which may be a mobile phone, personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. Storage media for storing computer software products include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0076] In an exemplary embodiment, this application also provides an electronic device. Figure 7 This is a schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application. For example... Figure 7 As shown, the electronic device includes a processor 702, a communication interface 703, and a bus 704. As an example, the electronic device may also include a memory 701.

[0077] Processor 702 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 702 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 702 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0078] The communication interface 703 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0079] The memory 701 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0080] As one possible implementation, the memory 701 can exist independently of the processor 702. The memory 701 can be connected to the processor 702 via a bus 704 and is used to store instructions or program code. When the processor 702 calls and executes the instructions or program code stored in the memory 701, it can implement the charging pile order management method provided in this application embodiment.

[0081] In another possible implementation, the memory 701 can also be integrated with the processor 702.

[0082] The 704 bus can be an extended industry standard architecture (EISA) bus, etc. The 704 bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0083] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the communication device or server can be divided into different functional modules to complete all or part of the functions described above.

[0084] In an exemplary embodiment, this application also provides a readable storage medium including software instructions that, when executed in an electronic device, cause the electronic device to implement the methods described in the above embodiments. The readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device. Further, the readable storage medium can include both internal storage units and external storage devices of the electronic device. The readable storage medium is used to store the software instructions and other programs and data required by the electronic device. The readable storage medium can also be used to temporarily store data that has been output or will be output.

[0085] In an exemplary embodiment, this application also provides a computer program product including computer instructions that, when executed on an electronic device, cause the electronic device to perform the methods described in the above method embodiments.

[0086] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer-executable instructions. When these computer-executable instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer-executable instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape) or an optical medium (e.g., DVD), etc.

[0087] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0088] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.

[0089] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A charging pile order management method, characterized in that, include: Obtain the charging pile order storage pool; The charging pile order storage pool is a statically allocated array of structures; each element in the structure array corresponds to an order storage unit; each order storage unit is used to store the order information of a charging pile order; The order information includes the order status and creation timestamp; the order status includes unsettled, settled, or settlement failed. Based on the order status and creation timestamp in the order information, the priority of each charging pile order is determined; Charging pile orders with a settlement status have a lower priority than charging pile orders with a settlement failure status. Charging pile orders with a settlement failure status have a lower priority than charging pile orders with an unsettled status. Among charging pile orders with the same order status, the charging pile order with an earlier creation timestamp has a lower priority than the charging pile order with a later creation timestamp. In response to the creation of a new order, and since each order storage unit in the charging pile order storage pool stores order information, the order information of the new order is overwritten in the order storage unit of the lowest priority charging pile order.

2. The method according to claim 1, characterized in that, The method further includes: Periodically report the order information of the top M charging pile orders with the highest priority to the operation platform; M is a positive integer; Receive settlement response information sent by the operating platform; the settlement response information is used to indicate whether the reported charging pile order has been successfully settled; Based on the settlement response information, update the order status of the reported charging pile order, and update the priority of the reported charging pile order based on the updated order status.

3. The method according to claim 2, characterized in that, The step of updating the order status of the reported charging pile order based on the settlement response information includes: If the settlement response information indicates that the settlement was successful, the order status of the reported charging pile order will be changed to "settled". If the number of settlement failures indicated by the settlement response information reaches a preset threshold, the order status of the reported charging pile order will be changed to settlement failure.

4. The method according to claim 3, characterized in that, The periodic reporting of order information for the top M charging pile orders with the highest priority to the operation platform includes: Obtain network quality parameters of the communication network with the operating platform; In response to the network quality parameter being greater than or equal to the quality parameter threshold, the order information of the top M charging pile orders with the highest priority is reported to the operation platform at a first interval period. In response to the network quality parameter being less than the quality parameter threshold, the order information of the top M charging pile orders with the highest priority is reported to the operation platform at a second interval period; the second interval period is longer than the first interval period.

5. The method according to claim 1, characterized in that, The method further includes: In response to the detection of a power failure signal, the order information in the charging pile order storage pool is saved to persistent storage space.

6. The method according to claim 5, characterized in that, The method further includes: In response to a power-on reset, the order information of the charging pile order storage pool is read from the persistent storage space; Update the order status of charging pile orders that were previously in the settlement failure state to "unsettled", and update the priority of the charging pile orders based on the updated order status.

7. A charging pile order management device, characterized in that, include: Acquisition module and processing module; The acquisition module is used to acquire the charging pile order storage pool; The charging pile order storage pool is a statically allocated array of structures; each element in the structure array corresponds to an order storage unit; each order storage unit is used to store the order information of a charging pile order; the order information includes the order status and the creation timestamp; the order status includes unsettled, settled, or settlement failed; The processing module is used to determine the priority of each charging pile order based on the order status and creation timestamp in the order information; Charging pile orders with a settlement status have a lower priority than charging pile orders with a settlement failure status. Charging pile orders with a settlement failure status have a lower priority than charging pile orders with an unsettled status. Among charging pile orders with the same order status, the charging pile order with an earlier creation timestamp has a lower priority than the charging pile order with a later creation timestamp. In response to the creation of a new order, and since each order storage unit in the charging pile order storage pool stores order information, the order information of the new order is overwritten in the order storage unit of the lowest priority charging pile order.

8. An electronic device, characterized in that, include: Memory and processor; The memory stores instructions that the processor can execute; When the processor is configured to execute the instructions, the electronic device performs the method as described in any one of claims 1-6.

9. A readable storage medium, characterized in that, include: Software instructions; When the software instructions are executed in an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-7.

10. A computer program product, characterized in that, include: Computer instructions; When the computer instructions are executed in an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-6.