Test method, test system and electronic equipment
Through the automatic coupling between electronic equipment and testing equipment and video data detection, the problems of high manual testing cost and low quality uniformity are solved, efficient and standardized testing of screen projection functions are achieved, and factory quality is improved.
Patent Information
- Application Number
- CN202411759015.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-12-03
AI Technical Summary
In the prior art, screen projection function test of electronic equipment requires manual observation, resulting in high labor costs and unstable judgment standards, resulting in low factory uniformity.
Coupled with the test equipment through the communication interface of the electronic device, video data is automatically provided for detection, and test results that pass or abnormal screen casting playback are generated, avoid manual testing and improve the uniformity of the test standards.
It reduces the labor cost of screen projection function testing, improves the standardization and uniformity of screen projection tests, and improves the factory quality reliability of electronic equipment.
Smart Images

Figure CN119232921A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a testing method, a testing system and an electronic equipment. Background Art
[0002] In addition to the function of playing multimedia files such as images and videos through their own screens, electronic devices also need to utilize the screen projection function in some scenarios (such as meeting scenarios, party scenarios, etc.) to project the multimedia files played by the electronic devices to a connected external display device for display.
[0003] Before electronic devices leave the factory, the screen projection function of the electronic devices needs to be tested to ensure that the electronic devices can normally realize the screen projection function after leaving the factory. At present, the test method for the screen projection function of electronic devices is to start the screen projection function and manually observe whether the playback of the external display device is qualified.
[0004] However, manual testing requires high manpower costs, and manual testing of whether the screen projection function is qualified is prone to unstable judgment standards, resulting in low uniformity in the quality of electronic equipment leaving the factory. Summary of the invention
[0005] The embodiments of the present application provide a testing method, a testing system, and an electronic device, which can eliminate the labor cost of testing the screen projection function and improve the uniformity of the screen projection test standards.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions: In a first aspect, a test method is provided. The test method is applied to a first electronic device. The first electronic device includes a communication interface, and the first electronic device is coupled to a second electronic device through the communication interface. The test method includes: during the process of playing a video file, the first electronic device provides video data to the second electronic device through the communication interface, so that the second electronic device detects the video data to obtain a test result. The first electronic device uses the communication interface to read the test result and generates a test result indicating that the screen projection and playback of the first electronic device is qualified or abnormal.
[0007] In the present application, an example is taken in which the first electronic device includes a mobile phone and the second electronic device includes a testing device.
[0008] In this application, on the quality inspection line before the mobile phone leaves the factory, the communication interface of the mobile phone uses the DP line to provide the video data of the screen projection to the test equipment, and the test equipment detects the video data provided by the mobile phone and returns the test results to the mobile phone. The mobile phone determines whether the screen projection function test is qualified based on the test results. In this way, the labor cost of testing the screen projection function can be avoided, and the uniformity of the screen projection test standards and the uniformity of the mobile phone screen projection quality can be improved.
[0009] In some feasible implementations of the first aspect, the first electronic device reads the detection result and generates a test result indicating that the screen projection and playback of the first electronic device is qualified or abnormal, including: the first electronic device reads the detection result, and the detection result includes a plurality of digits of detection values, and different digits of detection values correspond to different detection sub-results. When each detection value in the detection result indicates success, the first electronic device generates a test result indicating that the screen projection and playback of the first electronic device is qualified; or, when at least one detection value in the detection result indicates abnormality, the first electronic device generates a test result indicating that the screen projection and playback of the first electronic device is abnormal.
[0010] In this embodiment, the detection value of each digit in the detection result represents a different detection sub-result. Therefore, by obtaining the detection result, the mobile phone can determine which digit of the detection value represents an abnormality, and then the mobile phone can determine which detection sub-result is abnormal, which helps to determine the cause of the abnormal screen projection playback of the mobile phone.
[0011] In some feasible implementations of the first aspect, after generating the test result, the method further includes: triggering a preset startup process to perform a next test.
[0012] In the quality inspection line, after testing the screen projection function of the mobile phone, if there are other quality inspection items, the mobile phone can automatically trigger the start-up process of the next quality inspection item after reading the test results provided by the test equipment and determining that the screen projection function test of the mobile phone is qualified, thereby improving the quality inspection efficiency of the mobile phone.
[0013] 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 to 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 playback of the first electronic device is qualified or abnormal.
[0014] In this application, on the quality inspection line before the mobile phone leaves the factory, the communication interface of the mobile phone uses the DP line to provide the video data of the screen projection to the test equipment, and the test equipment detects the video data provided by the mobile phone and returns the test results to the mobile phone. The mobile phone determines whether the screen projection function test is qualified based on the test results. In this way, the labor cost of testing the screen projection function can be avoided, and the uniformity of the screen projection test standards and the uniformity of the mobile phone screen projection quality can be improved.
[0015] In some feasible implementations of the second aspect, the method further includes: the second electronic device performs a disconnection detection on at least one pin in the communication interface to obtain a disconnection detection sub-result. The detection result includes a disconnection detection sub-result.
[0016] Take the example of detecting whether there is a short circuit problem on a pin to be tested: a high-level signal can be provided to the pin to be tested, and the signal of the pin to be tested can be detected to be pulled high. If it is pulled high, it indicates that there is no short circuit problem on the pin to be tested. If it is not pulled high, it indicates that there is a short circuit problem on the pin to be tested.
[0017] In this embodiment, the testing device can detect whether there is a short circuit problem in at least one pin of the mobile phone communication interface, thereby avoiding quality problems of the mobile phone after leaving the factory due to pin short circuit, and improving the reliability of the mobile phone's factory quality.
[0018] In some feasible implementations of the second aspect, the test method further includes: the second electronic device performs a 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.
[0019] When a high-level signal is provided to the pin to be tested and no high-level signals are provided to other pins, it is also possible to detect whether the signals of other pins are pulled high. If the signals of other pins are pulled high, it indicates that there is a short circuit problem with the pin to be tested. If the signals of other pins are not pulled high, it indicates that there is no open circuit problem with the pin to be tested.
[0020] In this embodiment, the testing device can detect whether there is a short circuit problem in at least one pin of the mobile phone communication interface, thereby avoiding quality problems of the mobile phone after leaving the factory due to pin short circuit and improving the reliability of the mobile phone's factory quality.
[0021] In some feasible implementations 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 coupling with the first electronic device. The second electronic device acquires the video data provided by the first electronic device, including: when the countdown process ends, the second electronic device acquires the video data provided by the first electronic device.
[0022] Part of the time period for quality inspection of the mobile phone screen projection function in the quality inspection pipeline may partially overlap with the time periods of other quality inspection items in the quality inspection pipeline.
[0023] For example, the quality inspection line can also inspect the under-screen fingerprint function of the mobile phone. In the process of inspecting the under-screen fingerprint function of the mobile phone, when the mobile phone is in the under-screen fingerprint function quality inspection station, the fixture can insert the connector of the signal line into the communication interface of the mobile phone.
[0024] It should be noted that the last moment of the countdown process is equal to or later than the end time of the quality inspection of the under-screen fingerprint function, so that the quality inspection period of the under-screen fingerprint function does not overlap with the period when the test equipment detects the video data provided by the mobile phone.
[0025] In this embodiment, while the under-screen fingerprint function of the mobile phone is tested in the quality inspection line, the connector of the signal line is inserted into the communication interface of the mobile phone using a fixture, so that part of the time period for quality inspection of the screen projection function of the mobile phone overlaps with the time period for quality inspection of the under-screen fingerprint function of the mobile phone, thereby shortening the time spent on quality inspection of each function of the mobile phone by the quality inspection line, improving the quality inspection efficiency of the mobile phone, and thus increasing the output of mobile phones.
[0026] In some feasible implementations of the second aspect, after the second electronic device provides the detection result to the first electronic device, the testing method further includes: clearing the detection result.
[0027] In this embodiment, after the test device tests the screen projection function of a mobile phone and obtains the test result file, and sends the test result file to the mobile phone, it can clear the test result file in the mobile phone, so that the test device can test the screen projection function of the next mobile phone. In this way, it can avoid the situation where the test device sends the test result file of the screen projection function of one mobile phone to another mobile phone, prevent the problem of inconsistent test information, and improve the reliability of the screen projection function test of multiple mobile phones by one test device.
[0028] 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 during the playback of the video file. The second electronic device is configured to detect the video data and provide the detection result to the first electronic device. The first electronic device is also configured to read the detection result and generate a test result indicating that the screen projection playback of the first electronic device is qualified or abnormal.
[0029] In this application, on the quality inspection line before the mobile phone leaves the factory, the communication interface of the mobile phone uses the DP line to provide the video data of the screen projection to the test equipment, and the test equipment detects the video data provided by the mobile phone and returns the test results to the mobile phone. The mobile phone determines whether the screen projection function test is qualified based on the test results. In this way, the labor cost of testing the screen projection function can be avoided, and the uniformity of the screen projection test standards and the uniformity of the mobile phone screen projection quality can be improved.
[0030] In some feasible implementations of the third aspect, the test system further includes a fixture, and the fixture is configured to insert the signal line into the communication interface of the first electronic device to couple the first electronic device to the second electronic device.
[0031] 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 processor. The memory stores a computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes any method in the first aspect; or executes any method in the second aspect.
[0032] The beneficial effects of the fourth aspect can refer to the beneficial effects of the testing method in any one of the first aspect or the second aspect, and will not be repeated here.
[0033] In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes any method of the first aspect; or executes any method of the second aspect.
[0034] The beneficial effects of the fifth aspect can refer to the beneficial effects of the testing method in any one of the first aspect or the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of a structure of a test system provided for some embodiments of the present application; Figure 2 A schematic diagram of a connection between a mobile phone and a test device in a test system provided in some embodiments of the present application; Figure 3 A flow chart of a testing method provided for some embodiments of the present application; Figure 4 A schematic diagram of a result file in a test method provided in some embodiments of the present application; Figure 5 Another flow chart of the testing method provided for some embodiments of the present application; Figure 6 for Figure 5 Schematic diagram of the interaction between the mobile phone and the test equipment in the test method; Figure 7 Another flow chart of a testing method provided for some embodiments of the present application; Figure 8 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0036] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments provided by the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present application.
[0037] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0038] In addition, in the present application, directional terms such as "up", "down", "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of the components in the drawings. It should be understood that these directional terms may be relative concepts, which are used for relative description and clarification, and may change accordingly according to the change in the orientation of the components in the drawings.
[0039] When describing some embodiments, the expressions "connected", "connected" and their derivatives may be used. For example, when describing some embodiments, the term "connected" may be used to indicate that two or more components are in direct or indirect physical contact with each other. For example, A and B are connected, which may mean that A and B are connected, or that A and B are connected through other components. In addition, the term "coupled" may be a way of achieving electrical connection for signal transmission, and coupling may refer to direct coupling or indirect coupling.
[0040] “At least one of A, B, and C” has the same meaning as “at least one of A, B, or C” and both include the following combinations of A, B, and C: A only, B only, C only, the combination of A and B, the combination of A and C, the combination of B and C, and the combination of A, B, and C.
[0041] “A and / or B” includes the following three combinations: A only, B only, and a combination of A and B.
[0042] As used herein, "about," "substantially," or "approximately" includes the stated value and an average value that is within an acceptable range of variation from the particular value as determined by one of ordinary skill in the art taking into account the measurements in question and errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).
[0043] For ease of understanding, the technical terms involved in this application are explained and described below.
[0044] Universal serial bus (USB) is a serial bus standard and a technical specification for input and output interfaces. USB is widely used in electronic devices such as personal computers, mobile phones, tablet computers, photographic equipment, digital televisions, and game consoles.
[0045] USB is a high-speed serial transmission bus that supports hot plugging and uses differential signals to transmit data. The USB connection system can include three parts: "host", "device" and "physical connection". "Host" is a complex of hardware, software and firmware that provides USB interface and interface management capabilities. It can be a personal computer or an OTG (on-the-go) device. There is only one USB host in a USB connection system. "Device" can include devices that support USB functions. "Physical connection" can refer to the USB transmission line, which connects the "host" and "device" respectively.
[0046] Currently, USB includes multiple generations (such as USB1.0, USB1.1, USB2.0, USB3.0, USB3.1, etc.). Taking USB2.0 as an example, the maximum data transmission speed can reach 480Mb / S. USB2.0 supports two power supply modes: "bus power" and "self-power". In bus power mode, USB2.0 devices can obtain a maximum current of 500mA. USB2.0 is designed to be backward compatible. When a full-speed (USB 1.1) or low-speed (USB 1.0) device is 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.
[0047] The Type-C interface is a type of USB interface that can be used in electronic devices (such as personal computers, mobile phones, and tablets). The Type-C interface is designed to be double-sided symmetrical, that is, the Type-C plug can be inserted into the Type-C interface on both sides, which greatly improves the convenience of using the USB interface. Type-C supports USB2.0 and USB3.0.
[0048] High Definition Multimedia Interface (HDMI) is a fully digital video and sound 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 televisions, etc. HDMI can transmit audio and image signals at the same time. Since the audio and image signals use the same wire, the difficulty of installing the system line is greatly simplified.
[0049] 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 transfer station. OTG technology has been widely used in various electronic devices, such as smart phones, tablet computers, digital cameras, etc.
[0050] The OTG standard is an important functional supplement to USB 2.0. OTG allows an electronic device (such as a smartphone) to play the role of a host and directly connect to other USB devices (such as USB flash drives, keyboards, mice, etc.). The Type-C interface is backward compatible with USB2.0, so the OTG function can be supported in the Type-C interface, thereby improving the data exchange capabilities between electronic devices and external devices.
[0051] Display port (DP) screen projection means projecting the screen of a mobile phone or computer onto other display devices through the DP interface. For example, use a Type-C adapter cable, connect one end to the Type-C port of a mobile phone or computer, and select the appropriate interface (such as HDMI, DP or MiniDP) according to the port of the display device on the other end. Then switch the input signal source of the display device to the corresponding interface to complete the screen projection.
[0052] Near field communication (NFC) technology is developed based on contactless radio frequency identification (RFID) technology combined with wireless interconnection technology. Electronic devices (such as smartphones) using NFC technology can exchange data when they are close to each other.
[0053] Extended display identification data (EDID) is a type of data transmitted by a display device to a computer or other video source device. EDID contains detailed information about the display device, such as resolution, display mode, color capabilities, etc. This information is critical for computers or video source devices because they need to understand the capabilities of the connected display device to correctly configure the graphics output. At present, most mobile phones have a screen projection function. When mobile phone users need to share multimedia files in their mobile phones with people around them, they can use the screen projection function of the mobile phone to project the multimedia files played on the mobile phone to the connected external display device for display. Among them, the DP screen projection function of the mobile phone is a screen projection method that mobile phone users often choose.
[0054] 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 realize the DP screen projection function normally after leaving the factory. At present, the test method for the DP screen projection function of the mobile phone is that in the quality inspection line before the mobile phone leaves the factory, the staff manually inserts the Type-C plug at one end of the DP cable into the Type-C interface of the mobile phone to achieve the coupling between the mobile phone and the external display device, and then starts the DP screen projection function of the mobile phone. The staff observes with their naked eyes whether the playback quality of the external display device is normal and whether the sound playback is normal to test whether the DP screen projection function of the mobile phone is qualified.
[0055] However, this solution of having staff test whether the DP projection function of the mobile phone is qualified requires high manpower costs, and manual testing of whether the projection function is qualified is prone to unstable judgment standards, resulting in low uniformity of the quality of mobile phones leaving the factory.
[0056] In addition, when testing the DP screen projection function of a mobile phone, the staff will only manually insert the Type-C plug of the DP cable into the Type-C interface of the mobile phone once to couple the mobile phone with the external display device. In this way, the quality inspection line will actually 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 on both sides of the Type-C interface. In this way, it is easy to reduce the reliability of the quality of mobile phones that pass the DP screen projection function test.
[0057] Based on this, the embodiments of the present application provide a testing method, a testing system, and an electronic device. In the testing system, the second electronic device detects the video data output by the DP screen projection function of the first electronic device, avoiding the need for people to observe and determine whether the DP screen projection function of the first electronic device 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 standards can be improved, thereby improving the uniformity of the DP screen projection quality of the first electronic device after leaving the factory.
[0058] Figure 1 A schematic diagram of the structure of a test system provided by some embodiments of the present application is shown. Figure 1 As shown, the test system may include a first electronic device, a second electronic device, and a signal line connecting the first electronic device and the second electronic device.
[0059] The first electronic device provided in the embodiment of the present application is an electronic device that supports DP screen projection through USB. The first electronic device may include but is not limited to mobile phones, tablet computers, laptops, handheld computers, netbooks, personal digital assistants (PDAs), wearable electronic devices (smart watches, smart bracelets, smart rings, etc.), virtual reality devices, etc., and the embodiments of the present application are not limited to this. In the following text, a mobile phone that uses a Type-C interface to implement DP screen projection is used as an example for illustration, but it is not limited to mobile phones and Type-C interfaces.
[0060] The software system of the mobile phone can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the mobile phone.
[0061] Figure 1 A software structure block diagram of the mobile phone 100 provided in an embodiment of the present application is shown.
[0062] The layered architecture divides the software into several layers, each with clear roles 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: the application layer, the application framework layer, and the kernel layer.
[0063] The application layer can include a series of application packages.
[0064] like Figure 1 As shown, the application package may include applications such as video playback control, link status monitoring, video resource selection, result file detection, and timeout control.
[0065] The video playback control application is used to control the start, stop, and end of playback of video files.
[0066] The link status monitoring application is used to monitor the status of the link transmitting video data during video playback.
[0067] The video resource selection application is used to select a video file from one or more local video files for playback to complete the DP projection function detection.
[0068] The result file detection application is used to detect the detection result provided by the second electronic device after the second electronic device completes the detection of the DP projection function of the mobile phone, and determine whether the DP projection function of the mobile phone is qualified or abnormal based on the detection result.
[0069] The timeout control application is used to exit video playback when the second electronic device detects the DP projection function of the mobile phone for longer than the preset detection time, so as to prevent the problem of the second electronic device detecting the DP projection function of the mobile phone for timeout.
[0070] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0071] like Figure 1 As shown, the application framework layer may include video playback service, display service, UEventObserver service, hardware interface definition language (HIDL) and software interface definition language (AIDL), etc.
[0072] The video playback service is used to manage video playback. For example, local video playback can be achieved by adding elements associated with local video files in the blueprint.
[0073] Display services can include surface flinger, OpebGL, Hwcomposer, and DisplayDispatcher. Among them, surface flinger can provide services for the display of all applications. OpebGL can be used to composesurface and 2D and 3D graphics processing. Applications processed by OpenGL can be user interface (UI) applications, game applications, map applications, Flash applications, etc. Hwcomposer can be applied to video files to directly output the video data of the color encoding method. DisplayDispatcher is used to obtain and set the configuration parameters of the display. For example, DisplayDispatcher can obtain the hot plug status of the HDMI interface, and then set the output of video data from the HDMI interface when the hot plug status indicates that it is inserted into the HDMI interface.
[0074] The UEventObserver service can monitor kernel events. It is a mechanism for the Android Java layer to use UEvent to obtain kernel layer status changes. Using the UEventObserver service, you can at least monitor the battery status, headset status, and USB status.
[0075] HIDL is a language used to define and implement the hardware abstraction layer (HAL) interface 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 interact seamlessly with underlying hardware devices.
[0076] AIDL is a language used to define and implement inter-process communication interfaces in the Android system. It enables applications to flexibly communicate across processes and implement data exchange and function calls between different processes through functions such as cross-process communication, remote method calls, cross-platform development, and interface management.
[0077] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, USB driver, audio driver, and DP driver. Among them, the DP driver can include DP status monitoring, data transmission, and video resource and monitoring path reporting.
[0078] The second electronic device provided in the embodiment of the present application is an electronic device that supports DP screen projection testing through HDMI. The second electronic device may include, but is not limited to, test equipment, mobile phones, tablet computers, laptops, handheld computers, netbooks, personal digital assistants (PDAs), wearable electronic devices (smart watches, smart bracelets, smart rings, etc.), virtual reality devices, etc., and the embodiments of the present application are not limited to this. The following text uses the test equipment as an example for illustration, but it is not limited to the test equipment.
[0079] Figure 1 A software structure block diagram of the test device provided in the embodiment of the present application is also shown.
[0080] like Figure 1 As shown, the test device 200 may include a video stream data detection application, a display resolution detection application, a frame rate screen lock analysis application, an open and short circuit test application, a result file generation application, and an abnormal restart application.
[0081] The video stream data detection application can be used to detect the video data provided by the mobile phone through the communication interface. Exemplarily, the video stream data detection application can be used to detect the integrity of the audio signal in the video data. Exemplarily, the video stream data detection can be used to detect the integrity of the image signal in the video data. Exemplarily, the video stream data detection application can be used to detect the image source and the audio source.
[0082] The display resolution detection application can be used to detect the resolution of images in video data provided by the mobile phone through the communication interface.
[0083] The frame rate screen 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 projection is stable.
[0084] The open-short circuit test can be used to detect whether there is an open circuit or short circuit problem on at least one pin in the communication interface of the mobile phone. For example, taking the detection of whether there is an open circuit problem on a pin to be tested as an example: a high-level signal can be provided to the pin to be tested, and the signal of the pin to be tested can be detected to be pulled high. If it is pulled high, it means that there is no open circuit problem on the pin to be tested. If it is not pulled high, it means that there is an open circuit problem on the pin to be tested. In addition, when a high-level signal is provided to the pin to be tested and no high-level signal is provided to other pins, it is also possible to detect whether the signals of other pins are pulled high. If the signals of other pins are pulled high, it means that there is a short circuit problem on the pin to be tested. If the signals of other pins are not pulled high, it means that there is no open circuit problem on the pin to be tested.
[0085] The result file generation can be used to generate a file including the test results based on the data detected by multiple detection applications. The test results can indicate whether the detection of each detection application is qualified or abnormal.
[0086] Abnormal restart can restart the test device 200 to resume the test of the video data provided by the mobile phone by the test device 200 when an abnormality is detected in the test device 200.
[0087] Figure 2 A connection diagram between a mobile phone and a test device in a test system is shown.
[0088] The test device 200 simulates a display device and is inserted into the Type-C interface of the mobile phone 100 via a DP cable. After the mobile phone 100 recognizes that the external device is a display device, it converts the RX (receive) and TX (transmit) of USB3.0 into DPRX and DPTX. Among them, the mobile phone 100 can be used as the main device (Source Device) and the test device 200 can be used as the slave device (SinkDevice).
[0089] The Main Link channel, AUX channel and HPD channel may be included between DPRX and DPTX.
[0090] 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.1Gbps, 5.4Gbps, 2.7Gbps, and 1.62Gbps. All enabled channels must run at the same link rate. All four lanes of the Main Link can 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 rules, and the receiving end needs to recover the clock. Allow the master and slave devices to support the minimum number of channels required for their needs.
[0091] It should be noted that the device supporting two lanes (mobile phone 100 and test device 200) needs to support one lane and two lanes at the same time, while the device supporting four lanes needs 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 sink device.
[0092] The AUX channel consists of an AC-coupled double-ended differential pair. Similar to the case of the Main Link, the AUX channel does not have a dedicated clock channel, and the clock is extracted from the data stream. The AUX channel has a half-duplex, bidirectional port physical layer (PHY layer for short). The mobile phone 100 is the master device and the test device 200 is the slave device. When an 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 with the correct link rate, correct drive current, and equalization level. During normal operation after link training, the receiving device can notify the change of link status by switching the HPD signal of the interrupt request signal. The mobile phone 100 then uses the AUX transaction to check the status register of the DPCD link or the test device 200, 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, it can remain active and stable even if the timing of the display port link transmission changes.
[0093] The HPD signal is mainly used to detect the hot plug status of the Type-C interface, and also serves as an interrupt request of the test device 200. It is a single-line signal.
[0094] The following is an example of testing the DP projection function of the mobile phone 100 by the test device 200.
[0095] Figure 3 A flow chart of the test method is shown in FIG. Figure 3As shown, the testing method may include steps S310 to S340.
[0096] Step S310: Establish a communication connection between the test device and the communication interface of the mobile phone.
[0097] The communication interface of the mobile phone 100 may be a USB interface of USB2.0 or higher. For ease of understanding, the Type-C interface will be used as an example for explanation.
[0098] When the mobile phone 100 is passed on the quality inspection line in a preset quality inspection sequence, the Type-C connector of the DP cable can be inserted into the Type-C interface of the mobile phone through the test fixture. The other end of the DP cable can be connected to the test device 200 all the time or can be actively connected to the test device 200, which is not limited here.
[0099] Thus, the mobile phone 100 can establish a communication connection with the test device 200 through the DP line. Exemplarily, the mobile phone 100 and the test device 200 can form an HDMI link, a DP Link link, an OTG link, etc. through the DP line, which is not limited here.
[0100] Step S320: During the process of playing the video file, the mobile phone provides video data to the test device through the communication interface.
[0101] The DP screen projection test function preset in the mobile phone 100 is started, and the mobile phone 100 selects a local video to play. When the mobile phone 100 plays the video file, if it is detected that the Type-C connector of the DP cable is inserted into the Type-C interface of the mobile phone, the mobile phone 100 provides video data to the test device 200 through the communication interface.
[0102] It should be noted that the moment when the mobile phone 100 starts playing the video can be before the Type-C connector of the DP cable is inserted into the Type-C interface of the mobile phone, or after the Type-C connector of the DP cable is inserted into the Type-C interface of the mobile phone, or the moment when the Type-C connector of the DP cable is inserted into the Type-C interface of the mobile phone, which is not limited here. It can be understood that the moment 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.
[0103] The process in which the mobile phone 100 provides video data to the test device 200 through the communication interface may include: the mobile phone 100 obtains the EDID of the test device 200, and then the mobile phone 100 outputs video data with a resolution and frame rate corresponding to the EDID.
[0104] Step S330: The testing device detects the video data and obtains a detection result.
[0105] The test device 200 parses the video data provided by the mobile phone 100 and determines whether the resolution and frame rate corresponding to the video data are locked.
[0106] In some examples, the video stream data detection application of the test device 200 may be used to detect the integrity of audio data, the integrity of image data, and the audio source and image source in the video data.
[0107] Exemplarily, the video stream data detection application outputs a detection sub-result. For example, when 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 (detection sub-result) to the result file generation application, or when 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 (detection sub-result) to the result file generation application.
[0108] In another exemplary embodiment, 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, when the video stream data detection application determines that the audio data is complete, the video stream data detection application outputs a pass to the result file generation application, and when the video stream data detection application determines that the image data is complete, the video stream data detection application outputs a pass to the result file generation application.
[0109] In 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. When the display resolution detection application determines that the resolution of the image meets the resolution corresponding to the EDID, the display resolution detection application outputs pass to the result file generation application, or when the display resolution detection application determines that the resolution of the image does not meet the resolution corresponding to the EDID, the display resolution detection application outputs fail to the result file generation application.
[0110] In some other examples, the frame rate screen 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. When the frame rate screen lock analysis application determines that the frame rate is locked, the frame rate screen lock analysis application outputs pass to the result file generation application; or, when the frame rate screen lock analysis application determines that the frame rate is not locked, the frame rate screen lock analysis application outputs fail to the result file generation application.
[0111] In some further examples, the open-short circuit test application of the test device 200 can be used to detect whether there is an open circuit or 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). When the open-short circuit test application determines that each pin has no open circuit problem and no short circuit problem, the open-short circuit test application outputs pass to the result file generation application; or, when the open-short circuit test application determines that at least one pin has an open circuit problem or a short circuit problem, the open-short circuit test application outputs fail to the result file generation application.
[0112] It should be noted that, in some examples, the test device may only perform open circuit detection on each pin of the communication interface without performing short circuit detection; or, the test device may only perform short circuit detection on each pin of the communication interface without performing open circuit detection.
[0113] The result file generation application of the test device 200 can form a result file including the detection results based on the detection sub-results provided by the video stream data detection application, the display resolution detection application, the frame rate screen lock analysis application, and the open and short circuit test application. The detection result can indicate the status of each detection sub-result.
[0114] Exemplarily, the detection result may include multiple digits, each digit corresponds to a detection sub-result, a detection value of a digit of "0" indicates that the detection sub-result is pass, and a detection value of a digit of "1" indicates that each detection sub-result is fail.
[0115] For example, the video stream data detection application outputs a detection sub-result, and the detection result may include 4 digits, the first digit corresponds to the video stream data detection application, the second digit corresponds to the display resolution detection application, the third digit corresponds to the frame rate screen lock analysis application, and the fourth digit corresponds to the open short circuit test application. The detection result is 0000, which means that the video stream data detection application outputs pass, the display resolution detection application outputs pass, the frame rate screen lock analysis application outputs pass, and the open short circuit test application outputs pass. The detection result is 1000, which means that the video stream data detection application outputs fail, the display resolution detection application outputs pass, the frame rate screen lock analysis application outputs pass, and the open short circuit test application outputs pass. By analogy, the meaning of various detection results can be obtained.
[0116] As mentioned before, the Type-C interface is a double-sided symmetrical interface. It can be understood that the number and function of the pins on one side of the Type-C interface and the pins on the other side of the Type-C interface are the same, so the DP screen projection function can be completed by relying on only one side of the Type-C interface.
[0117] Therefore, in some examples, the test device 200 only tests the pins on one side of the Type-C interface in the mobile phone 100 at a time, and then tests the other side of the Type-C interface after testing one side of the Type-C interface. For example, the DP projection function test is performed on the pins on the A side of the Type-C interface, and then the DP projection function test is performed on the pins on the B side of the Type-C interface.
[0118] Based on this, the video stream data detection application outputs two detection sub-results. The detection result may include 10 digits, such as Figure 4As shown, the first digit corresponds to an open and short circuit test, the second digit corresponds to an audio test of the B-side pin in the Type-C interface, the third digit corresponds to an audio test of the A-side pin in the Type-C interface, the fourth digit corresponds to an image frame rate test of the B-side pin in the Type-C interface, the fifth digit corresponds to an image frame rate test of the A-side pin in the Type-C interface, the sixth digit corresponds to an image resolution test of the B-side pin in the Type-C interface, the seventh digit corresponds to an image data (DP signal locked) test of the B-side pin in the Type-C interface, the eighth digit corresponds to an image resolution test of the A-side pin in the Type-C interface, the ninth digit corresponds to an image data (DP signal locked) test of the A-side pin in the Type-C interface, and the tenth digit is a reserved digit and defaults to 0. The test result is 0000000000, indicating that the open and short circuit test passed, the audio test of the B side pin in the Type-C interface passed, the audio test of the A side pin in the Type-C interface passed, the image frame rate test of the B side pin in the Type-C interface passed, the image frame rate test of the A side pin in the Type-C interface passed, the image resolution test of the B side pin in the Type-C interface passed, the DP signal lock test of the B side pin in the Type-C interface passed, the image resolution test of the A side pin in the Type-C interface passed, and the DP signal lock test of the B side pin in the Type-C interface passed. The test result is 1000000000, which means that the open-short circuit test fails, the audio test of the B-side pin in the Type-C interface passes, the audio test of the A-side pin in the Type-C interface passes, the image frame rate test of the B-side pin in the Type-C interface passes, the image frame rate test of the A-side pin in the Type-C interface passes, the image resolution test of the B-side pin in the Type-C interface passes, the DP signal lock test of the B-side pin in the Type-C interface passes, the image resolution test of the A-side pin in the Type-C interface passes, and the DP signal lock test of the B-side pin in the Type-C interface passes. And so on, the meaning of various test results can be deduced.
[0119] In this embodiment, the detection value of each digit in the detection result represents a different detection sub-result. Therefore, by obtaining the detection result, the mobile phone 100 can determine which digit of the detection value represents an abnormality, and then the mobile phone 100 can determine which detection sub-result is abnormal, which helps to determine the cause of the abnormal screen projection playback of the mobile phone 100.
[0120] In addition, if 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 test result) in the result file provided to the mobile phone 100, for example, the test duration is 300ms.
[0121] Step S340: The mobile phone reads the test result and generates a test result indicating whether the mobile phone screen projection and playback is successful or abnormal.
[0122] As explained before, the presence of "1" in multiple digits in the test result indicates that the test sub-result is fail. Therefore, when the mobile phone 100 reads at least one digit in the test result as 1, a test result indicating that the screen projection and playback function of the mobile phone 100 is abnormal is generated; or, when the mobile phone 100 reads all digits in the test result as 0, a test result indicating that the screen projection and playback function of the mobile phone 100 is normal is generated.
[0123] In the embodiment of the present application, on the quality inspection line before the mobile phone leaves the factory, the communication interface of the mobile phone 100 uses the DP line to provide the video data of the screen projection to the test device 200, and the test device 200 detects the video data provided by the mobile phone 100 and returns the test result to the mobile phone 100. The mobile phone 100 determines whether the screen projection function test is qualified based on the test result. In this way, the labor cost of testing the screen projection function can be eliminated, and the uniformity of the screen projection test standard and the uniformity of the screen projection quality of the mobile phone 100 can be improved.
[0124] In addition, when the test device 200 only tests the pins on one side of the Type-C interface in the mobile phone 100 each time and performs the DP screen projection test on the pins on both sides of the Type-C interface twice, the DP screen projection function test can be performed on the pins on both sides of the Type-C interface. In this way, the problem of any pin failure can be found in time to ensure the reliability of the quality of the mobile phone after leaving the factory.
[0125] Figure 5 Another flow chart of the test method is shown in FIG. Figure 6 Shows Figure 5 Schematic diagram of the interaction between the mobile phone and the test equipment in the test method. Figure 5 As shown, the mobile phone 100 may include DP test software, audio manager (AudioManager), Surface Holder, HDMI Broadcast and DPLink Observer. The test device 200 may include OTG Broadcast and DP test box.
[0126] like Figure 5 and Figure 6 As shown, the testing method may include steps S401 to S420.
[0127] Step S401: The mobile phone starts the DP test.
[0128] Specifically, starting the DP test may be starting the DP test software. For example, the mobile phone 100 may automatically start the DP test software after the quality inspection line of the mobile phone 100 completes the previous quality inspection item.
[0129] Step S402: The mobile phone registers the Audio Manager and sets audio parameters.
[0130] After registering Audio Manager, you can use Audio Manager to set audio parameters such as the volume of the mobile phone audio data in subsequent DP projection tests.
[0131] Step S403: The mobile phone registers Surface Holder callback with Surface Holder.
[0132] By setting the callback of Surface Holder, a series of methods are provided to operate and manage Surface, such as locking and unlocking Surface, setting the pixel format of Surface, obtaining the width and height of Surface, etc., so as to set the image parameters in the video data.
[0133] Step S404: the mobile phone registers the HDMI plug-in and unplug-out broadcast with HDMI Broadcast.
[0134] After registering the HDMI plug and unplug broadcast, the mobile phone 100 can provide video data to the test device 200 in a manner compatible with the HDMI corresponding protocol.
[0135] Step S405: The mobile phone registers DP Link monitoring with DP Link Observer.
[0136] After the mobile phone 100 registers DP Link monitoring with DP Link Observer, the mobile phone 100 can monitor the status of data transmission in the DP screen projection test.
[0137] Step S406: The mobile phone registers the OTG plug-in broadcast.
[0138] After the mobile phone 100 registers the OTG plug-in broadcast, the mobile phone 100 can communicate with the test device 200 in a compatible manner with the protocol corresponding to OTG.
[0139] Step S407: The DP test software receives a Surface Holder callback.
[0140] Step S408: The DP test software starts playing the local video.
[0141] Step S409: The DP test software detects that the HDMI is inserted into the broadcast.
[0142] Step S410: The DP test software can use the Audio Manager to set the volume.
[0143] Step S411: The DP test software establishes a DP Link link with the DP Link Observer to send video data to the test device via the DP Link.
[0144] After the mobile phone 100 sends the video data to the test device 200 , the specific process of the test device 200 testing the video data can refer to the description of step S330 , which will not be repeated here.
[0145] Step S412: After the test device finishes testing the video data, the DP Link connection with the mobile phone is disconnected.
[0146] Step S413: the test device sends an HDMI unplug broadcast to the DP test software using HDMI Broadcast.
[0147] Step S414: the DP test box in the test device generates a result file including the test result.
[0148] Step S415: The DP test box is mounted on the mobile phone using OTG Broadcast, and the result file is provided to the DP test software.
[0149] Step S416: The DP test software reads the test result and determines the DP test result.
[0150] Step S417: The DP test software cancels the HDMI unplug broadcast.
[0151] Step S418: The DP test software releases the DP Link monitoring.
[0152] Step S419: The DP test software destroys the Surface.
[0153] Step S420: The DP test software releases the OTG broadcast.
[0154] Steps S417 to S420 are steps of releasing the communication between the mobile phone 100 and the test device 200 after the mobile phone determines the DP test result in step S416.
[0155] In the embodiment of the present application, on the quality inspection line before the mobile phone 100 leaves the factory, the communication interface of the mobile phone 100 uses the DP line to provide the video data of the screen projection to the test device 200, and the test device 200 detects the video data provided by the mobile phone 100 and returns the test result to the mobile phone 100. The mobile phone determines whether the screen projection function test is qualified based on the test result. In this way, the labor cost of testing the DP screen projection function of the mobile phone can be eliminated, and the uniformity of the DP screen projection test standard and the uniformity of the mobile phone screen projection quality can be improved.
[0156] In some embodiments, Figure 5 As shown, after step S420, step S421 and step S423 may also be included.
[0157] Step S421: The DP test box is reset and the result file is cleared.
[0158] Step S422: The DP test box unmounts the mobile phone.
[0159] Step S423: The DP test software stops playing the local video.
[0160] Among them, step S423 is not limited to a specific occurrence time, and can be performed after step S420.
[0161] In this embodiment, after the DP test box in the test device tests the DP screen projection function of a mobile phone to obtain a test result file and sends the test result file to the mobile phone, the test result file in the mobile phone can be cleared to facilitate the DP test box to test the DP screen projection function of the next mobile phone. In this way, it is possible to avoid the situation where the DP test box sends the test result file of the DP screen projection function of a mobile phone to another mobile phone, prevent the problem of inconsistent test information, and improve the reliability of a test device for testing the DP screen projection function of multiple mobile phones.
[0162] In some embodiments, part of the time period for quality inspection of the DP projection function in the quality inspection pipeline may partially overlap with the time periods of other quality inspection items in the quality inspection pipeline.
[0163] Exemplarily, the quality inspection assembly line can also quality inspect the under-screen fingerprint function of the mobile phone 100. In the process of quality inspecting the under-screen fingerprint function of the mobile phone 100, when the mobile phone 100 is in the under-screen fingerprint function quality inspection station, the fixture can insert the Type-C connector of the DP cable into the Type-C interface of the mobile phone 100.
[0164] See also Figure 7 , Figure 7Another flow chart of the test method is shown, and steps S401 to S409 can all be steps completed when the mobile phone 100 is in the workstation for quality inspection of the fingerprint function under the screen. It should be noted that playing the local video in step S408 will not affect the quality inspection of the fingerprint function under the mobile phone screen.
[0165] like Figure 7 As shown, the test method may further include step S424: starting a countdown process. After the countdown process ends, step S409 is executed.
[0166] The countdown duration of step S424 may be equal to the duration required for the quality inspection of the under-screen fingerprint function, or the countdown duration of step S424 may be greater than or equal to the duration between the moment when the signal line is inserted into the Type-C interface of the mobile phone and the moment when the quality inspection of the under-screen fingerprint function ends; or, it may be other durations. It should be noted that the last moment of the countdown duration of step S424 is equal to or later than the moment when the quality inspection of the under-screen fingerprint function ends, so that the quality inspection period of the under-screen fingerprint function does not overlap with the period when the test equipment detects the video data provided by the mobile phone.
[0167] In this embodiment, while the under-screen fingerprint function of the mobile phone 100 is tested in the quality inspection line, the Type-C connector of the DP cable is inserted into the Type-C interface of the mobile phone 100 using a fixture to perform the step of quality inspection of the DP screen projection function of the mobile phone 100, so that part of the time period for quality inspection of the DP screen projection function of the mobile phone 100 overlaps with the time period for quality inspection of the under-screen fingerprint function of the mobile phone 100, thereby shortening the time spent on quality inspection of each function of the mobile phone 100 by the quality inspection line, improving the quality inspection efficiency of the mobile phone 100, and thus improving the output of the mobile phone 100.
[0168] In some embodiments, in the quality inspection pipeline, after testing the DP projection function of the mobile phone 100, if there are other quality inspection items, the mobile phone 100 can automatically trigger the startup process of the next quality inspection item after reading the test results provided by the test equipment 200 and determining that the DP projection function test of the mobile phone 100 is qualified, thereby improving the quality inspection efficiency of the mobile phone 100.
[0169] For example, in the quality inspection line, after testing the DP 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 can communicate with the subsequent 8K device through the NFC function. Therefore, after the mobile phone 100 reads the test result provided by the test equipment 200 and determines that the DP projection function test of the mobile phone 100 is qualified, the NFC function of the mobile phone 100 can be automatically driven so that the mobile phone 100 can establish a communication connection with the 8K device of the next quality inspection station during the movement of the mobile phone 100 on the quality inspection line.
[0170] The present application also provides an electronic device, such as Figure 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 signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 702 can be used to send signals to other devices (such as a processor 701 or a screen of an electronic device). Exemplarily, the interface circuit 702 can read instructions stored in the memory and send the instructions to the processor 701. When the instructions are executed by the processor 701, the first electronic device or the second electronic device can perform the various steps in the above embodiments. Of course, the electronic device can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0171] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned mobile phone or application building platform, the controller executes each function or step of the mobile phone in the above-mentioned embodiment; or, the controller executes each function or step of the test device in the above-mentioned embodiment.
[0172] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step of the mobile phone in the above embodiment; or, execute each function or step of the test device in the above embodiment.
[0173] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0174] In the 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. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0175] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0176] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0177] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0178] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A testing method, characterized in that: Applied to a first electronic device, the first electronic device includes a communication interface, and the first electronic device is coupled to a second electronic device through the communication interface; the method includes: During the process of playing the video file, the first electronic device provides the video data to the second electronic device through the communication interface, so that the second electronic device detects the video data to obtain a detection result; The first electronic device uses the communication interface to read the detection result and generate a test result indicating whether the screen projection and playback of the first electronic device is qualified or abnormal.
2. The method according to claim 1, characterized in that The first electronic device reads the detection result and generates a test result indicating that the screen projection and playback of the first electronic device is qualified or abnormal, including: The first electronic device reads the detection result, where the detection result includes a detection value of multiple digits, and detection values of different digits correspond to different detection sub-results; When each of the detection values in the detection results indicates success, the first electronic device generates a test result indicating that the screen projection and playback of the first electronic device is qualified; or, when at least one of the detection values in the detection results indicates an abnormality, the first electronic device generates a test result indicating that the screen projection and playback of the first electronic device is abnormal.
3. The method according to claim 1 or 2, characterized in that: After generating the test result, the method further includes: Trigger the preset startup process to proceed to the next test.
4. A testing method, characterized in that: Applied to a second electronic device, the second electronic device is coupled to a first electronic device; the method includes: The second electronic device acquires the video data provided by the first electronic device; The second electronic device detects the video data to obtain a detection result, wherein 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 whether the screen projection and playback of the first electronic device is qualified or abnormal.
5. The method according to claim 4, characterized in that The method further comprises: The second electronic device performs short circuit detection on at least one pin in the communication interface of the first electronic device to obtain a short circuit detection sub-result; the detection result includes the short circuit detection sub-result; and / or, The second electronic device performs a disconnection detection on at least one pin in the communication interface to obtain a disconnection detection sub-result; the detection result includes the disconnection detection sub-result.
6. The method according to claim 4 or 5, characterized in that: Before the second electronic device acquires the video data provided by the first electronic device, the method further includes: When the second electronic device detects that it is coupled with the first electronic device, triggering a countdown process; The second electronic device acquires the video data provided by the first electronic device, including: When the countdown process ends, the second electronic device obtains the video data provided by the first electronic device.
7. The method according to claim 4 or 5, characterized in that: After the second electronic device provides the detection result to the first electronic device, the method further includes: Clear the detection result.
8. A testing system, characterized in that: The device comprises a first electronic device and a second electronic device, wherein the first electronic device comprises a communication interface, and the communication interface and the second electronic device are coupled to each other via a signal line; The first electronic device is configured to provide video data to the second electronic device through the communication interface during the playback of the 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 also configured to read the detection result and generate a test result indicating whether the screen projection and playback of the first electronic device is qualified or abnormal.
9. The test system according to claim 8, characterized in that: Also includes clamps; The fixture is configured to insert a signal line into a communication interface of the first electronic device to couple the first electronic device to the second electronic device.
10. An electronic device, characterized in that: It comprises a memory and one or more processors; the memory is coupled to the processor; the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-3, or executes the method as described in any one of claims 4-7.
11. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method as claimed in any one of claims 1 to 3, or execute the method as claimed in any one of claims 4 to 7.
Citation Information
Patent Citations
A method and a device for testing an HDMI
CN102169154A
Screen transmission image detection method and system and device with storage function
CN111787393A
Screen projection function test method and electronic equipment
CN118450112A
Screen projection function test method and device, equipment and medium
CN119007602A
