Charging pile and control system and control method thereof

By embedding A-core and M-core within the main control chip of the charging pile, physical isolation and real-time verification of metering and non-metering functions are achieved, solving the problems of increased size, high cost, and long certification cycle in the design of the metering function of the charging pile, and realizing efficient meter software management and security assurance.

CN120886689BActive Publication Date: 2025-12-05WANBANG DIGITAL ENERGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511432926.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-09
Publication Date
2025-12-05
Estimated Expiration
2045-10-09

AI Technical Summary

Technical Problem

Existing charging pile metering functions suffer from problems such as increased size, high cost, long certification cycle, and cross-chip communication bottlenecks, especially in single-MCU and dual-MCU designs, resulting in excessive time and economic costs.

Method used

The main control chip is designed with embedded A-core and M-core. The M-core is responsible for the metering task and the charging logic task. The metering task is compiled into a separate bin file and embedded in an independent segment of the M-core main project. Combined with the dynamic CRC check mechanism, the MID meter program version number is displayed on the screen to achieve physical isolation and real-time verification of metering and non-metering functions.

Benefits of technology

Metering and non-metering functions are completed within a single chip, avoiding the cost surge and cross-chip communication bottlenecks caused by discrete chip design. This reduces the size of the charging pile, lowers the overall cost, reduces the need for repeated MID certification, ensures the legality and security of the meter software, and facilitates version tracking and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120886689B_ABST
    Figure CN120886689B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of charging piles, and provides a charging pile, a control system and a control method thereof, wherein the main control chip is internally integrated with A core and M core, thereby realizing the completion of metering and non-metering functions in one chip, avoiding the cost surge and cross-chip communication bottleneck problem caused by discrete chip design, reducing the external metering module, reducing the volume and the overall cost, compiling the electric meter service into a separate bin file and embedding it into an independent segment, realizing the physical isolation of the metering function and the non-metering function, the software change of the non-metering function not affecting the electric meter related service, reducing the need for MID repeated authentication, through the dynamic CRC check mechanism, the consistency of the electric meter software with the MID authentication can be judged in real time, the legality and safety of the electric meter software are ensured, and through the display screen, the version number of the MID electric meter executable program can be displayed, thereby facilitating the version tracking and management of users and administrators.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of charging pile technology, specifically to a charging pile control system, a charging pile, a charging pile control method, and a non-transitory computer-readable storage medium. Background Technology

[0002] Currently, most charging piles use external independent meters for metering, which increases the size of the charging pile by about 30% (the typical 7kW charging pile box size is 280×280×148mm). At the same time, the external meter is too expensive, which also increases the cost of each charging pile.

[0003] While some related technologies integrate electricity metering functions into charging piles, these designs are mainly divided into single-MCU (Microcontroller Unit) designs and dual-MCU designs. The single-MCU design integrates the electricity metering software into the charging pile's control system, without separating the metering function from other charging functions. Each change to other charging logic or functions necessitates re-certification of the electricity meter's MID (Measuring Instruments Directive), resulting in repeated MID certification cycles of at least 8 weeks and a single certification cost of approximately 25,000 yuan, leading to high time and economic costs. In the dual-MCU design, one MCU implements the charging pile's charging-related functions, while the other implements the metering function. This dual-processor discrete chip design leads to a surge in cost, increased software development time on both platforms, and a cross-chip communication bottleneck between the two chips, hindering real-time performance. Summary of the Invention

[0004] To address the aforementioned technical problems, a first aspect of the present invention provides a charging pile control system.

[0005] A second aspect of the present invention provides a charging pile.

[0006] A third aspect of the present invention provides a charging pile control method.

[0007] A fourth aspect of the present invention provides a non-transitory computer-readable storage medium.

[0008] The technical solution adopted in this invention is as follows:

[0009] A first aspect of the present invention provides a charging pile control system, comprising: a main control chip, the main control chip comprising: an A-core (Application Core, a high-performance processor core) and an M-core (Microcontroller Core, a microcontroller processor core), wherein the M-core is used to run the M-core overall project, the M-core overall project comprising: a metering task and a charging logic task, the metering task being compiled into a separate bin file (a binary file) and embedded into the meter business independent segment of the M-core overall project; the A-core is used to run a Linux operating system, the A-core comprising a display process, the display process being used to read the bin file of the meter business independent segment of the M-core overall project, perform a meter CRC (Cyclic Redundancy Check) verification based on the read data, and display the MID meter program version number.

[0010] The charging pile control system described above in this invention also has the following additional technical features:

[0011] According to one embodiment of the present invention, the metering task is compiled into a separate bin file and embedded into the meter business independent segment of the M-core general project. Specifically, this includes: encapsulating the version number of the MID meter program, the metering function, the metering parameters, and the meter parameter access interface into bin format firmware; using the asm (a keyword in C++ for embedding assembly instructions) command to put the firmware into a fixed code segment of the M-core general project; and storing the code segment in an independent ROM (Read-Only Memory) storage area.

[0012] According to one embodiment of the present invention, the M-core general project adopts ELF (Executable and Linkable Format).

[0013] According to one embodiment of the present invention, the display screen process is specifically used to: obtain the position and length of the independent segment of the electricity meter service in the M-core overall project through the readelf -S command (a command for viewing ELF files); read the data in the independent segment of the electricity meter service according to the position and length; perform CRC calculation based on the read data, and display the calculated CRC value and the version number of the MID electricity meter program.

[0014] A second aspect of the present invention provides a charging pile, including the charging pile control system described in the first aspect of the present invention.

[0015] A third aspect of the present invention provides a charging pile control method, comprising the following steps: compiling the meter metering task into a separate bin file and embedding it into the meter business independent segment of the M-core general project, wherein the M-core general project includes: the meter metering task and the charging logic task; the A-core display process reads the bin file of the meter business independent segment of the M-core general project, performs meter CRC verification based on the read data, and displays the MID meter program version number.

[0016] The charging pile control method described above in this invention also has the following additional technical features:

[0017] According to one embodiment of the present invention, the electricity metering task is compiled into a separate bin file and embedded into the electricity meter business independent segment of the M-core general project. Specifically, this includes: encapsulating the version number of the MID electricity meter program, the electricity metering function, the electricity metering parameters, and the electricity meter parameter access interface into bin format firmware; using the asm command to put the firmware into a fixed code segment of the M-core general project; and storing the code segment in an independent ROM storage area.

[0018] According to one embodiment of the present invention, the M-core general project adopts the ELF format.

[0019] According to one embodiment of the present invention, performing CRC verification on the electricity meter based on the read data and displaying the MID electricity meter program version number specifically includes: obtaining the position and length of the independent segment of the electricity meter service in the M-core overall project through the readelf -S command; reading the data in the independent segment of the electricity meter service based on the position and length; performing CRC calculation based on the read data, and displaying the calculated CRC value and the version number of the MID electricity meter program.

[0020] A fourth aspect of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the charging pile control method described in the third aspect of the present invention.

[0021] The beneficial effects of this invention are:

[0022] The main control chip of this invention integrates A core and M core, realizing the completion of metering and non-metering functions within a single chip. This avoids the cost surge and cross-chip communication bottleneck caused by discrete chip design. At the same time, it reduces the number of external metering modules, shrinks the size of the charging pile, and lowers the overall cost.

[0023] This invention compiles the meter business into a separate bin file and embeds it into an independent segment, achieving physical isolation between metering and non-metering functions. Software changes to non-metering functions will not affect meter-related business, reducing the need for repeated MID authentication and lowering authentication costs and time.

[0024] This invention uses a dynamic CRC verification mechanism to determine in real time whether the meter software is consistent with the MID certification, ensuring the legality and security of the meter software. At the same time, the version number of the MID meter executable program can be displayed on the screen, which is convenient for users and administrators to track and manage the version. Attached Figure Description

[0025] Figure 1 This is a schematic diagram of the structure of a charging pile control system according to an embodiment of the present invention;

[0026] Figure 2 This is a flowchart of a charging pile control method according to an embodiment of the present invention. Detailed Implementation

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

[0028] Figure 1 This is a schematic diagram of the structure of a charging pile control system according to an embodiment of the present invention, as shown below. Figure 1 As shown, the charging pile control system includes a main control chip 100, which includes an A core and an M core.

[0029] The M-core is used to run the M-core overall project, which includes metering tasks and charging logic tasks. The metering tasks are compiled into separate bin files and embedded into the meter business independent section of the M-core overall project. The A-core is used to run the Linux operating system. The A-core includes a display process, which reads the bin file of the meter business independent section of the M-core overall project, performs CRC verification of the meter based on the read data, and displays the MID meter program version number.

[0030] Specifically, such as Figure 1 As shown, the main control chip 100 can be an STM32MP151CAA3, which integrates a high-performance A-core and M-core. The A-core is responsible for running the Linux operating system, enabling the charging pile to have rich communication and data processing capabilities. The A-core mainly implements the following functions of the charging pile:

[0031] 1. Communication interface, supporting multiple communication methods to ensure stable connection of charging piles in various network environments;

[0032] 2. Protocol support: Built-in support for the OCPP (Open Charge Point Protocol) charging protocol, facilitating seamless integration with charging management platforms;

[0033] 3. Display screen shows the charging status current / voltage parameters, MID meter version number, and CRC value.

[0034] 4. Additional features: Provides Web (network) services and logging capabilities to facilitate remote management and troubleshooting.

[0035] The M-core runs real-time charging logic tasks and metering-related business, ensuring the safety and accuracy of the charging process. The M-core's main project, StarCharge.out, is designed as two independent projects: the meter business and other main business (primarily real-time charging logic tasks). This separation not only improves the system's modularity but also facilitates subsequent maintenance and upgrades. The meter business is compiled into a separate Meter_CM4.bin file and embedded in an independent segment. This design ensures the independence and stability of the meter business; even if non-metering software malfunctions or changes, it will not affect the normal operation of the meter business. The A-core's display process can read the Meter_CM4.bin data from the M-core's main project, StarCharge.out, to perform CRC calculations. Each change to the meter program will cause a change in the CRC value, which the display process will show. Users can determine whether the meter program has undergone MID authentication based on the CRC value, thus quickly confirming whether the meter business has changed. If the meter business remains unchanged, even if other businesses change, there is no need for secondary authentication of the meter, greatly simplifying the authentication process and reducing costs. Meanwhile, the charging pile display screen can show the MID meter program version number, making it convenient for users and administrators to track and manage the meter software version.

[0036] In one specific embodiment of the present invention, the electricity metering task is compiled into a separate bin file and embedded into the electricity meter business independent segment of the M-core general project, specifically including the following steps S11-S13:

[0037] S11 encapsulates the version number of the MID meter program, the meter metering function, the meter metering parameters, and the meter parameter access interface into a bin-format firmware Meter_CM4.bin.

[0038] S12, use the asm command to put the firmware Meter_CM4.bin into the fixed code segment Meter_CM4 of the M-core main project.

[0039] Specifically, the firmware Meter_CM4.bin is placed into the Meter_CM4 section using the asm command within the entire M-core project. The specific code is as follows:

[0040] asm(".section Meter_CM4,\"a\";"

[0041] ". incbin \".. / .. / .. / Meter / CM4 / Debug / Meter_CM4.bin\";" );

[0043] S13, store the code segment into a separate ROM storage area.

[0044] Specifically, the code segment Meter_CM4 is located within the independent ROM storage region SE_Binary_region_ROM. The specific code could be as follows:

[0045] {

[0046] Meter_CM4_start = .;

[0047] KEEP(*(Meter_CM4));

[0048] Meter_CM4_end = .;

[0049] SE_Binary_region_ROM

[0050] Therefore, the electricity metering task can be embedded into the independent electricity meter business segment of the M-core general project.

[0051] In an embodiment of the present invention, the M-core general project adopts the ELF format.

[0052] In an embodiment of the present invention, the display screen process is specifically used to: obtain the position and length of the independent segment of the electricity meter service in the M-core overall project through the readelf -S command; read the data in the independent segment of the electricity meter service according to the position and length; perform CRC calculation based on the read data, and display the calculated CRC value and the version number of the MID electricity meter program.

[0053] Specifically, the M-core master project StarCharge.out is in ELF format. The readelf -S command is used to display the section table information of the ELF file. This command will list all sections in the file and their detailed attributes, including section name, type, address, offset, size, attributes, etc.

[0054] The display process on core A can use `readelf -S` to obtain the position and length of the independent segment `Meter_CM4` in the file, and then read this data to perform CRC calculation. Each change to the meter program will cause a change in the CRC value, and the display process will show the current CRC value of the meter program. Users can determine whether the meter program has performed MID authentication based on the CRC value.

[0055] It's understandable that Meter_CM4.bin belongs to the Meter_CM4 segment, which in turn belongs to the .text.Meter_CM4 segment. Therefore, only the .text.Meter_CM4 segment needs to be checked for CRC. The location and length of the .text.Meter_CM4 segment within the file can be determined from the StarCharge.out segment table. The display process on the A core reads data from this segment to perform the CRC check.

[0056] To enable the charging pile display to show the version number of the MID meter program, a symbolic version numbering mechanism is used, where the function version is used to label the meter program version. For example, the MID meter program can use `asm (".symver MeterkWh_Init, MeterkWh_Init@0x1010")` to set the version of the `MeterkWh_Init` function to `x1010`. Then, the display program on the A core can use the `readelf -S` command to view the symbol table and obtain the version number of the MID meter executable program through the symbolic version of the function.

[0057] In summary, the charging pile control system according to embodiments of the present invention integrates an A-core and an M-core within the main control chip, enabling the completion of metering and non-metering functions within a single chip. This avoids the cost surge and cross-chip communication bottlenecks caused by discrete chip designs. Simultaneously, it reduces the need for external metering modules, shrinks the size of the charging pile, and lowers the overall cost. The metering business is compiled into a separate bin file and embedded into an independent segment, achieving physical isolation between metering and non-metering functions. Software changes to non-metering functions do not affect metering-related business, reducing the need for repeated MID authentication and lowering authentication costs and time. Through a dynamic CRC verification mechanism, it is possible to determine in real time whether the metering software is consistent with MID authentication, ensuring the legality and security of the metering software. Furthermore, the version number of the MID meter executable program can be displayed on the screen, facilitating version tracking and management for users and administrators.

[0058] The present invention also proposes a charging pile, including the charging pile control system described above.

[0059] According to the charging pile of the present invention, the main control chip integrates A-core and M-core, realizing the completion of metering and non-metering functions within a single chip. This avoids the cost surge and cross-chip communication bottlenecks caused by discrete chip design. Simultaneously, it reduces the number of external metering modules, shrinks the size of the charging pile, and lowers the overall cost. The metering business is compiled into a separate bin file and embedded into an independent segment, achieving physical isolation between metering and non-metering functions. Software changes to non-metering functions will not affect metering-related business, reducing the need for repeated MID authentication and lowering authentication costs and time. Through a dynamic CRC verification mechanism, it is possible to determine in real time whether the metering software is consistent with MID authentication, ensuring the legality and security of the metering software. Furthermore, the version number of the MID meter executable program can be displayed on the screen, facilitating version tracking and management for users and administrators.

[0060] Figure 2 This is a flowchart of a charging pile control method according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps:

[0061] S1 compiles the electricity metering task into a separate bin file and embeds it into the electricity meter business independent segment of the M-core general project. The M-core general project includes: electricity metering task and charging logic task.

[0062] S2, the A-core display process reads the bin file of the meter business independent segment of the M-core general project, performs meter CRC verification based on the read data, and displays the MID meter program version number.

[0063] In one embodiment of the present invention, the electricity metering task is compiled into a separate bin file and embedded into the electricity meter business independent segment of the M-core general project. Specifically, this includes: encapsulating the version number of the MID electricity meter program, the electricity metering function, the electricity metering parameters, and the electricity meter parameter access interface into bin format firmware; using the asm command to put the firmware into a fixed code segment of the M-core general project; the M-core general project adopts ELF format.

[0064] In one embodiment of the present invention, the code segment is stored in a separate ROM storage area.

[0065] In one embodiment of the present invention, the process of performing CRC verification on the electricity meter based on the read data and displaying the MID electricity meter program version number includes: obtaining the position and length of the independent segment of the electricity meter business in the M-core overall project through the readelf -S command; reading the data in the independent segment of the electricity meter business based on the position and length; performing CRC calculation based on the read data and displaying the calculated CRC value and the version number of the MID electricity meter program.

[0066] According to the charging pile control method of this invention, an A-core and an M-core are integrated inside the main control chip, realizing the completion of metering and non-metering functions within a single chip. This avoids the cost surge and cross-chip communication bottlenecks caused by discrete chip design. Simultaneously, it reduces the number of external metering modules, shrinks the size of the charging pile, and lowers the overall cost. The metering business is compiled into a separate bin file and embedded into an independent segment, achieving physical isolation between metering and non-metering functions. Software changes to non-metering functions will not affect metering-related business, reducing the need for repeated MID authentication and lowering authentication costs and time. Through a dynamic CRC verification mechanism, it is possible to determine in real time whether the metering software is consistent with MID authentication, ensuring the legality and security of the metering software. Furthermore, the version number of the MID meter executable program can be displayed on the screen, facilitating version tracking and management for users and administrators.

[0067] Furthermore, the present invention also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described charging pile control method.

[0068] According to embodiments of the present invention, a non-transitory computer-readable storage medium storing a program that is executed by a processor integrates an A-core and an M-core within the main control chip, enabling the completion of metering and non-metering functions within a single chip. This avoids the cost spikes and cross-chip communication bottlenecks caused by discrete chip designs. Simultaneously, it reduces the need for external metering modules, shrinks the size of charging piles, and lowers overall costs. The metering business is compiled into a separate bin file and embedded into an independent segment, achieving physical isolation between metering and non-metering functions. Software changes to non-metering functions do not affect metering-related business, reducing the need for repeated MID authentication and lowering authentication costs and time. A dynamic CRC check mechanism allows real-time verification of whether the metering software matches the MID authentication, ensuring the legality and security of the metering software. Furthermore, the display screen shows the version number of the MID meter executable program, facilitating version tracking and management for users and administrators.

[0069] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0070] Furthermore, 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. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0071] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0072] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0073] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0074] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0075] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0076] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.

Claims

1. A charging pile control system, characterized in that, Comprise: The master chip comprises: A core and M core, wherein, The M core is used for running the M core total project, and the M core total project comprises: electric meter measurement task and charging logic task, and the electric meter measurement task is compiled into a separate bin file and embedded into the electric meter service independent segment of the M core total project; The A core is used for running the Linux operating system, and the A core comprises a display screen process, which is used for reading the bin file of the electric meter service independent segment of the M core total project, performing electric meter CRC check according to the read data, and displaying the MID electric meter program version number; The electric meter measurement task is compiled into a separate bin file and embedded into the electric meter service independent segment of the M core total project, and specifically comprises: encapsulating the version number of the MID electric meter program, the electric meter measurement function, the electric meter measurement parameter and the electric meter parameter access interface into a bin format firmware; using an asm command to place the firmware into a fixed code segment of the M core total project; and storing the code segment into an independent ROM storage area. The display screen process is specifically used for: obtaining the position and length of the electric meter service independent segment in the M core total project through a readelf-S command; reading the data in the electric meter service independent segment according to the position and length; and performing CRC calculation according to the read data, displaying the calculated CRC value and the version number of the MID electric meter program.

2. The charging pile control system according to claim 1, characterized in that, The M core total project adopts an ELF format.

3. A charging pile, characterized in that, The charging pile control system according to claim 1 or 2.

4. A charging pile control method, characterized in that, Comprise the following steps: The electric meter measurement task is compiled into a separate bin file and embedded into the electric meter service independent segment of the M core total project, and the M core total project comprises: electric meter measurement task and charging logic task; The A core display screen process reads the bin file of the electric meter service independent segment of the M core total project, performs electric meter CRC check according to the read data, and displays the version number of the MID electric meter program; The electric meter measurement task is compiled into a separate bin file and embedded into the electric meter service independent segment of the M core total project, and specifically comprises: encapsulating the version number of the MID electric meter program, the electric meter measurement function, the electric meter measurement parameter and the electric meter parameter access interface into a bin format firmware; using an asm command to place the firmware into a fixed code segment of the M core total project; and storing the code segment into an independent ROM storage area. The electric meter CRC check according to the read data and the display of the version number of the MID electric meter program specifically comprise: obtaining the position and length of the electric meter service independent segment in the M core total project through a readelf-S command; reading the data in the electric meter service independent segment according to the position and length; and performing CRC calculation according to the read data, displaying the calculated CRC value and the version number of the MID electric meter program.

5. The charging pile control method according to claim 4, characterized in that, The M core total project adopts an ELF format.

6. A non-transitory computer-readable storage medium, comprising: The computer program is stored on the processor, and the program is executed by the processor to realize the charging pile control method according to claim 4 or 5.

Citation Information

Patent Citations

  • A method for separating a metering program of an electric energy meter from an illegal function program

    CN109144547A

  • Improved DSP + ARM direct current charging pile field calibration device

    CN219016475U