Charging module debugging method, device and system
By issuing control instructions and debugging parameters on the control board of the charging module, and receiving operating status information through the isolated serial port, the problem of being unable to fully debug the charging module in the existing technology is solved, and safe and comprehensive one-time debugging is achieved.
Patent Information
- Application Number
- CN202310074622.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-16
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2043-01-16
AI Technical Summary
When debugging high-voltage rectification and/or inverter functions, the existing charging module debugging method needs to be disconnected from the JTAG emulator and the debugging computer, resulting in the inability to fully debug the charging module function and is difficult to achieve under the security situation. .
By issuing control instructions to the control board of the charging module, and during the operation of the charging module, the updated values of the debugging parameters and/or the list of parameters to be monitored are sent to the control board through the isolated serial port, and the operating status information and information reported by the control board are received. The operating values of the parameters to be monitored generate debugging data.
It achieves comprehensive debugging of the charging module function while ensuring the safety of the control board and debugging computer, and avoids the limitation of JTAG emulator disconnection.
Smart Images

Figure CN116165938B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging piles, and in particular to a charging module debugging method, device and system. Background Art
[0002] With the popularity of new energy vehicles, charging modules (such as charging piles) as supporting products of new energy vehicles have higher and higher requirements for their stability. Therefore, it is particularly important to debug the charging module.
[0003] The existing charging module debugging method usually uses a JTAG (Joint Test Action Group) emulator to debug the charging module. However, when debugging the high-voltage rectification and / or inversion function of the charging module, for safety reasons, the JTAG emulator needs to be disconnected from the debugging computer, so that the charging module function cannot be fully debugged while ensuring the safety of the control board and the debugging computer. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention provides a charging module debugging method, device and system.
[0005] The present invention provides a charging module debugging method, comprising:
[0006] Sending control instructions to the control board of the charging module; wherein the control instructions are used to control the running of the current program in the control board;
[0007] During the operation of the charging module, an updated value of the debugging parameter and / or a list of parameters to be monitored are sent to the control board, and the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored are received; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating values of each parameter to be monitored are all transmitted through the isolated serial port;
[0008] Debugging data is generated based on the operating status information and / or the operating values of each of the parameters to be monitored.
[0009] According to the charging module debugging method provided by the present invention, the current program is synthesized based on the debugging program and the initial program in the control board;
[0010] Before sending the control instruction to the control board of the charging module, the method further includes:
[0011] In response to the program generation instruction, the debugging program is generated based on a current parameter list; wherein the current parameter list is used to store the current value of each of the debugging parameters.
[0012] According to the charging module debugging method provided by the present invention, the debugging program includes one or more structures, and structure variables corresponding to each of the structures;
[0013] The step of generating the debugging program based on the current parameter list includes:
[0014] A structure and a structure variable corresponding to the structure are generated based on each sub-table in the current parameter list; wherein the structure variable includes a starting address and an offset address and length information corresponding to each debugging parameter in the sub-table; the value of the starting address is initialized after the debugging program is synthesized with the initial program.
[0015] According to the charging module debugging method provided by the present invention, sending the updated value of the debugging parameter and / or the list of parameters to be monitored to the control board includes:
[0016] If an updated value of the debugging parameter is received, a parameter update message is generated based on the index of the sub-table corresponding to the debugging parameter and the offset address, length information and updated value of the debugging parameter, and sent to the control board through the isolated serial port;
[0017] And / or, if a parameter selection instruction is received, the parameters to be monitored are determined based on the parameter selection instruction, and a corresponding list of parameters to be monitored is generated based on the parameters to be monitored, and sent to the control board through the isolated serial port; wherein the list of parameters to be monitored includes the index of the sub-table corresponding to each parameter to be monitored and the offset address and length information of each parameter to be monitored.
[0018] According to the charging module debugging method provided by the present invention, the operating status information includes the operating value and fault code of the preset parameter in the debugging parameter; wherein the reporting speed of the preset parameter is lower than the reporting speed of the parameter to be monitored;
[0019] The generating of debugging data based on the operating status information and / or the operating values of each of the parameters to be monitored includes:
[0020] updating the current value of the corresponding debugging parameter in the current parameter list based on the running value of the preset parameter, and determining fault information based on the fault code;
[0021] And / or, determining a change trend of the parameter to be monitored based on the operating value of the parameter to be monitored.
[0022] The charging module debugging method provided by the present invention also includes:
[0023] If the fault code meets the preset conditions, the operating values of each debugging parameter within a preset time period reported by the control board are received and displayed; wherein the preset time period includes the moment when the fault occurs; the control board includes a cache module, and the cache module is used to cache the operating values of each debugging parameter during the operation of the charging module.
[0024] According to the charging module debugging method provided by the present invention, the control board includes a first control unit and a second control unit, and the first control unit and the second control unit are physically separated;
[0025] Among them, the first control unit is used to receive the control instruction and the updated value of the debugging parameter and / or the list of parameters to be monitored, and report the operating status information and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; the second control unit is used to perform rectification and / or inversion control.
[0026] The present invention also provides a charging module debugging device, comprising:
[0027] A first processing module, used for sending control instructions to a control board of a charging module; wherein the control instructions are used for controlling the running of a current program in the control board;
[0028] A second processing module is used to send the updated value of the debugging parameter and / or the list of parameters to be monitored to the control board during the operation of the charging module, and receive the operating status information reported by the control board and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating value of each parameter to be monitored are all transmitted through the isolated serial port;
[0029] The third processing module is used to generate debugging data based on the operating status information and / or the operating values of each parameter to be monitored.
[0030] The present invention also provides a charging module debugging system, comprising: a debugging computer and a charging module, wherein the charging module comprises a control board, and the debugging computer and the control board are connected via an isolated serial port;
[0031] The control panel is used to control the operation of the charging module;
[0032] The debugging computer is used to execute any of the charging module debugging methods described above.
[0033] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the charging module debugging method described in any one of the above methods is implemented.
[0034] The charging module debugging method, device and system provided by the present invention send control instructions to the control board of the charging module, and during the operation of the charging module, send the updated values of the debugging parameters and / or the list of parameters to be monitored to the control board through the isolated serial port, and receive the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored, so as to generate debugging data based on the operating status information and / or the operating values of each parameter to be monitored, thereby achieving comprehensive debugging of the functions of the charging module while ensuring the safety of the control board and the debugging computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 It is a flow chart of the charging module debugging method provided by the present invention;
[0037] Figure 2 It is a structural schematic diagram of the charging module debugging device provided by the present invention;
[0038] Figure 3 It is a structural schematic diagram of the charging module debugging system provided by the present invention;
[0039] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Combine the following Figure 1 The charging module debugging method of the present invention is described, and the charging module debugging method of the present invention is executed by debugging an electronic device such as a computer or the hardware and / or software therein. Figure 1 As shown, the charging module debugging method of the present invention comprises at least the following steps:
[0042] S101. Sending a control instruction to a control board of a charging module; wherein the control instruction is used to control the running of a current program in the control board.
[0043] S102. During the operation of the charging module, the updated value of the debugging parameter and / or the list of parameters to be monitored are sent to the control board, and the operating status information reported by the control board and / or the operating value of each parameter to be monitored in the list of parameters to be monitored are received; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating value of each parameter to be monitored are all transmitted through the isolated serial port.
[0044] S103: Generate debugging data based on the operating status information and / or the operating values of the parameters to be monitored.
[0045] In this embodiment, the charging module can be a unidirectional charging module, that is, the electric vehicle is charged through the charging module; it can also be a bidirectional charging module, that is, the electric vehicle is charged through the charging module, and at the same time, the electric energy output by the electric vehicle is received through the charging module. The debugging computer and the control board are connected through an isolated serial port for transmitting different interactive information. For example, a high-speed USB to serial port device with isolation can be used to connect the debugging computer and the control board, so that the voltage difference between the debugging computer and the control board can be effectively avoided. The damage to the debugging computer and / or the control board can be effectively avoided, and the real-time sending and reporting of the interactive information between the debugging computer and the control board is realized. It can be understood that the debugging computer and the control board can be connected through an isolated serial port, and different interactive information can be transmitted through different types of messages; the debugging computer and the control board can also be connected through multiple isolated serial ports to transmit different interactive information through different isolated serial ports. Among them, the communication function and working parameters of the isolated serial port can be pre-set according to actual needs. For example, the index, baud rate and open or closed state of the isolated serial port can be set.
[0046] The control instructions may include an open connection instruction, a close connection instruction, a start instruction, a stop instruction, a reset instruction, and a standby instruction, among which the open connection instruction and the close connection instruction are used to control the connection and disconnection between the debugging computer and the control board, and the start instruction, the stop instruction, the reset instruction, and the standby instruction are used to control the start, stop, reset, and standby of the charging module. In actual applications, after receiving the control instruction, the control board can also report the operating status corresponding to the control instruction to the debugging computer through the isolated serial port, so that the operator can monitor the operating status of the charging module in real time.
[0047] The control board is used to control the charging module. The control board stores the running program, which can be updated in real time according to actual needs. During the debugging process, the corresponding control instructions can be sent to the control board according to the debugging requirements, so that the current program in the control board runs to control the operation of the charging module and execute the corresponding control instructions.
[0048] During the operation of the charging module, the updated value of the debugging parameter and / or the list of parameters to be monitored can be sent to the control board in real time, and the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored can be received to realize the comprehensive debugging of the function of the charging module. In practical applications, the operator can update the value of the debugging parameter according to the debugging requirements. After receiving the updated value of the debugging parameter, the debugging computer can send it to the control board in real time through the isolated serial port to update the setting value of the corresponding debugging parameter in the control board. At the same time, the operator can also select the parameter to be monitored from the parameter list. After receiving the selection result of the parameter to be monitored, the debugging computer can generate a list of parameters to be monitored based on the parameter to be monitored, and send it to the control board through the isolated serial port. After receiving the list of parameters to be monitored, the control board can report the operating value of the parameter to be monitored to the debugging computer in real time through the isolated serial port, and can also store the operating value of the parameter to be monitored, and when receiving the data reading instruction sent by the debugging computer, the storage result of the operating value of the parameter to be monitored is reported to the debugging computer through the isolated serial port. The operating status information can include the operating value of the preset parameter in the debugging parameter, and can also include fault codes, etc. It is understandable that the control board can send and receive serial port signals in the form of a circular queue to avoid the loss of related data.
[0049] After receiving the operating status information and / or the operating value of the parameter to be monitored reported by the control board, debugging data can be generated based on the operating status information and / or the operating value of the parameter to be monitored, and the debugging data can be displayed and / or sent to the preset terminal device. For example, if the operating value of the preset parameter reported by the control board is received, the current value of the corresponding debugging parameter can be updated and displayed based on the operating value of the preset parameter; if a fault code is received, the fault code can be parsed to obtain fault information, and the fault code and / or fault information can be displayed; if the operating value of the parameter to be monitored is received, the change trend of the corresponding parameter to be monitored can be generated based on the operating value of the parameter to be monitored, and the change trend of each parameter to be monitored can be displayed.
[0050] The existing charging module debugging method usually uses a JTAG emulator to debug the charging module. However, when debugging the high-voltage rectification and / or inversion function of the charging module, for safety reasons, the JTAG emulator needs to be disconnected from the debugging computer, so that the charging module function cannot be fully debugged while ensuring the safety of the control board and the debugging computer.
[0051] This embodiment sends control instructions to the control board of the charging module, and during the operation of the charging module, sends updated values of debugging parameters and / or a list of parameters to be monitored to the control board through the isolated serial port, and receives operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored, so as to generate debugging data based on the operating status information and / or the operating values of each parameter to be monitored, thereby achieving comprehensive debugging of the functions of the charging module while ensuring the safety of the control board and the debugging computer.
[0052] In an exemplary embodiment, the current program is synthesized based on a debugging program and an initial program in the control board;
[0053] Before sending the control instruction to the control board of the charging module, the method further includes:
[0054] In response to the program generation instruction, the debugging program is generated based on a current parameter list; wherein the current parameter list is used to store the current value of each of the debugging parameters.
[0055] In this embodiment, the current program running in the control board is synthesized based on the debugging program and the initial program in the control board. The initial program is the program in the control board itself, such as the rectifier control program, the inverter control program, etc. Before debugging, the debugging program can be automatically generated by the debugging computer, and the debugging program can be exported and synthesized with the initial program in the control board to obtain the current program, and the current program is re-burned to the control board, so that during the debugging process, the control board can run the synthesized program, thereby realizing the automatic generation of the debugging program under the premise of meeting the debugging requirements, greatly reducing the labor cost.
[0056] Among them, the debugging computer can generate a debugging program based on the current parameter list, and the debugging program can be a C language code. The current parameter list is used to store the current value of each debugging parameter. In actual applications, the operator can update the parameter list according to the debugging requirements, for example, increase or decrease the category of the debugging parameters, and update the parameter value of the writable parameters in the debugging parameters. In the case where the category of the debugging parameter is updated, the debugging program can be regenerated. In the case where the parameter value of the writable parameter is updated, the updated value of the debugging parameter can be sent to the control board during the debugging process, so that the current parameter list can be updated in real time according to the debugging requirements to meet different debugging requirements.
[0057] In an exemplary embodiment, the debugging program includes one or more structures, and structure variables corresponding one to one with each of the structures;
[0058] The step of generating the debugging program based on the current parameter list includes:
[0059] A structure and a structure variable corresponding to the structure are generated based on each sub-table in the current parameter list; wherein the structure variable includes a starting address and an offset address and length information corresponding to each debugging parameter in the sub-table; the value of the starting address is initialized after the debugging program is synthesized with the initial program.
[0060] In this embodiment, the debugging program includes one or more structures, and also includes structure variables corresponding to each structure. The current parameter list may include multiple different sub-tables, for example, different sub-tables may be divided according to different parameter categories, and may include analog input sub-table, setting parameter sub-table, operation parameter sub-table, and manufacturer parameter sub-table.
[0061] In the process of generating the debugger, a structure can be generated for any subtable in the current parameter list, that is, the structure corresponds to the subtable one by one. The structure variable corresponding to the structure includes the starting address, the offset address and length information corresponding to each debugging parameter in the corresponding subtable. Among them, in the process of generating the structure variable, the starting address can be set to 0. After the debugger is synthesized with the initial program, the starting address can be further initialized to obtain the starting address of the structure in the synthesized program. The offset address is used to indicate the offset between the address of the debug parameter and the starting address. The length information is used to indicate the length of the debug parameter, for example, it can be 2 bytes.
[0062] This embodiment generates a structure based on each sub-table in the current parameter list, as well as structure variables corresponding to each structure, thereby realizing automatic generation of a debugging program and greatly reducing labor costs. At the same time, the structure variables in this embodiment include a starting address and an offset address and length information corresponding to each debugging parameter in the sub-table, so that when the control board runs the current program, the search efficiency of each debugging parameter can be effectively improved according to the starting address, offset address and length information, thereby improving debugging efficiency.
[0063] In an exemplary embodiment, sending the updated value of the debugging parameter and / or the list of parameters to be monitored to the control board includes:
[0064] If an updated value of the debugging parameter is received, a parameter update message is generated based on the index of the sub-table corresponding to the debugging parameter and the offset address, length information and updated value of the debugging parameter, and sent to the control board through the isolated serial port;
[0065] And / or, if a parameter selection instruction is received, the parameters to be monitored are determined based on the parameter selection instruction, and a corresponding list of parameters to be monitored is generated based on the parameters to be monitored, and sent to the control board through the isolated serial port; wherein the list of parameters to be monitored includes the index of the sub-table corresponding to each parameter to be monitored and the offset address and length information of each parameter to be monitored.
[0066] In this embodiment, when the debugging computer receives the updated value of the debugging parameter, it can generate a parameter update message based on the index of the sub-table corresponding to the debugging parameter and the offset address, length information and updated value of the debugging parameter, and send the parameter update message to the control board through the isolated serial port. Among them, when the control board receives the parameter update message sent by the debugging computer, it can determine the initial address of the corresponding structure based on the index of the sub-table, and determine the position of the corresponding debugging parameter based on the offset address and length information, and then modify the parameter value of the debugging parameter according to the updated value, so that the parameter value of the debugging parameter in the control board can be quickly and effectively updated, thereby ensuring the debugging efficiency and the effectiveness of the debugging results.
[0067] In addition, when the debugging computer receives the parameter selection instruction, it can determine the parameters to be monitored based on the parameter selection instruction, generate a corresponding parameter list to be monitored based on the parameters to be monitored, and send the parameter list to be monitored to the control board through the isolated serial port. The parameter list to be monitored can include the index of the sub-table corresponding to each parameter to be monitored and the offset address and length information of each parameter to be monitored.
[0068] The parameter list to be monitored may include an oscilloscope parameter list and a fault monitoring parameter list. In actual application, the operator can select the parameters to be monitored required by the oscilloscope function and / or the parameters to be monitored required by the fault monitoring function from the current parameter list after the charging module is started.
[0069] Among them, when the control board receives the oscilloscope parameter list sent by the debugging computer, it can determine the starting address of the corresponding structure based on the index of the sub-table, and determine the position of the corresponding parameter to be monitored based on the offset address and length information, so as to query its operating value in real time according to the position of the parameter to be monitored and report it to the debugging computer until receiving the stop command sent by the debugging computer, so that the changing trend of the parameter to be monitored can be quickly and effectively displayed in the form of a curve chart, thereby ensuring the debugging efficiency and the effectiveness of the debugging results.
[0070] When the control board receives the fault monitoring parameter list sent by the debugging computer, it can determine the starting address of the corresponding structure based on the index of the sub-table, and determine the position of the corresponding parameter to be monitored based on the offset address and length information, so as to query its operating value in real time according to the position of the parameter to be monitored and cache it to the cache module. If a shutdown fault is detected in the charging module, the operating value can be cached for a preset time and then stopped; after receiving the data reading instruction sent by the debugging computer, the operating value cached in the cache module can be reported to the debugging computer. The debugging computer can display the operating value reported by the control board in the form of a curve chart, so as to intuitively display the change trend of each parameter to be monitored in the fault monitoring parameter list, which is convenient for operators to perform fault analysis. It is understandable that the control board can clear the cache module when receiving the reset instruction sent by the debugging computer.
[0071] In an exemplary embodiment, the operating status information includes operating values and fault codes of preset parameters in the debugging parameters; wherein the reporting speed of the preset parameters is lower than the reporting speed of the parameters to be monitored;
[0072] The generating of debugging data based on the operating state information and / or the operating value of each of the parameters to be monitored includes:
[0073] updating the current value of the corresponding debugging parameter in the current parameter list based on the running value of the preset parameter, and determining fault information based on the fault code;
[0074] And / or, determining a change trend of the parameter to be monitored based on the operating value of the parameter to be monitored.
[0075] In this embodiment, the operation status information may include the operation value and fault code of the preset parameter in the debugging parameter. The preset parameter may be each debugging parameter in the operation parameter sub-table. The reporting speed requirement of the preset parameter is lower than the reporting speed requirement of the parameter to be monitored. The control board may report the operation value of the preset parameter to the debugging computer in real time through the isolated serial port. After receiving the operation value of the preset parameter, the debugging computer may update the current value of the corresponding debugging parameter in the current parameter list based on the operation value of the preset parameter, so as to realize the display of the operation value of the preset parameter, so as to facilitate the operator to view the operation status of the charging module in real time.
[0076] At the same time, when the control board detects that a fault has occurred in the charging module, it can also report the fault code to the debugging computer through the isolated serial port. After receiving the fault code, the debugging computer can determine the fault information based on the fault code and display the fault information. For example, the debugging computer can determine the fault information corresponding to the fault code based on the corresponding relationship between the fault code and the fault information, which is convenient for the operator to monitor the fault information of the charging module in real time during operation.
[0077] The debugging computer can also determine the changing trend of the monitored parameters based on the operating values of the monitored parameters. For example, a curve graph can be generated based on the operating values of the monitored parameters, so that the changing process of the monitored parameters can be displayed more intuitively, making it easier for operators to conduct relevant analysis quickly and effectively.
[0078] In an exemplary embodiment, it also includes:
[0079] If the fault code meets the preset conditions, the operating values of each debugging parameter within a preset time period reported by the control board are received and displayed; wherein the preset time period includes the moment when the fault occurs; the control board includes a cache module, and the cache module is used to cache the operating values of each debugging parameter during the operation of the charging module.
[0080] In this embodiment, the preset condition can be set according to actual needs, for example, it can be the type of fault that causes the charging module to shut down. The preset time period can be set according to actual needs, for example, it can include a first time period before the time when the fault occurs, and a second time period after the time when the fault occurs.
[0081] The control board includes a cache module, which can cache the operating values of all or part of the debugging parameters in real time during the operation of the charging module. If a fault code is detected that meets the preset conditions, the fault code and the operating values of each debugging parameter within a preset time period can all be reported to the debugging computer for display on the debugging computer, making it easier for operators to analyze the cause of the fault.
[0082] In an exemplary embodiment, the control board includes a first control unit and a second control unit, the first control unit and the second control unit are physically separated;
[0083] Among them, the first control unit is used to receive the control instruction and the updated value of the debugging parameter and / or the list of parameters to be monitored, and report the operating status information and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; the second control unit is used to perform rectification and / or inversion control.
[0084] In this embodiment, the control board adopts a dual-core architecture, including a first control unit and a second control unit, the first control unit and the second control unit are physically separated, and at the same time, the first control unit and the second control unit can communicate with each other through IPC (Inter-Process Communication). Among them, the first control unit is used to exchange information with the debugging computer, and to perform separate core processing on the serial port information sent and reported, for example, receiving the control instructions sent by the debugging computer, the updated values of the debugging parameters, the list of parameters to be monitored, and reporting the operating status information and / or the operating values of each parameter to be monitored in the list of parameters to be monitored. The second control unit is used for charging control, for example, rectification and / or inversion control, so as to effectively avoid the influence on the rectification and / or inversion control during the debugging process.
[0085] The following is a description of the charging module debugging device provided by the present invention. The charging module debugging device described below and the charging module debugging method described above can be referred to in correspondence with each other. Figure 2 As shown, the charging module debugging device of the present invention at least includes:
[0086] The first processing module 201 is used to send control instructions to the control board of the charging module; wherein the control instructions are used to control the current program running in the control board;
[0087] The second processing module 202 is used to send the updated value of the debugging parameter and / or the list of parameters to be monitored to the control board during the operation of the charging module, and receive the operating status information reported by the control board and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating value of each parameter to be monitored are all transmitted through the isolated serial port;
[0088] The third processing module 203 is used to generate debugging data based on the operating state information and / or the operating values of each parameter to be monitored.
[0089] In an exemplary embodiment, the current program is synthesized based on a debugging program and an initial program in the control board;
[0090] Also included is a fourth processing module, the fourth processing module being configured to:
[0091] In response to the program generation instruction, the debugging program is generated based on a current parameter list; wherein the current parameter list is used to store the current value of each of the debugging parameters.
[0092] In an exemplary embodiment, the debugging program includes one or more structures, and structure variables corresponding one to one with each of the structures;
[0093] The fourth processing module is specifically used for:
[0094] A structure and a structure variable corresponding to the structure are generated based on each sub-table in the current parameter list; wherein the structure variable includes a starting address and an offset address and length information corresponding to each debugging parameter in the sub-table; the value of the starting address is initialized after the debugging program is synthesized with the initial program.
[0095] In an exemplary embodiment, the second processing module 202 is specifically configured to:
[0096] If an updated value of the debugging parameter is received, a parameter update message is generated based on the index of the sub-table corresponding to the debugging parameter and the offset address, length information and updated value of the debugging parameter, and sent to the control board through the isolated serial port;
[0097] And / or, if a parameter selection instruction is received, the parameters to be monitored are determined based on the parameter selection instruction, and a corresponding list of parameters to be monitored is generated based on the parameters to be monitored, and sent to the control board through the isolated serial port; wherein the list of parameters to be monitored includes the index of the sub-table corresponding to each parameter to be monitored and the offset address and length information of each parameter to be monitored.
[0098] In an exemplary embodiment, the operating status information includes operating values and fault codes of preset parameters in the debugging parameters; wherein the reporting speed of the preset parameters is lower than the reporting speed of the parameters to be monitored;
[0099] The third processing module 203 is specifically used for:
[0100] updating the current value of the corresponding debugging parameter in the current parameter list based on the running value of the preset parameter, and determining fault information based on the fault code;
[0101] And / or, determining a change trend of the parameter to be monitored based on the operating value of the parameter to be monitored.
[0102] In an exemplary embodiment, a fifth processing module is further included, wherein the fifth processing module is configured to:
[0103] If the fault code meets the preset conditions, the operating values of each debugging parameter within a preset time period reported by the control board are received and displayed; wherein the preset time period includes the moment when the fault occurs; the control board includes a cache module, and the cache module is used to cache the operating values of each debugging parameter during the operation of the charging module.
[0104] In an exemplary embodiment, the control board includes a first control unit and a second control unit, the first control unit and the second control unit are physically separated;
[0105] Among them, the first control unit is used to receive the control instruction and the updated value of the debugging parameter and / or the list of parameters to be monitored, and report the operating status information and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; the second control unit is used to perform rectification and / or inversion control.
[0106] Based on any of the above embodiments, the present invention also provides a charging module debugging system, such as Figure 3 As shown, it at least includes: a debugging computer 301 and a charging module, the charging module includes a control board 302, and the debugging computer 301 and the control board 302 are connected via an isolated serial port 303;
[0107] The control board 302 is used to control the operation of the charging module;
[0108] The debugging computer 301 is used to execute the charging module debugging method described in any of the above embodiments.
[0109] As an optional implementation, debugging software can be set in the debugging computer 301. The debugging software can be divided into four layers. According to the close level of association with the hardware, from top to bottom, they can be the first hardware layer, the serial port and driver layer, the transceiver task processing layer, and the business layer. Among them, the first hardware layer can include CPU (Central Processing Unit) and GPU (Graphics Processing Unit). The CPU is mainly used to process control-related business logic, and the GPU is mainly responsible for high-concurrency real-time data dynamic display; the serial port and driver layer is mainly used to provide hardware serial ports and GPU drivers for the debugging computer 301 to call the underlying serial port and GPU hardware resources; the transceiver task processing layer is used for the sending and processing of the data sent by the debugging computer 301, as well as the buffering, parsing, processing, and display of the data reported by the control board 302 in the charging module; the business layer is used to set the serial port, send control instructions, send the updated values of the debugging parameters and / or the list of parameters to be monitored, and generate debugging data.
[0110] Embedded software running on a dual-core processor can be set in the control board 302. The embedded software can be divided into four layers. According to the close level of association with the hardware, from top to bottom, they can be the second hardware layer, the driver layer, the business logic layer and the task scheduling layer; wherein the second hardware layer can include a first control unit and a second control unit, the first control unit is mainly used for serial communication with the debugging computer 301, and the second control unit is used for rectification and / or inverter control, and is also used for communicating with the display screen and communicating with the BMS (Battery Management System); in the driver layer, the first control unit is mainly used to run the relevant modules for communicating with the debugging computer 301 and the first timer driver; the first control unit is mainly used to run the relevant modules for communicating with the display screen and BMS and the second timer driver; in the business logic layer, the first control unit is mainly used to monitor debugging related parameters; the second control unit is mainly used to run rectification, inverter, and communication tasks; the first control unit communicates with the second control unit through the inter-core communication task IPC; the task scheduling layer is mainly used to schedule the relevant tasks run by the first control unit and the second control unit.
[0111] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 401, a communications interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communications interface 402 and the memory 403 communicate with each other via the communication bus 404. The processor 401 may call the logic instructions in the memory 403 to execute the charging module debugging method, the method comprising: sending a control instruction to the control board of the charging module; wherein the control instruction is used to control the running of the current program in the control board;
[0112] During the operation of the charging module, an updated value of the debugging parameter and / or a list of parameters to be monitored are sent to the control board, and the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored are received; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating values of each parameter to be monitored are all transmitted through the isolated serial port;
[0113] Debugging data is generated based on the operating status information and / or the operating values of each of the parameters to be monitored.
[0114] In addition, the logic instructions in the above-mentioned memory 403 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0115] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the charging module debugging method provided by the above methods, the method comprising: sending a control instruction to a control board of the charging module; wherein the control instruction is used to control the current program running in the control board;
[0116] During the operation of the charging module, an updated value of the debugging parameter and / or a list of parameters to be monitored are sent to the control board, and the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored are received; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating values of each parameter to be monitored are all transmitted through the isolated serial port;
[0117] Debugging data is generated based on the operating status information and / or the operating values of each of the parameters to be monitored.
[0118] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the charging module debugging method provided by the above methods, the method comprising: sending a control instruction to a control board of the charging module; wherein the control instruction is used to control the running of the current program in the control board;
[0119] During the operation of the charging module, an updated value of the debugging parameter and / or a list of parameters to be monitored are sent to the control board, and the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored are received; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating values of each parameter to be monitored are all transmitted through the isolated serial port;
[0120] Debugging data is generated based on the operating status information and / or the operating values of each of the parameters to be monitored.
[0121] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A charging module debugging method, characterized in that: include: Sending control instructions to the control board of the charging module; wherein the control instructions are used to control the running of the current program in the control board; the current program is synthesized based on the debugging program and the initial program in the control board; During the operation of the charging module, the updated value of the debugging parameter and / or the list of parameters to be monitored are sent to the control board, and the operating status information reported by the control board and / or the operating values of each parameter to be monitored in the list of parameters to be monitored are received; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating values of each parameter to be monitored are all transmitted through the isolated serial port between the control board and the debugging computer; the control board sends and receives serial port signals in the form of a circular queue; Generate debugging data based on the operating status information and / or the operating value of each of the parameters to be monitored; Before sending the control instruction to the control board of the charging module, the method further includes: In response to the program generation instruction, the debugging program is generated based on a current parameter list; wherein the current parameter list is used to store the current value of each of the debugging parameters.
2. The charging module debugging method according to claim 1, characterized in that: The debugging program includes one or more structures, and structure variables corresponding to each of the structures; The step of generating the debugging program based on the current parameter list includes: A structure and a structure variable corresponding to the structure are generated based on each sub-table in the current parameter list; wherein the structure variable includes a starting address and an offset address and length information corresponding to each debugging parameter in the sub-table; the value of the starting address is initialized after the debugging program is synthesized with the initial program.
3. The charging module debugging method according to claim 2, characterized in that: The sending the updated value of the debugging parameter and / or the list of parameters to be monitored to the control board includes: If an updated value of the debugging parameter is received, a parameter update message is generated based on the index of the sub-table corresponding to the debugging parameter and the offset address, length information and updated value of the debugging parameter, and sent to the control board through the isolated serial port; And / or, if a parameter selection instruction is received, the parameters to be monitored are determined based on the parameter selection instruction, and a corresponding list of parameters to be monitored is generated based on the parameters to be monitored, and sent to the control board through the isolated serial port; wherein the list of parameters to be monitored includes the index of the sub-table corresponding to each parameter to be monitored and the offset address and length information of each parameter to be monitored.
4. The charging module debugging method according to any one of claims 1 to 3, characterized in that: The operation status information includes the operation value and fault code of the preset parameter in the debugging parameter; wherein the reporting speed of the preset parameter is lower than the reporting speed of the parameter to be monitored; The generating of debugging data based on the operating status information and / or the operating values of each of the parameters to be monitored includes: updating the current value of the corresponding debugging parameter in the current parameter list based on the running value of the preset parameter, and determining fault information based on the fault code; And / or, determining a change trend of the parameter to be monitored based on the operating value of the parameter to be monitored.
5. The charging module debugging method according to claim 4, characterized in that: Also includes: If the fault code meets the preset conditions, the operating values of each debugging parameter within a preset time period reported by the control board are received and displayed; wherein the preset time period includes the moment when the fault occurs; the control board includes a cache module, and the cache module is used to cache the operating values of each debugging parameter during the operation of the charging module.
6. The charging module debugging method according to any one of claims 1 to 3, characterized in that: The control panel includes a first control unit and a second control unit, wherein the first control unit and the second control unit are physically separated; Among them, the first control unit is used to receive the control instruction and the updated value of the debugging parameter and / or the list of parameters to be monitored, and report the operating status information and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; the second control unit is used to perform rectification and / or inversion control.
7. A charging module debugging device, characterized in that: include: A first processing module, used for sending control instructions to a control board of a charging module; wherein the control instructions are used for controlling the running of a current program in the control board; the current program is synthesized based on a debugging program and an initial program in the control board; The second processing module is used to send the updated value of the debugging parameter and / or the list of parameters to be monitored to the control board during the operation of the charging module, and receive the operating status information reported by the control board and / or the operating value of each parameter to be monitored in the list of parameters to be monitored; wherein the control instruction, the updated value of the debugging parameter, the list of parameters to be monitored, the operating status information and the operating value of each parameter to be monitored are all transmitted through the isolated serial port between the control board and the debugging computer; the control board sends and receives serial port signals in the form of a circular queue; A third processing module, used for generating debugging data based on the operating state information and / or the operating value of each parameter to be monitored; Before the first processing module sends the control instruction to the control board of the charging module, the method further includes: The fourth processing module is used to generate the debugging program based on the current parameter list in response to the program generation instruction; wherein the current parameter list is used to store the current value of each debugging parameter.
8. A charging module debugging system, characterized in that: include: A debugging computer and a charging module, wherein the charging module includes a control board, and the debugging computer and the control board are connected via an isolated serial port; The control panel is used to control the operation of the charging module; The debugging computer is used to execute the charging module debugging method as described in any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the charging module debugging method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Alternating current charging pile remote diagnosis and debugging system and implementation method thereof
CN113376433A
Remote updating method for heating valve control system
CN115033264A
New forms of energy electric automobile fills power station monitoring terminal
CN206657225U
Automatic commissioning of charging stations
WO2024069044A1