Test method, test system and electronic device
By using a communication interface to automatically test the screen projection function on the electronic device quality inspection line, the high cost and instability caused by manual testing have been solved, and the standardization and quality uniformity of screen projection testing have been achieved.
Patent Information
- Application Number
- CN202411759015.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2044-12-03
AI Technical Summary
In the existing technology, the screen projection function test of electronic devices relies on manual observation, which leads to high labor costs and unstable judgment standards, affecting the uniformity of the quality of the finished products.
By using a communication interface on the quality inspection line to transmit video data to the testing equipment, the testing equipment automatically detects and generates results indicating whether the video is qualified or abnormal for projection playback, reducing manual intervention.
This reduces the labor costs of screen mirroring function testing and improves the uniformity of testing standards and the consistency of electronic equipment quality after leaving the factory.
Smart Images

Figure CN119232921B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and in particular to a test method, a test system, and an electronic device. Background Technology
[0002] In addition to playing multimedia files such as images and videos on their own screens, electronic devices also need to use their screen mirroring function in some scenarios (such as meetings and parties) to project the multimedia files played on the electronic device onto a connected external display device for display.
[0003] Before electronic devices leave the factory, their screen mirroring function needs to be tested to ensure that the devices can perform this function correctly after leaving the factory. Currently, the testing method for the screen mirroring function of electronic devices is to manually observe whether the playback on the external display device is satisfactory after the screen mirroring function is activated.
[0004] However, manual testing requires high labor costs, and the judgment standards for manually testing the screen projection function are prone to instability, resulting in low uniformity of the quality of electronic devices leaving the factory. Summary of the Invention
[0005] This application provides a testing method, testing system, and electronic device that can eliminate the manual cost of testing screen projection functions and improve the uniformity of screen projection testing standards.
[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0007] Firstly, a testing method is provided. This testing method is applied to a first electronic device. The first electronic device includes a communication interface, through which it is coupled to a second electronic device. The testing method includes: during the playback of a video file, the first electronic device provides video data to the second electronic device through the communication interface, enabling the second electronic device to detect the video data and obtain a detection result. The first electronic device uses the communication interface to read the detection result and generates a test result indicating whether the screen projection playback of the first electronic device is qualified or abnormal.
[0008] This application uses the example of a first electronic device including a mobile phone and a second electronic device including a test device for illustration.
[0009] In the present application, in the quality inspection pipeline before the mobile phone is shipped, the communication interface of the mobile phone provides video data played by screen projection to the test equipment by using the DP line, the test equipment detects the video data provided by the mobile phone and returns the detection result to the mobile phone, and the mobile phone determines whether the screen projection function test is qualified based on the detection result. In this way, the manual cost of testing the screen projection function test can be saved, and the uniformity of the screen projection test standard and the uniformity of the screen projection quality of the mobile phone can be improved.
[0010] In some possible implementation manners of the first aspect, the first electronic device reads the detection result, and generates a test result indicating that the screen projection playing of the first electronic device is qualified or abnormal, including: the first electronic device reads the detection result, the detection result including a plurality of detection values of different digits, and the detection values of different digits corresponding to different detection sub-results. In the case that each detection value in the detection result indicates a success, the first electronic device generates a test result indicating that the screen projection playing of the first electronic device is qualified; or in the case that at least one detection value in the detection result indicates an abnormality, the first electronic device generates a test result indicating that the screen projection playing of the first electronic device is abnormal.
[0011] In the present embodiment, each detection value of each digit in the detection result indicates a different detection sub-result. Therefore, the mobile phone can determine which detection value of which digit indicates an abnormality by obtaining the detection result, and then the mobile phone can determine which detection sub-result is abnormal, which helps to determine the reason for the abnormal screen projection playing of the mobile phone.
[0012] In some possible implementation manners of the first aspect, after the test result is generated, the method further includes triggering a preset starting process to perform a next test.
[0013] In the quality inspection pipeline, in the case that there are other quality inspection items after the test of the screen projection function of the mobile phone, after the mobile phone reads the detection result provided by the test equipment and determines that the test of the screen projection function of the mobile phone is qualified, the starting process of the next quality inspection item can be automatically triggered, thereby improving the quality inspection efficiency of the mobile phone.
[0014] In a second aspect, a test method is provided. The test method is applied to a second electronic device, and the second electronic device is coupled with the first electronic device. The method includes: the second electronic device obtains video data provided by the first electronic device. The second electronic device detects the video data to obtain a detection result. The detection result includes at least one of an image resolution detection sub-result, an image frame rate detection sub-result, and an audio detection sub-result. The second electronic device provides the detection result to the first electronic device, so that the first electronic device generates a test result indicating that the screen projection playing of the first electronic device is qualified or abnormal.
[0015] In the present application, in the quality inspection pipeline before the mobile phone is shipped, the communication interface of the mobile phone provides video data played by screen projection to the test equipment by using the DP line, the test equipment detects the video data provided by the mobile phone and returns the detection result to the mobile phone, and the mobile phone determines whether the screen projection function test is qualified based on the detection result. In this way, the manual cost of testing the screen projection function test can be saved, and the uniformity of the screen projection test standard and the uniformity of the mobile phone screen projection quality can be improved.
[0016] In some possible implementation manners of the second aspect, the method further includes: the second electronic device performing open circuit detection on at least one pin in the communication interface to obtain an open circuit detection sub-result. The detection result includes the open circuit detection sub-result.
[0017] Taking detection of whether an open circuit problem exists in a to-be-detected pin as an example: a high-level signal can be provided to the to-be-detected pin, and it is detected whether the signal of the to-be-detected pin is pulled high. If the signal of the to-be-detected pin is pulled high, it indicates that the to-be-detected pin does not have an open circuit problem. If the signal of the to-be-detected pin is not pulled high, it indicates that the to-be-detected pin has an open circuit problem.
[0018] In the present embodiment, the test equipment can detect whether an open circuit problem exists in at least one pin of the communication interface of the mobile phone, thereby avoiding quality problems of the mobile phone after being shipped due to the open circuit of the pin, and improving the reliability of the quality of the mobile phone after being shipped.
[0019] In some possible implementation manners of the second aspect, the test method further includes: the second electronic device performing short circuit detection on at least one pin in the communication interface to obtain a short circuit detection sub-result. The detection result includes the short circuit detection sub-result.
[0020] In the case where a high-level signal is provided to the to-be-detected pin and no high-level signal is provided to other pins, it is also possible to detect whether the signals of the other pins are pulled high. If the signals of the other pins are pulled high, it indicates that the to-be-detected pin has a short circuit problem. If the signals of the other pins are not pulled high, it indicates that the to-be-detected pin does not have an open circuit problem.
[0021] In the present embodiment, the test equipment can detect whether a short circuit problem exists in at least one pin of the communication interface of the mobile phone, thereby avoiding quality problems of the mobile phone after being shipped due to the short circuit of the pin, and improving the reliability of the quality of the mobile phone after being shipped.
[0022] In some possible implementation manners of the second aspect, before the second electronic device acquires the video data provided by the first electronic device, the method further includes: triggering a countdown process when the second electronic device detects that the first electronic device is coupled. The second electronic device acquires the video data provided by the first electronic device, including: acquiring, by the second electronic device, the video data provided by the first electronic device when the countdown process ends.
[0023] The time period of the screen projection function of the quality inspection mobile phone in the quality inspection pipeline can partially overlap with the time period of other quality inspection items in the quality inspection pipeline.
[0024] Exemplarily, the quality inspection pipeline can also quality inspect the under-screen fingerprint function of the mobile phone. During the process of quality inspecting the under-screen fingerprint function of the mobile phone, the clamp can insert the joint of the signal line into the communication interface of the mobile phone when the mobile phone is at the station for quality inspecting the under-screen fingerprint function.
[0025] It should be noted that the last moment of the countdown process is equal to or later than the end moment of the quality inspection of the under-screen fingerprint function, so that the quality inspection time period of the under-screen fingerprint function does not coincide with the time period in which the test equipment detects the video data provided by the mobile phone.
[0026] In this embodiment, while the under-screen fingerprint function of the mobile phone is tested in the quality inspection pipeline, the joint of the signal line is inserted into the communication interface of the mobile phone by the clamp, so that the time period of the screen projection function of the quality inspection mobile phone overlaps with the time period of the quality inspection of the under-screen fingerprint function of the mobile phone, thereby shortening the time consumption of the quality inspection pipeline for quality inspecting various functions of the mobile phone and improving the quality inspection efficiency of the mobile phone, thereby improving the output of the mobile phone.
[0027] In some possible implementations of the second aspect, after the second electronic device provides the detection result to the first electronic device, the test method further includes: clearing the detection result.
[0028] In this embodiment, after the test equipment obtains the test result file by testing the screen projection function of a mobile phone and sends the test result file to the mobile phone, the test equipment can clear the test result file in the mobile phone, so as to test the screen projection function of the next mobile phone. In this way, the test equipment can avoid the situation that the test result file of the screen projection function of one mobile phone is sent to another mobile phone, prevent the problem that the test information does not correspond, and improve the reliability of the test equipment in testing the screen projection function of multiple mobile phones.
[0029] In a third aspect, a test system is provided. The test system includes a first electronic device and a second electronic device. The first electronic device includes a communication interface, and the communication interface and the second electronic device are coupled to each other through a signal line. The first electronic device is configured to provide video data to the second electronic device through the communication interface in the process of playing a video file. The second electronic device is configured to detect the video data and provide a detection result to the first electronic device. The first electronic device is further configured to read the detection result and generate a test result indicating that the first electronic device is qualified or abnormal in screen projection playing.
[0030] In the present application, on the quality inspection pipeline before the mobile phone leaves the factory, the communication interface of the mobile phone provides video data played by screen projection to the test equipment by using the DP line, the test equipment detects the video data provided by the mobile phone and returns the detection result to the mobile phone, and the mobile phone determines whether the screen projection function test is qualified based on the detection result. In this way, the manual cost of testing the screen projection function test can be saved, and the uniformity of the screen projection test standard and the uniformity of the mobile phone screen projection quality can be improved.
[0031] In some possible implementation manners of the third aspect, the test system further includes a clamp. The clamp is configured to insert the signal line into the communication interface of the first electronic device, so as to couple the first electronic device with the second electronic device.
[0032] In a fourth aspect, an electronic device is provided. The electronic device includes a memory and one or more processors. The memory is coupled to the processors. The memory stores computer program codes including computer instructions. When the computer instructions are executed by the processors, the electronic device performs the method of any one of the first aspect; or, performs the method of any one of the second aspect.
[0033] The beneficial effects of the fourth aspect can refer to the beneficial effects of the test method of any one of the first aspect or the second aspect, which will not be repeated here.
[0034] In a fifth aspect, a computer readable storage medium is provided. The computer readable storage medium includes computer instructions, when the computer instructions are run on an electronic device, the electronic device performs the method of any one of the first aspect; or, performs the method of any one of the second aspect.
[0035] The beneficial effects of the fifth aspect can refer to the beneficial effects of the test method of any one of the first aspect or the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0036] Figure 1 A structural schematic diagram of a test system provided for some embodiments of the present application;
[0037] Figure 2 A connection schematic diagram of a mobile phone and a test equipment in a test system provided for some embodiments of the present application;
[0038] Figure 3 A flowchart of a test method provided for some embodiments of the present application;
[0039] Figure 4 A schematic diagram of a result file in a test method provided for some embodiments of the present application;
[0040] Figure 5 Another flowchart of a test method provided for some embodiments of the present application;
[0041] Figure 6 Figure 1 is a schematic diagram of the interaction between a mobile phone and a test device in a test method according to some embodiments of the present application; Figure 5
[0042] Figure 7 Figure 2 is another flowchart of a test method according to some embodiments of the present application;
[0043] Figure 8 Figure 3 is a schematic diagram of an electronic device according to some embodiments of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments provided by the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.
[0045] Hereinafter, the terms "first" and "second" are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0046] In addition, in the present application, the orientation terms such as "upper", "lower", "left", "right" and the like can include but not limited to the orientation defined by the relative placement of the components in the drawings. It should be understood that these directional terms can be relative concepts, which are used for relative description and clarification, and can be changed accordingly according to the change of the placement of the components in the drawings.
[0047] In describing some embodiments, "connection", "connected" and their derivatives can be used. For example, the term "connected" can be used to describe some embodiments to indicate that two or more components have direct or indirect physical contact with each other. For example, A and B are connected, which can mean that A and B are connected, or A and B are connected through other components. In addition, the term "coupled" can be an electrical connection mode for realizing signal transmission, and the coupling can mean direct coupling or indirect coupling.
[0048] "A, B and C at least one of them" has the same meaning as "at least one of A, B or C", which includes the following combinations of A, B and C: only A, only B, only C, combination of A and B, combination of A and C, combination of B and C, and combination of A, B and C.
[0049] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.
[0050] As used herein, "about," "approximately," or "circa" includes the recited value and the average value within an acceptable range of deviation from the particular value, as determined by one of ordinary skill in the art taking into account the measurement being discussed and the error associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).
[0051] For the convenience of understanding, the technical terms involved in the present application are explained and described below.
[0052] Universal Serial Bus (USB) is a kind of serial bus standard, and also a kind of input and output interface technical specification. USB is widely used in personal computers, mobile phones, tablet computers, photographic equipment, digital televisions, game consoles and other electronic devices.
[0053] USB is a kind of high-speed serial transmission bus supporting hot plug, using differential signals to transmit data. A USB connection system can include "host", "device" and "physical connection" three parts. The "host" is a composite of hardware, software and firmware that provides USB interface and interface management capability, which can be a personal computer or an OTG (on-the-go) device. There is only one USB host in a USB connection system. The "device" can include devices that support USB functions. The "physical connection" can refer to the transmission line of USB, which connects the "host" and the "device" respectively.
[0054] Currently, USB includes multiple generations of versions (such as USB1.0, USB1.1, USB2.0, USB3.0, USB3.1, etc.), taking USB2.0 as an example, the highest data transmission speed can reach 480Mb / S. USB2.0 supports two power supply modes of "bus power supply" and "self power supply". In the bus power supply mode, the USB2.0 device can get up to 500mA of current. USB2.0 is designed to be a downward compatible mode, when full-speed (USB 1.1) or low-speed (USB 1.0) devices are connected to a high-speed (USB 2.0) host, the host can support them through separate transmission. Among them, the highest transmission speed level that can be achieved on a USB bus is determined by the slowest "device" on the bus.
[0055] Type-C interface is a form of USB interface that can be applied to electronic devices (e.g., personal computers, mobile phones, tablets). The Type-C interface is designed to be bilaterally symmetrical, i.e., the Type-C plug can be inserted into the Type-C interface in either direction, greatly improving the convenience of using the USB interface. Type-C supports USB 2.0 and USB 3.0.
[0056] High Definition Multimedia Interface (HDMI) is a fully digital video and audio transmission interface that can transmit uncompressed audio and video signals. HDMI can be used in set-top boxes, personal computers, televisions, game consoles, integrated amplifiers, digital audio and television devices, etc. HDMI can transmit audio and image signals simultaneously, as the audio and image signals use the same wire, greatly simplifying the installation difficulty of the system circuit.
[0057] OTG (on-the-go) is mainly used for coupling between different electronic devices, and realizes data exchange between two electronic devices without a computer as a relay station. OTG technology has been widely applied to various electronic devices, such as smartphones, tablets, digital cameras, etc.
[0058] OTG standard is an important functional supplement to USB 2.0. OTG enables an electronic device (such as a smartphone) to play the role of a host, directly connecting other USB devices (such as U disks, keyboards, mice, etc.). Type-C interface is downward compatible with USB 2.0, so the OTG function can be supported in Type-C interface, so that the OTG function can improve the data exchange capability of the electronic device and the external device.
[0059] DisplayPort (DP) screen projection refers to projecting the screen of a mobile phone or computer onto other display devices through a DP interface. For example, a Type-C adapter is used, one end of which is connected to the Type-C port of the mobile phone or computer, and the other end is connected to the appropriate interface (such as HDMI, DP or MiniDP) according to the port of the display device. Then, the input signal source of the display device is switched to the corresponding interface to complete the screen projection.
[0060] Near Field Communication (NFC) technology is developed on the basis of non-contact radio frequency identification (RFID) technology and wireless interconnection technology. Electronic devices (such as smartphones) using NFC technology can exchange data when they are close to each other.
[0061] Extended Display Identification Data (EDID) is a type of data transmitted by a display device to a computer or other video source device, and the EDID contains detailed information about the display device, such as resolution, display mode, color capability, etc. These information is crucial for the computer or video source device, because they need to know the capabilities of the connected display device to correctly configure the graphics output.
[0062] At present, mobile phones basically have screen projection function. When a mobile phone user needs to share multimedia files in the mobile phone to people around, the mobile phone screen projection function can be used to project the multimedia files played by the mobile phone to the connected external display device for display. Among them, the DP screen projection function of the mobile phone is a kind of screen projection way often selected by the mobile phone user.
[0063] Therefore, before the mobile phone is sold, the mobile phone manufacturer needs to test the DP screen projection function of the mobile phone to ensure that the mobile phone can normally realize the DP screen projection function after being sold. At present, the test method of the DP screen projection function of the mobile phone is that in the quality inspection flow line before the mobile phone is sold, the staff manually inserts the Type-C plug at one end of the DP line into the Type-C interface of the mobile phone to realize the coupling of the mobile phone and the external display device, and then starts the DP screen projection function of the mobile phone, and tests whether the DP screen projection function of the mobile phone is qualified by the staff observing whether the playing quality of the external display device is normal and whether the sound playing is normal with naked eyes.
[0064] However, this scheme of testing whether the DP screen projection function of the mobile phone is qualified by the staff needs to consume high labor cost, and the artificial test of whether the screen projection function is qualified is easy to cause unstable judgment standard, resulting in low uniformity of the quality of the mobile phone after being sold.
[0065] In addition, in the process of testing the DP screen projection function of the mobile phone, the staff will only manually insert the Type-C plug of the DP line into the Type-C interface of the mobile phone once to realize the coupling of the mobile phone and the external display device. In this way, the quality inspection flow line will only test the DP screen projection function based on the pins on one side of the Type-C interface in the mobile phone, and cannot test the DP screen projection function of both sides of the Type-C interface. In this way, it is also easy to reduce the reliability of the quality of the mobile phone tested by the DP screen projection function.
[0066] Based on this, the embodiments of the present application provide a test method, a test system and an electronic device. The test system detects the video data output by the DP screen projection function of the first electronic device by the second electronic device, avoiding the use of people to observe and determine whether the DP screen projection function of the first electronic device is qualified. In this way, the manual cost of testing the screen projection function can be saved, and the uniformity of the screen projection test standard and the uniformity of the DP screen projection quality of the first electronic device after leaving the factory can be improved.
[0067] Figure 1 A structural schematic diagram of a test system provided by some embodiments of the present application is shown. As shown in Figure 1 , the test system can include a first electronic device, a second electronic device, and a signal line connecting the first electronic device and the second electronic device.
[0068] The first electronic device provided by the embodiments of the present application is an electronic device that supports DP screen projection through a USB. The first electronic device can include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device (smart watch, smart bracelet, smart ring, etc.), a virtual reality device, etc., and the embodiments of the present application do not limit this. In the following, a mobile phone using a Type-C interface to realize DP screen projection is taken as an example for illustration, but this does not limit that it can only be a mobile phone and a Type-C interface.
[0069] The software system of the mobile phone can use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to exemplarily illustrate the software structure of the mobile phone.
[0070] Figure 1 A software structure block diagram of the mobile phone 100 provided by the embodiments of the present application is shown.
[0071] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, from top to bottom, an application layer, an application framework layer, and a kernel layer.
[0072] The application layer can include a series of application packages.
[0073] As shown in Figure 1 , the application package can include video playback control, link state monitoring, video resource selection, result file detection, and timeout control, etc.
[0074] The video playing control application is used to control the video file to start playing, stop playing and end playing.
[0075] The link state monitoring application is used to monitor the state of the link transmitting the video data in the video playing process.
[0076] The video resource selection application is used to select a video file in one or more local video files for playing to complete the DP screen projection function detection.
[0077] The result file detection application is used to detect the detection result provided by the second electronic device after the DP screen projection function detection of the mobile phone is completed, and determine whether the DP screen projection function of the mobile phone is qualified or abnormal based on the detection result.
[0078] The timeout control application is used to exit the video playing in the case that the time length of the DP screen projection function detection of the mobile phone by the second electronic device is greater than the preset detection time length, so as to prevent the problem that the time length of the DP screen projection function detection of the mobile phone by the second electronic device is overtime.
[0079] The application framework layer provides the application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some pre-defined functions.
[0080] As shown in Figure 1 The application framework layer can include the video playing service, display service, UEventObserver service, hardware interface definition language (HIDL) and android interface definition language (AIDL) and the like.
[0081] The video playing service is used to manage the video playing, for example, the local video playing can be realized by adding the element associated with the local video file in the blueprint.
[0082] The display service can include surface flinger, OpebGL, Hwcomposer, DisplayDispatcher. Among them, the surface flinger can provide services for the display of all applications. OpebGL can be used for composesurface and 2D, 3D graphics processing. The application processed by OpenGL can be a user interface (user interface, UI) application, a game (game) application, a map application, a Flash application, etc. Hwcomposer can be applied to video files, and the video data of the color coding method is directly output to the display. DisplayDispatcher is used to obtain and set the configuration parameters of the display. For example, DisplayDispatcher can obtain the hot plug state of the HDMI interface, and then set the output of the video data from the HDMI interface in the case of hot plug state indicating that the HDMI interface is inserted.
[0083] The UEventObserver service can listen to kernel events, which is a mechanism for Android Java layer to obtain kernel state changes using UEvent. Using the UEventObserver service can at least monitor the battery state, earphone state, and USB state.
[0084] HIDL is a language used to define and implement the interface of the hardware abstraction layer (HAL) in the Android system. HIDL can promote hardware sharing and interoperability, simplify hardware driver development, and provide performance and security advantages. It plays an important role in the Android system, enabling applications to seamlessly interact with underlying hardware devices.
[0085] AIDL is a language used to define and implement the interface of inter-process communication in the Android system. It enables flexible cross-process communication for applications through cross-process communication, remote method invocation, cross-platform development, and interface management, enabling data exchange and function calls between different processes.
[0086] The kernel layer is the layer between hardware and software. The kernel layer at least includes display driver, USB driver, audio driver, DP driver. Among them, the DP driver can include DP state monitoring, data transmission, and video resource and monitoring path reporting.
[0087] Embodiments of the present application provide a second electronic device that supports DP screen projection testing through HDMI. The second electronic device can include, but is not limited to, a test device, a mobile phone, a tablet computer, a notebook computer, a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device (smart watch, smart bracelet, smart ring, etc.), a virtual reality device, and the like. Embodiments of the present application do not limit the second electronic device to a test device.
[0088] Figure 1 A software structure block diagram of the test device is also shown.
[0089] As shown in Figure 1 , the test device 200 can include a video stream data detection application, a display resolution detection application, a frame rate and picture lock analysis application, an open / short circuit test application, a result file generation application, and an abnormal restart application.
[0090] The video stream data detection application can be used to detect video data provided by the mobile phone through the communication interface. For example, the video stream data detection application can be used to detect the integrity of the audio signal in the video data. For another example, the video stream data detection application can be used to detect the integrity of the image signal in the video data. For yet another example, the video stream data detection application can be used to detect the image source and the audio source.
[0091] The display resolution detection application can be used to detect the resolution of the image in the video data provided by the mobile phone through the communication interface.
[0092] The frame rate and picture lock analysis application can be used to detect the video display frame rate of the video data provided by the mobile phone through the communication interface, so as to determine whether the video frame rate of the DP screen projection is stable.
[0093] The open / short circuit test can be used to detect whether at least one pin in the communication interface of the mobile phone has an open circuit or a short circuit problem. For example, to detect whether a to-be-tested pin has an open circuit problem, a high-level signal can be provided to the to-be-tested pin, and it is detected whether the signal of the to-be-tested pin is pulled high. If the signal of the to-be-tested pin is pulled high, it indicates that the to-be-tested pin does not have an open circuit problem. If the signal of the to-be-tested pin is not pulled high, it indicates that the to-be-tested pin has an open circuit problem. In addition, in the case that a high-level signal is provided to the to-be-tested pin and no high-level signal is provided to other pins, it is also detected whether the signals of the other pins are pulled high. If the signals of the other pins are pulled high, it indicates that the to-be-tested pin has a short circuit problem. If the signals of the other pins are not pulled high, it indicates that the to-be-tested pin does not have an open circuit problem.
[0094] The result file generation can be used to generate a file including detection results based on the data detected by multiple detection applications, which can represent whether each detection application is qualified or abnormal.
[0095] The abnormal restart can restart the test device 200 to restore the detection of the test device 200 on the video data provided by the mobile phone in the case of detecting that the test device 200 is abnormal.
[0096] Figure 2 A connection diagram of a mobile phone and a test device in a test system is shown.
[0097] The test device 200 simulates a display device and is inserted into the Type-C interface of the mobile phone 100 through the DP line. After the mobile phone 100 identifies that the external device is a display device, the RX (receive) and TX (transmit) of USB3.0 are converted into DPRX and DPTX. Among them, the mobile phone 100 can act as a source device, and the test device 200 can act as a sink device.
[0098] The DPRX and the DPTX can include a Main Link channel, an AUX channel, and an HPD channel.
[0099] The Main Link can be composed of one, two, or four AC-coupled, double-terminated differential pairs (a pair of differential lines is called a lane). Each lane can support four link rates, such as 8.1 Gbps, 5.4 Gbps, 2.7 Gbps, and 1.62 Gbps. All enabled channels must operate at the same link rate. The four lanes of the Main Link can all be used to transmit data, and there is no dedicated clock channel. The clock is extracted from the data stream itself encoded using the ANSI 8b / 10b encoding rule, and the clock needs to be recovered by the receiving end. The master device and the slave device are allowed to support the minimum number of channels required by their needs.
[0100] It should be noted that the devices (mobile phone 100 and test device 200) supporting two lanes need to support one lane and two lanes at the same time, and the devices supporting four lanes need to support one lane, two lanes, and four lanes at the same time. Four channels are supported through one signal line to maximize the interoperability between the source device and the receiver device.
[0101] The AUX channel is composed of an AC-coupled differential pair. Similar to the Main Link, the AUX channel does not have a dedicated clock lane, and the clock is extracted from the data stream. The AUX channel has a half-duplex, bidirectional port physical layer (PHY layer). The mobile phone 100 is the master device, and the test device 200 is the slave device. When the HPD event occurs, the mobile phone 100 configures the link through link training. Based on the AUX transaction between DPTX and DPRX on the AUX channel, the correct number of channels is enabled at the correct link rate, correct drive current, and equalization level. During normal operation after link training, the receiving device can notify the link state change by toggling the HPD signal of the interrupt request signal. Then, the mobile phone 100 checks the DPCD link or test device 200 status register using the AUX transaction, and then takes corrective measures. This closed-loop operation enhances the reliability between the mobile phone 100 and the test device 200. In addition, since the link rate is decoupled from the stream rate, the activity and stability can be maintained even if the time of the display port link transmission changes.
[0102] The HPD signal is mainly used to detect the hot plug state of the Type-C interface, and is also an interrupt request of the test device 200. It is a single-wire signal.
[0103] The following describes a test of the DP screen projection function of the mobile phone 100 by the test device 200 as an example.
[0104] Figure 3 A flowchart of the test method is shown. As shown in Figure 3 , the test method can include steps S310 to S340.
[0105] Step S310: Establish a communication connection between the communication interface of the test device and the mobile phone.
[0106] The communication interface of the mobile phone 100 can be a USB interface of USB2.0 or above. For ease of understanding, the Type-C interface is described below.
[0107] In the process of passing through the preset quality inspection position sequence on the quality inspection pipeline, the mobile phone 100 can insert the Type-C connector of the DP line into the Type-C interface of the mobile phone through the test fixture. The other end of the DP line can be connected to the test device 200 at all times, or can be actively connected to the test device 200, which is not limited here.
[0108] Thus, the mobile phone 100 can establish a communication connection with the test device 200 through the DP line. For example, the mobile phone 100 and the test device 200 can form an HDMI link, a DP Link link, an OTG link, or the like through the DP line, which is not limited herein.
[0109] Step S320: The mobile phone provides the video data to the test device through the communication interface during playing of the video file.
[0110] The DP screen projection test function pre-installed in the mobile phone 100 is started, and the mobile phone 100 selects one of the local videos to play. During playing of the video file by the mobile phone 100, when the Type-C connector of the DP line is inserted into the Type-C interface of the mobile phone, the mobile phone 100 provides the video data to the test device 200 through the communication interface.
[0111] It should be noted that the time when the mobile phone 100 starts playing the video can be before the Type-C connector of the DP line is inserted into the Type-C interface of the mobile phone, or after the Type-C connector of the DP line is inserted into the Type-C interface of the mobile phone, or at the time when the Type-C connector of the DP line is inserted into the Type-C interface of the mobile phone, which is not limited herein. It can be understood that the time when the mobile phone 100 starts playing the video can be before step S310, or after step S310, or at the same time as step S310.
[0112] The mobile phone 100 provides the video data to the test device 200 through the communication interface, which can include: the mobile phone 100 acquires the EDID of the test device 200, and then the mobile phone 100 outputs the video data with a resolution and a frame rate corresponding to the EDID.
[0113] Step S330: The test device detects the video data to obtain a detection result.
[0114] The test device 200 analyzes the video data provided by the mobile phone 100, and determines whether the resolution, the frame rate, and the picture lock of the video data are correct.
[0115] In some examples, the video stream data detection application of the test device 200 can be used to detect the integrity of the audio data, the integrity of the image data, and the audio source and the image source in the video data.
[0116] Exemplarily, the video stream data detection application outputs one detection sub-result. For example, in the case that the video stream data detection application determines that the audio data is complete and the image data is complete, the video stream data detection application outputs pass (the detection sub-result) to the result file generation application, or in the case that the video stream data detection application determines that the audio data is incomplete and / or the image data is incomplete, the video stream data detection application outputs fail (the detection sub-result) to the result file generation application.
[0117] Further exemplarily, the video stream data detection application outputs two detection sub-results, one detection sub-result corresponding to the image data and the other detection sub-result corresponding to the audio data. For example, in the case that the video stream data detection application determines that the audio data is complete, the video stream data detection application outputs pass to the result file generation application, and in the case that the video stream data detection application determines that the image data is complete, the video stream data detection application outputs pass to the result file generation application.
[0118] In some other examples, the display resolution detection application of the test device 200 can be used to detect the resolution of the image corresponding to the video data provided by the mobile phone 100 through the communication interface. In the case that the display resolution detection application determines that the resolution of the image conforms to the resolution corresponding to the EDID, the display resolution detection application outputs pass to the result file generation application, or in the case that the display resolution detection application determines that the resolution of the image does not conform to the resolution corresponding to the EDID, the display resolution detection application outputs fail to the result file generation application.
[0119] In some other examples, the frame rate picture lock analysis application of the test device 200 can be used to detect the video display frame rate of the video data provided by the mobile phone 100 through the communication interface. In the case that the frame rate picture lock analysis application determines that the frame rate is locked, the frame rate picture lock analysis application outputs pass to the result file generation application; or, in the case that the frame rate picture lock analysis application determines that the frame rate is not locked, the frame rate picture lock analysis application outputs fail to the result file generation application.
[0120] In some examples, the open-short test application of the test device 200 can be used to detect whether there is an open circuit problem or a short circuit problem in at least one pin of the communication interface of the mobile phone (which can also be referred to as detecting whether there is an information and communication technology (ICT) problem in the communication interface of the mobile phone 100). In a case where the open-short test application determines that there is no open circuit problem and no short circuit problem in each pin, the open-short test application outputs pass to the result file generation application; or in a case where the open-short test application determines that there is an open circuit problem or a short circuit problem in at least one pin, the open-short test application outputs fail to the result file generation application.
[0121] It should be noted that in some examples, the test device can only perform open circuit detection on each pin of the communication interface, but not short circuit detection; or the test device can only perform short circuit detection on each pin of the communication interface, but not open circuit detection.
[0122] The result file generation application of the test device 200 can form a result file including detection results based on the detection sub-results provided by the above-mentioned video stream data detection application, display resolution detection application, frame rate and picture lock analysis application, and open-short test application. The detection results can represent the conditions of each detection sub-result.
[0123] For example, the detection results can include a plurality of digits, each digit corresponding to a detection sub-result, and the detection value of the digit being “0” represents that the detection sub-result is pass, and the detection value of the digit being “1” represents that each detection sub-result is fail.
[0124] For example, the video stream data detection application outputs one detection sub-result, and the detection results can include 4 digits, the first digit corresponding to the video stream data detection application, the second digit corresponding to the display resolution detection application, the third digit corresponding to the frame rate and picture lock analysis application, and the fourth digit corresponding to the open-short test application. The detection result is 0000, which represents that the video stream data detection application outputs pass, the display resolution detection application outputs pass, the frame rate and picture lock analysis application outputs pass, and the open-short test application outputs pass. The detection result is 1000, which represents that the video stream data detection application outputs fail, the display resolution detection application outputs pass, the frame rate and picture lock analysis application outputs pass, and the open-short test application outputs pass. Similarly, the meanings of various detection results can be obtained.
[0125] As has been described, the Type-C interface is a double-sided symmetrical interface. Understandably, the number and function of the pins on one side of the Type-C interface are the same as those on the other side of the Type-C interface, so the DP projection function can be completed only by relying on the pins on one side of the Type-C interface.
[0126] Therefore, in some examples, the test device 200 tests only the single side pins of the Type-C interface in the mobile phone 100 each time, and then tests the other side of the Type-C interface after the test of the one side of the Type-C interface is completed. For example, the DP projection function test is performed on the A side pins of the Type-C interface, and then the DP projection function test is performed on the B side pins of the Type-C interface.
[0127] Based on this, the video stream data detection application outputs two detection sub-results, and the detection result can include 10 digits, such as Figure 4As shown, the first digit corresponds to the open / short circuit test, the second digit corresponds to the audio test of the B-side pins of the Type-C interface, the third digit corresponds to the audio test of the A-side pins of the Type-C interface, the fourth digit corresponds to the image frame rate test of the B-side pins of the Type-C interface, the fifth digit corresponds to the image frame rate test of the A-side pins of the Type-C interface, the sixth digit corresponds to the image resolution test of the B-side pins of the Type-C interface, the seventh digit corresponds to the image data (DP signal lock) test of the B-side pins of the Type-C interface, the eighth digit corresponds to the image resolution test of the A-side pins of the Type-C interface, the ninth digit corresponds to the image data (DP signal lock) test of the A-side pins of the Type-C interface, and the tenth digit is a reserved digit and is 0 by default. The test result of 0000000000 indicates that the open / short circuit test, the audio test of the B-side pin of the Type-C interface, the audio test of the A-side pin of the Type-C interface, the image frame rate test of the B-side pin of the Type-C interface, the image frame rate test of the A-side pin of the Type-C interface, the image resolution test of the B-side pin of the Type-C interface, the DP signal lock-in test of the B-side pin of the Type-C interface, the image resolution test of the A-side pin of the Type-C interface, and the DP signal lock-in test of the B-side pin of the Type-C interface are all passed. A test result of 1000000000 indicates that the open / short circuit test failed, the audio test of the B-side pins of the Type-C interface passed, the audio test of the A-side pins of the Type-C interface passed, the image frame rate test of the B-side pins of the Type-C interface passed, the image frame rate test of the A-side pins of the Type-C interface passed, the image resolution test of the B-side pins of the Type-C interface passed, the DP signal lockout test of the B-side pins of the Type-C interface passed, the image resolution test of the A-side pins of the Type-C interface passed, and the DP signal lockout test of the B-side pins of the Type-C interface passed. The meanings of various test results can be deduced accordingly.
[0128] In this embodiment, each digit of the detection result represents a different sub-result. Therefore, by acquiring the detection result, the mobile phone 100 can determine which digit of the detection value indicates an anomaly, and thus determine which sub-result is abnormal, helping to determine the cause of the abnormal screen mirroring playback on the mobile phone 100.
[0129] In addition, such as Figure 4 As shown, the test device 200 may also include the test duration from the start time of the DP test (the time when the mobile phone 100 provides video data to the test device 200) to the end time of the DP test (the time when the test device 200 generates the detection result) in the result file provided to the mobile phone 100, for example, the test duration is 300ms.
[0130] Step S340: The mobile phone reads the test results and generates a test result indicating whether the mobile phone screen mirroring playback is successful or abnormal.
[0131] As previously explained, the presence of "1" in multiple digits of the test result indicates a "fail" result. Therefore, if at least one digit in the test result contains a "1", the phone 100 will generate a test result indicating that its screen mirroring function is malfunctioning; conversely, if all digits in the test result contain a "0", the phone 100 will generate a test result indicating that its screen mirroring function is functioning normally.
[0132] In the embodiments of this application, on the quality inspection line before the mobile phone leaves the factory, the communication interface of the mobile phone 100 uses a DP cable to provide the video data for screen projection to the testing equipment 200. The testing equipment 200 tests the video data provided by the mobile phone 100 and returns the test results to the mobile phone 100. Based on the test results, the mobile phone 100 determines whether the screen projection function test is qualified. In this way, the labor cost of testing the screen projection function can be eliminated, and the uniformity of the screen projection test standard can be improved, thus improving the uniformity of the screen projection quality of the mobile phone 100.
[0133] Furthermore, by using testing equipment 200 to test only one side of the Type-C interface pins on the phone 100 at a time, and then performing DP projection tests on both sides of the Type-C interface pins twice, the DP projection function of both sides of the Type-C interface pins can be tested. This allows for the timely identification of any faulty pin, ensuring the reliability of the phones after they leave the factory.
[0134] Figure 5 Another flowchart of the testing method is shown below; Figure 6 It shows Figure 5 The diagram illustrates the interaction between the mobile phone and the test device in the testing method. (Example:) Figure 5 As shown, the mobile phone 100 may include DP testing software, an audio manager, a Surface Holder, an HDMI Broadcast, and a DPLink Observer. The testing device 200 may include an OTG Broadcast and a DP testing box.
[0135] like Figure 5 and Figure 6 As shown, the test method may include steps S401 to S420.
[0136] Step S401: Start the DP test on the mobile phone.
[0137] Specifically, starting the DP test can be starting the DP test software. Illustratively, the phone 100 can automatically start the DP test software after the phone 100 completes the previous quality inspection item in the quality inspection pipeline.
[0138] Step S402: The phone registers the Audio Manager and sets audio parameters.
[0139] After registering the Audio Manager, the subsequent DP screen projection test can use the Audio Manager to set the volume and other audio parameters of the phone audio data.
[0140] Step S403: The phone registers the Surface Holder callback with the Surface Holder.
[0141] By setting the callback through the Surface Holder, a series of methods are provided to operate and manage the Surface, such as locking and unlocking the Surface, setting the pixel format of the Surface, obtaining the width of the Surface, etc., so as to set the image parameters in the video data.
[0142] Step S404: The phone registers the HDMI plug-in broadcast with the HDMI Broadcast.
[0143] After registering the HDMI plug-in broadcast, the phone 100 can provide video data to the test device 200 compatible with the corresponding protocol of HDMI.
[0144] Step S405: The phone registers the DP Link listener with the DP Link Observer.
[0145] After the phone 100 registers the DP Link listener with the DP Link Observer, the phone 100 can listen to the status of data transmission in the DP screen projection test.
[0146] Step S406: The phone registers the OTG plug-in broadcast.
[0147] After the phone 100 registers the OTG plug-in broadcast, the phone 100 can communicate with the test device 200 compatible with the corresponding protocol of OTG.
[0148] Step S407: The DP test software receives the Surface Holder callback.
[0149] Step S408: The DP test software starts playing local video.
[0150] Step S409: The DP test software detects the HDMI plug-in broadcast.
[0151] Step S410: The DP test software can set the volume by using the Audio Manager.
[0152] Step S411: The DP test software establishes a DP Link link with the DP Link Observer to send video data to the test device by using the DP Link.
[0153] After the mobile phone 100 sends the video data to the test device 200, the specific process of testing the video data by the test device 200 can refer to the description of step S330, which will not be repeated here.
[0154] Step S412: After the test device finishes testing the video data, the DP Link link between the test device and the mobile phone is disconnected.
[0155] Step S413: The test device sends an HDMI pull-out broadcast to the DP test software by using the HDMI Broadcast.
[0156] Step S414: The DP test box in the test device generates a result file including the test result.
[0157] Step S415: The DP test box is mounted on the mobile phone by using the OTG Broadcast, and provides the result file to the DP test software.
[0158] Step S416: The DP test software reads the test result and determines the DP test result.
[0159] Step S417: The DP test software cancels the HDMI pull-out broadcast.
[0160] Step S418: The DP test software cancels the DP Link monitoring.
[0161] Step S419: The DP test software destroys the Surface.
[0162] Step S420: The DP test software cancels the OTG broadcast.
[0163] Steps S417 to S420 are steps for canceling the communication between the mobile phone 100 and the test device 200 after the mobile phone determines the DP test result in step S416.
[0164] In the embodiments of the present application, on the quality inspection pipeline before the mobile phone 100 is shipped, the communication interface of the mobile phone 100 provides the video data played by the screen projection to the test device 200 by using the DP line, the test device 200 detects the video data provided by the mobile phone 100 and returns the detection result to the mobile phone 100, and the mobile phone determines whether the screen projection function test is qualified based on the detection result. In this way, the manual cost of testing the DP screen projection function of the mobile phone can be saved, the uniformity of the DP screen projection test standard can be improved, and the uniformity of the mobile phone screen projection quality can be improved.
[0165] In some embodiments, as shown in FIG. 4B, after step S420, steps S421 and S423 can also be included. Figure 5
[0166] Step S421: The DP test box resets and clears the result file.
[0167] Step S422: The DP test box unmounts the mobile phone.
[0168] Step S423: The DP test software stops playing the local video.
[0169] In some embodiments, step S423 is not limited to a specific time, and can be performed after step S420.
[0170] In the embodiments, after the DP test box in the test device obtains the test result file of the DP screen projection function of the mobile phone and sends the test result file to the mobile phone, the DP test box can clear the test result file in the mobile phone, so as to test the DP screen projection function of the next mobile phone. In this way, the situation that the DP test box sends the test result file of the DP screen projection function of one mobile phone to another mobile phone can be avoided, the problem that the test information does not correspond can be prevented, and the reliability of the DP screen projection function test of multiple mobile phones by one test device can be improved.
[0171] In some embodiments, the part of the period for testing the DP screen projection function in the quality inspection pipeline can partially overlap with the period of other quality inspection items in the quality inspection pipeline.
[0172] For example, the quality inspection pipeline can also test the under-screen fingerprint function of the mobile phone 100. During the process of testing the under-screen fingerprint function of the mobile phone 100, when the mobile phone 100 is at the work station for testing the under-screen fingerprint function, the clamp can insert the Type-C connector of the DP line into the Type-C interface of the mobile phone 100.
[0173] Please refer to Figure 7 , Figure 7 Another flowchart of the test method is shown, and steps S401 to S409 can be steps completed when the mobile phone 100 is at a station for testing the under-screen fingerprint function. It should be noted that playing the local video in step S408 does not affect the testing of the under-screen fingerprint function of the mobile phone.
[0174] As shown in Figure 7 The test method can further include step S424: starting a countdown process. After the countdown process ends, step S409 is performed.
[0175] The countdown duration of step S424 can be equal to the duration required for testing the under-screen fingerprint function, or the countdown duration of step S424 can be greater than or equal to the duration between the time when the signal line is inserted into the Type-C interface of the mobile phone and the time when the testing of the under-screen fingerprint function ends; or it can also be other durations. It should be noted that the last time of the countdown duration of step S424 is equal to or later than the time when the testing of the under-screen fingerprint function ends, so that the testing period of the under-screen fingerprint function does not coincide with the period in which the test equipment detects the video data provided by the mobile phone.
[0176] In this embodiment, while the under-screen fingerprint function of the mobile phone 100 is being tested in the testing pipeline, the Type-C connector of the DP line is inserted into the Type-C interface of the mobile phone 100 by the clamp to test the DP screen projection function of the mobile phone 100, so that part of the period for testing the DP screen projection function of the mobile phone 100 overlaps with the period for testing the under-screen fingerprint function of the mobile phone 100, thereby shortening the time consumed by the testing pipeline for testing each function of the mobile phone 100 and improving the testing efficiency of the mobile phone 100, thereby improving the output of the mobile phone 100.
[0177] In some embodiments, in the testing pipeline, after testing the DP screen projection function of the mobile phone 100, if there are other testing items, the mobile phone 100 can automatically trigger the start process of the next testing item after determining that the testing of the DP screen projection function of the mobile phone 100 is qualified based on the detection result provided by the test equipment 200, thereby improving the testing efficiency of the mobile phone 100.
[0178] For example, in the testing pipeline, after testing the DP screen projection function of the mobile phone 100, the NFC function of the mobile phone 100 needs to be turned on so that the mobile phone 100 communicates with the subsequent 8K equipment through the NFC function. Therefore, after determining that the testing of the DP screen projection function of the mobile phone 100 is qualified based on the detection result provided by the test equipment 200, the mobile phone 100 can automatically drive the NFC function of the mobile phone 100 so that the mobile phone 100 establishes a communication connection with the 8K equipment of the next testing station during movement on the testing pipeline.
[0179] The embodiments of the present application also provide an electronic device, such asFigure 8 As shown, the electronic device includes at least one processor 701 and at least one interface circuit 702. The processor 701 and the interface circuit 702 can be interconnected via a line. For example, the interface circuit 702 can be used to receive a signal from another device (e.g., a memory of the electronic device). For another example, the interface circuit 702 can be used to send a signal to another device (e.g., the processor 701 or a screen of the electronic device). Illustratively, the interface circuit 702 can read an instruction stored in the memory and send the instruction to the processor 701. When the instruction is executed by the processor 701, the first electronic device or the second electronic device can be caused to perform various steps in the above-described embodiments. Of course, the electronic device can also include other discrete devices, which are not limited in the embodiments of the present application.
[0180] The embodiments of the present application also provide a computer readable storage medium, which includes computer instructions, when the computer instructions are run on the above-described mobile phone or application building platform, the controller executes various functions or steps of the mobile phone in the above-described embodiments; or the controller executes various functions or steps of the testing device in the above-described embodiments.
[0181] The embodiments of the present application also provide a computer program product, when the computer program product is run on a computer, the computer executes various functions or steps of the mobile phone in the above-described embodiments; or executes various functions or steps of the testing device in the above-described embodiments.
[0182] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-described division of the functional modules is taken as an example for illustration, and in actual application, the above-described functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions.
[0183] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed each other can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0184] The units described as separate components may or may not be physically separate, and the components displayed as units may be a physical unit or multiple physical units, that is, may be located in one place, or also can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0185] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present alone, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0186] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical scheme of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.
[0187] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A test method applied to a test system, characterized by, The test system comprises a quality inspection pipeline, a first electronic device and a second electronic device; the quality inspection pipeline comprises an under-screen fingerprint quality inspection station, a test clamp and a display interface DP line; the test clamp clamps a Type-C connector at one end of the DP line, and the other end of the DP line is connected with the second electronic device; the first electronic device comprises a communication interface, and the communication interface comprises A-side pins and B-side pins; The first electronic device is conveyed to the under-screen fingerprint quality inspection station in the quality inspection pipeline; When the first electronic device is in the under-screen fingerprint quality inspection station, the first electronic device automatically starts DP test software; In the process of quality inspection of the under-screen fingerprint function of the first electronic device, the test clamp inserts the Type-C connector of the DP line into the communication interface, so that the first electronic device is coupled with the second electronic device; The second electronic device starts a countdown process, and at the last moment of the countdown process, it is equal to or later than the end moment of quality inspection of the under-screen fingerprint function; After the countdown process ends, the first electronic device detects an insertion broadcast; Under the condition that the first electronic device detects the insertion broadcast, the first electronic device provides video data to the second electronic device through the communication interface; The second electronic device first uses the A-side pins to test the screen projection function, and then uses the B-side pins to test the screen projection function; During the screen projection function test, the second electronic device performs open-short circuit test on the A-side pins and the B-side pins; The second electronic device generates a result file, and the result file comprises a plurality of digits, and different digits correspond to the screen projection test result of the A-side pins, the screen projection test result of the B-side pins and the open-short circuit test result respectively; The first electronic device reads the result file by using the communication interface, and determines whether the screen projection function of the first electronic device is normal or abnormal, and whether there is an open circuit or a short circuit in the A-side pins and the B-side pins according to the result file.
2. The method of claim 1, wherein, Further comprising: In the case that the duration of the screen projection function test of the second electronic device is greater than the preset detection duration, the first electronic device exits the video playing.
3. The method according to claim 1 or 2, characterized in that, After the first electronic device reads the result file by using the communication interface, the method further comprises: The second electronic device clears the result file.
4. A test system, characterized by Comprise: A quality inspection pipeline comprising an under-screen fingerprint quality inspection station, a test clamp and a display interface DP line; The test clamp clamps a Type-C connector at one end of the DP line; A first electronic device comprising a communication interface; the communication interface comprises A-side pins and B-side pins; the first electronic device is configured to: automatically start DP test software when the first electronic device is in the under-screen fingerprint quality inspection station; detect an insertion broadcast, and provide video data to a second electronic device through the communication interface under the condition that the insertion broadcast is detected; and reading a result file by using the communication interface, and determining, according to the result file, whether the screen projection function of the first electronic device is normal or abnormal, and whether the A-side pin and the B-side pin are in open circuit or short circuit; The second electronic device is connected with the other end of the DP line; and the second electronic device is configured to: after the first electronic device is coupled with the second electronic device, start a countdown process, and at the last time of the countdown process, equal to or later than the end time of the quality inspection under-screen fingerprint function; first perform screen projection function test by using the A-side pin, and then perform screen projection function test by using the B-side pin; perform open / short circuit test on the A-side pin and the B-side pin; and generate a result file, the result file including multiple digits, different digits respectively corresponding to the screen projection test result of the A-side pin, the screen projection test result of the B-side pin, and the open / short circuit test result.
5. The test system of claim 4, wherein, Further comprising: The first electronic device is further configured to: in a case where the duration of the screen projection function test performed by the second electronic device is greater than a preset detection duration, exit the video playing.
6. The test system according to claim 4 or 5, characterized in that, The second electronic device is further configured to: after the first electronic device reads the result file by using the communication interface, clear the result file.
Citation Information
Patent Citations
A method and a device for testing an HDMI
CN102169154A
Screen projection function test method and electronic equipment
CN118450112A