Main charging module abnormality processing method, device, terminal and storage medium

Through the real-time continuous main search operation and the method of directly ending the repeated process, the problem of cumbersome detection process and long search time when the main charging module is abnormal is solved, and the effect of quickly positioning the host and reducing system fluctuations is achieved.

CN114418147BActive Publication Date: 2025-05-13SHIJIAZHUANG TONHE ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210094434.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2025-05-13
Estimated Expiration
2042-01-26

AI Technical Summary

Technical Problem

In the prior art, when the main charging module is abnormal, the detection process is cumbersome and the time to find the main charging module is long, which can easily lead to system fluctuations.

Method used

Through real-time and continuous main search operation, when the main charging module is repeated, the process is directly terminated, and the next process is directly searched for the main, avoiding the cumbersome process of abnormal detection and reducing the complexity of abnormal handling.

Benefits of technology

It shortens the system oscillation time and quickly locates to the accurate host, reducing system fluctuations problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418147B_ABST
    Figure CN114418147B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, terminal and storage medium for handling the abnormality of a main charging module. The method comprises: receiving a current sharing message, and marking the charging module machine number according to the current sharing message; when the current sharing message is sent by a slave charging module, accumulating the machine number marking delay count; detecting whether the current charging module is the main charging module according to the machine number marking delay count result and the machine number marking information; when the current charging module is the main charging module, performing host processing and data reset. The present invention avoids the cumbersome process of abnormality detection, reduces the complexity of abnormality handling, can shorten the system oscillation time, and quickly locate the accurate main charging module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric vehicle charging control, and in particular to a method, device, terminal and storage medium for processing an abnormality of a main charging module. Background Art

[0002] Multiple charging modules are set in the electric vehicle charging pile to charge multiple electric vehicles that come to charge, reduce the waiting time of electric vehicles, and improve the charging efficiency. At present, multiple charging modules are generally charged by the master-slave charging module current sharing method, that is, the master charging module is accurately found, the master charging module issues instructions, and the slave charging module works normally according to the instructions. However, when the main charging module is abnormal, including the duplication of the main charging module or the loss of connection of the main charging module, if there is no stable processing mechanism, it will cause the entire charging system to be paralyzed, resulting in unexpected results.

[0003] The existing method for detecting and handling abnormalities in the main charging module is to repeat the detection with multiple delays through the main charging module. The detection process is cumbersome. When the main charging module is detected to be repeated, multiple main charging modules are exited in real time, and the main charging modules are re-screened in the next cycle. The main search process also requires several cycles to find the accurate main charging module. During the time of searching for the main charging module, due to the repetition of the main charging module, the slave charging module will not know which main charging module to follow, resulting in fluctuations in the entire system. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, terminal and storage medium for processing main charging module abnormality, so as to solve the problem in the prior art that when the main charging module is abnormal, the detection process is cumbersome and the time to find the main charging module is long, which easily leads to system fluctuations.

[0005] In a first aspect, an embodiment of the present invention provides a method for processing an abnormality of a main charging module, comprising:

[0006] Receive a current sharing message, and mark the charging module number according to the current sharing message;

[0007] When the current sharing message is sent by the slave charging module, the machine number marking delay count is accumulated;

[0008] According to the machine number marking delay counting result and the machine number marking information, detect whether the current charging module is the main charging module;

[0009] When the current charging module is a main charging module, host processing and data reset are performed.

[0010] In a possible implementation manner, after receiving the current sharing message, the method further includes:

[0011] The reception abnormality flag and reception abnormality count value in the current charging module are cleared.

[0012] In a possible implementation, when the current sharing message is sent by the slave charging module, before accumulating the machine number labeling delay count, the method further includes:

[0013] According to the current sharing message, detecting whether the current sharing message is sent from a charging module;

[0014] After detecting, according to the current sharing message, whether the current sharing message is sent from a charging module, the method further includes:

[0015] When the current sharing message is not sent from the charging module, detecting whether the current charging module is a slave charging module;

[0016] When the current charging module is a slave charging module, slave processing is performed and this process ends.

[0017] In a possible implementation manner, after detecting whether the current charging module is a slave charging module, the method further includes:

[0018] When the current charging module is not the slave charging module, the current process ends.

[0019] In a possible implementation, 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:

[0020] Check whether the machine number marking delay count is equal to the pre-designed value;

[0021] When the delay count of the machine number marking is less than the pre-designed value, the current process is terminated; when the delay count time of the machine number marking is equal to the pre-designed value, the delay count of the machine number marking is cleared;

[0022] According to the machine number labeling information, the main charging module is determined, and it is detected whether the current charging module is the main charging module.

[0023] In a possible implementation manner, after receiving the current sharing message, the method further includes:

[0024] Calculate the sum of the current value and the previous current accumulated value according to the current value in the current sharing message;

[0025] Perform host processing, including:

[0026] The current sharing value is calculated according to the number of received current sharing messages and the calculated total current value.

[0027] In a possible implementation manner, after detecting whether the current charging module is the main charging module, the method further includes:

[0028] When the current charging module is not the main charging module, data is reset and the current process ends.

[0029] In a second aspect, an embodiment of the present invention provides a device for processing an abnormality of a main charging module, including:

[0030] A receiving module, used for receiving a current sharing message;

[0031] A recording module, used for marking the charging module number according to the current sharing message;

[0032] A counting module, used for accumulating the machine number marking delay count when the current sharing message is sent by the slave charging module;

[0033] A detection module, used to detect 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;

[0034] The processing module is used for performing host processing and data reset when the current charging module is a main charging module.

[0035] In a third aspect, an embodiment of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for handling an abnormality of a main charging module as described in the first aspect or any possible implementation method of the first aspect are implemented.

[0036] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for handling an abnormality of a main charging module as described in the first aspect or any possible implementation method of the first aspect are implemented.

[0037] The embodiment of the present invention provides a method, device, terminal and storage medium for handling the abnormality of the main charging module. Through real-time and continuous master search operation, when the main charging module is repeated, the process is directly terminated, and the next process directly searches for the master again, replacing the abnormal detection of the main charging module being disconnected or repeated in the prior art, thereby avoiding the cumbersome process of abnormal detection, reducing the complexity of abnormal processing, and further reducing the processing time of multiple delayed detections in the abnormal processing process before re-searching the master in the next cycle, thereby reducing the system fluctuation problem in the abnormal processing process in the prior art. The embodiment of the present invention can shorten the system oscillation time and quickly locate the accurate host. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.

[0039] Figure 1 is a flow chart of an implementation of a method for handling an abnormality of a main charging module provided by an embodiment of the present invention;

[0040] Figure 2 is a flowchart of a method for handling an abnormality of a main charging module provided by another embodiment of the present invention;

[0041] Figure 3 It is a structural schematic diagram of a device for processing an abnormality of a main charging module provided by an embodiment of the present invention;

[0042] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0044] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0045] Figure 1 The present invention provides a flowchart for implementing a method for handling an abnormality of a main charging module. In this embodiment, the problem of abnormality of the main charging module is solved through real-time master search operation. The master search (i.e., searching for the main charging module) is always carried out, rather than in the traditional sense, after the charging pile is powered on, it will no longer search for the master after finding the host, unless the main charging module is abnormal, then it will search for the master again. In this way, if there is a situation where the main charging module is repeated or lost, since each charging module is continuously searching for the master, the next time the master search operation is performed, as long as the communication is normal, the correct and unique main charging module will naturally be generated. The following is a detailed description of the method for handling the abnormality of the main charging module:

[0046] Step 101, receiving a current sharing message, and marking the charging module number according to the current sharing message.

[0047] Each time a current sharing message is received from other modules, it is the beginning of a process, but the master-seeking operation is not performed in every process. A complete process of real-time master-seeking operation is based on the standard that the delay count value marked with the machine number is equal to the preset count value. The pre-designed value is set according to the number of charging modules. After receiving the current sharing messages from all other charging modules connected to the same CAN bus, a master-seeking operation is completed.

[0048] The operation of marking the charging module machine 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 to the machine number marking variable, for example, setting a 64-bit machine number marking variable, receiving the current sharing message sent by charging module No. 1, if the machine number of charging module No. 1 is greater than the machine number of the current charging module, then clearing Bit1 of the machine number marking variable to 0, if the machine number of charging module No. 1 is less than the machine number of the current charging module, then setting Bit1 of the machine number marking variable to 1; similarly, when receiving the current sharing message sent by other charging modules, the corresponding Bit1 of the machine number marking variable is also set. Finally, if the machine number of the current charging module is the smallest machine number, the machine number marking variable is equal to 0, if the machine number of the current charging module is not the smallest machine number, then the machine number marking variable is not equal to 0, and subsequently it can be determined whether the current charging module is the main charging module according to the value of the machine number marking variable.

[0049] In one embodiment, see Figure 2 The schematic diagram of the method for handling the abnormality of the main charging module includes: after receiving the current sharing message, clearing the reception abnormality flag and the reception abnormality count value in the current charging module. In order to record and handle the reception abnormality in time when it occurs in the current process.

[0050] See also Figure 2 , after receiving the current sharing message, it also includes: according to the current value in the current sharing message, calculating the sum of the current value and the previous current accumulated value to obtain the accumulated current value. The purpose of the accumulated current value here is to subsequently determine that the current charging module is the host, so that the current sharing value can be calculated based on the accumulated current total, so as to send the current sharing value to each slave charging module for current sharing. Among them, when the sender of the current sharing message has sent a current sharing message before, the current value in the currently received current sharing message will not be accumulated to avoid errors in the calculation of the current average.

[0051] It should be noted that after receiving the current equalizing message, the receiving abnormal flag and the receiving abnormal count value in the current charging module can be cleared first, and then the charging module machine number can be marked according to the current equalizing message, and then the current value and the previous current accumulated value can be calculated based on the current value in the current equalizing message.

[0052] Step 102: When the current sharing message is sent by the slave charging module, the machine number marking delay count is accumulated.

[0053] In one embodiment, see Figure 2 , before this step, it also includes: according to the current sharing message, detecting whether the current sharing message is sent by the slave charging module, that is, whether the received information is the slave. The current sharing message carries the machine number of the charging module, and the charging module with the largest or smallest machine number can be specified as the main charging module. When the machine number of the charging module carried in the current sharing message is not the largest machine number or the smallest machine number, the current sharing message is sent by the slave charging module.

[0054] When the current sharing message is sent by the slave charging module, the current charging module may be the master charging module, and this step is executed to add 1 to the delay count of the machine number.

[0055] When the current sharing message is not sent by the slave charging module, the current charging module may be a slave charging module, and whether the current charging module is a slave charging module is detected;

[0056] When the current charging module is a slave charging module, slave processing is performed to end this process. Here, the slave processing includes the current charging module controlling its own current to be the current sharing value in the current sharing message.

[0057] When the current charging module is not a slave charging module, it means that this machine is the host, and the host is repeated, and this process ends.

[0058] Step 103, 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.

[0059] In one embodiment, see Figure 2 , this step includes:

[0060] Check whether the delay count of the machine number label is equal to the pre-designed value; when the delay count of the machine number label is less than the pre-designed value, end this process; when the delay count time of the machine number label is equal to the pre-designed value, clear the delay count of the machine number label; determine the main charging module according to the machine number labeling information, and check whether the current charging module is the main charging module.

[0061] Optionally, the preset count value is determined based on the total number of charging modules connected to the same CAN bus. For example, if there are 10 charging modules connected to the same CAN bus, the pre-designed value can be any value greater than 9. The current charging module is excluded here. Since the current sharing message of the same charging module may be received multiple times, the pre-designed value is generally set to be greater than 9.

[0062] When the delay count of the machine number is equal to the pre-designed value, it means that the current sharing messages of all charging modules have been received, and the main charging module can be determined. When the delay count of the machine number is less than the pre-designed value, it means that the current sharing messages of all charging modules have not been received, and the current process ends. When a new current sharing message is received, a new process starts again from step 101.

[0063] The machine number marking delay count is cleared to zero, and the next process needs to find the main restart module again, and then the machine number marking delay count needs to be restarted, and this process is repeated.

[0064] When determining the main charging module 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. After determining the main charging module, it can be determined whether the current charging module is the main charging module according to the value of the machine number marking variable. That is, when the value of the machine number marking variable is 0, the current charging module is determined to be the main charging module, and when the value of the machine number marking variable is not 0, the current charging module is determined to be the slave charging module.

[0065] Step 104, when the current charging module is the main charging module, host processing and data reset are performed.

[0066] In one embodiment, the operation of host processing includes: determining the number of corresponding charging modules according to the received current sharing message. Since each charging module sends a current sharing message to the CAN bus, after receiving the current sharing message, if the current sharing message sent by this charging module has not been received before, the number of charging modules is increased by 1. If the current sharing message sent by this charging module has been received before, the current number of charging modules remains unchanged. Finally, the current charging module is added to obtain the total number of charging modules. The current values ​​corresponding to all charging modules are accumulated, and finally the current value of the current charging module is added to obtain the total current value. The total current value is divided by the total number of charging modules to obtain the current sharing value.

[0067] After the host completes the processing, because the information required for the host search operation has been recorded in the current process, a data reset operation is performed, that is, the received current sharing message is deleted, including the current value, voltage value, machine number and other information of other charging modules.

[0068] See also Figure 2 When the current charging module is not the main charging module, the data is reset and the process ends.

[0069] The above-mentioned method for handling the abnormality of the main charging module receives the current sharing message and marks the charging module machine number according to the current sharing message; when the current sharing message is sent by the slave charging module, the machine number marking delay count is accumulated; according to the machine number marking delay count result and the machine number marking information, it is detected whether the current charging module is the main charging module; when the current charging module is the main charging module, the host processing and data reset are performed, so that the master search operation can be carried out in real time and continuously. When the main charging module is repeated, the process is directly terminated, and the next process directly searches for the master again, replacing the abnormal detection of the main charging module being lost or repeated in the prior art, thereby avoiding the cumbersome process of abnormal detection, reducing the complexity of abnormal processing, and further reducing the processing time of multiple delayed detections in the abnormal processing process before re-searching the master in the next cycle, reducing the system fluctuation problem that occurs in the abnormal processing process in the prior art. The embodiment of the present invention can shorten the system oscillation time and quickly locate the accurate host.

[0070] In addition, since the master search operation is performed in real time, if the main charging module is suddenly disconnected or unplugged, the current charging module is likely to become the main charging module, realizing smooth switching from the slave charging module to the main charging module. If a new charging module is suddenly added, the current charging module was the main charging module at the previous moment, and at the next moment, because the newly inserted charging module has a smaller machine number, the current charging module changes from the main charging module to the slave charging module, realizing smooth switching from the main charging module to the slave charging module.

[0071] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0072] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0073] Figure 3 The structure diagram of the apparatus for processing the abnormality of the main charging module provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0074] like Figure 3 As shown, the device for processing the abnormality of the main charging module includes: a receiving module 301 , a recording module 302 , a counting module 303 , a detection module 304 and a processing module 305 .

[0075] The receiving module 301 is used to receive the current sharing message;

[0076] The recording module 302 is used to mark the charging module number according to the current sharing message;

[0077] The counting module 303 is used to accumulate the machine number marking delay count when the current sharing message is sent by the slave charging module;

[0078] A detection module 304 is used to detect 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;

[0079] The processing module 305 is used to perform host processing and data reset when the current charging module is the main charging module.

[0080] In a possible implementation, after the receiving module 301 receives the current sharing message, the processing module 305 is further configured to:

[0081] The reception abnormality flag and reception abnormality count value in the current charging module are cleared.

[0082] In a possible implementation, when the current sharing message is sent by the slave charging module, before the counting module 303 performs the machine number marking delay count accumulation, the detection module 304 is further used to: detect whether the current sharing message is sent by the slave charging module according to the current sharing message;

[0083] The detection module 304 is further used to: when the current sharing message is not sent from the charging module, detect whether the current charging module is a slave charging module;

[0084] The processing module 305 is also used to perform slave processing when the current charging module is a slave charging module, thereby terminating the current process.

[0085] In a possible implementation, after the detection module 304 detects whether the current charging module is a slave charging module, the processing module 305 is further configured to:

[0086] When the current charging module is not the slave charging module, this process ends.

[0087] In a possible implementation, when the detection module 304 detects 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, it is used to:

[0088] Check whether the machine number marking delay count is equal to the pre-designed value;

[0089] When the machine number marking delay count is less than the pre-designed value, the process ends; when the machine number marking delay count time is equal to the pre-designed value, the machine number marking delay count is cleared;

[0090] According to the machine number labeling information, the main charging module is determined, and it is detected whether the current charging module is the main charging module.

[0091] In a possible implementation, after the receiving module 301 receives the current sharing message, the counting module 303 is further configured to:

[0092] According to the current value in the current sharing message, calculate the sum of the current value and the previous current accumulated value;

[0093] When the processing module 305 performs host processing, it is used to: calculate the current sharing value according to the number of received current sharing messages and the calculated total current value.

[0094] In a possible implementation, after the detection module 304 detects whether the current charging module is the main charging module, the processing module 305 is further configured to:

[0095] When the current charging module is not the main charging module, data is reset and the process ends.

[0096] The above-mentioned main charging module abnormality processing device receives the current sharing message through the receiving module, and the recording module marks the charging module machine number according to the current sharing message; when the current sharing message is sent by the slave charging module, the counting module performs the machine number marking delay count accumulation; according to the machine number marking delay count result and the machine number marking information, the detection module detects whether the current charging module is the main charging module; when the current charging module is the main charging module, the processing module performs host processing and data reset, so that the main search operation can be carried out in real time and continuously. When the main charging module is repeated, the process is directly terminated, and the next process directly searches for the main again, replacing the loss of connection or repeated abnormal detection of the main charging module in the prior art, thereby avoiding the cumbersome process of abnormal detection, reducing the complexity of abnormal processing, and further reducing the processing time of multiple delayed detections in the abnormal processing process before re-searching the main in the next cycle, reducing the system fluctuation problem in the abnormal processing process in the prior art. The embodiment of the present invention can shorten the system oscillation time and quickly locate the accurate host.

[0097] In addition, since the master search operation is performed in real time, if the main charging module is suddenly disconnected or unplugged, the current charging module is likely to become the main charging module, realizing smooth switching from the slave charging module to the main charging module. If a new charging module is suddenly added, the current charging module was the main charging module at the previous moment, and at the next moment, because the newly inserted charging module has a smaller machine number, the current charging module changes from the main charging module to the slave charging module, realizing smooth switching from the main charging module to the slave charging module.

[0098] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 4As shown, the terminal 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned embodiments of the method for handling the abnormality of the main charging module are implemented, for example Figure 1 Alternatively, when the processor 40 executes the computer program 42, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 3 Functions of modules 301 to 305 are shown.

[0099] Exemplarily, the computer program 42 may be divided into one or more modules / units, which 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 implementing specific functions, which are used to describe the execution process of the computer program 42 in the terminal 4. For example, the computer program 42 may be divided into Figure 3 Modules 301 to 305 are shown.

[0100] The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0101] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0102] The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or 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 card, etc. equipped 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 to store 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.

[0103] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0104] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0105] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0106] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0109] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned main charging module abnormality processing method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0110] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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, and should all be included in the protection scope of the present invention.

Claims

1. A method for handling an abnormality of a main charging module, characterized in that: include: Receive a current sharing message, and mark the charging module number according to the current sharing message; When the current sharing message is sent by the slave charging module, the machine number marking delay count is accumulated; According to the machine number marking delay counting result and the machine number marking information, detect whether the current charging module is the main charging module; When the current charging module is a main charging module, host processing and data reset are performed.

2. The method for handling an abnormality of the main charging module according to claim 1, characterized in that: After receiving the current sharing message and before accumulating the machine number marking delay count, it also includes: The reception abnormality flag and reception abnormality count value in the current charging module are cleared.

3. The method for handling an abnormality of the main charging module according to claim 1, characterized in that: When the current sharing message is sent by the slave charging module, before accumulating the machine number marking delay count, it also includes: According to the current sharing message, detecting whether the current sharing message is sent from a charging module; After detecting, according to the current sharing message, whether the current sharing message is sent from a charging module, the method further includes: When the current sharing message is not sent from the charging module, detecting whether the current charging module is a slave charging module; When the current charging module is a slave charging module, slave processing is performed and this process ends.

4. The method for handling the abnormality of the main charging module according to claim 3, characterized in that: After detecting whether the current charging module is a slave charging module, the method further includes: When the current charging module is not the slave charging module, the current process ends.

5. The method for handling an abnormality of a main charging module according to any one of claims 1 to 3, characterized in that: 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 includes: Check whether the machine number marking delay count is equal to the pre-designed value; When the delay count of the machine number marking is less than the pre-designed value, the current process is terminated; when the delay count time of the machine number marking is equal to the pre-designed value, the delay count of the machine number marking is cleared; According to the machine number labeling information, the main charging module is determined, and it is detected whether the current charging module is the main charging module.

6. The method for handling an abnormality of a main charging module according to any one of claims 1 to 3, characterized in that: After receiving the current sharing message, the method further includes: Calculate the sum of the current value and the previous current accumulated value according to the current value in the current sharing message; Perform host processing, including: The current sharing value is calculated according to the number of received current sharing messages and the calculated total current value.

7. The method for handling an abnormality of a main charging module according to claim 1, characterized in that: After detecting whether the current charging module is the main charging module, the method further includes: When the current charging module is not the main charging module, data is reset and the current process ends.

8. A device for handling abnormalities in a main charging module, characterized in that: include: A receiving module, used for receiving a current sharing message; A recording module, used for marking the charging module number according to the current sharing message; A counting module, used for accumulating a machine number marking delay count when the current sharing message is sent by a slave charging module; A detection module, used to detect 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; The processing module is used for performing host processing and data reset when the current charging module is a main charging module.

9. A terminal comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method for handling an abnormality of the main charging module as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for handling an abnormality of a main charging module as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Parallel automatic charging method through multiple direct current charging piles

    CN106585413A

  • Abnormity detection method and device for CAN message of charging pile

    CN109889512A