Abnormal Boot Detection Method, Device, Terminal Device and Readable Storage Medium
By implanting test marks before assembly of the terminal equipment and detecting the connection status of the target components, the electrical short circuit problem caused by accidental touch and power-on during assembly of the terminal equipment is solved, efficient assembly without additional testing stations is achieved, and the efficiency and safety of the production line are improved.
Patent Information
- Application Number
- CN202111119435.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-09-24
AI Technical Summary
The prior art during the assembly process of terminal equipment, electrical short circuit caused by accidental touch and power-on startup, resulting in equipment damage, and increasing the monitoring of the boot status of the test station increases the assembly time of the production line and reduces the assembly efficiency.
By implanting test marks before the terminal device starts assembly, the connection status of the test marks and the target component is detected when the terminal device is powered on, and whether the device is in an abnormal powered on state is avoided using additional test stations for monitoring.
It reduces production costs, improves assembly efficiency, avoids the risk of electrical short circuits, and improves the safety and efficiency of the assembly process.
Smart Images

Figure CN115866116B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminal device assembly, and particularly to an abnormal startup detection method, device, terminal device, and readable storage medium. Background Art
[0002] Terminal devices include handheld terminals such as mobile phones, and generally are equipped with non-removable batteries. Some mobile phones need to assemble the battery first during production, and then assemble other hardware components. There is a high probability of accidental touch during the assembly process, resulting in the mobile phone being in the startup state during assembly. In this case of live assembly, electrical short circuits are likely to occur, causing damage to the mobile phone.
[0003] In the prior art, in order to avoid assembling the mobile phone in the startup state, a test station is mainly added after the assembly link where accidental touch is likely to occur to test whether the current mobile phone is in the startup state.
[0004] However, this method of adding a test station in the prior art requires adding a test station after each assembly link to effectively monitor the startup state of the mobile phone, which increases the assembly time of the mobile phone production line and reduces the assembly efficiency. Summary of the Invention
[0005] This application provides an abnormal startup detection method, device, terminal device, and readable storage medium to solve the problem of low assembly efficiency of existing terminal devices.
[0006] In a first aspect, an embodiment of this application provides an abnormal startup detection method applied to a terminal device, including:
[0007] In response to the startup of the terminal device, determine whether there is a test mark in the terminal device, where the test mark is written when starting to assemble the terminal device;
[0008] If there is a test mark in the terminal device, output a detection signal to the target serial bus of the terminal device, and obtain a detection result, where the detection result is used to indicate whether a target component is connected to the target serial bus, and the target component is assembled when completing the assembly of the terminal device;
[0009] Determine whether the terminal device is in an abnormal startup state or a non-abnormal startup state according to the detection result.
[0010] In a possible design of the first aspect, the step of, in response to the startup of the terminal device, determining whether there is a test mark in the terminal device includes:
[0011] In response to the startup of the terminal device, read the test parameters stored in the preset storage area of the terminal device, where the test parameters are obtained by testing the terminal device before the start of assembly;
[0012] According to the test parameters, determine whether there is a test mark in the terminal device.
[0013] In another possible design of the first aspect, before determining whether there is a test mark in the terminal device in response to the startup of the terminal device, it further includes:
[0014] Obtain the test result of the human-machine interface test of the terminal device before the start of assembling the terminal device, where the test result is used to indicate whether the human-machine interface of the terminal device is normal or abnormal;
[0015] If the human-machine interface of the terminal device is normal, write the test result as the test mark to the terminal device.
[0016] In still another possible design of the first aspect, the determining whether the terminal device is in an abnormal startup state or a non-abnormal startup state according to the detection result includes:
[0017] According to the detection result, determine whether the target component is assembled in the terminal device;
[0018] If the target component is not assembled in the terminal device, determine that the terminal device is in an abnormal startup state;
[0019] If the target component is assembled in the terminal device, determine that the terminal device is in a non-abnormal startup state.
[0020] In yet another possible design of the first aspect, after determining whether there is a test mark in the terminal device in response to the startup of the terminal device, it further includes:
[0021] If there is no such test mark in the terminal device, determine that the terminal device is in a non-abnormal startup state.
[0022] In yet another possible design of the first aspect, after determining whether the terminal device is in an abnormal startup state or a non-abnormal startup state according to the detection result, it further includes:
[0023] If the terminal device is in an abnormal startup state, control the terminal device to power off.
[0024] In yet another possible design of the first aspect, before determining whether there is a test mark in the terminal device in response to the startup of the terminal device, it further includes:
[0025] Obtain the boot key duration of the terminal device, where the boot key duration is used to indicate the key duration required to trigger the boot of the terminal device;
[0026] Extend the boot key duration according to a preset duration to obtain an extended boot key duration;
[0027] When receiving the boot key signal of the terminal device, calculate the duration of the boot key signal;
[0028] When the duration exceeds the extended boot key duration, control the terminal device to boot.
[0029] In another possible design of the first aspect, the target component is an ambient light sensor.
[0030] In a second aspect, an embodiment of the present application provides an abnormal boot detection device, including:
[0031] A determination module, configured to determine whether there is a test mark in the terminal device in response to the boot of the terminal device, where the test mark is written when starting to assemble the terminal device;
[0032] An output module, configured to output a detection signal to the target serial bus of the terminal device and obtain a detection result if there is a test mark in the terminal device, where the detection result is used to indicate whether a target component is connected to the target serial bus, and the target component is assembled when completing the assembly of the terminal device;
[0033] A determination module, configured to determine whether the terminal device is in an abnormal boot state or a non-abnormal boot state according to the detection result.
[0034] In a third aspect, an embodiment of the present application provides a terminal device, including a memory and at least one processor;
[0035] The memory stores computer execution instructions;
[0036] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the method as described above.
[0037] In a fourth aspect, an embodiment of the present application provides a readable storage medium, where computer instructions are stored in the readable storage medium, and when the computer instructions are executed by a processor, they are used to implement the method as described above.
[0038] In a fifth aspect, an embodiment of the present application provides a program product, including computer instructions, and when the computer instructions are executed by a processor, they implement the method as described above.
[0039] The abnormal startup detection method, device, terminal device, and readable storage medium provided by the embodiments of the present application implant a test mark before the terminal device starts assembly. When the terminal device powers on, if the terminal device is in the assembly process, the mark will be detected, and at the same time, it will also be detected whether the terminal device has completed the assembly of the last component, so as to confirm whether the current terminal device is in the assembly process and further determine whether the terminal device is in an abnormal startup state. There is no need to add a test station to test the power on and off of the terminal device, shortening the assembly time and improving the assembly efficiency of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application and, together with the specification, are used to explain the principles of the present application.
[0041] Figure 1 It is a schematic diagram of the scenario of the abnormal startup detection method provided by the embodiments of the present application.
[0042] Figure 2 It is a schematic flowchart of the first embodiment of the abnormal startup detection method provided by the embodiments of the present application.
[0043] Figure 3 It is a schematic diagram of the assembly of the terminal device provided by the embodiments of the present application.
[0044] Figure 4 It is a schematic flowchart of the second embodiment of the abnormal startup detection method provided by the embodiments of the present application.
[0045] Figure 5 It is a schematic structural diagram of the abnormal startup detection device provided by the embodiments of the present application.
[0046] Figure 6 It is a schematic structural diagram of the terminal device provided by the embodiments of the present application.
[0047] Through the above accompanying drawings, the clear embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0049] First, the terms involved in this application are explained as follows:
[0050] MMI test:
[0051] The Man Machine Interface (MMI) test refers to the mobile phone multimedia interface test or the mobile phone full - function test. It is the last line of defense in mobile phone production and also the most important part of mobile phone quality inspection.
[0052] ALS:
[0053] The Ambient Light Sensor (ALS) can sense the ambient light intensity and notify the control chip on the mobile phone to adjust the backlight brightness of the display screen. The ambient light sensor is generally set in the front of the mobile phone.
[0054] I2C:
[0055] The Inter - Integrated Circuit (I2C) is a serial communication bus. It only needs two wires to transmit information between the devices connected to the bus.
[0056] SOC:
[0057] The System on Chip (SOC) refers to an integrated circuit with a dedicated target, which contains a complete system and all the content of the embedded software.
[0058] Figure 1 The following is a schematic diagram of the scenario for the abnormal startup detection method provided by the embodiment of this application. As Figure 1 shown, this method can be applied to the terminal devices to be shipped on the terminal production line. As Figure 1 shown, taking the mobile phone as an example of the terminal device, there are several workstations on the production line 10 of the terminal device. Each workstation corresponds to different tasks, such as battery assembly, MMI test, ALS board assembly, etc. The mobile phone 11 undergoes assembly, testing and other processes in the workstations of the terminal production line 10 and finally the finished products are conveyed out from the end of the production line 10.
[0059] In practical applications, in order to enhance the sealing of the device and better prevent dust and water, mobile phones generally assemble non - removable batteries. Especially for industry terminals with higher protection level requirements, the structural design of some special terminals requires assembling the battery first and then other components on the terminal. Since the mobile phone 11 has assembled the battery first, it may accidentally touch the power button of the mobile phone during subsequent assembly tasks, resulting in the mobile phone being accidentally powered on. Continuing the assembly in this charged state is likely to cause electrical short - circuit and damage to the mobile phone components, increasing the assembly damage rate.
[0060] In the prior art, in order to avoid accidentally turning on the mobile phone during the assembly process, the measure taken is to add a test station after the assembly link where accidental touch is likely to occur, and judge the on / off state of the mobile phone by detecting the single-board voltage and current. This method can only monitor the previous assembly link before the test station and cannot achieve full-assembly link monitoring. If a test station is added after each assembly link, it will increase the production cost and also affect the assembly efficiency.
[0061] In view of the above problems, the abnormal boot detection method, device, terminal device and readable storage medium provided by the embodiments of the present application implant a test mark before the terminal device starts to be assembled. If the terminal device is powered on, the test mark will be detected, and at the same time when the test mark is detected, it will continue to detect whether the terminal device is assembled with the last component that needs to be assembled, so as to confirm whether the terminal device is in the assembly process. If it is in the assembly process, it is determined that the current is an abnormal boot state. This avoids using a test station to test the on / off state of the mobile phone, reduces the production cost, and improves the assembly efficiency.
[0062] Next, the technical solutions of the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0063] Figure 2 FIG. is a schematic flowchart of the first embodiment of the abnormal boot detection method provided by the embodiments of the present application. This method can be applied to a terminal device, such as Figure 2 shown, and the method may specifically include the following steps:
[0064] S201. In response to the terminal device being powered on, determine whether there is a test mark in the terminal device.
[0065] Wherein, the test mark is written when starting to assemble the terminal device. Exemplarily, before starting to assemble the terminal device, the terminal device can be subjected to software testing to obtain a software test result as the test mark and write it into the terminal device.
[0066] Specifically, the terminal device refers to an unfinished or semi-finished product assembled with a battery, which still needs to perform a series of assembly, testing, packaging and other process flows on the production line, and finally obtain a qualified product that can leave the factory. However, after the terminal device is assembled with the battery, the terminal device can be accidentally turned on during the subsequent assembly links after the battery is assembled.
[0067] Exemplarily, the assembly of the terminal device can be divided into multiple stages, specifically including assembling the bottom case, assembling the optical sensor, assembling the front case, etc. The testing of the terminal device can be divided into software testing, hardware testing, etc.
[0068] Exemplarily, before the terminal device is assembled, it can be tested first, or it can be tested after assembly. When testing, the terminal device can be in the powered-on state. However, during the assembly process, since electrical short circuits are likely to occur, generally the terminal device should be in the powered-off state.
[0069] In this embodiment, when the terminal device is powered on, it will trigger the software built into the terminal device to automatically detect whether there is a test mark in the terminal device.
[0070] Exemplarily, the terminal device is in the powered-off state when the assembly starts. There is a power button set on the terminal device, and the power button may be accidentally touched during the assembly process, thus triggering the terminal device to power on.
[0071] S202: If there is a test mark in the terminal device, output a detection signal to the target serial bus of the terminal device and obtain a detection result.
[0072] Among them, the detection result is used to indicate whether a target component is connected to the target serial bus, and the target component is assembled when the terminal device is assembled.
[0073] Exemplarily, the target component is the last component assembled by the terminal device. When the target component is assembled to the terminal device, the terminal device completes the entire assembly process and no further assembly is performed. Exemplarily, the target component can be an ambient light sensor.
[0074] In this embodiment, the terminal device is equipped with an SOC. When assembling the target component, the target component needs to establish a communication connection with the SOC through the target serial bus. If the target component establishes a connection with the SOC, it means that the target component is assembled, and at the same time, it also indicates that the entire assembly process is completed. Among them, the built-in software can be carried on the SOC.
[0075] Exemplarily, the target serial bus can be an I2C bus.
[0076] Exemplarily, if the target component is an ambient light sensor, the detection signal can be a light intensity detection signal. When the SOC outputs the light intensity detection signal to the target serial bus, if the other end of the target serial bus is not connected to the ambient light sensor, no light intensity data will be fed back to the SOC. If the other end of the target serial bus is connected to the ambient light sensor, the current ambient light intensity will be fed back to the SOC.
[0077] S203: Determine whether the terminal device is in an abnormal power-on state or a non-abnormal power-on state according to the detection result.
[0078] Exemplarily, if the detection result indicates that the target serial bus is connected to the target component, it means that the terminal device has completed all the assembly steps. At this time, the terminal device may be performing software testing, which belongs to the non-abnormal startup state. If the detection result indicates that the target serial bus is not connected to the target component, it means that the terminal device is still in the assembly process, which belongs to the abnormal startup state.
[0079] By detecting whether there is a test mark and whether the target component is assembled in the powered-on terminal device in the embodiments of the present application, it is possible to accurately determine whether the terminal device is in the assembly process, so as to determine whether the terminal device is currently starting up abnormally. There is no need to set up an additional test station on the production line to test whether the terminal device is powered on, reducing production costs and also reducing the process flow, improving the assembly efficiency.
[0080] On the basis of the above implementation, in some embodiments, the above step S201 can be specifically implemented through the following steps:
[0081] In response to the startup of the terminal device, read the test parameters stored in the preset storage area of the terminal device;
[0082] According to the test parameters, determine whether there is a test mark in the terminal device.
[0083] Among them, the test parameters are obtained by testing the terminal device before the start of assembly.
[0084] In this embodiment, in the previous test link before the start of assembly of the terminal device, the obtained test result can be used as a test mark and stored in the preset storage area of the terminal device. Exemplarily, the preset storage area can be a parameter area. The preset storage area can store the test parameters obtained from multiple test links.
[0085] Exemplarily, the test parameters can be obtained by performing a power-on test / semi-finished product test on the terminal device. When there is a test mark in the test parameters, it means that the terminal device has entered the assembly process.
[0086] Figure 3 For the assembly schematic diagram of the terminal device provided by the embodiments of the present application, as Figure 3 shown, the terminal device 31 may go through multiple process links on the production line 30, such as including a test link 32 and an assembly link 33.
[0087] Among them, the test link 32 at least includes a first test link and a second test link, and the assembly link 33 at least includes a first assembly link and a second assembly link. The first test parameters obtained from the first test link can be stored in the preset storage area, and the second test parameters obtained from the second test link can be stored in the preset storage area.
[0088] In this embodiment, the second test session is not any one of the test sessions 32. Specifically, it refers to the last test session before the terminal device 31 is about to enter the assembly session 33, and the test mark refers to the second test parameter of this second test session. The first assembly session is not any one of the assembly sessions 33 either. Specifically, it refers to the first assembly session that the terminal device 31 experiences when entering the assembly session 33.
[0089] In the embodiment of the present application, by using the test parameters obtained from the test of the last test session as the test mark and storing them in the preset storage area of the terminal device, when the terminal device is powered on, its built-in software can determine that it is not currently in the test session but may be in the assembly session by reading the test mark, which is convenient for the software to subsequently determine whether it is in an abnormal power-on state, avoiding using the test station to perform power-on and power-off tests on the terminal device, reducing production costs, and improving assembly efficiency.
[0090] Furthermore, the above abnormal power-on detection method may specifically further include the following steps:
[0091] Obtain the test result obtained from the human-machine interface test of the terminal device before starting to assemble the terminal device;
[0092] If the human-machine interface of the terminal device is normal, use the test result as the test mark and write it into the terminal device.
[0093] Among them, the test result is used to indicate whether the human-machine interface of the terminal device is normal or abnormal.
[0094] In this embodiment, the human-machine interface test is the MMI test. The MMI test can be used as the above-mentioned second test session. If the terminal device passes the MMI test, use the test parameters of the MMI test as the test mark and write them into the terminal device.
[0095] Among them, the MMI test specifically includes testing screen display, keyboard keys, audio loopback, motor vibration, etc.
[0096] In the embodiment of the present application, by using the test result of the MMI test as the test mark and writing it into the terminal device, the test session can be optimized, the rework rate during the test process can be reduced, and the test efficiency can be improved. At the same time, it is also convenient for the subsequent software to determine whether the terminal device is in the assembly session according to its test result, avoiding using the test station to monitor the power-on and power-off states of the terminal device, reducing production costs, and improving production efficiency.
[0097] In some embodiments, the above step S203 may be specifically implemented through the following steps:
[0098] According to the detection result, determine whether the target component is assembled on the terminal device;
[0099] If the target component is not assembled in the terminal device, it is determined that the terminal device is in an abnormal boot state;
[0100] If the target component is assembled in the terminal device, it is determined that the terminal device is a non-abnormal boot device.
[0101] In this embodiment, the target component is the last component assembled in the terminal device during the assembly process. After the terminal device completes the assembly of the target component, the entire assembly process is completed and it enters subsequent other production processes.
[0102] In the embodiment of the present application, by determining whether the target component is assembled in the terminal device, it can be determined whether the terminal device is currently in the assembly process of the production line. If the target component is not assembled, it means that the terminal device is still in the assembly process, and the boot at this time will be determined as an abnormal boot. If the target component is assembled, it means that the terminal device has completed the assembly of all components and left the assembly process, and the boot at this time will not be determined as an abnormal boot. It can avoid setting up a test station in the assembly process to test whether the terminal device is in an abnormal boot state, reduce the assembly cost, and at the same time improve the assembly efficiency.
[0103] Exemplarily, on the basis of the above embodiment, in some embodiments, the above abnormal boot detection method further includes the following steps:
[0104] If there is no test mark in the terminal device, it is determined that the terminal device is in a non-abnormal boot state.
[0105] In this embodiment, during the production process of the terminal device, it will go through multiple processes when flowing on the production line. Only when there is a test mark in the terminal device and the terminal device has not completed the assembly of the target component, can it be determined that the terminal device is currently in the assembly process. Other situations all belong to the non-assembly process. Exemplarily, the non-assembly process includes the test process, etc.
[0106] Among them, if there is no test mark in the terminal device, it means that the terminal device is in the non-assembly process, and the terminal device can be powered on for software testing, etc.
[0107] In the embodiment of the present application, by detecting the test mark, it can quickly determine whether the current terminal device is in an abnormal boot state and improve the detection efficiency.
[0108] Figure 4 This is a schematic flowchart of the second embodiment of the abnormal boot detection method provided by the embodiment of the present application. As Figure 4 shown, the method includes the following steps:
[0109] S401. In response to the boot of the terminal device, determine whether there is a test mark in the terminal device.
[0110] S402. If there is a test flag in the terminal device, output a detection signal to the target serial bus of the terminal device to obtain a detection result.
[0111] S403. Determine whether the terminal device is in an abnormal startup state or a non-abnormal startup state according to the detection result.
[0112] S404. If the terminal device is in an abnormal startup state, control the terminal device to power off.
[0113] Wherein, the test flag is written when starting to assemble the terminal device. The detection result is used to indicate whether a target component is connected to the target serial bus, and the target component is assembled when the assembly of the terminal device is completed.
[0114] In this embodiment, steps S401 to S403 are similar to the above steps S201 to S203 and will not be elaborated here. In step S404, when the terminal device is in an abnormal startup state, the controller of the terminal device can directly control the power off to shut down the terminal device.
[0115] By controlling the shutdown of the terminal device in the embodiment of the present application, it is possible to avoid accidental startup during the assembly process, reduce the risk of electrical short circuit during the assembly process, and improve the safety of the terminal device during the assembly process.
[0116] Exemplarily, on the basis of the above embodiment, in some embodiments, the above abnormal startup detection method further includes the following steps:
[0117] Obtain the startup key press duration of the terminal device;
[0118] According to a preset duration, extend the startup key press duration to obtain an extended startup key press duration;
[0119] When receiving the startup key signal of the terminal device, calculate the duration of the startup key signal;
[0120] When the duration exceeds the extended startup key press duration, control the terminal device to start up.
[0121] Wherein, the startup key press duration is used to indicate the key press duration required to trigger the startup of the terminal device. Exemplarily, the terminal device is provided with a power button, and the startup key press duration is the press duration required to press the power button to trigger the startup of the terminal device. For example, the press duration is 400 milliseconds.
[0122] Exemplarily, the preset duration can be 4 seconds. If the startup key press duration is 400 milliseconds, the extended startup key press duration can be 4 seconds + 400 milliseconds.
[0123] In this embodiment, the power-on button signal can be generated by pressing the power button of the terminal device, and the duration of the power-on button signal indicates the duration of pressing the power button.
[0124] In the embodiment of the present application, by extending the power-on button duration, during the assembly process of the terminal device, some short-duration accidental touches of the power button during the assembly process can be filtered out. Only when the power button is accidentally touched for a long time, the terminal device will power on, which can reduce the probability of accidental power-on of the terminal device and avoid the problem of electrical short circuit and component damage caused by accidental power-on during the assembly process.
[0125] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0126] Figure 5 It is a schematic structural diagram of an abnormal power-on detection device provided by an embodiment of the present application. The abnormal power-on detection device can be integrated into the terminal device, or can be independent of the terminal device and cooperate with the terminal device to complete the technical solution of the present application. As Figure 5 shown, the abnormal power-on detection device 50 includes a determination module 51, an output module 52, and a determination module 53.
[0127] Among them, the determination module 51 is used to determine whether there is a test mark in the terminal device in response to the power-on of the terminal device. The output module 52 is used to output a detection signal to the target serial bus of the terminal device and obtain a detection result if there is a test mark in the terminal device. The determination module 53 is used to determine whether the terminal device is in an abnormal power-on state or a non-abnormal power-on state according to the detection result.
[0128] Among them, the test mark is written when starting to assemble the terminal device, and the detection result is used to indicate whether a target component is connected to the target serial bus. The target component is assembled when the assembly of the terminal device is completed.
[0129] In some embodiments, the above determination module 51 can specifically be used for:
[0130] In response to the power-on of the terminal device, read the test parameters stored in the preset storage area of the terminal device.
[0131] According to the test parameters, determine whether there is a test mark in the terminal device.
[0132] Among them, the test parameters are obtained by testing the terminal device before starting the assembly.
[0133] In some embodiments, the above abnormal power-on detection device 50 further includes a mark writing module, which is used for:
[0134] Obtain the test results obtained from the human-machine interface test of the terminal device before starting to assemble the terminal device.
[0135] If the human-machine interface of the terminal device is normal, write the test results as a test mark to the terminal device.
[0136] Among them, the test results are used to indicate whether the human-machine interface of the terminal device is normal or abnormal.
[0137] In some embodiments, the above determination module 53 can specifically be used for:
[0138] Determine whether the terminal device is assembled with a target component according to the detection result;
[0139] If the terminal device is not assembled with the target component, determine that the terminal device is in an abnormal startup state;
[0140] If the terminal device is assembled with the target component, determine that the terminal device is a non-abnormal startup device.
[0141] In some embodiments, the above abnormal startup detection device 50 further includes a first determination module, which is used to determine that the terminal device is in a non-abnormal startup state if there is no test mark in the terminal device.
[0142] In some embodiments, the above abnormal startup detection device 50 further includes a power-off module, which is used to control the terminal device to power off if the terminal device is in an abnormal startup state.
[0143] In some embodiments, the above abnormal startup detection device 50 further includes a delay module, which is used for:
[0144] Obtain the startup button duration of the terminal device, and the startup button duration is used to indicate the button holding time required to trigger the startup of the terminal device;
[0145] Extend the startup button duration according to a preset duration to obtain an extended startup button duration;
[0146] When receiving the startup button signal of the terminal device, calculate the duration of the startup button signal;
[0147] When the duration exceeds the extended startup button duration, control the terminal device to start up.
[0148] In some embodiments, the above target component is an ambient light sensor.
[0149] The device provided by the embodiments of the present application can be used to execute the methods in the above embodiments, and its implementation principles and technical effects are similar, and will not be elaborated here.
[0150] It should be noted that the division of each module of the above device is only a division of logical functions. In actual implementation, all or part of them can be integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also all be implemented in the form of hardware; or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the determination module can be a separately established processing element, or can be integrated in a certain chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and the function of the above determination module can be called and executed by a certain processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together or can be independently implemented. Here, the processing element can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by the integrated logic circuit in the processor element or the instruction in the form of software.
[0151] For example, the above modules can be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. Again, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0152] Figure 6 Schematic diagram of the structure of the terminal device provided in the embodiment of the present application. As Figure 6 shown, the terminal device 60 includes: at least one processor 61, a memory 62, a bus 63, and a communication interface 64.
[0153] Among them: the processor 61, the communication interface 64, and the memory 62 communicate with each other through the bus 63.
[0154] The communication interface 64 is used to communicate with other devices. The communication interface includes a communication interface for data transmission and a display interface or an operation interface for human-computer interaction, etc.
[0155] A processor 61 for executing computer-executable instructions stored in a memory 62, and specifically can execute relevant steps in the method described in the above embodiments.
[0156] The processor 61 may be a central processing unit, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the terminal device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0157] A memory 62 for storing computer-executable instructions. The memory may include a high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
[0158] This embodiment also provides a readable storage medium storing computer instructions. When at least one processor of the terminal device executes the computer instructions, the terminal device executes the abnormal power-on detection method provided by the above various embodiments.
[0159] This embodiment also provides a program product including computer instructions stored in a readable storage medium. At least one processor of the terminal device can read the computer instructions from the readable storage medium, and the execution of the computer instructions by at least one processor enables the terminal device to implement the abnormal power-on detection method provided by the above various embodiments.
[0160] In this application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after; in a formula, the character " / " represents a "division" relationship between the associated objects before and after. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple.
[0161] It should be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. In the embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the sequence of execution, and the execution sequence of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0162] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An abnormal startup detection method, characterized in that, Applied to a terminal device, including: In response to the startup of the terminal device, determine whether there is a test mark in the terminal device, where the test mark is written when starting to assemble the terminal device; If there is a test mark in the terminal device, output a detection signal to the target serial bus of the terminal device to obtain a detection result, where the detection result is used to indicate whether a target component is connected to the target serial bus, and the target component is assembled when the assembly of the terminal device is completed; According to the detection result, determine whether the target component is assembled in the terminal device; If the target component is not assembled in the terminal device, determine that the terminal device is in an abnormal startup state; If the target component is assembled in the terminal device, determine that the terminal device is in a non-abnormal startup state.
2. The method according to claim 1, wherein The step of, in response to the startup of the terminal device, determining whether there is a test mark in the terminal device includes: In response to the startup of the terminal device, read the test parameters stored in the preset storage area of the terminal device, where the test parameters are obtained by testing the terminal device before starting the assembly; According to the test parameters, determine whether there is a test mark in the terminal device.
3. The method according to claim 1, wherein Before the step of, in response to the startup of the terminal device, determining whether there is a test mark in the terminal device, it further includes: Obtain the test result of the human-machine interface test of the terminal device before starting to assemble the terminal device, where the test result is used to indicate whether the human-machine interface of the terminal device is normal or abnormal; If the human-machine interface of the terminal device is normal, use the test result as the test mark and write it into the terminal device.
4. The method according to claim 1, wherein After the step of, in response to the startup of the terminal device, determining whether there is a test mark in the terminal device, it further includes: If there is no such test mark in the terminal device, determine that the terminal device is in a non-abnormal startup state.
5. The method according to claim 1, characterized in that, After determining that the terminal device is in an abnormal startup state or a non-abnormal startup state according to the detection result, it further includes: If the terminal device is in an abnormal startup state, control the terminal device to power off.
6. The method according to claim 1, characterized in that, Before the step of, in response to the startup of the terminal device, determining whether there is a test mark in the terminal device, it further includes: Obtain the startup button duration of the terminal device, where the startup button duration is used to indicate the duration of the button press required to trigger the startup of the terminal device; According to a preset duration, extend the startup button duration to obtain an extended startup button duration; When receiving the startup button signal of the terminal device, calculate the duration of the startup button signal; When the duration exceeds the extended startup button duration, control the terminal device to start up.
7. The method according to claim 1, wherein The target component is an ambient light sensor.
8. An abnormal startup detection device, characterized in that, Including: A determination module, configured to, in response to the startup of the terminal device, determine whether there is a test mark in the terminal device, where the test mark is written when starting to assemble the terminal device; An output module, configured to output a detection signal to a target serial bus of the terminal device and obtain a detection result if a test flag exists in the terminal device, where the detection result is used to indicate whether a target component is connected to the target serial bus, and the target component is assembled when assembling the terminal device; A determination module, configured to determine whether the terminal device is in an abnormal startup state or a non-abnormal startup state according to the detection result; Specifically, the determination module is configured to determine whether the target component is assembled in the terminal device according to the detection result; if the target component is not assembled in the terminal device, it is determined that the terminal device is in an abnormal startup state; if the target component is assembled in the terminal device, it is determined that the terminal device is in a non-abnormal startup state.
9. A terminal device, characterized in that, It includes a memory and at least one processor; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method according to any one of claims 1-7.
10. A readable storage medium, characterized in that, Computer instructions are stored in the readable storage medium, and when the computer instructions are executed by a processor, they are used to implement the method according to any one of claims 1-7.
11. A program product, comprising computer instructions, characterized in that, When the computer instructions are executed by a processor, the method according to any one of claims 1-7 is implemented.
Citation Information
Patent Citations
Method, device and system for preventing error starting-up and mobile terminal
CN104869235A
Log generation method, terminal equipment and storage medium
CN112783743A