CN114418147A - Method and device for processing abnormity of main charging module, terminal and storage medium - Google Patents

Method and device for processing abnormity of main charging module, terminal and storage medium Download PDF

Info

Publication number
CN114418147A
CN114418147A CN202210094434.7A CN202210094434A CN114418147A CN 114418147 A CN114418147 A CN 114418147A CN 202210094434 A CN202210094434 A CN 202210094434A CN 114418147 A CN114418147 A CN 114418147A
Authority
CN
China
Prior art keywords
charging module
current
processing
main
machine number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210094434.7A
Other languages
Chinese (zh)
Inventor
马群
张�浩
张逾良
曹会平
焦凌云
李世涛
徐卫东
司建龙
李睿
郭喜斌
胡迎庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shijiazhuang Tonghe Electronics Co Ltd
Original Assignee
Shijiazhuang Tonghe Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shijiazhuang Tonghe Electronics Co Ltd filed Critical Shijiazhuang Tonghe Electronics Co Ltd
Priority to CN202210094434.7A priority Critical patent/CN114418147A/en
Publication of CN114418147A publication Critical patent/CN114418147A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Primary Health Care (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • General Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides a method and a device for processing abnormity of a main charging module, a terminal and a storage medium. The method comprises the following steps: receiving a current sharing message, and marking the number of a charging module according to the current sharing message; when the current sharing message is sent by the slave charging module, the number marking, the delay counting and the accumulation are carried out; detecting whether the current charging module is a main charging module or not according to the machine number marking delay counting result and the machine number marking information; and when the current charging module is the main charging module, host processing and data resetting are carried out. The invention avoids the complicated flow of the abnormity detection, reduces the complexity of abnormity processing, can shorten the system oscillation time, and can quickly position the accurate main charging module.

Description

Method and device for processing abnormity of main charging module, terminal and storage medium
Technical Field
The invention relates to the technical field of electric vehicle charging control, in particular to a method, a device, a terminal and a storage medium for processing abnormity of a main charging module.
Background
All set up a plurality of modules that charge in the electric automobile fills electric pile to a plurality of electric automobile that charge in the future charge, reduce electric automobile queuing time, improve charge efficiency. At present, a plurality of charging modules are generally charged in a current equalizing mode of a master charging module and a slave charging module, namely, the master charging module is accurately found, the master charging module gives an instruction, and the slave charging module normally works according to the instruction. However, when the main charging module is abnormal, the main charging module abnormality includes duplication of the main charging module or loss of connection of the main charging module, and if there is no stable processing mechanism, the whole charging system is disabled, and an unexpected result occurs.
The existing abnormity detection and processing method of the main charging module is that repeated time delay repeated detection is carried out through the main charging module, the detection process is complicated, after the main charging module is detected to be repeated, a plurality of main charging modules are quitted in real time, the main charging module is screened again in the next cycle, and the accurate main charging module can be found through a plurality of cycles in the main searching process.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a storage medium for processing abnormity of a main charging module, and aims to solve the problems that in the prior art, when the main charging module is abnormal, the detection process is complicated, the time for searching the main charging module is long, and system fluctuation is easily caused.
In a first aspect, an embodiment of the present invention provides a method for processing an exception of a main charging module, including:
receiving a current sharing message, and marking the number of a charging module according to the current sharing message;
when the current equalizing message is sent by the slave charging module, carrying out machine number marking, delay, counting and accumulation;
detecting whether the current charging module is a main charging module or not according to the machine number marking delay counting result and the machine number marking information;
and when the current charging module is the main charging module, host processing and data resetting are carried out.
In a possible implementation manner, after receiving the current sharing message, the method further includes:
and clearing the receiving abnormal zone bit and the receiving abnormal count value in the current charging module.
In a possible implementation manner, before the performing the number marking delay counting accumulation when the current sharing packet is sent by the slave charging module, the method further includes:
detecting whether the current equalizing message is sent from a charging module or not according to the current equalizing message;
after detecting whether the current sharing message is sent from a charging module according to the current sharing message, the method further includes:
when the current equalizing message is not sent by the slave charging module, detecting whether the current charging module is the slave charging module;
and when the current charging module is the slave charging module, performing slave processing and ending the process.
In a possible implementation manner, after the detecting whether the current charging module is a slave charging module, the method further includes:
and when the current charging module is not the slave charging module, ending the process.
In a possible implementation manner, the detecting whether the current charging module is the main charging module according to the machine number labeling delay counting result and the machine number labeling information includes:
detecting whether the machine number marking delay count is equal to a preset count value or not;
when the machine number marking delay count is smaller than the preset count value, ending the process; when the machine number labeling delay counting time is equal to a preset counting value, resetting the machine number labeling delay counting;
and determining a main charging module according to the machine number marking information, and detecting whether the current charging module is the main charging module.
In a possible implementation manner, after receiving the current sharing packet, the method further includes:
calculating the sum of the current value and a previous current accumulated value according to the current value in the current equalizing message;
performing host processing, including:
and calculating the current sharing value according to the number of the received current sharing messages and the calculated total current value.
In a possible implementation manner, after the detecting whether the current charging module is the main charging module, the method further includes:
and when the current charging module is not the main charging module, resetting data and ending the process.
In a second aspect, an embodiment of the present invention provides a device for processing an exception of a main charging module, including:
the receiving module is used for receiving a current sharing message;
the recording module is used for marking the number of the charging module according to the current sharing message;
the counting module is used for carrying out machine number marking, delay counting and accumulation when the current equalizing message is sent by the secondary charging module;
the detection module is used for detecting whether the current charging module is the main charging module or not according to the machine number marking delay counting result and the machine number marking information;
and the processing module is used for performing host processing and data resetting when the current charging module is the main charging module.
In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for handling an exception of a main charging module according to the first aspect or any one of the possible implementation manners of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for processing the abnormality of the main charging module according to the first aspect or any one of the possible implementations of the first aspect.
The embodiment of the invention provides a method, a device, a terminal and a storage medium for processing the abnormity of a main charging module, wherein through real-time continuous main searching operation, when the main charging module is repeated, the process is directly ended, the next process directly searches the main again, and the disconnection or repeated abnormity detection of the main charging module in the prior art is replaced, so that the complicated process of abnormity detection is avoided, the complexity of abnormity processing is reduced, the processing time that the main searching can be carried out in the next cycle only through multiple time delay detection in the abnormity processing process is further reduced, and the system fluctuation problem in the abnormity processing process in the prior art is reduced. The embodiment of the invention can shorten the system oscillation time and quickly position the accurate host.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a method for processing an exception of a main charging module according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation of a method for handling an exception of a main charging module according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for processing an exception of a main charging module according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating an implementation of a method for processing an abnormality of a main charging module according to an embodiment of the present invention, in this embodiment, a problem of an abnormality of the main charging module is solved through a real-time owner searching operation, and an owner searching operation (i.e., a main charging module searching operation) is performed all the time. Therefore, if the situation that the main charging module is repeated or disconnected exists at present, as each charging module continuously searches for the main, and the next main searching operation is performed, as long as the communication is normal, the correct and unique main charging module can be generated naturally. The following details the processing method of the exception of the main charging module:
step 101, receiving a current sharing message, and marking the number of a charging module according to the current sharing message.
When receiving the current sharing messages sent by other modules, the process starts once, but the process does not carry out owner searching operation every time, the complete process of the real-time owner searching operation takes the number marking delay count value equal to the preset count value as the standard, the preset count value is set according to the number of the charging modules, and after receiving the current sharing messages of all other charging modules connected to the same CAN bus, the owner searching operation is completed once.
The operation of labeling the charging module number here may include: according to the received current sharing message, assigning the machine number of the charging module corresponding to the current sharing message as a machine number marking variable, for example, setting a 64-Bit machine number marking variable, receiving the current sharing message sent by the charging module No. 1, if the machine number of the charging module No. 1 is larger than that of the current charging module, clearing 0 the Bit1 of the machine number marking variable, and if the machine number of the charging module No. 1 is smaller than that of the current charging module, setting 1 the Bit1 of the machine number marking variable; similarly, when receiving the current sharing messages sent by other charging modules, the Bit1 of the corresponding machine number marking variable is also set. And finally, if the machine number of the current charging module is the minimum machine number, the machine number marking variable is equal to 0, if the machine number of the current charging module is not the minimum machine number, the machine number marking variable is not equal to 0, and whether the current charging module is the main charging module or not can be judged according to the value of the machine number marking variable subsequently.
In an embodiment, referring to the schematic diagram of the method for processing the exception of the main charging module in fig. 2, after receiving the current sharing message, the method further includes: and clearing the receiving abnormal zone bit and the receiving abnormal count value in the current charging module. So as to record and process in time when the abnormal receiving condition occurs in the current flow.
Referring to fig. 2, after receiving the current sharing message, the method further includes: and calculating the sum of the current value and the previous current accumulated value according to the current value in the current equalizing message to obtain the accumulated current value. The purpose of accumulating the current values is to calculate the current sharing value according to the accumulated current sum when it is determined that the current charging module is the master, so as to send the current sharing value to each slave charging module for current sharing processing. When the sender of the current sharing message sends the current sharing message before, the current values in the current sharing message received at present are not accumulated, and the current mean value calculation error is avoided.
It should be noted that after receiving the current sharing message, the current charging module may first perform zero clearing on the receiving abnormal flag bit and the receiving abnormal count value, then perform machine number labeling on the charging module according to the current sharing message, and then calculate the sum of the current value and the previous current cumulative value according to the current value in the current sharing message.
And 102, when the current sharing message is sent by the slave charging module, carrying out machine number marking, delay, counting and accumulation.
In an embodiment, referring to fig. 2, this step is preceded by: according to the current sharing message, whether the current sharing message is sent from the charging module or not is detected, namely whether slave information is received or not is detected. The number of the charging module carried in the current-sharing message can be specified as a main charging module, and when the number of the charging module carried in the current-sharing message is not the maximum number or the minimum number, the current-sharing message is sent by the slave charging module.
And when the current sharing message is sent by the slave charging module, the current charging module can be the master charging module, the step is executed, and the number marking delay count is increased by 1.
When the current sharing message is not sent by the slave charging module, the current charging module may be the slave charging module, and whether the current charging module is the slave charging module is detected;
and when the current charging module is the slave charging module, performing slave processing and ending the process. The slave processing comprises the current charging module controlling the current of the slave to be the current sharing value in the current sharing message.
When the current charging module is not the slave charging module, the host is indicated to be the host, and the host is repeated, so that the process is finished.
And 103, detecting whether the current charging module is the main charging module or not according to the machine number marking delay counting result and the machine number marking information.
In one embodiment, referring to fig. 2, the present step includes:
detecting whether the machine number marking delay count is equal to a preset count value or not; when the time delay count marked by the number is smaller than a preset count value, ending the process; when the time of the number marking delay counting is equal to a preset counting value, clearing the number marking delay counting; and determining a main charging module according to the machine number marking information, and detecting whether the current charging module is the main charging module.
Optionally, the preset count value is determined according to the total number of the charging modules connected to the same CAN bus, for example, 10 charging modules connected to the same CAN bus, the preset count value may be any value greater than 9, where the current charging module is removed, and since a situation that a current sharing message of the same charging module is received for multiple times may occur, the preset count value is generally set to be greater than 9.
When the number marking delay count is equal to the preset count value, it is indicated that the current equalizing messages of all the charging modules are received, and the main charging module can be determined. When the number marking delay count is smaller than the preset count value, it indicates that the current equalizing messages of all the charging modules have not been received, the process is ended, and when a new current equalizing message is received, a new process is restarted from step 101.
And resetting the number marking delay count, wherein the main module needs to be searched again in the next process, and then the number marking delay count is needed to start counting again, and the steps are repeatedly executed.
When the main charging module is determined according to the machine number marking information, the charging module with the smallest machine number in the machine number marking information is determined as the main charging module according to the regulations, and after the main charging module is determined, whether the current charging module is the main charging module or not can be determined according to the value of the machine number marking variable. When the value of the signal marking variable is 0, the current charging module is determined to be the master charging module, and when the value of the signal marking variable is not 0, the current charging module is determined to be the slave charging module.
And step 104, when the current charging module is the main charging module, performing host processing and data resetting.
In one embodiment, the operations to perform host processing include: and determining the number of the corresponding charging modules according to the received current sharing message. Because each charging module sends a current sharing message to the CAN bus, after the current sharing message is received, if the current sharing message sent by the charging module is not received before, the number of the charging modules is added by 1, and if the current sharing message sent by the charging module is received before, the current number of the charging modules is kept unchanged. And finally, the current charging module is added to obtain the total number of the charging modules. And accumulating the current values corresponding to all the charging modules, finally adding the current values of the current charging modules to obtain a total current value, and dividing the total current value by the number of the total charging modules to obtain a current sharing value.
After the host finishes processing, because the information required by the main searching operation is recorded in the current process, data resetting operation is carried out, namely the received current sharing message is deleted, and the current sharing message comprises information such as current values, voltage values and machine numbers of other charging modules.
Referring to fig. 2, when the current charging module is not the main charging module, data resetting is performed, and the process is ended.
According to the method for processing the abnormity of the main charging module, the current sharing message is received, and the number of the charging module is marked according to the current sharing message; when the current sharing message is sent by the slave charging module, the number marking, the delay counting and the accumulation are carried out; detecting whether the current charging module is a main charging module or not according to the machine number marking delay counting result and the machine number marking information; when the current module of charging is the main module of charging, carry out host computer processing and data reset, thereby can be in real time continuous seek main operation, when the main module of charging is repeated, then directly end the flow, next flow directly seeks owner again, main module of charging loses the antithetical couplet or repeated abnormal detection among the prior art has been replaced, thereby the loaded down with trivial details flow of abnormal detection has been avoided, reduce the complexity of abnormal handling, further reduced among the abnormal handling process many times delay detection just can seek the processing time of giving first place to again in next cycle, the system fluctuation problem that appears among the prior art in the abnormal handling process has been reduced. The embodiment of the invention can shorten the system oscillation time and quickly position the accurate host.
In addition, as the master searching operation is carried out in real time, the master charging module is suddenly disconnected or pulled out, the current charging module is likely to become the master charging module, and the smooth switching from the slave charging module to the master charging module is realized. If a new charging module is suddenly added, the current charging module is the main charging module at the last moment, and the number of the newly inserted charging module is smaller at the next moment, the current charging module is changed from the main charging module to the slave charging module, so that smooth switching from the main charging module to the slave charging module is realized.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 3 is a schematic structural diagram of a main charging module exception handling device according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and detailed descriptions are as follows:
as shown in fig. 3, the apparatus for processing an abnormality of the main charging module includes: a receiving module 301, a recording module 302, a counting module 303, a detecting module 304 and a processing module 305.
A receiving module 301, configured to receive a current sharing message;
the recording module 302 is configured to label a charging module number according to the current sharing message;
the counting module 303 is configured to perform number marking, delay counting and accumulation when the current sharing message is sent by the slave charging module;
the detection module 304 is configured to detect whether the current charging module is the main charging module according to the machine number labeling delay counting result and the machine number labeling information;
the processing module 305 is configured to perform host processing and data resetting when the current charging module is the main charging module.
In a possible implementation manner, after the receiving module 301 receives the current sharing message, the processing module 305 is further configured to:
and clearing the receiving abnormal zone bit and the receiving abnormal count value in the current charging module.
In a possible implementation manner, before the counting module 303 performs the number marking delay counting accumulation when the current sharing message is sent by the charging module, the detecting module 304 is further configured to: detecting whether the current sharing message is sent from the charging module or not according to the current sharing message;
the detection module 304 is further configured to: when the current equalizing message is not sent by the slave charging module, detecting whether the current charging module is the slave charging module;
the processing module 305 is further configured to perform slave processing when the current charging module is the slave charging module, and end the process.
In one possible implementation, after the detecting module 304 detects whether the current charging module is the slave charging module, the processing module 305 is further configured to:
and when the current charging module is not the slave charging module, ending the process.
In a possible implementation manner, the detecting module 304 is configured to, when detecting whether the current charging module is the main charging module according to the machine number tagging delay count result and the machine number tagging information,:
detecting whether the machine number marking delay count is equal to a preset count value or not;
when the time delay count marked by the number is smaller than a preset count value, ending the process; when the time of the number marking delay counting is equal to a preset counting value, clearing the number marking delay counting;
and determining a main charging module according to the machine number marking information, and detecting whether the current charging module is the main charging module.
In a possible implementation manner, after the receiving module 301 receives the current sharing message, the counting module 303 is further configured to:
calculating the sum of the current value and the previous current accumulated value according to the current value in the current equalizing message;
when the processing module 305 performs the host processing, it is configured to: and calculating the current sharing value according to the number of the received current sharing messages and the calculated total current value.
In one possible implementation, after the detecting module 304 detects whether the current charging module is the main charging module, the processing module 305 is further configured to:
and when the current charging module is not the main charging module, resetting the data and ending the process.
The processing device for the abnormity of the main charging module receives the current sharing message through the receiving module, and the recording module marks the number of the charging module according to the current sharing message; when the current sharing message is sent by the slave charging module, the counting module carries out number marking, delay and counting accumulation; according to the machine number marking delay counting result and the machine number marking information, the detection module detects whether the current charging module is a main charging module; when the current module of charging is the main module of charging, processing module carries out host computer processing and data reset, thereby can be in real time continuous seek main operation, when the main module of charging is repeated, then directly end the flow, next flow directly seeks owner again, main module of charging loses the antithetical couplet or repeated abnormal detection among the prior art has been replaced, thereby the loaded down with trivial details flow of abnormal detection has been avoided, reduce the complexity of abnormal handling, further reduced the processing time that many times delay detection just can seek owner again in next cycle among the abnormal handling process, the system fluctuation problem that appears among the prior art among the abnormal handling process has been reduced. The embodiment of the invention can shorten the system oscillation time and quickly position the accurate host.
In addition, as the master searching operation is carried out in real time, the master charging module is suddenly disconnected or pulled out, the current charging module is likely to become the master charging module, and the smooth switching from the slave charging module to the master charging module is realized. If a new charging module is suddenly added, the current charging module is the main charging module at the last moment, and the number of the newly inserted charging module is smaller at the next moment, the current charging module is changed from the main charging module to the slave charging module, so that smooth switching from the main charging module to the slave charging module is realized.
Fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 4, the terminal 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned method for handling the abnormality of each main charging module, such as steps 101 to 104 shown in fig. 1, are implemented. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the modules/units 301 to 305 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the terminal 4. For example, the computer program 42 may be divided into modules/units 301 to 305 shown in fig. 3.
The terminal 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of a terminal 4 and does not constitute a limitation of terminal 4 and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments for processing the exception of each main charging module may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for processing exception of a main charging module is characterized by comprising the following steps:
receiving a current sharing message, and marking the number of a charging module according to the current sharing message;
when the current equalizing message is sent by the slave charging module, carrying out machine number marking, delay, counting and accumulation;
detecting whether the current charging module is a main charging module or not according to the machine number marking delay counting result and the machine number marking information;
and when the current charging module is the main charging module, host processing and data resetting are carried out.
2. The method for processing the abnormality of the main charging module according to claim 1, further comprising, after receiving the current sharing message:
and clearing the receiving abnormal zone bit and the receiving abnormal count value in the current charging module.
3. The method for processing the exception of the master charging module according to claim 1, wherein before the performing the number-marked delay counting accumulation when the current sharing packet is sent by the slave charging module, the method further comprises:
detecting whether the current equalizing message is sent from a charging module or not according to the current equalizing message;
after detecting whether the current sharing message is sent from a charging module according to the current sharing message, the method further includes:
when the current equalizing message is not sent by the slave charging module, detecting whether the current charging module is the slave charging module;
and when the current charging module is the slave charging module, performing slave processing and ending the process.
4. The method for processing the exception of the master charging module according to claim 3, wherein after the detecting whether the current charging module is the slave charging module, the method further comprises:
and when the current charging module is not the slave charging module, ending the process.
5. The method for processing the abnormity of the main charging module according to any one of claims 1 to 3, wherein the step of detecting whether the current charging module is the main charging module according to the machine number marking delay counting result and the machine number marking information comprises:
detecting whether the machine number marking delay count is equal to a preset count value or not;
when the machine number marking delay count is smaller than the preset count value, ending the process; when the machine number labeling delay counting time is equal to a preset counting value, resetting the machine number labeling delay counting;
and determining a main charging module according to the machine number marking information, and detecting whether the current charging module is the main charging module.
6. The method for processing the abnormality of the main charging module according to any one of claims 1 to 3, further comprising, after receiving the current sharing message:
calculating the sum of the current value and a previous current accumulated value according to the current value in the current equalizing message;
performing host processing, including:
and calculating the current sharing value according to the number of the received current sharing messages and the calculated total current value.
7. The method for processing the abnormality of the main charging module according to claim 1, wherein after the detecting whether the current charging module is the main charging module, the method further comprises:
and when the current charging module is not the main charging module, resetting data and ending the process.
8. A device for processing abnormality of a main charging module, comprising:
the receiving module is used for receiving a current sharing message;
the recording module is used for marking the number of the charging module according to the current sharing message;
the counting module is used for carrying out machine number marking, delay counting and accumulation when the current equalizing message is sent by the secondary charging module;
the detection module is used for detecting whether the current charging module is the main charging module or not according to the machine number marking delay counting result and the machine number marking information;
and the processing module is used for performing host processing and data resetting when the current charging module is the main charging module.
9. A terminal comprising a memory for storing a computer program and a processor for calling and running the computer program stored in the memory, characterized in that the processor implements the steps of the method for handling exceptions of the main charging module according to any of the above claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for handling a main charging module abnormality as recited in any one of claims 1 to 7 above.
CN202210094434.7A 2022-01-26 2022-01-26 Method and device for processing abnormity of main charging module, terminal and storage medium Pending CN114418147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210094434.7A CN114418147A (en) 2022-01-26 2022-01-26 Method and device for processing abnormity of main charging module, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210094434.7A CN114418147A (en) 2022-01-26 2022-01-26 Method and device for processing abnormity of main charging module, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114418147A true CN114418147A (en) 2022-04-29

Family

ID=81276661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210094434.7A Pending CN114418147A (en) 2022-01-26 2022-01-26 Method and device for processing abnormity of main charging module, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114418147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473127A (en) * 2022-07-29 2022-12-13 科华数据股份有限公司 Winding group number identification method after replacement of electrical module, upper computer and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473127A (en) * 2022-07-29 2022-12-13 科华数据股份有限公司 Winding group number identification method after replacement of electrical module, upper computer and storage medium

Similar Documents

Publication Publication Date Title
CN109814524B (en) Vehicle diagnosis method, device and system
CN110021792B (en) Charging control method and device, terminal equipment and computer storage medium
CN110633977A (en) Payment exception processing method and device and terminal equipment
CN111211585B (en) Charging equipment distribution method and terminal equipment
CN114418147A (en) Method and device for processing abnormity of main charging module, terminal and storage medium
CN113489653A (en) Message sending method and device and computer equipment
CN109995548B (en) Device management method and system, data transmission method and system and terminal device
CN113682180A (en) Input power limited charging method, device, electronic equipment and storage medium
CN113852531A (en) CAN communication method and CAN controller for function code matching
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN113103903B (en) Method for switching sequencing modes of charging modules and terminal equipment
CN112199272A (en) Intelligent terminal testing method and device, terminal equipment and medium
CN115840707A (en) Flash test method, device and medium
CN111309475B (en) Detection task execution method and equipment
CN114425787A (en) Control method and device for robot automatic test, server and storage medium
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN111016730B (en) Battery charging detection method and device and terminal equipment
CN112527276A (en) Data updating method and device in visual programming tool and terminal equipment
CN111679909A (en) Data processing method and device and terminal equipment
CN113740732B (en) Battery cell outlier detection method and device and electronic equipment
CN112636994A (en) Device testing method, system, network device and readable storage medium
CN117124856B (en) Circulation overvoltage identification method and device, readable storage medium and electric automobile
CN113133010B (en) Wireless networking method, device, terminal equipment and storage medium
CN113988838A (en) PSAM card management method and device
CN109597813B (en) Vehicle data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination