Communication module detection method and terminal
By acquiring and comparing the deviation between the actual signal characteristic value of the communication module and the reference signal characteristic value, the problem that different versions of modules cannot obtain accurate reference signal characteristic value in fault detection is solved, and accurate fault detection and processing is achieved.
Patent Information
- Application Number
- CN202411735338.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The versions of different communication modules cannot obtain accurate reference signal characteristic values during fault detection, resulting in the inability to accurately detect different fault events of the module.
By obtaining the current version model of the communication module, determine whether it is a pre-stored version model. If not, obtain the actual signal characteristic value and generate the reference signal characteristic value; if yes, compare the deviation between the actual signal characteristic value and the preset reference signal characteristic value, update the reference signal characteristic value or determine the fault event.
It realizes the precise extraction of reference signal characteristic values of communication modules of different versions, and can accurately detect different fault events of communication modules, improving the accuracy and efficiency of fault handling.
Smart Images

Figure CN119603188A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication detection, and in particular to a detection method and a terminal for a communication module. Background Art
[0002] Communication equipment is widely used, and a single device needs to meet more and more functions. This is reflected in the hardware as the integrated design of functional module circuits one by one. The damage of a single functional module circuit may cause the equipment to be scrapped due to lack of function, resulting in waste. With the promotion of modularization of communication equipment, pluggable communication modules have been widely used. The maintenance method of replacing faulty communication modules has improved the utilization rate of the equipment body and saved costs. Faulty communication modules can also be returned to the factory for repair, and those that meet quality requirements can be recycled. If a communication module fails, directly repairing a single communication module instead of repairing the entire device greatly reduces material costs. However, this requires a lot of manpower and time for on-site communication module troubleshooting.
[0003] In the related art, fault detection of the communication module is generally performed based on a specific reference signal characteristic value. Since different communication modules have different version models, if different communication module versions all perform fault detection of the communication module according to the specific reference signal characteristic value, it is impossible to obtain a relatively accurate reference signal characteristic value, which is not conducive to the accurate detection of different fault events of the communication module. Summary of the invention
[0004] In view of this, the present invention provides a communication module detection method and terminal to solve the problem that if different communication module version models all perform communication module fault detection according to specific reference signal characteristic values, it is impossible to obtain relatively accurate reference signal characteristic values, which is not conducive to accurately detecting different fault events of the communication module.
[0005] According to a first aspect, an embodiment of the present disclosure provides a method for detecting a communication module, which is applied to a terminal, and the method includes:
[0006] Get the current version model of the communication module;
[0007] Determine whether the current version model is a pre-stored version model;
[0008] If the current version model is not a pre-stored version model, obtaining an actual signal characteristic value of the communication module, and generating a reference signal characteristic value corresponding to the current version model;
[0009] If the current version model is a pre-stored version model, obtain the actual signal characteristic value of the communication module, and determine whether the deviation between the actual signal characteristic value of the communication module and the reference signal characteristic value corresponding to the current version model of the communication module is greater than a preset threshold; if the deviation is not greater than the preset threshold, update the reference signal characteristic value corresponding to the current version model of the communication module; if the deviation is greater than the preset threshold, determine a fault event.
[0010] The detection method of the communication module in the embodiment of the present disclosure compares the current version model of the communication module with the pre-stored version model, further generates the reference signal characteristic value corresponding to the current version model in combination with the reference signal characteristic value corresponding to the current version model, and compares the difference between the deviation between the reference signal characteristic value corresponding to the current version model and the actual signal characteristic value and the preset threshold, and then further updates the reference signal characteristic value corresponding to the current version model of the communication module and determines the fault event. Finally, the embodiment of the present disclosure can accurately extract the reference signal characteristic values corresponding to the communication modules of different version models, which is conducive to the accurate detection of different fault events of the communication module.
[0011] In some optional implementations, the actual signal characteristic value includes an actual current characteristic value, the actual current characteristic value includes an actual average current characteristic value and an actual maximum current characteristic value, and the reference signal characteristic value includes a reference current characteristic value; wherein updating the reference signal characteristic value corresponding to the current version model of the communication module includes:
[0012] Determine whether the deviation between the actual average current characteristic value and the reference current characteristic value is greater than a preset threshold;
[0013] If the deviation between the actual average current characteristic value and the reference current characteristic value is not greater than a preset threshold, an updated reference signal characteristic value is obtained based on the actual current characteristic values sampled multiple times within a preset time.
[0014] In some optional embodiments, the reference signal characteristic value includes a reference maximum current characteristic value; wherein, based on the actual current characteristic values sampled multiple times within a preset time, the updated reference signal characteristic value is obtained, including:
[0015] Obtaining an actual maximum current characteristic value from actual current characteristic values sampled multiple times within a preset time;
[0016] Selecting a maximum value from the actual maximum current characteristic value and the reference maximum current characteristic value as a current update parameter of the reference maximum current characteristic value;
[0017] The reference maximum current characteristic value is updated according to the current update parameter to obtain an updated reference signal characteristic value.
[0018] In some optional implementations, the actual signal characteristic value includes a current sampling measurement value, a voltage sampling measurement value, and an insertion signal when the communication module is inserted into the interface module; wherein determining a fault event includes:
[0019] A fault event is determined based on the current sampling measurement value, the insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value.
[0020] The disclosed embodiments generate different types of fault events, which is conducive to quickly locating communication fault problems and helping management personnel to reasonably arrange personnel for on-site maintenance, rather than blindly dispatching maintenance personnel to blindly detect faults when no fault is known, thereby achieving the purpose of reducing maintenance costs and improving detection efficiency.
[0021] In some optional implementations, the current sampling measurement value includes a detection current value, and the voltage sampling measurement value includes a detection voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes:
[0022] If the insertion signal is a low level signal and the communication fails, and both the detection voltage value and the detection current value are zero, it is determined that the fault event is an event in which a short circuit fault occurs in the power supply circuit of the communication module.
[0023] In some optional implementations, the current sampling measurement value includes a detection current value and a voltage divider resistor current value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value, wherein the fault event is determined according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, including:
[0024] If the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value and the detection current value is equal to the voltage divider resistor current value, it is determined that the fault event is a circuit breaker fault in the power supply circuit of the communication module.
[0025] In some optional implementations, the current sampling measurement value includes a detection current value, a voltage divider resistor current value, and a first current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes:
[0026] If the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value, and the detection current value is greater than the voltage divider resistor current value and is not greater than the first current maximum value, the power supply module is controlled to be turned off to reset the communication module;
[0027] When the power supply module is turned on, it is determined whether the communication module has resumed normal communication;
[0028] If the communication module cannot restore normal communication, it is determined that the fault event is an event in which a chip of the communication module is damaged;
[0029] If the communication module resumes normal communication, it is determined that the fault event is an event in which a program abnormality fault occurs in the communication module;
[0030] Determine the fault event based on the current sampling measurement value, the insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, and also include:
[0031] If the insertion signal is a high level signal and the communication is normal, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the voltage divider resistor current value and is not greater than the first current maximum value, it is determined that the fault event is an abnormal insertion pin fault in the communication module.
[0032] In some optional implementations, the current sampling measurement value includes a detection current value and a second current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes:
[0033] If the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value, and the detection current value is greater than the second current maximum value and not greater than the preset power supply short circuit protection threshold, the power supply module is controlled to be turned off to reset the communication module;
[0034] When the power supply module is turned on, it is determined whether the communication module has resumed normal communication;
[0035] If the communication module resumes normal communication, it is determined that the fault event is an abnormal power consumption fault of the communication module;
[0036] If the communication module cannot restore normal communication, it is determined that the fault event is an event in which the communication module is damaged.
[0037] In some optional implementations, the current sampling measurement value includes a detection current value and a second current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes:
[0038] If the insertion signal is a low level signal and the communication is normal, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the second current maximum value and less than the preset power supply short circuit protection threshold, it is determined that the fault event is a leakage fault in the communication module.
[0039] According to a second aspect, an embodiment of the present disclosure provides a terminal, comprising: a power supply module, a current detection module, a voltage detection module, an interface module, a communication module connected in sequence, and a control module connected to the power supply module, the current detection module, the voltage detection module, and the interface module, wherein the communication module is plugged into the interface module and establishes a communication connection with the control module;
[0040] A power supply module, used to provide power supply to the current detection module, the voltage detection module, the communication module and the control module respectively;
[0041] A voltage detection module is used to detect voltage sampling measurement values;
[0042] A current detection module, used to detect current sampling measurement values;
[0043] An interface module, used for plugging in a communication module;
[0044] A control module is used to execute the detection method of the communication module in the first aspect or any implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a circuit schematic diagram of a terminal according to an embodiment of the present invention;
[0047] Figure 2 is a communication structure block diagram according to an embodiment of the present invention;
[0048] Figure 3 is a flow chart of a detection method of a communication module according to an embodiment of the present invention;
[0049] Figure 4 is a flow chart of a detection method of another communication module according to an embodiment of the present invention;
[0050] Figure 5 is a schematic diagram of a specific flow chart of a detection method for a communication module according to an embodiment of the present invention;
[0051] Figure 6 is a flow chart of a detection method of another communication module according to an embodiment of the present invention;
[0052] Figure 7is a flow chart of a detection method of yet another communication module according to an embodiment of the present invention;
[0053] Figure 8 is a schematic diagram of a specific flow chart of a detection method of another communication module according to an embodiment of the present invention;
[0054] Fig. 9 is a structural block diagram of a detection device for a communication module according to an embodiment of the present invention;
[0055] Fig.10 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0057] Figure 1 is a circuit schematic diagram of a terminal according to an embodiment of the present invention.
[0058] The present disclosure provides a terminal, such as Figure 1 As shown, the terminal includes: a power supply module 11, a current detection module 12, a voltage detection module 13, an interface module 14, a communication module 15 connected in sequence, and a control module 16 connected to the power supply module 11, the current detection module 12, the voltage detection module 13, and the interface module 14, wherein the communication module 15 is plugged into the interface module 14 to establish a communication connection with the control module 16. The power supply module 11 is used to provide power supply to the current detection module 12, the voltage detection module 13, the communication module 15, and the control module 16 respectively; the voltage detection module 13 is used to detect the voltage sampling measurement value; the current detection module 12 is used to detect the current sampling measurement value; the interface module 14 is used to plug the communication module 15. The control module 16 is used to execute the communication detection method in the following specific embodiment.
[0059] Specifically, the power supply module is arranged inside the terminal, belongs to the power supply circuit, and the power supply is controlled by the control signal output by the program, and is normally turned on. The power supply module also includes a self-recovery fuse for short-circuit protection. The current detection module is also arranged inside the terminal, located between the power supply module and the voltage detection module, and is used to detect the output current size of the power interface provided by the terminal to the communication module, and feedback to the control module, and the control module samples the detection signal through 1 ADC. The voltage detection module is also arranged inside the terminal, located between the current detection module and the interface module, and is used to detect the output voltage size of the power interface provided by the terminal to the communication module, and feedback to the control module, and the control module samples the detection signal through 1 ADC. The interface module is also arranged inside the terminal, which is an I / O port with an external pull-up of the single-chip microcomputer, which is normally high level. When a low level is detected, it indicates that a communication module is inserted. The control module determines whether the communication module is inserted or unplugged by detecting the changes in the high and low level signals of the I / O and combining the current consumption value. The control module is also set inside the terminal, mainly to detect the plug-in signal, communicate with the communication module; automatically extract and update the reference current characteristics; detect the output current and output voltage and determine whether the power consumption is normal; and control the power supply module to shut down and conduct to realize the power supply control of the communication module; record related abnormal events; and actively report to the fault handling platform. The communication module is plugged into the corresponding interface module of the terminal. In addition to the necessary power interface and interface module, it also needs to have a separate plug-in signal for terminal identification. The plug-in signal pin does not need a complex design, and only needs to be connected to a 100Ω current limiting resistor and pulled down to the ground.
[0060] Figure 2 is a block diagram of a communication structure according to an embodiment of the present invention.
[0061] exist Figure 1 In the embodiment, the power supply module 11 includes: a self-recovering fuse FU1, a resistor R1, a resistor R2, a resistor Q1, and a P-channel MOS tube. Figure 2 In the circuit, the power supply module 11 is provided with power by the terminal, and the power supply module 11 obtains power from the VIN input terminal. First, through a self-recovery fuse PU1, at the front end of the circuit, the terminal is protected from short circuit. Then it is output to the current detection module 12 through the P-channel MOS tube V1. When CTL_P is at a high level, the NPN transistor Q1 is turned on, the base of V1 is pulled down to a low level, and V1 is turned on. When CTL_P is at a low level, the NPN transistor Q1 is turned off, the base of V1 is pulled up by the pull-up resistor R2, Vg=Vs, V1 is turned off, and R1 is a current limiting resistor.
[0062] exist Figure 1In the figure, the current detection module 12 includes: capacitor C1, resistor R3, resistor R4, resistor R5, capacitor C2, current detection chip AD1, capacitor C3, resistor R6, resistor R7, capacitor C4. R4 is a sampling resistor, C1, R3 and C2, R5 are RC filter circuits, and the current detection chip AD1 can amplify the sampling signal and output it through the OUT pin. R6 and R7 are voltage divider resistors, C4 is a sampling filter capacitor, and C3 is a chip energy storage capacitor. The current sampling signal ADC_I is detected and received by the ADC pin of the control module.
[0063] exist Figure 1 In the embodiment, the voltage detection module 13 includes: a resistor R8, a capacitor C5, and a resistor R9. The communication module includes a communication chip JP2 and a pull-down resistor R11. The resistors R8 and R9 form a voltage divider resistor, and the resistor C5 is a sampling filter capacitor. The voltage sampling signal ADC_V is detected and received by the ADC pin of the control module. The normal output voltage VOUT.
[0064] exist Figure 1 In the embodiment, the interface module 14 includes an interface JP1 and a resistor R10. The number of interface socket holes of the interface module is different according to the requirements of different communication modules. It includes 1 power input, 1 power ground, 1 plug detection pin, and several insertion signal pins. The plug detection pin DET_Q is connected to a pull-up resistor and pulled up to the power level of the control module.
[0065] exist Figure 1 In the embodiment, the control module 16 includes a control I / O pin CTL_P, sampling input pins ADC_I, ADC_V, and an I / O input pin DET_Q. The control module 16 is connected to the power supply module 11 through CTL_P, ADC_I is connected to the current detection module 12, ADC_V is connected to the voltage detection module 13, and DET_O is connected to the interface module 14. The control module 16 also has calculation and storage functions such as data reception and event recording.
[0066] exist Figure 1 In the figure, the communication module 15 includes a communication chip JP2 and a resistor R11. The communication module 15 is plugged into the module hardware interface corresponding to the terminal. In addition to the necessary power interface and interface module 14, it also needs to have a separate plug-in signal for providing identification to the terminal. The signal pin does not need a complex design, and only needs to be connected to a 100Ω current limiting resistor and pulled down to the ground.
[0067] In the terminal of the disclosed embodiment, there is no need for too many requirements for the external communication module, and it is sufficient to include a 1-way plug-in detection pin, and the required resources are simple and easy to implement. The disclosed embodiment is for communication modules with the same interface definition, such as HPLC&HRF dual-mode communication module, HPLC&Bluetooth dual-mode communication module, HPLC communication module, 4G communication module and many other types. Due to different functions and different design schemes, the power consumption of communication modules also varies greatly. The corresponding specifications have relatively broad requirements for the power consumption range of communication modules. It is difficult to judge whether the power consumption of the communication module is abnormal according to the power consumption range of the specification. Each manufacturer also keeps the module parameters designed by itself confidential, and it is impossible to obtain more accurate parameters. When the communication module is first inserted into the terminal, the terminal will automatically sample the actual signal characteristic value of the communication module through the circuit and algorithm of the main body, and generate the reference signal characteristic value corresponding to the current version model and save it in the storage module of the terminal. The terminal will update the reference signal characteristic value for different situations.
[0068] Furthermore, during the operation of the communication module, the terminal regularly collects actual signal characteristic values and compares them with the saved reference signal characteristic values, and then feeds back the working status, plug-in and unplugging, power consumption, failure, etc. of the terminal's external communication module. For abnormal conditions, the terminal makes its own judgments and takes self-recovery and protection measures to avoid new problems caused by continued abnormal operation of the communication module, records abnormal status information and reports it to the platform to remind management personnel to deal with it in time.
[0069] According to an embodiment of the present invention, an embodiment of a detection method for a communication module is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0070] In this embodiment, a communication module detection method is provided, which is applied to a terminal, and can be specifically applied to a mobile terminal, such as a mobile phone, a tablet computer, etc. Figure 3 is a flow chart of a communication detection method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0071] Step S301, obtaining the current version model of the communication module.
[0072] Specifically, in each communication process between the communication module and the terminal, each communication module has its own corresponding version model, so each time a user inserts its communication module into the terminal, it is necessary to obtain the current version model of the communication module. For example, when user A inserts its communication module into the terminal, the current version model of user A is obtained, and when user B inserts its communication module into the terminal, the current version model of user B is obtained.
[0073] Step S302, determining whether the current version model is a pre-stored version model.
[0074] Specifically, each time the current version model of the communication module of this communication is matched with the version model pre-stored in the controller to determine whether the current version model of the communication module is the pre-stored version model.
[0075] Step S303: if the current version model is not a pre-stored version model, the actual signal characteristic value of the communication module is obtained, and a reference signal characteristic value corresponding to the current version model is generated.
[0076] Specifically, if the current version model is not a pre-stored version model, the actual signal characteristic value of the communication module is obtained, and the reference signal characteristic value corresponding to the current version model is generated. For example, when user A inserts his communication module into the terminal, if the current version model of user A is not a pre-stored version model, the actual signal characteristic value of the communication module is obtained, and the actual signal characteristic value of the communication module is used as the reference signal characteristic value corresponding to the current version model.
[0077] As a specific example, the reference signal characteristic value includes a reference current characteristic value, and the reference current characteristic value includes a reference average current characteristic value and a reference maximum current characteristic value.
[0078] Step S304, if the current version model is a pre-stored version model, obtain the actual signal characteristic value of the communication module, and determine whether the deviation between the actual signal characteristic value of the communication module and the reference signal characteristic value corresponding to the current version model of the communication module is greater than a preset threshold; wherein, if the deviation is not greater than the preset threshold, update the reference signal characteristic value corresponding to the current version model of the communication module; if the deviation is greater than the preset threshold, determine a fault event.
[0079] As a specific example, the actual signal characteristic value of the communication module includes: an actual current characteristic value, and the actual current characteristic value includes an actual average current characteristic value and an actual maximum current characteristic value.
[0080] Specifically, if the current version model is a pre-stored version model, the actual signal characteristic value of the communication module is obtained, and the actual signal characteristic value is compared with the reference signal characteristic value, thereby obtaining the individual difference of the communication module. The preset threshold value can be 10% of the reference average current characteristic value, or other values, which are not specifically limited here. If the deviation between the actual signal characteristic value and the reference signal characteristic value is not greater than the preset threshold, the reference signal characteristic value corresponding to the current version model of the communication module is updated, and if the deviation between the actual signal characteristic value and the reference signal characteristic value is greater than the preset threshold, the fault event is determined. The fault events here include: fault events that the terminal can handle by itself and fault events that the terminal cannot handle by itself (fault events that require professional personnel to check), for example, the fault events that the terminal can handle by itself include abnormal power consumption fault events of the communication module, and events of abnormal pin insertion faults. The fault events that the terminal cannot handle by itself include: short circuit fault events of the power supply circuit of the communication module, open circuit fault events of the power supply circuit of the communication module, damage fault events of the communication module, leakage fault events of the communication module, abnormal insertion fault events of the communication module, etc.
[0081] The detection method of the communication module in the embodiment of the present disclosure compares the current version model of the communication module with the pre-stored version model, further generates the reference signal characteristic value corresponding to the current version model in combination with the reference signal characteristic value corresponding to the current version model, and compares the difference between the deviation between the reference signal characteristic value corresponding to the current version model and the actual signal characteristic value and the preset threshold, and then further updates the reference signal characteristic value corresponding to the current version model of the communication module and determines the fault event. Finally, the embodiment of the present disclosure can accurately extract the reference signal characteristic values corresponding to the communication modules of different version models, which is conducive to the accurate detection of different fault events of the communication module.
[0082] In this embodiment, a communication module detection method is provided, which is applied to a terminal, and can be specifically applied to a mobile terminal, such as a mobile phone, a tablet computer, etc. Figure 4 is a flow chart of a communication detection method according to an embodiment of the present invention. Figure 4 As shown, in the above step S304, updating the reference signal characteristic value corresponding to the current version model of the communication module includes:
[0083] Step S401, determining whether a deviation between an actual average current characteristic value and a reference current characteristic value is greater than a preset threshold.
[0084] The actual signal characteristic value includes an actual current characteristic value, the actual current characteristic value includes an actual average current characteristic value and an actual maximum current characteristic value, and the reference signal characteristic value includes a reference current characteristic value.
[0085] Step S402 , if the deviation between the actual average current characteristic value and the reference current characteristic value is not greater than a preset threshold, an updated reference signal characteristic value is obtained based on the actual current characteristic values sampled multiple times within a preset time.
[0086] Specifically, the reference current characteristic value here refers to the reference average current characteristic value. The reference average current characteristic value is a reference average current characteristic value pre-stored before the update. For example, when user A inserts his communication module into the terminal, the actual average current characteristic value of user A is compared with the pre-stored reference current characteristic value. The pre-stored reference current characteristic value is based on the reference average current characteristic value generated by the previous user B or the updated reference current characteristic value. The deviation between the actual average current characteristic value and the reference current characteristic value is compared to obtain the difference between the two. The preset threshold value can be 10% of the preset average current characteristic value, or other values, which are not specifically limited here.
[0087] Furthermore, the actual average current characteristic value includes an actual static average current characteristic value and an actual dynamic average current characteristic value, and the actual maximum current characteristic value includes an actual maximum dynamic current characteristic value and an actual maximum static current value.
[0088] If the deviation between the actual average current characteristic value and the reference current characteristic value is not greater than the preset threshold, the updated reference signal characteristic value is obtained based on the actual current characteristic value sampled multiple times within the preset time. For example, in the actual current characteristic value acquisition process of the communication module, when the communication module is inserted into the terminal, the power interface of the terminal provides a fixed voltage, the communication module is started, and the actual current characteristic value is generated. The terminal samples the actual current characteristic value once per second, and the sampling continues for 60 minutes. A total of 3600 actual current characteristic values are sampled and temporarily stored. Within this 60 minutes, the terminal sends a command to the communication module, dividing 60 minutes into 6 samplings, each sampling time is 10 minutes, and the communication module maintains dynamic communication for 2 minutes and static for 8 minutes in this 10 minutes. A total of 6 times (dynamic time + static time), calculate the average value of the actual current characteristic value in the dynamic time and static time in each sampling. Therefore, the actual average current characteristic value sampled multiple times within the preset time can be obtained in this way.
[0089] Based on the actual average current characteristic values sampled multiple times within the preset time calculated above, the general specification sets a limit on the charging time of the supercapacitor of the communication module, which shall not exceed 30 minutes. Therefore, the first actual static current average value to the sixth actual static current average value and the first actual dynamic current average value to the sixth actual dynamic current average value can be compared. If both the actual static and actual dynamic current average values change from high to low, it means that the communication module circuit contains a supercapacitor, and the initial charging of the supercapacitor causes a significant change in current consumption; if there is no change from high to low, it means that the communication module circuit does not contain a supercapacitor.
[0090] On the basis of the actual average current characteristic value sampled multiple times within the preset time calculated above, for the communication module without supercapacitor, the sampled current data in the dynamic time and static time of the fourth, fifth, and sixth samplings in the following 30 minutes of continuous sampling for 60 minutes are used as the sample interval to obtain the actual maximum current characteristic value (actual maximum dynamic current characteristic value, actual maximum static current characteristic value) and the actual average current characteristic value (actual average dynamic current characteristic value, actual average static current characteristic value). These extracted information are bound to the model version read as the reference current characteristic value and saved in the storage unit of the control module as the judgment basis for the working status of each subsequent module. For the communication module with supercapacitor, the sampling value of the second second when it is first powered on is additionally recorded as the maximum value of the capacitor (excluding the error caused by the instantaneous current pulse when the power is turned on in the first second), and the model version read is also bound as the standard current characteristic value and saved in the storage unit of the control module.
[0091] In some optional embodiments, the reference signal characteristic value includes a reference maximum current characteristic value; wherein, based on the actual current characteristic values sampled multiple times within a preset time, the updated reference signal characteristic value is obtained, including:
[0092] Step a1, obtaining the actual maximum current characteristic value from the actual current characteristic values sampled multiple times within a preset time.
[0093] Specifically, the preset time can be a preset 60 minutes, and the actual maximum current characteristic value includes the actual maximum dynamic current value and the actual maximum static current value, that is, the actual maximum dynamic current characteristic value and the actual maximum static current characteristic value are obtained from multiple actual current characteristic values within the preset 60 minutes.
[0094] Step a2: selecting the maximum value from the actual maximum current characteristic value and the reference maximum current characteristic value as the current update parameter of the reference maximum current characteristic value.
[0095] Specifically, a maximum value is selected from the actual maximum current characteristic value and the pre-stored reference maximum current characteristic value as the current update parameter of the reference maximum current characteristic value.
[0096] Step a3, updating the reference maximum current characteristic value according to the current update parameter to obtain an updated reference signal characteristic value.
[0097] For example, under the condition that the deviation between the actual average current characteristic value and the reference current characteristic value is no greater than a preset threshold, when user A inserts his communication module into the terminal, the actual maximum current characteristic value is obtained from the actual current characteristic value of user A's communication module sampled multiple times within a preset time, and the maximum value is selected from the actual current characteristic value of user A's communication module and the reference maximum current characteristic value generated or updated by the previous communication module as the current update parameter of the reference maximum current characteristic value of user A's current communication.
[0098] In some other optional implementations, obtaining an updated reference signal characteristic value based on actual current characteristic values sampled multiple times within a preset time includes:
[0099] Step b1, based on the actual average current characteristic values sampled multiple times within a preset time, calculate the average result of the actual average current characteristic values sampled multiple times within the preset time by the communication module of this communication and the reference average current characteristic value.
[0100] Specifically, the actual average current characteristic value included here includes an actual dynamic average current characteristic value and an actual static average current characteristic value, and the reference average current characteristic value includes a reference dynamic average current characteristic value and a reference static current characteristic value. Therefore, based on the actual dynamic average current characteristic value sampled multiple times within the preset time, the average result of the actual dynamic average current characteristic value sampled multiple times within the reference time and the reference dynamic average current characteristic value of the communication module of this communication is calculated, and based on the actual static average current characteristic value sampled multiple times within the reference time, the average result of the actual static average current characteristic value sampled multiple times within the reference time and the reference static average current characteristic value of the communication module of this communication is calculated.
[0101] Step b2: using the average result as the updated reference average current characteristic value.
[0102] For example, when specifically updating the benchmark average dynamic current characteristic value and the benchmark static current characteristic value, the benchmark average current characteristic value is a pre-stored benchmark average current characteristic value. For updating the actual dynamic average current value, under the condition that the deviation between the actual average current characteristic value and the benchmark average current characteristic value is not greater than the preset threshold, the actual dynamic average current characteristic value and the benchmark dynamic average current characteristic value are averaged to replace the previously pre-stored benchmark average dynamic current characteristic value. For static, the actual static average current value and the pre-stored benchmark average static current characteristic value are averaged to replace the previously pre-stored benchmark static average current characteristic value.
[0103] Under the condition that the deviation between the actual average current characteristic value and the reference current characteristic value is not greater than a preset threshold, the embodiment of the present disclosure obtains an updated reference signal characteristic value based on the actual current characteristic values sampled multiple times within a preset time. Ultimately, the embodiment of the present disclosure can accurately update the reference signal characteristic values corresponding to communication modules of different versions and models, which is facilitating the accurate detection of different fault events of the communication module.
[0104] like Figure 5 As shown in FIG. 1 , it is a specific flow chart of updating the reference signal characteristic value corresponding to the current version model of the communication module in the embodiment of the present disclosure. Figure 5 In the communication terminal, each time the user inserts a new communication module into the communication terminal, the current version information is first read to determine whether it is a pre-stored version model. If so, the actual signal characteristic value of the communication module is obtained. If not, the actual signal characteristic value is obtained and bound to the current version model as a set of new reference signal characteristic values. After obtaining the actual signal characteristic value of the communication module, it is determined whether the deviation between the actual signal characteristic value of the communication module and the reference signal characteristic value corresponding to the current version model of the communication module is greater than 10%. If so, a fault event is determined. If not, based on the actual current characteristic values sampled multiple times within a preset time, an updated reference signal characteristic value is obtained, and a new reference signal characteristic value is generated and saved as a reference for subsequent fault state judgment.
[0105] In this embodiment, a communication module detection method is provided, which is applied to a terminal, and can be specifically applied to a mobile terminal, such as a mobile phone, a tablet computer, etc. Figure 6 is a flow chart of a communication detection method according to an embodiment of the present invention. Figure 6 As shown, the actual signal characteristic value includes a current sampling measurement value, a voltage sampling measurement value, and an insertion signal when the communication module is inserted into the interface module, wherein the fault event is determined in the above step S304, including:
[0106] Step S601, determining a fault event according to a current sampling measurement value, an insertion signal when a communication module is inserted into an interface module, and a voltage sampling measurement value.
[0107] Specifically, the fault events here include: fault events that the terminal can handle by itself and fault events that the terminal cannot handle by itself (fault events that need to be inspected by professionals). For example, the fault events that the terminal can handle by itself include abnormal power consumption fault events of the communication module and abnormal insertion pin fault events. The fault events that the terminal cannot handle by itself include: short circuit fault events in the power supply circuit of the communication module, open circuit fault events in the power supply circuit of the communication module, damage fault events in the communication module, leakage fault events in the communication module, and abnormal insertion fault events in the communication module.
[0108] Since communication modules often become loose and fall off, communication is abnormal, and damaged, the communication platform cannot obtain the functional information of the terminal and its communication module. When the fault status is uncertain, it can only arrange personnel to deal with it. The problems of looseness and falling off can be handled by ordinary personnel after checking; in the case of communication abnormalities and damage, professionals are required to check and provide treatment plans. When the communication site situation is completely unclear, arranging the wrong personnel to deal with the problem will result in untimely handling of the fault problem and repeated waste of personnel attendance. Therefore, generating different types of fault events is conducive to quickly locating communication fault problems and helping managers to reasonably arrange personnel for on-site maintenance, rather than blindly dispatching maintenance personnel to blindly detect faults when the fault is unknown, thereby achieving the purpose of reducing maintenance costs and improving detection efficiency.
[0109] In some optional implementations, determining a fault event according to an insertion signal when the communication module is inserted into the interface module includes:
[0110] Step c1, determining whether the insertion signal when the communication module is inserted into the interface module is a high level signal or a low level signal.
[0111] Step c2: if the insertion signal when the communication module is inserted into the interface module is a high level signal, it is determined that the communication module is not inserted into the terminal.
[0112] Step c3, recording the abnormal insertion failure event of the communication module, and reporting the abnormal insertion failure event to the fault handling platform.
[0113] Step c4: if the insertion signal when the communication module is inserted into the interface module is a low level signal, it is determined that the communication module is normal.
[0114] Therefore, when an abnormal insertion fault event occurs in the communication module, the terminal cannot handle it by itself, but reports the abnormal insertion fault event to the fault handling platform and waits for professionals to come and check and give corresponding handling measures, which is conducive to timely and targeted resolution of the fault event.
[0115] In some optional implementations, determining a fault event according to a current sampling measurement value and an insertion signal when the communication module is inserted into the interface module includes:
[0116] Step d1, determining whether the current sampling measurement value is greater than the voltage divider resistor current value and not greater than the second current maximum value;
[0117] Specifically, the current sampling measurement value includes the voltage divider resistor current value I 0 , the second maximum current I 2 , detection current value I, second current maximum value I 2 Refers to the actual maximum current characteristic value when the super capacitor inside the communication module is charged + communicating (without super capacitor, I 2 =I 1 ), I 1 It refers to the actual maximum dynamic current characteristic value when the communication module without supercapacitor communicates.
[0118] Specifically, it is determined whether the detection current value satisfies I 0 <I≤I 2 .
[0119] Step d2: if the detected current value I is equal to the current value of the voltage-dividing resistor, it is determined that an abnormal insertion fault occurs in the communication module, and the abnormal insertion fault of the communication module is recorded as a second fault event;
[0120] Specifically, if I=I0, it is determined that an insertion abnormality fault occurs in the communication module.
[0121] Step d3: If the detected current value is greater than the current consumption value of the voltage-dividing resistor and is not greater than the second current maximum value, it is determined that the communication module is normal.
[0122] Specifically, the detection current value I satisfies I 0 <I≤I 2 , confirm that the communication module is normal.
[0123] like Figure 7 The figure is a flow chart of the communication module plug-in detection in the embodiment of the present disclosure. The above steps c1 to c4, and steps d1 to d3 correspond to Figure 7 Schematic diagram of the Figure 7 In the present invention, the two methods of judging the insertion and removal of the communication module complement each other, thereby improving the accuracy of judging the insertion of the communication module.
[0124] exist Figure 7In the hardware interface of the terminal, the communication module is inserted into the terminal. When a communication module with normal functions is inserted into the terminal, the detection pin is pulled down to provide a low-level signal, which is recognized by the control module detection pin, and the control module determines that a communication module is inserted; when the communication module is inserted, the power is turned on, and the communication module starts to consume current. The control module detects the detection current value I, and the detection current value I is the second maximum current value I 2 If the range is within the range, it means that a communication module is inserted. The level change of the specified pin and the change of the power interface current are used as the basis for judging whether the communication module is inserted normally. On the contrary, the low level signal of the control module detection pin becomes a high level, and I = I 0 , indicating that the communication module is loose and has fallen off. At this time, record the abnormal insertion of the communication module, report it to the fault handling platform, and arrange for ordinary personnel to restore it on site.
[0125] In some optional implementations, the current sampling measurement value includes a detection current value, and the voltage sampling measurement value includes a detection voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes:
[0126] Step e1: if the insertion signal is a low level signal and the communication fails, and both the detection voltage value and the detection current value are zero, it is determined that the fault event is a short circuit fault in the power supply circuit of the communication module.
[0127] Specifically, when the communication module is running, there will be a variety of fault conditions, such as abnormal communication and abnormal power consumption. When the terminal initiates a communication command to the communication module, the control module detects the three signals ADC_I, ADC_V, and DET_Q to calculate I and U for analysis. Among them, I and U are the average values of 3 samples. The detection voltage value is U, and the detection current value is 0. If U=0, I=0, DET_Q is low level, and communication fails; under this condition, the terminal determines that it is short-circuit protection, the power supply of the communication module is short-circuited and damaged, and the short-circuit protection event is recorded and reported to the fault handling platform to remind the management personnel to handle it in time.
[0128] Since the short circuit failure of the communication module is a failure that the terminal cannot handle by itself, the embodiment of the present disclosure executes the above steps, based on the detection voltage value and the detection current value, and combined with the insertion signal and the communication result, it can promptly determine that the communication module has a short circuit failure, record the short circuit failure event, and upload the short circuit failure event to the fault handling platform, and then dispatch relevant short circuit maintenance personnel to perform targeted fault repairs, rather than directly and blindly dispatching maintenance personnel to blindly detect the fault when the fault is unknown, thereby achieving the purpose of reducing maintenance costs and improving detection efficiency.
[0129] In some optional implementations, the current sampling measurement value includes a detection current value and a voltage divider resistor current value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value, wherein the fault event is determined according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, including:
[0130] Step f1, if the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value and the detection current value is equal to the voltage divider resistor current value, it is determined that the fault event is a circuit breaker event in the power supply circuit of the communication module.
[0131] Specifically, the detection voltage value is U, the output voltage value is VOUT, the detection current value is I, and the voltage divider resistor current value is I 0 If U=VOUT,I=I 0 , DET_Q is low level, communication fails; under this condition, the terminal determines that the communication module has a power failure, records the power open circuit event, and reports it to the fault handling platform.
[0132] Since the open circuit fault of the communication module is a fault that the terminal cannot handle by itself, the embodiment of the present disclosure can timely determine the open circuit fault of the communication module by executing the above steps based on the detection voltage value, output voltage value, detection current value and current value of the voltage divider resistor, and combining the insertion signal and communication results, and record the open circuit fault event, upload the open circuit fault event to the fault processing platform, and then dispatch relevant open circuit maintenance personnel to carry out targeted fault maintenance. Instead of blindly dispatching maintenance personnel to blindly detect faults when the fault is unknown, the purpose of reducing maintenance costs and improving detection efficiency is achieved.
[0133] In some optional implementations, the current sampling measurement value includes a detection current value, a voltage divider resistor current value, and a first current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes:
[0134] Step g1, if the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the voltage divider resistor current value and is not greater than the first current maximum value, the power supply module is controlled to be turned off to reset the communication module.
[0135] Specifically, the detection voltage value is U, and the output voltage value is VOUT. If U=VOUT, I 0 <I≤I 1 , DET_Q low level, communication failed; under this condition, I and U are normal, the control power supply module to reset the communication module. 1It refers to the actual maximum dynamic current characteristic value when the communication module without supercapacitor communicates.
[0136] Step g2: when the power supply module is turned on, determine whether the communication module has resumed normal communication.
[0137] Step g3: if the communication module cannot restore normal communication, it is determined that the fault event is an event in which a chip of the communication module is damaged.
[0138] Step g4: if the communication module resumes normal communication, it is determined that the fault event is an event in which a program abnormality fault occurs in the communication module.
[0139] Specifically, when U = VOUT, I 0 <I≤I 1 , DET_Q is low level, communication fails; it is judged as abnormal communication. The power supply module is controlled to be turned off and on by controlling the level change of CTL_P. When the power supply module is turned on, it is judged whether the communication module has restored normal communication. If normal communication can be restored, the program abnormal event is recorded and the log is stored for reference; if it is not restored to normal, it is judged that the communication chip of the communication module is damaged, the hardware abnormal event is recorded, and the fault handling platform is reported.
[0140] Since the communication chip damage in the communication module is a fault that the terminal cannot handle by itself, the embodiment of the present disclosure can timely determine the communication chip damage fault in the communication module based on the detection voltage value, output voltage value, detection current value, voltage divider resistor current value, the first current maximum value of the communication module and the second current consumption maximum value of the communication module by executing the above steps, and record the communication chip damage fault event, upload the communication chip damage fault event to the fault processing platform, and then dispatch maintenance personnel for the relevant communication chip damage fault to carry out targeted fault repair. Instead of directly and blindly dispatching maintenance personnel to blindly detect faults when the fault is unknown, the purpose of reducing maintenance costs and improving detection efficiency is achieved.
[0141] In some optional implementations, the current sampling measurement value includes a detection current value, a voltage divider resistor current value, and a first current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, determining the fault event further includes:
[0142] Step h1, if the insertion signal is a high level signal and the communication is normal, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the voltage divider resistor current value and is not greater than the first current maximum value, it is determined that the fault event is an abnormal insertion pin fault of the communication module.
[0143] Specifically, the detection voltage value is I, the output voltage value is VOUT, and the maximum value of the first current is I 1 , the I 1 It refers to the actual maximum dynamic current characteristic value when the communication module without super capacitor communicates. If U=VOUT,I 0 <I≤I 1 , DET_Q high level. Communication is normal; under this condition, it is determined that the insertion pin is abnormally open, but it does not affect the normal operation of the communication module. Record the abnormal events of the insertion pin for reference.
[0144] Since the pin abnormality failure of the communication module is a failure that the terminal can handle by itself, the embodiment of the present disclosure executes the above steps, based on the detection voltage value, the output voltage value, the detection current value, the first current maximum value and the voltage divider resistor current value, and combines the insertion signal and the communication result, it can promptly determine that the pin abnormality failure of the communication module has occurred, and record the pin abnormality failure event of the communication module, and record the pin abnormality failure event of the communication module on the fault handling platform without reporting it. The terminal can handle the fault by itself, instead of blindly dispatching maintenance personnel to blindly detect the fault in the event of an unknown fault, thereby achieving the purpose of reducing maintenance costs and improving detection efficiency.
[0145] In some optional implementations, the current sampling measurement value includes a detection current value and a second current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, comprises:
[0146] Step i1, if the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the second current maximum value and not greater than the preset power short circuit protection threshold, the power supply module is controlled to be turned off to reset the communication module.
[0147] Specifically, the detection voltage value is U, the output voltage value is VOUT, and the second current maximum value is I 2 , the I 2 Refers to the actual maximum current characteristic value when the super capacitor inside the communication module is charged + communicating (without super capacitor, I 2 =I 1 ), the preset power short circuit protection threshold is I 3 , the I 3 Refers to the communication module power short circuit protection threshold. If U=VOUT, I 2 <I≤I 3 , DET_Q is low level, communication fails; under this condition, the power consumption is abnormal, and the control power supply module is turned off to reset the communication module.
[0148] Step i2, when the power supply module is turned on, determining whether the communication module has resumed normal communication;
[0149] Step i3: if the communication module resumes normal communication, it is determined that the fault event is an abnormal power consumption fault of the communication module;
[0150] Step i4: if the communication module cannot restore normal communication, determine that the fault event is an event in which the communication module is damaged.
[0151] Specifically, on the basis of the above, when the power supply module is turned on, normal communication is restored, abnormal power consumption events are recorded and logs are stored for reference; if it is not restored to normal, it is judged that the communication module is damaged, and CTL_P is controlled to shut down the power supply to prevent other hidden dangers caused by the continuous high current of the communication module, record the communication module damage event, and report it to the fault handling platform.
[0152] Since the communication module damage fault is a fault that the terminal cannot handle by itself, the embodiment of the present disclosure can timely determine the communication module damage fault by executing the above steps based on the second current maximum value of the communication module, the detection current value and the power short-circuit protection threshold, and combined with the insertion signal and the communication result, and record the communication module damage fault event, upload the communication module damage fault event to the fault processing platform, and then dispatch maintenance personnel for the relevant communication module damage fault to carry out targeted fault repair. Instead of directly and blindly dispatching maintenance personnel to blindly detect faults when the fault is unknown, the purpose of reducing maintenance costs and improving detection efficiency is achieved.
[0153] In some optional implementations, the current sampling measurement value includes a detection current value and a second current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, comprises:
[0154] Step j1, if the insertion signal is a low level signal and the communication is normal, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the second current maximum value and less than the preset power supply short circuit protection threshold, it is determined that the fault event is a leakage fault in the communication module.
[0155] Specifically, the detection voltage value is U, the output voltage value is VOUT, and the second current maximum value is I 2 , the I 2 Refers to the actual maximum current characteristic value when the super capacitor inside the communication module is charged + communicating (without super capacitor, I 2 =I 1 ), the preset power short circuit protection threshold is I 3 , the I 3Refers to the communication module power short circuit protection threshold. If U=VOUT, I 2 <I<I 3 Abnormal, DET_Q low level, communication is normal; under this condition, it is determined that the communication module has abnormal leakage, which may be caused by leakage of the super capacitor inside the communication module. Record the communication module leakage event and report it to the fault handling platform for prompt processing.
[0156] Since the leakage fault of the communication module is a fault that the terminal cannot handle by itself, the embodiment of the present disclosure can timely determine the abnormal leakage fault of the communication module by executing the above, based on the detection voltage value, output voltage value, detection current value, second current maximum value and preset power supply short circuit protection threshold, and combined with the insertion signal and communication result, and record the abnormal leakage fault event of the communication module, upload the abnormal leakage fault event of the communication module to the fault processing platform, and then dispatch maintenance personnel of the abnormal leakage fault of the relevant communication module to carry out targeted fault repair. Instead of directly and blindly dispatching maintenance personnel to blindly detect faults in the case of unknown faults, the purpose of reducing maintenance costs and improving detection efficiency is achieved.
[0157] like Figure 8 As shown in the figure, the terminal provides different response methods for different types of communication module failure events. Some abnormal problems can be solved autonomously on the terminal side, reducing the number of manual maintenance times and maintenance costs. The protection measures triggered by the terminal for abnormal power consumption avoid safety hazards caused by overheating of the communication module and ensure the normal operation of the terminal. At the same time, the records of different abnormal events provide guidance for subsequent maintenance.
[0158] In the present embodiment, a detection device of a communication module is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0159] This embodiment provides a detection device for a communication module, such as Fig. 9 As shown, it is applied to a terminal, and the device includes:
[0160] The acquisition module 901 is used to acquire the current version model of the communication module;
[0161] The judging module 902 is used to judge whether the current version model is a pre-stored version model;
[0162] A generating module 903 is used to obtain the actual signal characteristic value of the communication module and generate a reference signal characteristic value corresponding to the current version model if the current version model is not a pre-stored version model;
[0163] Update module 904 is used to obtain the actual signal characteristic value of the communication module if the current version model is a pre-stored version model, and determine whether the deviation between the actual signal characteristic value of the communication module and the reference signal characteristic value corresponding to the current version model of the communication module is greater than a preset threshold; wherein, if the deviation is not greater than the preset threshold, the reference signal characteristic value corresponding to the current version model of the communication module is updated, and if the deviation is greater than the preset threshold, a fault event is determined. The further functional description of each of the above modules and units is the same as that of the above corresponding embodiment, and will not be repeated here.
[0164] The detection device of the communication module in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0165] An embodiment of the present invention further provides a computer device having the above-mentioned detection device for the communication module.
[0166] See also Fig.10 , Fig.10 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.10 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 10 is taken as an example.
[0167] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0168] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0169] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0170] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0171] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0172] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0173] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0174] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for detecting a communication module, characterized in that: Applied to a terminal, the method comprises: Get the current version model of the communication module; Determine whether the current version model is a pre-stored version model; If the current version model is not the pre-stored version model, obtaining an actual signal characteristic value of the communication module, and generating a reference signal characteristic value corresponding to the current version model; If the current version model is the pre-stored version model, obtain the actual signal characteristic value of the communication module, and determine whether the deviation between the actual signal characteristic value of the communication module and the reference signal characteristic value corresponding to the current version model of the communication module is greater than a preset threshold; wherein, if the deviation is not greater than the preset threshold, update the reference signal characteristic value corresponding to the current version model of the communication module; if the deviation is greater than the preset threshold, determine a fault event.
2. The method for detecting a communication module according to claim 1, characterized in that: The actual signal characteristic value includes an actual current characteristic value, the actual current characteristic value includes an actual average current characteristic value and an actual maximum current characteristic value, and the reference signal characteristic value includes a reference current characteristic value; wherein the reference signal characteristic value corresponding to the current version model of the communication module is updated, including: Determine whether a deviation between the actual average current characteristic value and the reference current characteristic value is greater than a preset threshold; If the deviation between the actual average current characteristic value and the reference current characteristic value is not greater than a preset threshold, the updated reference signal characteristic value is obtained based on the actual current characteristic values sampled multiple times within a preset time.
3. The method for detecting a communication module according to claim 2, characterized in that: The reference signal characteristic value includes a reference maximum current characteristic value; wherein, based on actual current characteristic values sampled multiple times within a preset time, the updated reference signal characteristic value is obtained, including: Obtaining an actual maximum current characteristic value from actual current characteristic values sampled multiple times within a preset time; Selecting a maximum value from the actual maximum current characteristic value and the reference maximum current characteristic value as a current update parameter of the reference maximum current characteristic value; The reference maximum current characteristic value is updated according to the current update parameter to obtain the updated reference signal characteristic value.
4. The method for detecting a communication module according to claim 1, characterized in that: The actual signal characteristic value includes a current sampling measurement value, a voltage sampling measurement value, and an insertion signal when the communication module is inserted into the interface module; wherein, determining the fault event includes: A fault event is determined based on the current sampling measurement value, the insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value.
5. The method for detecting a communication module according to claim 4, characterized in that: The current sampling measurement value includes a detection current value, and the voltage sampling measurement value includes a detection voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes: If the insertion signal is a low level signal and the communication fails, and the detection voltage value and the detection current value are both zero, it is determined that the fault event is an event in which a short circuit fault occurs in the power supply circuit of the communication module.
6. The method for detecting a communication module according to claim 4, characterized in that: The current sampling measurement value includes the detection current value and the voltage dividing resistor current value, and the voltage sampling measurement value includes the detection voltage value and the output voltage value, wherein the fault event is determined according to the current sampling measurement value, the insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value, including: If the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value and the detection current value is equal to the voltage divider resistor current value, the fault event is determined to be a circuit breaker event in the power supply circuit of the communication module.
7. The method for detecting a communication module according to claim 4, characterized in that: The current sampling measurement value includes the detection current value, the voltage dividing resistor current value, and the first current maximum value, and the voltage sampling measurement value includes the detection voltage value and the output voltage value; wherein, determining the fault event according to the current sampling measurement value, the insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes: If the insertion signal is a low level signal and the communication fails, and the detection voltage value is equal to the output voltage value, and the detection current value is greater than the voltage divider resistor current value and not greater than the first current maximum value, the power supply module is controlled to be turned off to reset the communication module; When the power supply module is turned on, determining whether the communication module has resumed normal communication; If the communication module cannot restore normal communication, determining that the fault event is an event in which a chip of the communication module is damaged; If the communication module resumes normal communication, determining the fault event is an event in which a program abnormality fault occurs in the communication module; The determining of the fault event according to the current sampling measurement value, the insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value also includes: If the insertion signal is a high-level signal and the communication is normal, and the detection voltage value is equal to the output voltage value, and the detection current value is greater than the voltage divider resistor current value and not greater than the first current maximum value, it is determined that the fault event is an event in which an abnormal insertion pin fault occurs in the communication module.
8. The method for detecting a communication module according to claim 4, characterized in that: The current sampling measurement value includes a detection current value and a second current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes: If the insertion signal is a low level signal and the communication fails, and at the same time the detection voltage value is equal to the output voltage value, and the detection current value is greater than the second current maximum value and not greater than a preset power supply short circuit protection threshold, the power supply module is controlled to be turned off to reset the communication module; When the power supply module is turned on, determining whether the communication module has resumed normal communication; If the communication module resumes normal communication, it is determined that the fault event is an abnormal power consumption fault of the communication module; If the communication module cannot restore normal communication, it is determined that the fault event is an event in which the communication module is damaged.
9. The method for detecting a communication module according to claim 4, characterized in that: The current sampling measurement value includes a detection current value and a second current maximum value, and the voltage sampling measurement value includes a detection voltage value and an output voltage value; wherein, determining a fault event according to the current sampling measurement value, an insertion signal when the communication module is inserted into the interface module, and the voltage sampling measurement value includes: If the insertion signal is a low level signal and the communication is normal, and the detection voltage value is equal to the output voltage value, the detection current value is greater than the second current maximum value and less than the preset power supply short-circuit protection threshold, it is determined that the fault event is an event in which a leakage fault occurs in the communication module.
10. A terminal, characterized in that: include: A power supply module, a current detection module, a voltage detection module, an interface module, a communication module connected in sequence, and a control module connected to the power supply module, the current detection module, the voltage detection module, and the interface module, wherein the communication module is plugged into the interface module to establish a communication connection with the control module; The power supply module is used to provide power supply to the current detection module, the voltage detection module, the communication module and the control module respectively; The voltage detection module is used to detect the voltage sampling measurement value; The current detection module is used to detect the current sampling measurement value; The interface module is used to plug in the communication module; The control module is used to execute the detection method of the communication module according to any one of claims 1 to 9.
Citation Information
Patent Citations
Headset detection method and apparatus, and terminal
CN107295140A
Initialization method and device of optical module and electronic device
CN110187894A
Connector fault detection device and method
CN113253157A
Optical module fault positioning method, device, and equipment and storage medium
CN113852417A
Fault prediction method and fault prediction device for hardware equipment, and electronic equipment
CN116361093A