A method, device, computer equipment and computer readable storage medium for determining a fault
The method automates fault determination in power banks and charging modules, replacing manual troubleshooting with automated data recording and analysis, enhancing efficiency and data accuracy.
Patent Information
- Application Number
- CN202010941255.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-09-09
AI Technical Summary
Manual on-site judgment for communication failures between power banks and charging modules is inefficient, making it difficult to accurately record fault data and analyze equipment quality.
A method and system that automatically troubleshoots power banks by using ejector pins and infrared communication to determine fault points, replacing manual investigation with automated data recording and analysis.
Automatically determines fault points in power banks and charging modules, enabling efficient data recording and subsequent big data analysis, reducing manual intervention and improving equipment quality assessment.
Smart Images

Figure CN112181692B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to a field, and in particular, to a method, an apparatus, a computer device and a computer-readable storage medium for determining a fault. Background Art
[0002] At present, the industry usually adopts the method of manual on-site judgment to determine the communication failure between the charging module and the power bank. That is, when a communication failure occurs between the power bank and the charging module, a manual on-site judgment is performed to first check whether there is a fault in the power bank. If there is no fault in the power bank, the charging module is checked to determine the location of the fault.
[0003] Manual troubleshooting is inefficient and is often done manually offline, making it difficult to accurately record data related to equipment quality, such as the type of fault, location of the fault, and number of faults. This is not conducive to data accumulation and analysis for improving equipment quality. Summary of the invention
[0004] The main technical problem solved by the embodiments of the present invention is to provide a method, device, computer equipment and computer-readable storage medium for determining faults, which can automatically troubleshoot the power bank.
[0005] One aspect of an embodiment of the present application provides a method for determining a fault, the method comprising:
[0006] After the power bank is returned to the charging module, the status of the power bank is read through the ejector pin;
[0007] If the status of the power bank is normal, then the power bank is judged to be normal;
[0008] If the status of the power bank is abnormal, a first status is obtained and a second status is determined, wherein the first status includes: the status of the power bank and / or the charging module before being returned, and the second status includes: the current status of the power bank and / or the charging module.
[0009] One aspect of an embodiment of the present application provides a method for determining a fault, the method comprising:
[0010] After the power bank is returned to the charging module, the charging module obtains the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state;
[0011] The first state includes: the state of the power bank and / or the charging module before return; the third state includes: whether the charging module can read the state of the power bank through the thimble; the fourth state includes: whether the charging module can read the state of the power bank through infrared communication; the second state includes: the state of the power bank and / or the charging module.
[0012] One aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0013] One aspect of an embodiment of the present application provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0014] The beneficial effect of the implementation mode of the present invention is that it will change the past method of manual one-by-one investigation, and by replacing different power banks on site, that is, through multiple returns, the system will automatically determine whether the fault point exists in the charging module itself or in the power bank, and analyze and record the fault type, and upload the data to the server for subsequent big data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for determining a fault according to Embodiment 1 of the present application is schematically shown;
[0016] Figure 2 A flowchart of a method for determining a fault according to Embodiment 2 of the present application is schematically shown;
[0017] Figure 3 The structure diagram of the data processing device according to the third embodiment of the present application is schematically shown;
[0018] Figure 4 The structure diagram of the data processing device according to the fourth embodiment of the present application is schematically shown;
[0019] Figure 5 The hardware architecture diagram of a computer device suitable for implementing the method for determining faults according to the fifth embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0021] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0022] Embodiment 1
[0023] Figure 1 The flowchart of the method for determining a fault according to the first embodiment of the present application is schematically shown. The flowchart of the embodiment of the method is not used to limit the order of executing the steps.
[0024] like Figure 1 As shown, the method for determining a fault may include steps S100 to S104, wherein:
[0025] Step S100, after the power bank is returned to the charging module, the status of the power bank is read through the ejector pin;
[0026] Step S102, if the status of the power bank is normal, then judging that the power bank is normal;
[0027] Step S104, if the state of the power bank is abnormal, obtain a first state and determine a second state, the first state includes: the state of the power bank and / or the charging module before returning, and the second state includes: the current state of the power bank and / or the charging module.
[0028] Optionally, if the state of the power bank is abnormal, obtaining the first state and determining the second state includes:
[0029] If the charging module cannot read the status of the power bank through the ejector pin, query the first status;
[0030] If the first status is that both the power bank and the charging module are not faulty, it is determined that the newly returned power bank has a fault, the second status is changed to a power bank fault, and the second status is uploaded to the server.
[0031] Optionally, if the state of the power bank is abnormal, obtaining the first state and determining the second state includes:
[0032] If the charging module cannot read the status of the power bank through the ejector pin, query the first status;
[0033] If the first state is a power bank failure, an ejector pin failure, or the charging module is used for the first time, it is determined to be an ejector pin failure, the second state is changed to an ejector pin failure, and the second state is uploaded to the server.
[0034] Specifically, on a traditional charging module, several metal elastic pins are usually set at the end of the charging module, and the metal pins are in contact with the metal contacts at the end of the power bank, so that the communication function between the charging module and the power bank can be realized. This single communication mode is relatively simple. If there is a communication abnormality between the charging module and the power bank, it can be basically determined that either the power bank itself is faulty or the communication component of the charging pin is faulty. When a communication failure occurs, the system will make a judgment based on the return logic. If the judgment result needs to be further processed by the operation and maintenance personnel, the charging module will be locked and handled on-site by the operation and maintenance personnel. The processing steps of the operation and maintenance personnel are to exit the power bank in the charging module on site and replace it with another power bank, which is equivalent to re-performing a return operation. The device re-performs a return logic judgment based on the communication status of the newly returned power bank and the status of the charging module before return to determine the fault condition. The return logic can be divided into the following situations:
[0035] Case 1: After the return, the charging module can successfully read the power bank ID through the ejector pin, that is, normal communication is achieved, so it is judged that the charging module and the power bank inside the module are both normal. This is also a normal return process.
[0036] Case 2: After the return, the charging module cannot read the power bank ID through the ejector pin. The device queries the status of the charging module when it was last returned. If the status of the last return was not faulty, it is determined that the newly returned power bank has a fault, and the information is marked and uploaded to the server.
[0037] Case 3: After being returned, the charging module cannot read the power bank ID through the ejector pin. The device queries the status of the charging module when it was last returned. If the status of the last return is a power bank failure or ejector pin failure, or the charging module is used for the first time, the device determines that the charging module is an ejector pin failure, cancels the power bank failure mark, and uploads the information to the server.
[0038] The beneficial effect of the implementation mode of the present invention is that it will change the past method of manual one-by-one investigation, and by replacing different power banks on site, that is, through multiple returns, the system will automatically determine whether the fault point exists in the charging module itself or in the power bank, and analyze and record the fault type, and upload the data to the server for subsequent big data analysis.
[0039] Embodiment 2
[0040] Figure 2 The flowchart of the method for determining a fault according to the second embodiment of the present application is schematically shown. The flowchart of the embodiment of the method is not used to limit the order of executing the steps.
[0041] like Figure 2 As shown, the method for determining a fault may include steps S200 to S202, wherein:
[0042] Step S200, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state;
[0043] Step S202, determining a second state according to the first state, the third state and / or the fourth state;
[0044] Among them, the first state includes: the state of the power bank and / or the charging module before return; the third state includes: whether the charging module can read the state of the power bank through the thimble; the fourth state includes: whether the charging module can read the state of the power bank through infrared communication; the second state includes: the state of the power bank and / or the charging module.
[0045] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0046] If the third state is that the charging module can read the state of the power bank through the thimble, and the fourth state is that the charging module can read the state of the power bank through infrared communication, then the second state is judged to be that both the charging module and the power bank are normal.
[0047] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0048] If the third state is that the charging module can read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state acquired by the charging module is the first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then the second state is judged to be that the charging module ejector pin is normal, the infrared communication failure, and the power bank is normal.
[0049] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0050] If the third state is that the charging module can read the state of the power bank through the thimble, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state obtained by the charging module is that there is no fault, then the second state is judged to be a fault of the power bank.
[0051] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0052] If the third state is that the charging module cannot read the state of the power bank through the thimble, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state obtained by the charging module is that there is no fault, then the second state is judged to be a fault of the power bank.
[0053] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0054] If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state acquired by the charging module is the first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then the second state is judged to be the charging module ejector pin failure, infrared communication failure, and the power bank is normal.
[0055] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0056] If the third state is that the charging module cannot read the state of the power bank through the thimble, and the fourth state is that the charging module can read the state of the power bank through infrared communication, and the first state obtained by the charging module is that there is no fault, then it is determined that the power bank is faulty in the second state.
[0057] Optionally, after the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including:
[0058] If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module can read the state of the power bank through infrared communication, and the first state acquired by the charging module is the first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then the second state is judged to be that the charging module ejector pin failure, the infrared communication is normal, and the power bank is normal.
[0059] Infrared communication is added to the ejector pin communication of the first embodiment, that is, infrared transmitting and receiving devices are added to the power bank and the charging module to realize the dual recognition functions of ejector pin communication and infrared communication. Correspondingly, in the method of using the return logic to judge the fault, the following situations can be used for corresponding judgment:
[0060] Case 1: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module can identify the power bank in these two ways, it is determined that both the charging module and the power bank are normal.
[0061] Case 2: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module can identify the power bank through the ejector pin but cannot identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is one of the first use, module ejector pin failure, module infrared communication failure, or power bank failure, the device determines that the ejector pin of the charging module is normal, the infrared communication is faulty, and the power bank is normal.
[0062] Case 3: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module can identify the power bank through the ejector pin but cannot identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is normal, the charging module is judged to be normal and the power bank is faulty.
[0063] Case 4: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin or infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is not faulty, the charging module is judged to be normal and the power bank is faulty.
[0064] Case 5: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin or infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is one of the first use, module ejector pin failure, module infrared communication failure or power bank failure, the charging module ejector pin failure and infrared communication failure are judged, and the power bank is normal.
[0065] Case 6: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin, but can identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is not faulty, the charging module is judged to be normal and the power bank is faulty.
[0066] Case 7: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin, but can identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is one of the first use, module ejector pin failure, module infrared communication failure, or power bank failure, the device determines that the ejector pin of the charging module is faulty, the infrared communication is normal, and the power bank is normal.
[0067] Since the probability of different power banks having the same fault at the same time is low, by constantly returning the power banks - whether they are returned by users on a daily basis or borrowed and returned intentionally by maintenance personnel for troubleshooting - the faulty parts of the charging module can be gradually identified, and the power banks with faults can also be screened out. The results of fault judgment using the return logic are all uploaded to the server synchronously for subsequent data statistics and analysis.
[0068] The beneficial effect of the implementation mode of the present invention is that it will change the past method of manual one-by-one investigation, and by replacing different power banks on site, that is, through multiple returns, the system will automatically determine whether the fault point exists in the charging module itself or in the power bank, and analyze and record the fault type, and upload the data to the server for subsequent big data analysis.
[0069] Embodiment 3
[0070] Figure 3 The schematic diagram of the structure of the data processing device according to the third embodiment of the present application is schematically shown. The data processing device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can perform specific functions. The following description will specifically introduce the functions of each program module in this embodiment.
[0071] like Figure 3 As shown, the data processing device 30 may include a reading module 300, a judging module 302, and a determining module 304, wherein:
[0072] The reading module 300 is used to read the status of the power bank through the ejector pin after the power bank is returned to the charging module;
[0073] The judging module 302 is used to judge that the power bank is normal if the state of the power bank is normal;
[0074] The determination module 304 is used to obtain a first state and determine a second state if the state of the power bank is abnormal. The first state includes: the state of the power bank and / or the charging module before returning, and the second state includes: the current state of the power bank and / or the charging module.
[0075] Specifically, on a traditional charging module, several metal elastic pins are usually set at the end of the charging module, and the metal pins are in contact with the metal contacts at the end of the power bank, so that the communication function between the charging module and the power bank can be realized. This single communication mode is relatively simple. If there is a communication abnormality between the charging module and the power bank, it can be basically determined that either the power bank itself is faulty or the communication component of the charging pin is faulty. When a communication failure occurs, the system will make a judgment based on the return logic. If the judgment result needs to be further processed by the operation and maintenance personnel, the charging module will be locked and handled on-site by the operation and maintenance personnel. The processing steps of the operation and maintenance personnel are to exit the power bank in the charging module on site and replace it with another power bank, which is equivalent to re-performing a return operation. The device re-performs a return logic judgment based on the communication status of the newly returned power bank and the status of the charging module before return to determine the fault condition. The return logic can be divided into the following situations:
[0076] Case 1: After the return, the charging module can successfully read the power bank ID through the ejector pin, that is, normal communication is achieved, so it is judged that the charging module and the power bank inside the module are both normal. This is also a normal return process.
[0077] Case 2: After the return, the charging module cannot read the power bank ID through the ejector pin. The device queries the status of the charging module when it was last returned. If the status of the last return was not faulty, it is determined that the newly returned power bank has a fault, and the information is marked and uploaded to the server.
[0078] Case 3: After being returned, the charging module cannot read the power bank ID through the ejector pin. The device queries the status of the charging module when it was last returned. If the status of the last return is a power bank failure or ejector pin failure, or the charging module is used for the first time, the device determines that the charging module is an ejector pin failure, cancels the power bank failure mark, and uploads the information to the server.
[0079] The beneficial effect of the implementation mode of the present invention is that it will change the past method of manual one-by-one investigation, and by replacing different power banks on site, that is, through multiple returns, the system will automatically determine whether the fault point exists in the charging module itself or in the power bank, and analyze and record the fault type, and upload the data to the server for subsequent big data analysis.
[0080] Embodiment 4
[0081] Figure 4The schematic diagram of the structure of the data processing device 40 according to the fourth embodiment of the present application is schematically shown. The data processing device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete a specific function. The following description will specifically introduce the functions of each program module in this embodiment.
[0082] An acquisition module 400, configured to enable the charging module to acquire the first state, the third state and / or the fourth state after the power bank is returned to the charging module;
[0083] A determination module 402, configured to determine a second state according to the first state, the third state and / or the fourth state;
[0084] The first state includes: the state of the power bank and / or the charging module before return; the third state includes: whether the charging module can read the state of the power bank through the thimble; the fourth state includes: whether the charging module can read the state of the power bank through infrared communication; the second state includes: the state of the power bank and / or the charging module.
[0085] Infrared communication is added to the ejector pin communication of the first embodiment, that is, infrared transmitting and receiving devices are added to the power bank and the charging module to realize the dual recognition functions of ejector pin communication and infrared communication. Correspondingly, in the method of using the return logic to judge the fault, the following situations can be used for corresponding judgment:
[0086] Case 1: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module can identify the power bank in these two ways, it is determined that both the charging module and the power bank are normal.
[0087] Case 2: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module can identify the power bank through the ejector pin but cannot identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is one of the first use, module ejector pin failure, module infrared communication failure, or power bank failure, the device determines that the ejector pin of the charging module is normal, the infrared communication is faulty, and the power bank is normal.
[0088] Case 3: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module can identify the power bank through the ejector pin but cannot identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is normal, the charging module is judged to be normal and the power bank is faulty.
[0089] Case 4: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin or infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is not faulty, the charging module is judged to be normal and the power bank is faulty.
[0090] Case 5: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin or infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is one of the first use, module ejector pin failure, module infrared communication failure or power bank failure, the charging module ejector pin failure and infrared communication failure are judged, and the power bank is normal.
[0091] Case 6: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin, but can identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is not faulty, the charging module is judged to be normal and the power bank is faulty.
[0092] Case 7: After the return, the charging module identifies the power bank through the ejector pin and infrared communication. If the charging module cannot identify the power bank through the ejector pin, but can identify the power bank through infrared communication, the device obtains the status of the charging module before the power bank is returned. If the status is one of the first use, module ejector pin failure, module infrared communication failure, or power bank failure, the device determines that the ejector pin of the charging module is faulty, the infrared communication is normal, and the power bank is normal.
[0093] Since the probability of different power banks having the same fault at the same time is low, by constantly returning the power banks - whether they are returned by users on a daily basis or borrowed and returned intentionally by maintenance personnel for troubleshooting - the faulty parts of the charging module can be gradually identified, and the power banks with faults can also be screened out. The results of fault judgment using the return logic are all uploaded to the server synchronously for subsequent data statistics and analysis.
[0094] The beneficial effect of the implementation mode of the present invention is that it will change the past method of manual one-by-one investigation, and by replacing different power banks on site, that is, through multiple returns, the system will automatically determine whether the fault point exists in the charging module itself or in the power bank, and analyze and record the fault type, and upload the data to the server for subsequent big data analysis.
[0095] Embodiment 5
[0096] Figure 5 The hardware architecture diagram of a computer device suitable for implementing the method for determining faults according to the fifth embodiment of the present application is schematically shown.
[0097] In this embodiment, the computer device 500 can be used as a provider network or a component of a provider network. The computer device 500 can be, for example, a virtual machine host process and one or more virtual machine instances, or a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster consisting of multiple servers), etc.
[0098] In this embodiment, the computer device 500 can also be used as a mobile terminal or a component of a mobile terminal. When the computer device 500 is a mobile terminal or a component of a mobile terminal, the computer device 500 can be, for example, a smart phone, a computer, a projector, a set-top box, etc.
[0099] In this embodiment, the computer device 500 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Figure 5 As shown, the computer device 500 includes at least but is not limited to: a memory 510, a processor 520, and a network interface 530 that can communicate with each other through a system bus. Among them:
[0100] The memory 510 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 510 can be an internal storage module of the computer device 500, such as a hard disk or memory of the computer device 500. In other embodiments, the memory 510 can also be an external storage device of the computer device 500, such as a plug-in hard disk equipped on the computer device 500, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the memory 510 can also include both the internal storage module of the computer device 500 and its external storage device. In this embodiment, the memory 510 is generally used to store the operating system and various application software installed in the computer device 500, such as the program code of the method for determining a fault, etc. In addition, the memory 510 can also be used to temporarily store various types of data that have been output or are to be output.
[0101] In some embodiments, the processor 520 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 520 is generally used to control the overall operation of the computer device 500, such as performing control and processing related to data or communication with the computer device 500. In this embodiment, the processor 520 is used to run the program code stored in the memory 510 or process data.
[0102] The network interface 530 may include a wireless network interface or a wired network interface 530, which is generally used to establish a communication link between the computer device 500 and other computer devices. For example, the network interface 530 is used to connect the computer device 500 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 500 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0103] It should be pointed out that Figure 5 Only a computer device having components 510 - 530 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0104] In this embodiment, the fault determination method stored in the memory 510 may also be divided into one or more program modules and executed by one or more processors (processor 520 in this embodiment) to complete the present application.
[0105] Embodiment 6
[0106] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for determining a fault in the embodiment are implemented.
[0107] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the method for judging a fault in the embodiment, etc. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0108] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for determining a fault, characterized in that: The method comprises: After the power bank is returned to the charging module, the status of the power bank is read through the ejector pin; If the status of the power bank is normal, then the power bank is judged to be normal; If the state of the power bank is abnormal, a first state is obtained and a second state is determined, wherein the first state includes: the state of the power bank and / or the charging module before the return, and the second state includes: the current state of the power bank and / or the charging module; If the state of the power bank is abnormal, obtaining the first state and determining the second state includes: If the charging module cannot read the status of the power bank through the ejector pin, query the first status; If the first status is that both the power bank and the charging module are not faulty, it is determined that the newly returned power bank is faulty, the second status is changed to power bank faulty, and the second status is uploaded to the server; If the first state is a power bank failure, an ejector pin failure, or the charging module is used for the first time, it is determined to be an ejector pin failure, the second state is changed to an ejector pin failure, and the second state is uploaded to the server.
2. A method for determining a fault, characterized in that: The method comprises: After the power bank is returned to the charging module, the charging module obtains the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state; The first state includes: the state of the power bank and / or the charging module before returning; the third state includes: whether the charging module can read the state of the power bank through the thimble; the fourth state includes: whether the charging module can read the state of the power bank through infrared communication; the second state includes: the state of the power bank and / or the charging module; After the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including: If the third state is that the charging module can read the state of the power bank through the ejector pin, and the fourth state is that the charging module can read the state of the power bank through infrared communication, then it is determined that the second state is that both the charging module and the power bank are normal; If the third state is that the charging module can read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state acquired by the charging module is first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then it is determined that the second state is that the ejector pin of the charging module is normal, the infrared communication failure, and the power bank is normal; If the third state is that the charging module can read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state obtained by the charging module is no fault, then it is determined that the second state is a fault of the power bank; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state obtained by the charging module is no fault, then it is determined that the power bank is faulty in the second state; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state acquired by the charging module is first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then it is determined that the second state is the charging module ejector pin failure and infrared communication failure, and the power bank is normal; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module can read the state of the power bank through infrared communication, and the first state obtained by the charging module is no fault, then it is determined that the power bank is faulty in the second state; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module can read the state of the power bank through infrared communication, and the first state acquired by the charging module is the first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then the second state is judged to be that the charging module ejector pin failure, the infrared communication is normal, and the power bank is normal.
3. A device for determining a fault, characterized in that: The device comprises: The reading module is used to read the status of the power bank through the ejector pin after the power bank is returned to the charging module; A judgment module, used for judging that the power bank is normal if the state of the power bank is normal; A determination module, configured to obtain a first state and determine a second state if the state of the power bank is abnormal, wherein the first state includes: a state of the power bank and / or the charging module before returning, and the second state includes: a current state of the power bank and / or the charging module; If the state of the power bank is abnormal, obtaining the first state and determining the second state includes: If the charging module cannot read the status of the power bank through the ejector pin, query the first status; If the first status is that both the power bank and the charging module are not faulty, it is determined that the newly returned power bank is faulty, the second status is changed to power bank faulty, and the second status is uploaded to the server; If the first state is a power bank failure, an ejector pin failure, or the charging module is used for the first time, it is determined to be an ejector pin failure, the second state is changed to an ejector pin failure, and the second state is uploaded to the server.
4. A device for determining a fault, characterized in that: The device comprises: An acquisition module, configured to enable the charging module to acquire the first state, the third state and / or the fourth state after the power bank is returned to the charging module; a determination module, configured to determine a second state according to the first state, the third state and / or the fourth state; The first state includes: the state of the power bank and / or the charging module before returning; the third state includes: whether the charging module can read the state of the power bank through the thimble; the fourth state includes: whether the charging module can read the state of the power bank through infrared communication; the second state includes: the state of the power bank and / or the charging module; After the power bank is returned to the charging module, the charging module acquires the first state, the third state and / or the fourth state, and determines the second state according to the first state, the third state and / or the fourth state, including: If the third state is that the charging module can read the state of the power bank through the ejector pin, and the fourth state is that the charging module can read the state of the power bank through infrared communication, then it is determined that the second state is that both the charging module and the power bank are normal; If the third state is that the charging module can read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state acquired by the charging module is first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then it is determined that the second state is that the ejector pin of the charging module is normal, the infrared communication failure, and the power bank is normal; If the third state is that the charging module can read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state obtained by the charging module is no fault, then it is determined that the second state is a fault of the power bank; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state obtained by the charging module is no fault, then it is determined that the power bank is faulty in the second state; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module cannot read the state of the power bank through infrared communication, and the first state acquired by the charging module is first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then it is determined that the second state is the charging module ejector pin failure and infrared communication failure, and the power bank is normal; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module can read the state of the power bank through infrared communication, and the first state obtained by the charging module is no fault, then it is determined that the power bank is faulty in the second state; If the third state is that the charging module cannot read the state of the power bank through the ejector pin, the fourth state is that the charging module can read the state of the power bank through infrared communication, and the first state acquired by the charging module is the first use, module ejector pin failure, module infrared communication failure and / or power bank failure, then the second state is judged to be that the charging module ejector pin failure, the infrared communication is normal, and the power bank is normal.
5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to claim 1 or 2 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the method according to claim 1 or 2.
Citation Information
Patent Citations
Method for actively discovering fault of mobile power supply
CN107665369A
Fault detection method for mobile power source, and mobile energy networking system
CN109738822A
Mobile power supply charging module and mobile power supply rental device
CN110380485A
