CN117082170A - On-off test method, test system and shared host - Google Patents

On-off test method, test system and shared host Download PDF

Info

Publication number
CN117082170A
CN117082170A CN202311336427.4A CN202311336427A CN117082170A CN 117082170 A CN117082170 A CN 117082170A CN 202311336427 A CN202311336427 A CN 202311336427A CN 117082170 A CN117082170 A CN 117082170A
Authority
CN
China
Prior art keywords
electronic equipment
host
electronic device
mobile phone
log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311336427.4A
Other languages
Chinese (zh)
Other versions
CN117082170B (en
Inventor
陈梦竹
王浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311336427.4A priority Critical patent/CN117082170B/en
Publication of CN117082170A publication Critical patent/CN117082170A/en
Application granted granted Critical
Publication of CN117082170B publication Critical patent/CN117082170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/08Indicating faults in circuits or apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/0012Details of application programming interfaces [API] for telephone networks; Arrangements which combine a telephonic communication equipment and a computer, i.e. computer telephony integration [CPI] arrangements

Abstract

The embodiment of the application is applied to the technical field of product testing, and provides a startup and shutdown testing method, a testing system and a shared host. In the scene that the electronic equipment is in the on-off test, if the electronic equipment is in the off state, the sharing host charges the electronic equipment. And then, under the condition that the charging time of the electronic equipment reaches the preset time, if the electronic equipment is not in a starting state, the sharing host computer acquires the first log file. And then, the sharing host analyzes the first log file to obtain a first analysis result, wherein the first analysis result is used for indicating the reason that the electronic equipment fails to be started normally. The application can realize automatic test of the on-off of the electronic equipment, saves labor cost and improves test efficiency and test quality.

Description

On-off test method, test system and shared host
Technical Field
The present application relates to the field of product testing technologies, and in particular, to a method and a system for testing on/off of a power supply, and a shared host.
Background
With the continuous development of communication technology, reliability of electronic devices (such as mobile phones) is important. In order to ensure the reliability of the electronic device, a tester may test the electronic device during development and manufacturing of the electronic device. The on-off test of the electronic equipment is one of important reliability test items.
However, the on-off test of the electronic device is usually performed manually at present, which results in a great deal of time and effort being required to perform the on-off test on the electronic device, so that the test efficiency is low.
Disclosure of Invention
The embodiment of the application provides a startup and shutdown testing method, a testing system and a shared host, which are used for solving the problems of low testing efficiency and difficult guarantee of testing quality.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, a power on/off test method is provided, and is applied to a shared host, where the shared host is connected with an electronic device. In the method, the sharing host charges the electronic equipment under the condition that the electronic equipment is in a shutdown state. And then, under the condition that the charging time of the electronic equipment reaches the preset time, if the electronic equipment is not in a starting state, the sharing host computer acquires the first log file. And then, the sharing host analyzes the first log file to obtain a first analysis result, wherein the first analysis result is used for indicating the reason that the electronic equipment fails to be started normally.
According to the application, the on-off test is carried out on the electronic equipment through the shared host, so that the automatic test of the on-off of the electronic equipment can be realized, the test efficiency and the test quality can be improved, the labor cost can be saved, the test state can be monitored in real time, the occurrence of inaccurate test results caused by the lack of concentration of the testers can be reduced, the convenience is provided for the subsequent timely analysis of the failure cause, the running stability of the electronic equipment in the low-power state is improved, and the robustness of the electronic equipment in the on-off environment is improved.
In a possible implementation manner of the first aspect, the electronic device not being in the on state refers to the electronic device being in an off state or the electronic device being in a transition state, where the transition state is a state in which the electronic device is being turned on but not completely turned on.
In a possible implementation manner of the first aspect, the sharing host is connected to a plurality of electronic devices, where the sharing host is used to perform an on-off test on each electronic device.
In the application, the sharing host can be connected with a plurality of electronic devices, namely, the sharing host can simultaneously carry out on-off test on the plurality of electronic devices, so that the test efficiency can be greatly improved, and a large amount of test time is saved.
In a possible implementation manner of the first aspect, the method further includes: and the sharing host controls the electronic equipment to close the charging function through the script program. And then, under the condition that the electronic equipment is closed to have a charging function, the sharing host discharges the electronic equipment until the electronic equipment is in a shutdown state.
In the application, the sharing host and the electronic equipment are always in a connection relationship, that is, under normal conditions, the sharing host continuously supplies power to the electronic equipment, that is, the electronic equipment is in a power-on state for a long time, so that in order to enable the electronic equipment to be in a power-off state to perform power-on and power-off test on the electronic equipment, the sharing host can control the electronic equipment to close a charging function through a script program and discharge the electronic equipment under the condition that the electronic equipment closes the charging function, thus, the power consumption rate of the electronic equipment can be ensured, the situation that the electronic equipment cannot consume electric quantity is avoided, the data line plugging and unplugging work is not needed, the labor cost is saved, and the power-on and power-off test efficiency of the electronic equipment is improved.
In a possible implementation manner of the first aspect, the method may include: in the event that the on-line current of the electronic device is enabled to be turned off, the sharing host determines that the electronic device turns off the charging function.
In the application, the sharing host can close the charging function of the mobile phone in a mode of closing the on-line current, so that the sharing host can be ensured not to supply power to the electronic equipment, and a foundation is provided for the subsequent discharging of the electronic equipment.
In a possible implementation manner of the first aspect, the method may include: under the condition that the on-line current of the electronic device and the enabling of the charger are closed, the sharing host computer determines that the electronic device closes the charging function.
In the application, the sharing host can simultaneously close the charger and the on-line current to reduce the probability of current flowing into the mobile phone and further improve the test efficiency. In addition, because the mobile phone can not display the charging identification after the charger is turned off, in the testing process, a tester can not mistakenly consider that the mobile phone is still being charged, namely the situation of misunderstanding caused by displaying the charging identification can be avoided, and the actual charging situation is consistent with the content displayed by the mobile phone.
In a possible implementation manner of the first aspect, the method further includes: if the electronic equipment is in a starting state, the sharing host computer obtains a second log file in the electronic equipment. And then, the sharing host judges whether a fault log exists in the second log file, and under the condition that the fault log exists in the second log file, the sharing host analyzes the fault log to obtain a second analysis result, wherein the second analysis result is used for indicating the reason that the electronic equipment has a starting abnormality.
After the electronic equipment is started, the sharing host still needs to judge whether the log in the second log file is a fault log or not, if the fault log exists in the second log file, the sharing host can analyze the fault log, so that the comprehensive test of the starting and the stopping of the electronic equipment can be realized, tiny reasons causing abnormal starting caused by the fact that the electronic equipment is in the starting state are omitted, and the accuracy of the starting and stopping test is improved.
In a possible implementation manner of the first aspect, in a case that the second log file includes a plurality of logs, the method further includes: the sharing host detects each log in the plurality of logs to obtain a detection result of each log; the detection result of each log is used for indicating whether the log is a fault log or not.
In a possible implementation manner of the first aspect, the method further includes: and under the condition that the fault log does not exist in the second log file, the sharing host continues to perform at least one on-off test on the electronic equipment.
In the application, if the fault log does not exist in the second log file, the situation that the electronic equipment is started normally at the time and is not started abnormally is indicated, so that in order to improve the accuracy of the startup and shutdown test, the sharing host continues to perform at least one startup and shutdown test on the electronic equipment, thereby ensuring the running stability of the electronic equipment in a low-power state and improving the robustness of the electronic equipment in the startup and shutdown environment.
In a possible implementation manner of the first aspect, the process of continuing to perform the on-off test on the electronic device by the sharing host may specifically include: if the detection results of the continuous preset number of on-off tests indicate that no fault log exists in the second log file, or the number of times of the on-off tests reaches the preset number of times, the sharing host stops on-off testing of the electronic equipment.
In the application, if the detection results of the continuous preset number of on-off tests indicate that no fault log exists in the second log file, or the number of on-off tests reaches the preset number, the on-off test for the mobile phone is completed, so that the sharing host can stop on-off test for the electronic equipment in order to reduce unnecessary power consumption loss.
In a possible implementation manner of the first aspect, the process of analyzing the first log file by the sharing host may specifically include: the sharing host acquires a display interface of the electronic device, wherein the display interface is an interface displayed by the electronic device when the charging time reaches a preset time. And then, the sharing host analyzes the first log file according to the display interface to obtain a first analysis result.
According to the application, the sharing host can be combined with the display interface of the electronic equipment to analyze the first log file, so that the accuracy of determining the first analysis result can be improved, further, the problem improvement can be performed in time according to the first analysis result, and the use experience of the electronic equipment is improved.
In a second aspect, the present application provides a test system, where the test system includes a sharing host and at least one electronic device, where the at least one electronic device is connected to the sharing host, the sharing host is configured to perform an on-off test on the at least one electronic device, and the at least one electronic device is configured to receive a computer instruction sent by the sharing host.
In a third aspect, the present application provides a shared host comprising a memory and one or more processors; the memory is coupled to the processor; the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the shared host to perform the method as described above.
In a fourth aspect, the present application provides an electronic device comprising a charge management module, a battery, a register, a memory, and one or more processors; the charge management module, the battery, the register, the memory, and the processor are coupled; the charging management module is used for charging the battery, the battery is used for storing energy, the register is used for temporarily storing instructions, data and addresses, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method as described above.
In a fifth aspect, the application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method as described above.
In a sixth aspect, the application provides a computer program product for, when run on an electronic device, causing the electronic device to perform the method as described above.
In a seventh aspect, there is provided a chip comprising: the device comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method.
The advantages of the test system according to the second aspect, the shared host according to the third aspect, the electronic device according to the fourth aspect, the computer-readable storage medium according to the fifth aspect, the computer program product according to the sixth aspect, and the chip according to the seventh aspect may be achieved by the above-mentioned test system according to the second aspect, the shared host according to the fourth aspect, the electronic device according to the fourth aspect, and any possible design of the shared host according to the seventh aspect, which are not repeated herein.
Drawings
Fig. 1 is a schematic flow chart of an automatic mobile phone shutdown according to an embodiment of the present application;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic software structure of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a test system according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for testing power on/off according to an embodiment of the present application;
fig. 6 is an interface schematic diagram of a mobile phone screen lock interface according to an embodiment of the present application;
fig. 7 is an interface schematic diagram of an initial interface of a mobile phone according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the description of the present application, unless otherwise indicated, "and/or" in the present application is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural. In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
In some embodiments, the on-off test for the electronic device (such as a mobile phone) is usually performed manually, so that a tester needs to spend a lot of time and effort to perform the on-off test on the electronic device, which makes the test efficiency lower. Moreover, in the process of on-off testing, a tester may have lower testing quality due to the reason of non-strict monitoring, etc., so as to influence the testing result of the electronic equipment and finally influence the use experience of the user.
Specifically, the tester can reduce the electric quantity of the electronic device until the electronic device is automatically powered off. In one example, a tester may reduce the power of an electronic device by standing the electronic device. In another example, in order to enable the electronic device to quickly reduce the electric quantity, the test efficiency is improved, and the tester can reduce the electric quantity of the electronic device by starting any application program (APP) in the electronic device, for example, clicking a video application in the electronic device to play a video.
Then, the tester may charge the electronic device if it is determined that the electronic device has been powered off. And in the process that the tester can charge the electronic equipment, determining whether the electronic equipment can be started normally. It can be appreciated that in the case where the power of the electronic device is a preset power (e.g., 0), the electronic device may be automatically powered off.
For example, as shown in fig. 1, the electronic device is taken as a mobile phone for example, the current electric quantity of the mobile phone is 74%, and the mobile phone is not plugged into a charger, that is, the mobile phone is not in a charging state. After that, the tester can discharge the mobile phone, so that the electric quantity of the mobile phone is reduced to 18%. And then, the tester continues discharging the mobile phone until the mobile phone is automatically powered off. Thereafter, the tester can insert the cell phone into the charger so that the cell phone can be charged. In the process of charging the mobile phone, a tester can determine whether the mobile phone can be started normally.
It can be understood that in the process of performing the on-off test on the electronic device, a tester needs to constantly observe the working state of the electronic device, and manually insert a charger into the electronic device when the electronic device is in the off state. Then, the tester also needs to observe whether the electronic device can be started normally. Therefore, the testing efficiency is reduced, a great amount of time and energy of the tester are wasted, the situation that the testing result is inaccurate due to the fact that the attention of the tester is not concentrated easily occurs, and the stability of the electronic equipment in a low-power state cannot be accurately improved according to the testing result, so that the use experience of a user is finally affected.
Aiming at the problems, in order to improve the test efficiency of the electronic equipment, the embodiment of the application provides a startup and shutdown test method. In the method, a sharing host controls the electronic equipment to close a charging function through a script program, wherein the sharing host is equipment connected with a plurality of electronic equipment. And then, the sharing host discharges the electronic equipment until the electronic equipment is in a shutdown state. And then, the sharing host charges the electronic equipment and records the charging time of the electronic equipment. Under the condition that the charging time length reaches the preset time length, if the electronic equipment is not in a starting-up state, the sharing host machine grabs the first log file. And then, the sharing host computer analyzes the first log file to obtain an analysis result (or called a first analysis result), wherein the analysis result is used for indicating the reason that the electronic equipment fails to be started normally.
In the embodiment of the application, the on-off test is carried out on the electronic equipment through the shared host, so that the automatic test of the on-off of the electronic equipment can be realized, the test efficiency and the test quality can be improved, the labor cost can be saved, the test state can be monitored in real time, the occurrence of inaccurate test results caused by the lack of concentration of the attention of a tester can be reduced, the convenience is provided for the subsequent timely analysis of the failure cause, the running stability of the electronic equipment in a low-power state is improved, and the robustness of the electronic equipment in the on-off environment is improved. In addition, because the sharing host can be connected with a plurality of electronic devices, namely the sharing host can simultaneously carry out on-off test on the plurality of electronic devices, the testing efficiency can be greatly improved, and a large amount of testing time is saved.
The electronic device in the embodiment of the present application may be any electronic device that needs to be powered on and powered off in a low-power state, such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a smart watch, and a smart earphone, and the specific type of the electronic device is not particularly limited.
Fig. 2 is a schematic diagram of a hardware structure of the electronic device 100 according to an embodiment of the present application, as shown in fig. 2, the electronic device 100 may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, cameras 1-N193, a display 194, and the like. The sensor module 180 may include, among other things, a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, and the like.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., WIFI (wireless fidelity) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2. In some embodiments, at least some of the functional modules of the wireless communication module 160 may be disposed in the processor 110.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music through a speaker or to hands-free conversations.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The earphone interface is used for connecting a wired earphone. The earphone interface may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on.
In some embodiments, the storage data area may also store log files generated by an application or process during use of the electronic device 100.
In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (abbreviated as application layer), an application framework layer (abbreviated as framework layer), an Zhuoyun row (Android run) and system library, and a Kernel (Kernel) layer (or referred to as driver layer). The application layer may include a series of application packages.
The application layer may include a series of application packages, among other things. The application layer may include a plurality of application packages. As shown in fig. 3, the application package may be an application such as gallery, map, phone, video, calendar, short message, camera, music, power consumption service, etc. The power consumption service is used for reducing the electric quantity of the electronic equipment so as to enable the electronic equipment to be in a low-electric-quantity state.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a telephony manager, a resource manager, a notification manager, a view system, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android runtimes include core libraries and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: media libraries (media libraries), three-dimensional graphics processing libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), surface managers (surface manager), and the like.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It will be appreciated that the layers and the components contained in the layers in the structure shown in fig. 3 do not constitute a specific limitation of the electronic device 100, i.e. the folding screen device. In other embodiments of the application, the structure may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the application is not limited.
In some embodiments, the electronic device 100 may be connected to the sharing host through a USB interface, so as to monitor the on/off condition of the electronic device. The process of how the shared host performs the on-off test on the electronic device 100 will be described below in connection with the test system shown in fig. 4.
As shown in fig. 4, the test system may include a plurality of electronic devices 100 and a sharing host 200, where the electronic devices 100 are respectively connected to the sharing host 200. After the connection is completed, the sharing host 200 may perform an on-off test on the electronic device 100, and specifically, the sharing host may perform a control operation for the electronic device, for example, the control operation may be to control the electronic device 100 to close a charging function, control any application in the electronic device 100 to open, and the sharing host may monitor an on-off state of the electronic device in real time. Thereafter, the electronic device 100 may receive the computer instruction issued by the sharing host 200, and perform a corresponding operation according to the computer instruction.
The shared host 200 is a terminal to which a plurality of electronic devices can be connected, that is, the shared host 200 can perform the on-off test on the plurality of electronic devices 100 at the same time. It will be appreciated that the number of electronic devices connected to the sharing host 200 is determined according to the number of USB interfaces corresponding to the sharing host 200, for example, if the sharing host is configured with 8 USB interfaces, the sharing host may connect to 8 electronic devices at most.
Based on the electronic equipment described by the above example, the embodiment of the application provides a power on/off test method. The method can be applied to a test scene that the electronic equipment is in a low-power state. The method according to the embodiment of the present application will be described below by taking an electronic device as an example of a mobile phone. Specifically, as shown in fig. 5, the on-off test method may include S501 to S513.
S501, the sharing host controls the mobile phone to close the charging function through a script program.
Specifically, the sharing host can control the mobile phone to close the charging function by using a script program and an android debug bridge (android debug bridge, adb) command. The adb command is a command line tool for operating the mobile phone, and is used for closing the charging function of the mobile phone. In this embodiment, the script program may be a python script. In other embodiments, the script program may be a java script, a VB script, or the like, which is not particularly limited.
In some embodiments, the sharing host may turn off the charging function of the mobile phone by turning off the charger (charger) enabling. It can be understood that if the enabling of the charger is turned off, the USB interface in the mobile phone will not input the dc power in the charger into the mobile phone, and meanwhile, the corresponding charging icon (as shown by the charging icon F in fig. 6) will not be displayed on the display interface of the mobile phone.
In some embodiments, the sharing host may also turn off the charging function of the cell phone by turning off the enabling of the on-line current (hiz). It will be appreciated that if the on-line current is enabled to be turned off, no current will flow into the handset, i.e. the handset will not receive current even if it is connected to the shared host.
In other embodiments, the sharing host may also turn off the charger and enable the on-line current at the same time, so as to reduce the probability of current flowing into the mobile phone, and further improve the test efficiency. In addition, because the mobile phone can not display the charging identification after the charger is turned off, in the testing process, a tester can not mistakenly consider that the mobile phone is still being charged, namely the situation of misunderstanding caused by displaying the charging identification can be avoided, and the actual charging situation is consistent with the content displayed by the mobile phone.
It should be noted that, only when the sharing host establishes a connection with the mobile phone and the mobile phone is in a power-on state, the sharing host can control the mobile phone to close the charging function. It can be understood that after the sharing host establishes connection with the mobile phone, the sharing host can not only control the mobile phone to perform corresponding operation, but also charge the mobile phone. That is, in this embodiment, the sharing host uses the software interface to charge the mobile phone, and it is not necessary to connect other hardware devices (such as a charger) to the mobile phone.
S502, the sharing host discharges the mobile phone.
In some embodiments, the sharing host may discharge the cell phone by invoking a power consuming service. Specifically, after determining that the mobile phone is in a power-on state, the sharing host can control the power consumption service to be turned on. Then, the power consumption service can consume the electric quantity of the mobile phone so as to enable the mobile phone to be in a low-power state until the mobile phone can be automatically powered off. It can be understood that the mobile phone can be automatically powered off under the condition that the electric quantity of the mobile phone is smaller than the preset electric quantity. The preset power may be 1% or 0, which is not limited specifically.
In other embodiments, the sharing host may also discharge the cell phone by turning on any APP in the cell phone. Specifically, after determining that the mobile phone is in a power-on state, the sharing host can control any APP in the mobile phone to be turned on. Then, the sharing host can control the started APP to execute preset operation until the mobile phone can be automatically powered off. The preset operation is preset according to application habits corresponding to each APP, that is, preset operations corresponding to different application programs are different. For example, the preset operation corresponding to the camera APP may be to control the flash to be turned on and perform a photographing operation, or may be to perform a video recording operation, etc. For another example, the preset operation corresponding to the video APP may be playing any video in the video APP, or playing any direct-play content in the video APP, etc.
In an example, the sharing host may control the camera APP in the cell phone to turn on. Then, the sharing host can control the flash lamp in the camera APP to be started, and control the camera APP to execute photographing operation until the mobile phone is automatically powered off. In another example, the sharing host may control the video APP in the cell phone to turn on. Then, the sharing host can control the video APP to play any video until the mobile phone is automatically powered off.
It is to be understood that S501 and S502 may be executed simultaneously or sequentially, and are not limited in particular. For example, the sharing host may first perform S501, that is, after the mobile phone turns off the charging function, the sharing host performs S502. For another example, the sharing host may first perform S502, that is, the sharing host performs S501 again in the course of discharging the mobile phone.
S503, the sharing host judges whether the mobile phone is in a power-off state.
In some embodiments, during discharging the mobile phone, the sharing host may monitor the on-off state of the mobile phone in real time, and if the mobile phone is in the off state, it indicates that the electric quantity of the mobile phone is insufficient to support the continuous operation of the mobile phone, so the sharing host may execute S505 to determine whether the mobile phone can be started normally. If the mobile phone is not in the power-off state, that is, the mobile phone is still in the power-on state, the electric quantity of the mobile phone can still support the continuous operation of the mobile phone, so that the sharing host can execute S504 until the mobile phone is in the power-off state.
S504, the sharing host continues to discharge the mobile phone.
Specifically, after determining that the mobile phone is not in the power-off state, the sharing host needs to continue discharging the mobile phone until the mobile phone can be automatically powered off.
S505, the sharing host charges the mobile phone.
Specifically, after determining that the mobile phone is in a power-off state, the sharing host can charge the mobile phone through the USB interface. It can be understood that the shared host and the mobile phone quality inspection are connected through the USB interface, so that the shared host can directly charge the mobile phone, namely, a tester is not required to insert a charging wire into the mobile phone for charging, and therefore, a large amount of labor cost can be saved, and the testing time is reduced.
S506, the sharing host judges whether the mobile phone is in a starting state or not.
In some embodiments, during charging of the mobile phone, the sharing host may determine whether the mobile phone is in a power-on state, and if the mobile phone is in the power-on state, it indicates that the mobile phone is capable of being powered on normally, so the mobile phone may execute S507 to determine whether an abnormal situation exists after the mobile phone is powered on. If the mobile phone is not in the power-on state, that is, the mobile phone is still in the power-off state or in the transition state, wherein the transition state is the state that the mobile phone is being powered on but not completely powered on, the mobile phone may execute S511 to determine whether the mobile phone is not powered on due to timeout.
It should be noted that, under the condition that the mobile phone displays the lock screen interface or the initial interface, it is indicated that the mobile phone has completed the power-on action, that is, the mobile phone is in the power-on state. The lock screen interface may be the interface shown in fig. 6. The initial interface is an interface on which a plurality of application icons are displayed, and for example, the initial interface may be an interface as shown in fig. 7.
S507, the sharing host acquires a second log file of the mobile phone.
Specifically, after determining that the mobile phone is in the power-on state, the sharing host may obtain the second log file of the mobile phone. The second log file may include a plurality of logs, where the plurality of logs are all log files in the mobile phone startup process. The log may carry the time of recording of the log.
In some embodiments, the plurality of logs may be stored in a log library in the handset. The sharing host may then obtain multiple logs directly from the log library.
It should be noted that, after determining that the mobile phone is in the power-on state, the sharing host may directly control the mobile phone to close the charging function, that is, the sharing host does not need to monitor the electric quantity state of the mobile phone, and as long as the mobile phone is in the power-on state, the sharing host closes the charging function of the mobile phone, that is, the mobile phone executes S507 and simultaneously executes S501, so that a cycle test in a low-electric quantity state may be formed, and the test efficiency is improved.
S508, the sharing host judges whether a fault log exists in the second log file.
Specifically, after the second log file is obtained, the sharing host may detect each log in the second log file, so as to obtain a detection result of the log. The detection result is used for indicating whether the log is a fault log or not. The fault log refers to a log corresponding to an abnormal event which can cause the mobile phone to appear. The abnormal event refers to a time corresponding to the mobile phone failing to be started normally, for example, the abnormal event may be that there is an abnormality in hardware (such as a battery) in the mobile phone, or that there is an abnormality in software in the mobile phone, etc.
In some embodiments, if the detection result of the log indicates that the log is a fault log, it indicates that there is a fault log in the mobile phone, so the mobile phone may execute S509 to analyze the fault log. If the detection results of the logs indicate that the log file is not a fault log, it is indicated that the fault log does not exist in the mobile phone, that is, the mobile phone is started normally at this time and has no abnormal starting condition, so the mobile phone can return to execute the step S501 to continue to perform at least one startup and shutdown test on the mobile phone.
In one possible implementation manner, after determining that the fault log does not exist in the plurality of logs, if the detection results of the continuous preset number of on-off tests all indicate that the fault log does not exist in the second log file, or the number of on-off tests reaches the preset number of times, it is indicated that the on-off test for the mobile phone is completed, so that the sharing host may stop performing the on-off test on the mobile phone. The preset number may be 10, 20, etc., and the preset number may be 50, 100, etc., which is not particularly limited.
S509, the sharing host grabs the fault log.
Specifically, after determining that the log existing in the second log file is a fault log, the sharing host may capture the fault log. The step of capturing the fault log refers to sending the fault log in the mobile phone to the sharing host, that is, removing the fault log from the second log file of the mobile phone. Therefore, the logs in the second log file can be ensured to be normal logs, so that the influence on the next test result is avoided, and the accuracy of the test result is improved.
In some embodiments, after the sharing host captures the fault log, the sharing host may delete the remaining log in the second log file, that is, empty all logs in the second log file, so that the log library may conveniently store the log file generated by the next test, and storage efficiency of the log file is improved.
S510, the sharing host analyzes the fault log to obtain a second analysis result. The second analysis result is used for indicating the reason that the mobile phone has the starting abnormality.
Specifically, after the fault log is captured, the sharing host may analyze the fault log to obtain a second analysis result. The second analysis result is used for indicating the reason that the mobile phone has the abnormal starting-up.
S511, the sharing host determines whether the charging duration of the mobile phone is less than a preset duration.
Specifically, after determining that the mobile phone is not in the power-on state, the sharing host can acquire the charging duration of the mobile phone. It can be understood that the charging duration of the mobile phone is the time corresponding to the current time from the time of powering off to the time of the mobile phone.
In some embodiments, after the charging duration of the mobile phone is obtained, the sharing host may determine whether the charging duration of the mobile phone is less than a preset duration, and if the charging duration of the mobile phone is not less than the preset duration, it indicates that the mobile phone has a power-on abnormality, so the mobile phone may execute S512 to further determine a reason why the mobile phone cannot be powered on normally. If the charging duration of the mobile phone is less than the preset duration, the mobile phone may not be started normally due to insufficient electric quantity, so the mobile phone may return to S505 to continue charging the mobile phone until the charging duration reaches the preset duration or the mobile phone is started successfully, and the mobile phone may obtain the log file in the mobile phone.
The preset duration may be determined according to a startup time of the mobile phone under normal conditions and set by a time (timer) timer, for example, under normal conditions, if the mobile phone is charged for 5 minutes and can be automatically started, the preset duration is only greater than 5 minutes, that is, in order to avoid a small delay in the startup time caused by an error, the preset duration may be 10 minutes, 20 minutes, and the like. It will be appreciated that the timer corresponds to a timer.
S512, the sharing host grabs the first log file of the mobile phone and intercepts the display interface of the mobile phone.
Specifically, after determining that the charging duration of the mobile phone is not less than the preset duration, the sharing host can capture a first log file of the mobile phone and intercept a display interface of the mobile phone. The display interface is an interface displayed by the mobile phone when the charging time of the mobile phone reaches a preset time.
For example, the first log file may include a plurality of logs.
S513, the sharing host combines the display interface to analyze the first log file of the mobile phone, and a first analysis result is obtained. The first analysis result is used for indicating the reason that the mobile phone cannot be started normally.
Specifically, after capturing all log files in the mobile phone, the sharing host can combine the display interface and the first log file to analyze the reason that the mobile phone cannot be started normally. Thus, the accuracy of the determination of the first analysis result can be improved.
In some embodiments, the reason why the mobile phone cannot be powered on normally may be that the charging module in the mobile phone fails, so that the mobile phone cannot be powered on normally. The mobile phone can not be started normally because of the problem of the charging scheme of the mobile phone. After that, the tester can start the mobile phone by disassembling the mobile phone or by externally connecting a battery through a flying lead, so as to ensure that the mobile phone can be started normally.
For example, if the log a in the first log file is "bootstat: canonical boot reason: bootdown, battery", where bootstat in the log a is a start-up file of the test system, canonical boot reason is a standard guiding reason, bootdown is a shutdown, and battery is a battery, the sharing host may determine, according to the log content corresponding to the log a, that the mobile phone cannot be started up normally is a battery reason.
In some embodiments, the sharing host may analyze only the log file in the mobile phone, that is, without combining the display interface to perform analysis, so that the speed of determining the first analysis result may be improved.
In some embodiments, the application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method as described above.
In some embodiments, the application provides a computer program product which, when run on an electronic device, causes the electronic device to perform the method as described above.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. The on-off test method is characterized by being applied to a sharing host, wherein the sharing host is connected with electronic equipment and comprises the following steps:
under the condition that the electronic equipment is in a shutdown state, the sharing host charges the electronic equipment;
under the condition that the charging time of the electronic equipment reaches the preset time, if the electronic equipment is not in a starting state, the sharing host computer acquires a first log file of the electronic equipment;
the sharing host analyzes the first log file to obtain a first analysis result, wherein the first analysis result is used for indicating the reason that the electronic equipment fails to be started normally.
2. The method according to claim 1, wherein the method further comprises:
the sharing host controls the electronic equipment to close a charging function through a script program;
And under the condition that the electronic equipment is closed to have a charging function, the sharing host discharges the electronic equipment until the electronic equipment is in a shutdown state.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
if the electronic equipment is in a starting state, the sharing host acquires a second log file in the electronic equipment;
under the condition that a fault log exists in the second log file, the sharing host computer analyzes the fault log to obtain a second analysis result, wherein the second analysis result is used for indicating the reason that the electronic equipment has a starting abnormality.
4. The method of claim 3, wherein the second log file comprises a plurality of logs, the method further comprising:
the sharing host detects each log in the plurality of logs to obtain a detection result of each log; the detection result of each log is used for indicating whether the log is a fault log or not.
5. A method according to claim 3, characterized in that the method further comprises:
and under the condition that the fault log does not exist in the second log file, the sharing host continues to perform at least one on-off test on the electronic equipment.
6. The method of claim 5, wherein the shared host continues to perform at least one power-on test on the electronic device, comprising:
if the detection results of the continuous preset number of on-off tests indicate that no fault log exists in the second log file, or the number of times of the on-off tests reaches the preset number of times, the sharing host stops on-off testing of the electronic equipment.
7. The method of claim 1, wherein the electronic device not being in an on state refers to the electronic device being in an off state or the electronic device being in a transitional state, wherein the transitional state is a state in which the electronic device is being turned on but not fully turned on.
8. The method of claim 1, wherein the sharing host analyzing the first log file to obtain a first analysis result comprises:
the sharing host acquires a display interface of the electronic equipment, wherein the display interface is an interface displayed by the electronic equipment when the charging time reaches the preset time;
and the sharing host analyzes the first log file according to the display interface to obtain the first analysis result.
9. The test system is characterized by comprising a shared host and at least one electronic device, wherein the at least one electronic device is respectively connected with the shared host, the shared host is used for performing on-off test on the at least one electronic device, and the at least one electronic device is used for receiving a computer instruction sent by the shared host.
10. A shared host, the shared host comprising a memory and one or more processors; the memory is coupled to the processor; the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the shared host to perform the method of any one of claims 1 to 8.
11. A computer readable storage medium comprising computer instructions which, when run on a shared host, cause the shared host to perform the method of any one of claims 1 to 8.
CN202311336427.4A 2023-10-16 2023-10-16 On-off test method, test system and shared host Active CN117082170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311336427.4A CN117082170B (en) 2023-10-16 2023-10-16 On-off test method, test system and shared host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311336427.4A CN117082170B (en) 2023-10-16 2023-10-16 On-off test method, test system and shared host

Publications (2)

Publication Number Publication Date
CN117082170A true CN117082170A (en) 2023-11-17
CN117082170B CN117082170B (en) 2024-03-08

Family

ID=88708415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311336427.4A Active CN117082170B (en) 2023-10-16 2023-10-16 On-off test method, test system and shared host

Country Status (1)

Country Link
CN (1) CN117082170B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012855A (en) * 2010-12-08 2011-04-13 广东威创视讯科技股份有限公司 Method and device for implementing on off test by data acquisition
CN102122202A (en) * 2011-03-01 2011-07-13 华为终端有限公司 Method for automatically starting mobile terminal and mobile terminal
CN102255774A (en) * 2011-06-28 2011-11-23 迈普通信技术股份有限公司 Test system and test method for switch-on and switch-off of communication device as well as fault location method
CN103793306A (en) * 2014-02-28 2014-05-14 珠海迈科电子科技有限公司 Testing method and device for automatic startup and shutdown of electronic products
CN106603790A (en) * 2016-12-29 2017-04-26 上海青橙实业有限公司 Start-up and shutdown test method for mobile terminal
CN107632219A (en) * 2017-10-11 2018-01-26 四川九州电子科技股份有限公司 A kind of automatic switching test system and its method of testing
CN110865920A (en) * 2019-11-05 2020-03-06 RealMe重庆移动通信有限公司 Boot exception processing method and device, electronic equipment and storage medium
WO2022170904A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 Boot method, electronic device, readable storage medium and computer program product
CN115729754A (en) * 2021-09-01 2023-03-03 龙芯中科(成都)技术有限公司 Equipment testing method and device, electronic equipment and storage medium
CN116185737A (en) * 2023-02-24 2023-05-30 东莞忆联信息系统有限公司 DC abnormal power failure detection method and device based on notebook computer and computer equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012855A (en) * 2010-12-08 2011-04-13 广东威创视讯科技股份有限公司 Method and device for implementing on off test by data acquisition
CN102122202A (en) * 2011-03-01 2011-07-13 华为终端有限公司 Method for automatically starting mobile terminal and mobile terminal
CN102255774A (en) * 2011-06-28 2011-11-23 迈普通信技术股份有限公司 Test system and test method for switch-on and switch-off of communication device as well as fault location method
CN103793306A (en) * 2014-02-28 2014-05-14 珠海迈科电子科技有限公司 Testing method and device for automatic startup and shutdown of electronic products
CN106603790A (en) * 2016-12-29 2017-04-26 上海青橙实业有限公司 Start-up and shutdown test method for mobile terminal
CN107632219A (en) * 2017-10-11 2018-01-26 四川九州电子科技股份有限公司 A kind of automatic switching test system and its method of testing
CN110865920A (en) * 2019-11-05 2020-03-06 RealMe重庆移动通信有限公司 Boot exception processing method and device, electronic equipment and storage medium
WO2022170904A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 Boot method, electronic device, readable storage medium and computer program product
CN115729754A (en) * 2021-09-01 2023-03-03 龙芯中科(成都)技术有限公司 Equipment testing method and device, electronic equipment and storage medium
CN116185737A (en) * 2023-02-24 2023-05-30 东莞忆联信息系统有限公司 DC abnormal power failure detection method and device based on notebook computer and computer equipment

Also Published As

Publication number Publication date
CN117082170B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN111095723B (en) Wireless charging method and electronic equipment
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
CN112988213B (en) Program data updating method, electronic equipment and computer storage medium
CN110837343B (en) Snapshot processing method and device and terminal
CN114996168A (en) Multi-device cooperative test method, test device and readable storage medium
CN116231815B (en) Method for controlling charging and electronic equipment
CN114489825B (en) Electronic equipment and shutdown method thereof
CN117082170B (en) On-off test method, test system and shared host
CN114079642B (en) Mail processing method and electronic equipment
WO2021052489A1 (en) Method for determining fault computing core in multi-core processor and electronic device
CN114257502B (en) Log reporting method and device
CN116662024B (en) Inter-process communication monitoring method and device, electronic equipment and storage medium
CN115017001B (en) Method for optimizing endurance performance and electronic equipment
CN116048544B (en) Processing method of popup advertisement, electronic equipment and readable storage medium
CN116048545B (en) Processing method of popup advertisement, electronic equipment and readable storage medium
CN115513571B (en) Control method of battery temperature and terminal equipment
CN116049122B (en) Log information transmission control method, electronic device and storage medium
CN116679900B (en) Audio service processing method, firmware loading method and related devices
CN114006969B (en) Window starting method and electronic equipment
CN115952564B (en) Data writing method and terminal equipment
CN116048629B (en) System service switching method, control device, electronic equipment and storage medium
CN116684520B (en) Shutdown method, electronic equipment, storage medium and chip
CN115767602B (en) Automatic error correction method for equipment protocol subsystem abnormality and electronic equipment
CN116719376B (en) Voltage control method, device, equipment and storage medium
CN117708009A (en) Signal transmission method and electronic equipment

Legal Events

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