A processing method and electronic device
By enabling intelligent devices to automatically analyze multimedia data and determine the interface functions of electronic devices, the problem of low efficiency and inaccuracy in manual testing is solved, and efficient and accurate test results are output.
Patent Information
- Application Number
- CN202210337098.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-03-31
AI Technical Summary
In existing technologies, the functional testing of electronic devices relies on manual visual inspection, which is inefficient and inaccurate.
The system receives multimedia data from the device under test via a smart device, analyzes and determines whether the target interface functions properly, and outputs the test results.
It enables efficient and accurate equipment function testing without human intervention.
Smart Images

Figure CN114727096B_ABST
Abstract
Description
Technical Field
[0001] This application relates to testing technology, and more particularly to a processing method and an electronic device. Background Technology
[0002] When testing the functions of electronic devices (such as display functions), it is usually necessary to connect a physical display and monitor the screen with the naked eye. Obviously, manual inspection is not only slow but also inaccurate. Summary of the Invention
[0003] In view of this, embodiments of this application aim to provide a processing method and an electronic device.
[0004] To achieve the above objectives, the technical solution of this application is implemented as follows:
[0005] According to one aspect of this application, a processing method is provided, comprising:
[0006] Obtain multimedia data output through the target interface of the first device;
[0007] Parse the multimedia data to obtain the target parameters of the multimedia data;
[0008] Determine whether the target parameter is within the target range, wherein the target parameter being within the target range indicates that the target interface meets the desired output conditions;
[0009] Output the determination result of the target parameter.
[0010] In the above scheme, obtaining the multimedia data output through the target interface of the first device includes at least one of the following methods:
[0011] Obtain multimedia data output through an interface of the first device;
[0012] Obtain multimedia data output through at least two interfaces of the first device.
[0013] In the above scheme, when multimedia data is obtained through at least two interfaces of the first device, determining whether the target parameter is within the target range includes at least one of the following methods:
[0014] The first multimedia data and the second multimedia data corresponding to the at least two interfaces are combined to obtain the third multimedia data; the third multimedia data is compared with the target multimedia data in the first comparison, and the data content judgment result representing the at least two interfaces is output based on the first comparison result;
[0015] A second comparison is performed on the first multimedia data and the second multimedia data corresponding to the at least two interfaces, and a judgment result representing the data content of the at least two interfaces is output based on the second comparison result.
[0016] The data content judgment result is related to the current output conditions of the first multimedia data and the second multimedia data.
[0017] In the above scheme, parsing the multimedia data to obtain the target parameters of the multimedia data includes at least one of the following methods:
[0018] The multimedia data is parsed into frame images, and the frame rate corresponding to the multimedia data is determined based on the frame images.
[0019] Each frame of the multimedia data is parsed into several horizontal pixels and several vertical pixels, and the resolution of the multimedia data is determined based on the several horizontal pixels and several vertical pixels.
[0020] Based on a first duration, at least two frames of images are extracted from the multimedia data, and the pixels of the at least two frames of images are compared one by one. Based on the comparison results, the image quality parameters corresponding to the multimedia data are determined.
[0021] The multimedia data is parsed into waveform signals, and the volume value corresponding to the multimedia data is determined based on the waveform signals.
[0022] In the above scheme, determining whether the target parameter is within the target range includes at least one of the following:
[0023] The frame rate in the target parameter is compared with the first frame rate threshold and the second frame rate threshold respectively in a third comparison. Based on the third comparison result, a frame rate judgment result representing the target interface is output, wherein the first frame rate threshold and the second frame rate threshold are two extreme values of the frame rate range.
[0024] The resolution in the target parameters is compared with the first resolution threshold and the second resolution threshold respectively in a fourth comparison. Based on the fourth comparison result, a resolution judgment result representing the target interface is output, wherein the first resolution threshold and the second resolution threshold are two extreme values of the resolution range.
[0025] The volume value in the target parameter is compared with the first volume threshold and the second volume threshold respectively in a fifth comparison. Based on the fifth comparison result, the sound judgment result representing the target interface is output, wherein the first volume threshold and the second volume threshold are two end values of the volume range.
[0026] The image quality parameters in the target parameters are compared with the first image quality threshold and the second image quality threshold in a sixth comparison. Based on the sixth comparison result, the image quality judgment result representing the target interface is output, wherein the first image quality threshold and the second image quality threshold are two extreme values of the image quality range.
[0027] The method in the above scheme further includes:
[0028] Detect the voltage value of the target interface corresponding to the multimedia data;
[0029] Output voltage value;
[0030] The output voltage value includes at least one of the following methods:
[0031] The voltage value is sent to the first device so that the first device can output a voltage judgment result for the target interface;
[0032] The voltage value is sent to a second device connected to the first device so that the second device can output a voltage judgment result for the target interface. The first device is a device that provides additional or enhanced functions to the second device, and the second device is a device that provides the multimedia data to the first device.
[0033] The voltage value is sent to a third device so that the third device can output a voltage judgment result for the target interface. The third device includes at least a processing device connected via a network.
[0034] In the above scheme, before obtaining the multimedia data output through the target interface of the first device, the method further includes:
[0035] Receive a first instruction sent by a target device; the target device includes at least the first device or a second device connected to the first device.
[0036] The data storage list is updated based on the processing object carried in the first instruction, wherein the processing object represents the type of the target parameter;
[0037] Data processing of the target interface is performed based on the processing objects stored in the data storage list.
[0038] According to a second aspect of this application, a processing method is provided, the method comprising:
[0039] Multimedia data is output to a third device via the target interface;
[0040] Receive target parameters sent by the third device for the target interface, wherein the target parameters are parameters obtained by the third device after parsing the multimedia data;
[0041] Determine whether the target parameter is within the target range, wherein the target parameter being within the target range indicates that the target interface meets the desired output conditions;
[0042] Output the determination result of the target parameter.
[0043] In the above scheme, determining whether the target parameter is within the target range includes at least one of the following:
[0044] The frame rate in the target parameter is compared with the first frame rate threshold and the second frame rate threshold respectively in a third comparison. Based on the third comparison result, a frame rate judgment result representing the target interface is output, wherein the first frame rate threshold and the second frame rate threshold are two extreme values of the frame rate range.
[0045] The resolution in the target parameters is compared with the first resolution threshold and the second resolution threshold respectively in a fourth comparison. Based on the fourth comparison result, a resolution judgment result representing the target interface is output, wherein the first resolution threshold and the second resolution threshold are two extreme values of the resolution range.
[0046] The volume value in the target parameter is compared with the first volume threshold and the second volume threshold respectively in a fifth comparison. Based on the fifth comparison result, the sound judgment result representing the target interface is output, wherein the first volume threshold and the second volume threshold are two end values of the volume range.
[0047] The image quality parameters in the target parameters are compared with the first image quality threshold and the second image quality threshold in a sixth comparison. Based on the sixth comparison result, the image quality judgment result representing the target interface is output, wherein the first image quality threshold and the second image quality threshold are two extreme values of the image quality range.
[0048] According to a third aspect of this application, an electronic device is provided, comprising:
[0049] The acquisition unit is used to acquire multimedia data output through the target interface of the first device;
[0050] The parsing unit is used to parse the multimedia data and obtain the target parameters of the multimedia data;
[0051] A determining unit is configured to determine whether the target parameter is within a target range, wherein the target parameter being within the target range indicates that the target interface meets the desired output conditions;
[0052] The output unit is used to output the determination result of the target parameter.
[0053] The processing method and electronic device provided in this application receive multimedia data output by the device under test (such as the first device) through a target interface via a smart device, and automatically parses and judges the target parameters of the multimedia data to determine whether the function of the target interface of the device under test is normal, and can output the determination result characterizing whether the function of the target interface is normal. Attached Figure Description
[0054] Figure 1 This is a flowchart illustrating the implementation of the processing method in this application. Figure 1 ;
[0055] Figure 2 This is a schematic diagram of the connection of the electronic device in this application. Figure 1 ;
[0056] Figure 3 This is a schematic diagram of the connection of the electronic device in this application. Figure 2 ;
[0057] Figure 4 for Figure 3 Schematic diagram of the connection process between electronic devices Figure 1 ;
[0058] Figure 5 for Figure 3 Schematic diagram of the connection process between electronic devices Figure 2 ;
[0059] Figure 6 This is a flowchart illustrating the implementation of the processing method in this application. Figure 2 ;
[0060] Figure 7 This is a schematic diagram of the testing process in this application;
[0061] Figure 8 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 1 ;
[0062] Figure 9 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 2 ;
[0063] Figure 10 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 3 . Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. The steps shown in the flowcharts can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0065] As mentioned above, when testing the functions of electronic devices (such as display functions), it is usually necessary to connect a physical display and monitor the screen manually. Since manual testing is prone to errors due to eye strain or simply turning the head, missing certain images on the screen, this method is not only inefficient but also inaccurate. However, the technical solution provided in this application uses an intelligent device to receive multimedia data output from the device under test (such as the first device) through a target interface. The device then automatically parses and judges the target parameters of the multimedia data to determine whether the target interface of the device under test is functioning correctly, and outputs a result indicating whether the target interface is functioning correctly. Because the processing solution provided in this application completes the entire testing process intelligently without human intervention, it improves the efficiency and accuracy of device testing.
[0066] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0067] Figure 1 This is a flowchart illustrating the implementation of the processing method in this application. Figure 1 ,like Figure 1 As shown, it includes:
[0068] Step 101: Obtain multimedia data output through the target interface of the first device;
[0069] Step 102: Parse the multimedia data to obtain the target parameters of the multimedia data;
[0070] Step 103: Determine whether the target parameter is within the target range, wherein the target parameter being within the target range indicates that the target interface meets the desired output conditions;
[0071] Step 104: Output the determination result of the target parameter.
[0072] In this application, the method can be applied to electronic devices with multimedia data interfaces, such as computers, data processors, servers, all-in-one machines, etc. These multimedia data interfaces include, but are not limited to, High Definition Multimedia Interface (HDMI), DisplayPort (DP), Video Graphics Array (VGA), and Digital Visual Interface (DVI).
[0073] In this application, the electronic device may include one multimedia data interface or at least two multimedia data interfaces, and the at least two multimedia data interfaces may be of the same or different types. For example, the electronic device may include two HDMI interfaces and two DP interfaces. Thus, when the device under test has multiple multimedia data interfaces, or when there are multiple devices under test, multiple multimedia data interfaces of the device under test or multiple devices under test can be tested simultaneously through this single electronic device, greatly improving testing efficiency.
[0074] In one implementation of this application, the electronic device can be connected to the first device via wired or wireless means. Based on this connection, the target interface of the first device can be detected to obtain a detection result on whether the target interface is functioning normally.
[0075] Here, the first device can be a terminal device such as a computer or mobile phone, which can output multimedia data through its target interface. When the target interface of the first device is a single interface, the electronic device can obtain multimedia data output through one of its interfaces. After obtaining the multimedia data, based on the processing object (i.e., the type of detection item corresponding to the target interface) stored in the data storage list, it can parse the multimedia data of the target interface to obtain the target parameters of the multimedia data. The target parameters are then compared with the two endpoints of the target range to determine whether the target parameters are within the target range, and finally, the judgment result of the target parameters is output.
[0076] For example, if the processing objects stored in the storage list include resolution, frame rate, image quality, and volume, then after the electronic device obtains the multimedia data output through the target interface (e.g., interface A) of the first device, it can perform resolution parsing, frame rate parsing, image quality parsing, and volume parsing of the multimedia data of the target interface to obtain the resolution parameters, frame rate parameters, image quality parameters, and volume parameters of the multimedia data.
[0077] Here, when the electronic device performs frame rate parsing on the multimedia data, it can first parse the multimedia data into frame images, and determine the frame rate (i.e., how many frames are transmitted per second) based on the frame images. Then, it compares the frame rate with a first frame rate threshold and a second frame rate threshold respectively (referred to as the third comparison), and outputs a frame rate judgment result representing the target interface of the first device based on the third comparison result, where the first frame rate threshold and the second frame rate threshold are the two extreme values of the frame rate range.
[0078] Here, when the electronic device performs resolution parsing on the multimedia data, it can parse each frame of the multimedia data into several horizontal pixels and several vertical pixels, and determine the resolution of the multimedia data (i.e., the number of pixels in a frame) based on the several horizontal pixels and several vertical pixels corresponding to each frame. Then, it compares the resolution with a first resolution threshold and a second resolution threshold (referred to as the fourth comparison), and outputs a resolution judgment result representing the target interface of the first device based on the fourth comparison result. Here, the first resolution threshold and the second resolution threshold are the two extreme values of the resolution range.
[0079] Here, when the electronic device performs volume analysis on the multimedia data, it can parse the multimedia data into a waveform signal and determine the volume value corresponding to the multimedia data based on the waveform signal. Then, the volume value is compared with a first volume threshold and a second volume threshold (referred to as the fifth comparison). Based on the result of the fifth comparison, a sound judgment result representing the target interface of the first device is output, wherein the first volume threshold and the second volume threshold are the two endpoints of the volume range.
[0080] Here, when the electronic device performs image quality analysis on the multimedia data, it can extract at least two frames (e.g., 10 consecutive frames) from the multimedia data based on a first duration (e.g., 0.5 seconds). Then, it compares the pixels of the at least two frames (e.g., 10 consecutive frames) one by one, and determines the image quality parameters (including but not limited to color parameters, brightness parameters, and sharpness parameters) corresponding to the multimedia data based on the comparison results. Then, it compares the image quality parameters with a first image quality threshold and a second image quality threshold (referred to as the sixth comparison), and outputs the image quality judgment result representing the target interface of the first device based on the sixth comparison result. Here, the first image quality threshold and the second image quality threshold are the two extreme values of the image quality range.
[0081] Here, if the comparison results of at least two extracted images are the same, it indicates that the image quality of the target interface meets the expected output conditions, i.e., normal; if the comparison results of at least two extracted images are different, it indicates that the image quality of the target interface does not meet the expected output conditions, i.e., abnormal, such as screen shaking, screen distortion, etc.
[0082] In this application, when the electronic device outputs the judgment result of the target parameters (such as frame rate, resolution, volume, and image quality), the electronic device can output the judgment result.
[0083] For example, if the electronic device has a display screen, the judgment result for the target parameter can be output through the display screen. If the electronic device does not have a display screen, the judgment result for the target parameter can be output verbally through the microphone on the electronic device. Alternatively, the judgment result for the target parameter can be output visually through an indicator light on the electronic device. Of course, if the electronic device has a display screen, the judgment result for the target parameter can also be output through at least two combinations of display screen, indicator light, and voice.
[0084] In the scenario where the electronic device of this application is a screenless device, it can reduce device cost and floor space compared to physical display devices in the prior art.
[0085] Here, when the electronic device outputs the judgment result of the target parameter (such as frame rate, resolution, volume, image quality), it can also send the target parameter to the first device so that the first device can output the judgment result for the target parameter.
[0086] For example, the judgment result for the target parameter can be output through the microphone of the first device. Alternatively, the judgment result for the target parameter can be output in the form of light through an indicator light on the first device. Or, the judgment result for the target parameter can be output through the display screen of the first device.
[0087] Here, when the electronic device outputs the judgment result of the target parameters (such as frame rate, resolution, volume, and image quality), it can also send the target parameters to a second device connected to the first device, so that the second device can output the judgment result for the target parameters. The first device can be a device that adds or enhances the functionality of the second device (such as a docking station), and the second device can be a device that provides the multimedia data to the first device.
[0088] For example, the judgment result for the target parameter can be output through the microphone of the second device. Alternatively, the judgment result for the target parameter can be output in the form of light through an indicator light on the second device. Or, the judgment result for the target parameter can be output through the display screen of the second device.
[0089] Here, the display screen of the second device may be the same as or different from the display screen of the first device. For example, the display area of the first device's display screen may be smaller than that of the second device's display screen. The display area of the first device may only be able to display the words "normal" or "abnormal", while the display area of the second device may be able to display media data other than the words "normal" or "abnormal".
[0090] Here, when the electronic device outputs the judgment result of the target parameters (such as frame rate, resolution, volume, and image quality), it can also send the target parameters to a third device so that the third device can output the judgment result for the target parameters. The third device includes at least a processing device connected via a network, such as a cloud service device, a device with a web browser installed, or a device with the target application installed.
[0091] In this application, the electronic device can also obtain the voltage value output through the target interface of the first device, and then perform a seventh comparison between the voltage value and the first voltage value and the second voltage value, and output a voltage judgment result representing the target interface of the first device based on the seventh comparison result. The first voltage value and the second voltage value are two endpoints of a voltage range.
[0092] Here, when the electronic device outputs the voltage judgment result representing the target interface of the first device, it can refer to the relevant description of the judgment result for the target parameter as described above, which will not be repeated here.
[0093] In the second implementation of this application, the target interface of the first device can be at least two interfaces. When the first device outputs multimedia data through at least two interfaces, the electronic device can obtain the multimedia data output through at least two interfaces on the first device. Furthermore, it can perform the multimedia data processing as described in the first implementation. Here, by simultaneously testing multiple ports of the device under test using the electronic device, the testing time for the device under test can be reduced.
[0094] Here, when the electronic device obtains multimedia data output through at least two interfaces on the first device, the electronic device can also combine the first multimedia data and the second multimedia data corresponding to the at least two interfaces to obtain third multimedia data, compare the third multimedia data with the target multimedia data (referred to as the first comparison), and output a judgment result representing the data content of the at least two interfaces based on the first comparison result.
[0095] For example, if the first device is currently in screen extension mode, and in this mode the images displayed by at least two interfaces need to form a complete image, then after obtaining the first and second multimedia data output from the at least two interfaces, the electronic device can combine the first and second multimedia data corresponding to the at least two interfaces to obtain third multimedia data. This third multimedia data is then compared with target multimedia data. If the first comparison result indicates that the third multimedia data is the same as the target multimedia data, it is determined that the at least two interfaces meet the expected output conditions, meaning the display function of the at least two interfaces is normal. Conversely, if the first comparison result indicates that the third multimedia data is different from the target multimedia data, it is determined that the at least two interfaces do not meet the expected output conditions, meaning the display function of the at least two interfaces is abnormal.
[0096] Here, the target multimedia data can be preset multimedia data output through the target interface of the first device.
[0097] In this application, when the electronic device combines the first multimedia data and the second multimedia data corresponding to at least two interfaces, it can also perform data conversion on the first multimedia data and the second multimedia data to make the display parameters corresponding to the first multimedia data and the second multimedia data the same. Then, the converted first multimedia data and the second multimedia data are combined to obtain the third multimedia data.
[0098] For example, if interfaces A and B of the first device have the same screen aspect ratio but different resolutions, the first multimedia data from interface A and the second multimedia data from interface B need to be converted to the same resolution before data splicing. For instance, if the resolution of interface A is 'a' and the resolution of interface B is 'b', where resolution 'a' is greater than resolution 'b', then resolution 'a' can be adjusted to resolution 'b' before splicing the first and second multimedia data. This prevents data errors or blurring in the spliced third multimedia data.
[0099] In this application, when the electronic device obtains multimedia data output through at least two interfaces on the first device, the electronic device can also compare the first multimedia data and the second multimedia data corresponding to the at least two interfaces (referred to as the second comparison), and output a judgment result representing the data content of the at least two interfaces based on the second comparison result.
[0100] For example, if the first device is currently in screen mirroring mode, since at least two interfaces of the first device will display the same image in screen mirroring mode, after receiving the first and second multimedia data from at least two interfaces, the electronic device can perform a second comparison between the first and second multimedia data. If the second comparison result indicates that the first and second multimedia data are the same, it is determined that the at least two interfaces meet the expected output conditions, that is, the display function of the at least two interfaces is normal. Conversely, if the second comparison result indicates that the first and second multimedia data are different, it is determined that the at least two interfaces do not meet the expected output conditions, that is, the display function of the at least two interfaces is abnormal.
[0101] In this application, when comparing the first multimedia data and the second multimedia data, the electronic device can select N1 frames from the first multimedia data and N2 frames from the second multimedia data, where N1 equals N2 and both N1 and N2 are greater than or equal to 1. Then, a second comparison is performed between the N1 and N2 frames. If the second comparison result indicates that the data of the N1 and N2 frames are the same, a test result indicating that the display functions of the at least two interfaces are normal is output. If the second comparison result indicates that the data of the N1 and N2 frames are different, a test result indicating that the display functions of the at least two interfaces are abnormal is output.
[0102] In this application, when comparing the first multimedia data and the second multimedia data, the electronic device can further select a first target pixel block in the first multimedia data and a second target pixel block in the second multimedia data according to preset pixel parameters, and perform a second comparison between the first target pixel block and the second target pixel block. If the second comparison result indicates that the pixel parameters of the first target pixel block and the second target pixel block are the same, a test result indicating that the display function of the at least two interfaces is normal is output. If the second comparison result indicates that the pixel parameters of the first target pixel block and the second target pixel block are different, a test result indicating that the display function of the at least two interfaces is abnormal is output.
[0103] In this application, the multimedia data obtained by the electronic device may be multimedia data generated by the first device received through the target interface of the first device.
[0104] like Figure 2As shown, electronic device 21 is connected to first device 22, wherein first device 22 has two interfaces 221. Electronic device 21 connects to first device 22 through the two interfaces 221 to test the display function of the two interfaces 221. First device 22 can output multimedia data generated by itself through the two interfaces 221. When electronic device 21 receives the multimedia data, it can parse and process the multimedia data to obtain the target parameters of the multimedia data. Then, it compares the target parameters with two end values in the parameter range, determines whether the display function of the two interfaces 221 is normal based on the comparison result, and outputs the test results of the two interfaces 221.
[0105] Here, the process of parsing and processing multimedia data from the two interfaces 221 by the electronic device 21 can be referred to the relevant description above, and will not be repeated here.
[0106] In this application, because the electronic device stores relevant data from historical devices, it can receive a first instruction from the first device before receiving multimedia data output through the target interface of the first device. Based on the processing object carried in the first instruction, the electronic device updates the data storage list. The processing object represents the type of the target parameter; data processing of the target interface is performed based on the processing object stored in the data storage list. Thus, by performing data processing on the multimedia data of the first device based on the updated processing object stored in the current data storage list, the electronic device can avoid test errors and prevent inaccurate test results for the first device.
[0107] In a third implementation of this application, when the electronic device receives multimedia data output through the target interface of the first device, it can also receive multimedia data generated by the second device through the target interface of the first device. Here, the second device can be a device that provides multimedia data to the first device, and the first device can be a device that provides additional or enhanced functionality to the second device.
[0108] For example, the second device is a computer, and the first device is a docking station connected to the computer. The computer has only one primary display screen, and the docking station can extend the computer to include one or more secondary displays. Thus, even when the computer itself does not have built-in screen extension capabilities, the docking station can provide screen extension functionality.
[0109] For example, a docking station includes a communication module and a computing enhancement module. The communication module receives handshake requests from the computer and establishes a communication connection with the computer. The computing enhancement module receives information to be processed from the computer's computing processing module, performs calculations on the information, and transmits the results back to the computing processing module. In this way, the computing power of the computer can be improved without upgrading the computer's system, thereby enhancing the computer's computing performance.
[0110] Here, after the electronic device receives multimedia data generated by the second device through the target interface of the first device, it can parse and process the multimedia data. The specific processing procedure can be referred to the relevant description above, and will not be repeated here.
[0111] like Figure 3 As shown, the device includes an electronic device 31, a first device 32, and a second device 33. The first device 32 is a functional extension device (docking station) for the second device 33, and it has multiple interfaces 321. These interfaces 321 can be of the same or different types; for example, they could be two HDMI interfaces and two DP interfaces; three HDMI interfaces and two DP interfaces; all DP interfaces; or all HDMI interfaces. The first end of the first device 32 connects to the first end of the second device 33 via a Type-C or Thunderbolt interface, and the second end of the second device 33 connects to the first end of the electronic device 31 via a USB interface. The second device 33 can send a first command to the electronic device 31 targeting the first device 32 via the USB interface. This first command may carry information such as the interface identifier of the interface under test, the type of item to be tested (e.g., voltage, frame rate, resolution, image quality), and the current functional output mode (e.g., screen extension mode). Based on the interface identifier carried in the first instruction, the electronic device 31 can determine the interface 322 to be tested of the first device 32 (e.g., the interface to be tested is interface 322-1 and interface 322-2). Then, the second end of the electronic device 31 is connected to the second end of the first device 32 through interface 322-1 and interface 322-2. And based on the project type information carried in the first instruction, the electronic device 31 can perform functional testing on interface 322-1 and interface 322-2 of the first device 32.
[0112] Here, the electronic device 31 can first detect the voltage of interfaces 322-1 and 322-2 of the first device 32 to obtain the voltage values of interfaces 322-1 and 322-2 (e.g., 5V), and then send the voltage values of interfaces 322-1 and 322-2 to the second device 33. The second device 33 compares the voltage values of interfaces 322-1 and 322-2 with the two terminal values of the voltage range (e.g., 4.8V-5.2V), and outputs a voltage test result based on the comparison result, which indicates whether the voltage values of interfaces 322-1 and 322-2 are normal.
[0113] Here, if the voltage values of interfaces 322-1 and 322-2 (e.g., 5V) are within the voltage range (e.g., 4.8V-5.2V), it indicates that the voltage values of interfaces 322-1 and 322-2 are normal, and the output is a voltage test result indicating that the voltage values of interfaces 322-1 and 322-2 are normal.
[0114] Here, the second device 33 can output the voltage test results of interface 322-1 and interface 322-2 through at least one means such as the display screen, speaker, indicator light, etc. of the second device 33.
[0115] In this application, when the second device 33 outputs multimedia data through interfaces 322-1 and 322-2 of the first device 32, the electronic device 31 can receive the multimedia data generated by the second device 33 output through interfaces 322-1 and 322-2. Then, the electronic device 31 can detect the frame rate, resolution, and picture quality of interfaces 322-1 and 322-2 of the first device 32 based on the item type information carried in the first instruction, to obtain the frame rate, resolution, and picture quality of interfaces 322-1 and 322-2. The electronic device 31 then sends the parameters of the frame rate, resolution, and picture quality of interfaces 322-1 and 322-2 to the second device 33. The second device 33 compares the frame rate corresponding to interfaces 322-1 and 322-2 with two endpoints of a frame rate range (e.g., 115-125 frames per second), and outputs a frame rate test result representing interfaces 322-1 and 322-2 based on the comparison result. The resolutions corresponding to interfaces 322-1 and 322-2 are compared with the two extreme values of a resolution range (e.g., 3840*2160-1920*1080), and the comparison results are used to output the resolution test results representing interfaces 322-1 and 322-2. Similarly, the image quality parameters corresponding to interfaces 322-1 and 322-2 are compared with the two extreme values of an image quality range (e.g., brightness of 1:10005-1:9999), and the comparison results are used to output the brightness test results representing interfaces 322-1 and 322-2.
[0116] Here, the data detection process of electronic device 31 on first device 32 can be referred to the relevant description above, and will not be repeated here.
[0117] Here, the second device 33 can output the test results of frame rate, resolution and image quality of interface 322-1 and interface 322-2 through at least one means such as the display screen, speaker, indicator light of the second device 33.
[0118] Of course, the electronic device 31 can also detect the volume and output data content of the interface 322-1 and the interface 322-2. The specific detection process can be referred to the above description, and will not be repeated here.
[0119] Figure 4 for Figure 3 Schematic diagram of the connection process between electronic devices Figure 1 ,like Figure 4 As shown:
[0120] When an electronic device performs a function test on the HDMI interface of the first device, the following steps are included:
[0121] Step 401: Power on the electronic device;
[0122] Step 402: The second device reads the identification data (EDID, Extended Display Identification Data) of the first device through the Display Data Channel (DDC);
[0123] Here, both the second device and the first device have DDC. The EDID obtained by the second device contains the basic parameters of the first device, such as manufacturer, product name, maximum horizontal and vertical frequency, and supported resolution.
[0124] Step 403: The second device parses the EDID of the first device and sends the corresponding video signal to the first device;
[0125] Step 404: The first device outputs the video signal through the target HDMI interface;
[0126] Step 405: The electronic device receives the video signal output through the target HDMI interface of the first device and parses the video signal.
[0127] Figure 5 for Figure 3 Schematic diagram of the connection process between electronic devices Figure 2 ,like Figure 5 As shown:
[0128] When an electronic device performs a function test on the DP interface of the first device, the following steps are included:
[0129] Step 501: Power on the electronic device;
[0130] Step 502: The second device reads the identification data (EDID, Extended Display Identification Data) of the first device through the auxiliary channel (AUX, Auxiliary Bus);
[0131] Here, both the second device and the first device have AUX. The EDID obtained by the second device contains the basic parameters of the first device, such as manufacturer, product name, maximum horizontal and vertical frequency, and supported resolution.
[0132] Step 503: The second device parses the EDID of the first device and sends the corresponding video signal to the first device;
[0133] Step 504: The first device outputs the video signal through the target DP interface;
[0134] Step 505: The electronic device receives the video signal output through the target DP interface of the first device and parses the video signal.
[0135] Here, the first device can be hot-plugged with the second device. When the first device and the second device are connected, the electronic device can detect the hot-plug signal going high and then execute steps 402 and 502.
[0136] The processing method provided in this application receives multimedia data output by a device under test (such as a first device) through a target interface via a smart device, and automatically parses and judges the target parameters of the multimedia data to determine whether the target interface of the device under test is functioning normally, and can output a determination result characterizing whether the target interface is functioning normally. Since the processing scheme provided in this application completes the entire testing process intelligently by the device under test without human intervention, it can improve the efficiency and accuracy of device testing.
[0137] Figure 6 This is a flowchart illustrating the processing method in this application. Figure 2 ,like Figure 6 As shown, it includes:
[0138] Step 601: Output multimedia data to the third device through the target interface;
[0139] Step 602: Receive target parameters sent by the third device for the target interface, wherein the target parameters are parameters obtained by the third device after parsing the multimedia data;
[0140] Step 603: Determine whether the target parameter is within the target range. The target parameter being within the target range indicates that the target interface meets the expected output conditions.
[0141] Step 604: Output the determination result of the target parameter.
[0142] This method can be applied to the device under test, such as a docking station, computer, server, or projector. The device under test has one or more target interfaces through which multimedia data can be output. A third device (referred to as the test device) receives the multimedia data output through the target interface, parses and processes the multimedia data to obtain the target parameters, and then sends these target parameters to the device under test. Upon receiving the target parameters, the device under test compares them one by one with the two endpoints of the parameter range to determine whether the target parameters are within the parameter range and outputs the judgment result.
[0143] Here, when the device under test outputs the judgment result of the target parameter, if the device under test has a display screen, the judgment result of the target parameter can be output through the display screen. If the device under test does not have a display screen, the judgment result of the target parameter can be output through voice, indicator light, or vibration. Of course, if the device under test has a display screen, the judgment result of the target parameter can be output through at least two of the following methods: display screen, indicator light, voice, and vibration.
[0144] Here, the device under test can also send the target parameter to other devices so that the other devices can output the judgment result of the target parameter. For example, other devices can be external speakers, external displays, or processing devices connected to the device under test or the test device, etc., other than the device under test.
[0145] In this application, when the device under test compares the target parameter with the two endpoints of the parameter range one by one, it can specifically compare the frame rate of the target parameter with a first frame rate threshold and a second frame rate threshold respectively, and output a frame rate judgment result representing the target interface based on the comparison result, wherein the first frame rate threshold and the second frame rate threshold are the two endpoints of the frame rate range; it can also compare the resolution of the target parameter with a first resolution threshold and a second frame rate threshold respectively, and output a resolution judgment result representing the target interface based on the comparison result, wherein the first resolution threshold and the second resolution threshold are the two endpoints of the resolution range; it can also compare the volume value of the target parameter with a first volume threshold and a second volume threshold respectively, and output a sound test result representing the target interface based on the comparison result, wherein the first volume threshold and the second volume threshold are the two endpoints of the volume range; it can also compare the image quality parameter of the target parameter with a first image quality threshold and a second image quality threshold respectively, and output an image quality judgment result representing the target interface based on the comparison result, wherein the first image quality threshold and the second image quality threshold are the two endpoints of the image quality range.
[0146] In this application, if the target parameter is within the parameter range, it indicates that the target interface corresponding to the target parameter is functioning normally and meets the expected output conditions. If the target parameter is not within the parameter range, it indicates that the target interface corresponding to the target parameter is malfunctioning and does not meet the expected output conditions.
[0147] In this application, the testing device can also detect the voltage of the target interface of the device under test and send the detected voltage value to the device under test. After receiving the voltage value sent by the testing device for the target interface, the device under test can compare the voltage value with a first voltage threshold and a second voltage threshold respectively, and output the voltage test result representing the target interface based on the comparison result. Here, the first voltage threshold and the second voltage threshold are two ends of the voltage range.
[0148] Here, the voltage test results of the output target interface of the device under test are obtained in the same way as the test results of the target parameters of the output multimedia data. Please refer to the relevant description above, and it will not be repeated here.
[0149] In this application, when the device under test outputs multimedia data to the test device through a target interface, it can output multimedia data to the test device through at least one interface on its own device; it can also output multimedia data to the test device through at least one interface of a second device connected to its own device. Alternatively, it can output multimedia data generated by its own device through the target interface of its own device; or it can output multimedia data generated by other devices (referred to as the second device) connected to its own device through the target interface of its own device.
[0150] It should be noted that the processing method provided in the above embodiments is the same as that described above. Figure 1 The processing method embodiments provided herein belong to the same concept, and the device under test can refer to the above. Figure 1 The description of the first device is provided above; the testing equipment can be referenced from the above. Figure 1 For a detailed description of the electronic device and its implementation process, please refer to [link / reference]. Figure 1 The method implementation examples are not described in detail here.
[0151] Figure 7 This is a schematic diagram of the testing process in this application, such as... Figure 7 As shown, it includes:
[0152] Step 701: Is the target interface of the device under test enabled? If yes, proceed to step 702.
[0153] Step 702: Enable the target port;
[0154] Here, enabling means that the test device connects to the device under test through the target interface;
[0155] Step 703: Determine if the target port is successfully enabled?
[0156] Here, if the test device and the device under test successfully handshake, it is determined that the target interface has been successfully enabled.
[0157] Step 704, update the data storage list;
[0158] Here, the data storage list contains the types of test data from historical devices. It is necessary to change the types of test data from historical devices stored in the storage list to the types of test data from the current device under test. For example, the data in the data storage list can be changed to: 1, video signal; 2, audio signal; 3, resolution information; 4, frame rate information...
[0159] Step 705: Should the target port be closed? If so, proceed to step 706.
[0160] Step 706: Disable the target port.
[0161] Figure 8 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 1 ,like Figure 8 As shown, the electronic device includes:
[0162] Acquisition unit 801 is used to acquire multimedia data output through the target interface of the first device;
[0163] The parsing unit 802 is used to parse the multimedia data and obtain the target parameters of the multimedia data;
[0164] The determining unit 803 is used to determine whether the target parameter is within the target range, wherein the target parameter being within the target range indicates that the target interface meets the expected output conditions;
[0165] Output unit 804 is used to output the determination result of the target parameter.
[0166] In a preferred embodiment, the acquisition unit 801 is specifically used to acquire multimedia data output through one interface of the first device; or, acquire multimedia data output through at least two interfaces of the first device; or, receive multimedia data generated by the first device through a target interface of the first device; or, receive multimedia data generated by the second device through a target interface of the first device.
[0167] In a preferred embodiment, the electronic device further includes: a combination unit 805 and a comparison unit 806;
[0168] The combination unit 805 is used to combine the first multimedia data and the second multimedia data corresponding to the at least two interfaces to obtain the third multimedia data.
[0169] The comparison unit 806 is used to perform a first comparison between the third multimedia data and the target multimedia data, and output a data content judgment result representing the at least two interfaces based on the first comparison result.
[0170] The data content judgment result is related to the current output conditions of the first multimedia data and the second multimedia data.
[0171] In a preferred embodiment, the comparison unit 806 is further configured to perform a second comparison on the first multimedia data and the second multimedia data corresponding to the at least two interfaces, and output a judgment result representing the data content of the at least two interfaces based on the second comparison result;
[0172] The data content judgment result is related to the current output conditions of the first multimedia data and the second multimedia data.
[0173] In a preferred embodiment, the parsing unit 802 is specifically configured to: parse the multimedia data into frame images; determine the frame rate corresponding to the multimedia data based on the frame images; parse each frame image corresponding to the multimedia data into a plurality of horizontal pixels and a plurality of vertical pixels; determine the resolution corresponding to the multimedia data based on the plurality of horizontal pixels and the plurality of vertical pixels; extract at least two frames of images from the multimedia data based on a first duration; compare the pixels of the at least two frames of images one by one; determine the image quality parameters corresponding to the multimedia data based on the comparison results; and further parse the multimedia data into waveform signals; determine the volume value corresponding to the multimedia data based on the waveform signals.
[0174] In a preferred embodiment, the comparison unit 806 is further configured to perform a third comparison between the frame rate in the target parameter and the first frame rate threshold and the second frame rate threshold, respectively.
[0175] The output unit 804 is specifically used to output a frame rate judgment result representing the target interface based on the third comparison result, wherein the first frame rate threshold and the second frame rate threshold are two end values of the frame rate range.
[0176] The comparison unit 806 is further configured to perform a fourth comparison between the resolution in the target parameters and the first resolution threshold and the second resolution threshold, respectively;
[0177] The output unit 804 is specifically used to output a resolution judgment result representing the target interface based on the fourth comparison result, wherein the first resolution threshold and the second resolution threshold are two end values of the resolution range.
[0178] The comparison unit 806 is also used to perform a fifth comparison between the volume value in the target parameter and the first volume threshold and the second volume threshold, respectively;
[0179] The output unit 804 is specifically used to output a sound judgment result representing the target interface based on the fifth comparison result, wherein the first volume threshold and the second volume threshold are two end values of the volume range.
[0180] The comparison unit 806 is further configured to perform a sixth comparison between the image quality parameters in the target parameters and the first image quality threshold and the second image quality threshold, respectively.
[0181] The output unit 804 is specifically used to output an image quality judgment result representing the target interface based on the sixth comparison result, wherein the first image quality threshold and the second image quality threshold are two end values of the image quality range.
[0182] In a preferred embodiment, the electronic device further includes a detection unit 808 and a transmission unit 809;
[0183] The detection unit 808 is used to detect the voltage value of the target interface corresponding to the multimedia data;
[0184] Output unit 804 is also used to output voltage values;
[0185] Specifically, the transmitting unit 809 is used to transmit the voltage value to the first device;
[0186] The output unit 804 is also used to output a voltage judgment result for the target interface through the first device.
[0187] The transmitting unit 809 is configured to transmit the voltage value to a second device connected to the first device;
[0188] The output unit 804 is also configured to output a voltage judgment result for the target interface through the second device, wherein the first device is a device that provides additional or enhanced functions to the second device, and the second device is a device that provides the multimedia data to the first device.
[0189] Here, the transmitting unit 809 is also used to transmit the voltage value to the third device;
[0190] The output unit 804 is also configured to output a voltage determination result for the target interface via the third device, the third device including at least a processing device connected via a network.
[0191] In a preferred embodiment, the electronic device further includes a receiving unit 810 and an updating unit 811;
[0192] Specifically, the receiving unit 810 is used to receive a first instruction sent by the target device; the target device includes at least the first device or a second device connected to the first device;
[0193] Update unit 811 is used to update the data storage list based on the processing object carried in the first instruction, wherein the processing object represents the type of the target parameter;
[0194] The parsing unit 802 is used to perform data processing on the target interface based on the processing object stored in the data storage list.
[0195] It should be noted that the electronic device provided in the above embodiments is only illustrated by the division of the above program modules during data testing. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. Furthermore, the electronic device provided in the above embodiments is similar to the one described above... Figure 1 The provided processing method embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0196] Figure 9 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 2 ,like Figure 9 As shown, the electronic device includes:
[0197] The output unit 901 is used to output multimedia data to a third device through the target interface; and to output the determination result of the target parameters.
[0198] The receiving unit 902 is used to receive the target parameters sent by the third device for the target interface, wherein the target parameters are parameters obtained by the third device after parsing the multimedia data;
[0199] The determining unit 903 is used to determine whether the target parameter is within the target range, wherein the target parameter being within the target range indicates that the target interface meets the expected output conditions.
[0200] In a preferred embodiment, the electronic device further includes: a comparison unit 904;
[0201] The comparison unit 904 is used to perform a third comparison between the frame rate in the target parameters and the first frame rate threshold and the second frame rate threshold, respectively.
[0202] The output unit 901 is specifically used to output a frame rate judgment result representing the target interface based on the third comparison result, wherein the first frame rate threshold and the second frame rate threshold are two end values of the frame rate range.
[0203] The comparison unit 904 is further configured to perform a fourth comparison between the resolution in the target parameters and the first resolution threshold and the second resolution threshold, respectively;
[0204] The output unit 901 is specifically used to output a resolution judgment result representing the target interface based on the fourth comparison result, wherein the first resolution threshold and the second resolution threshold are two end values of the resolution range.
[0205] The comparison unit 904 is also used to perform a fifth comparison between the volume value in the target parameter and the first volume threshold and the second volume threshold, respectively;
[0206] The output unit 901 is specifically used to output a sound judgment result representing the target interface based on the fifth comparison result, wherein the first volume threshold and the second volume threshold are two end values of the volume range;
[0207] The comparison unit 904 is further configured to perform a sixth comparison between the image quality parameters in the target parameters and the first image quality threshold and the second image quality threshold, respectively.
[0208] The output unit 901 is specifically used to output an image quality judgment result representing the target interface based on the sixth comparison result, wherein the first image quality threshold and the second image quality threshold are two end values of the image quality range.
[0209] It should be noted that the electronic device provided in the above embodiments is only illustrated by the division of the above program modules during data testing. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. Furthermore, the electronic device provided in the above embodiments is similar to the one described above... Figure 6 The provided processing method embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0210] This application also provides another electronic device, which includes: a processor and a memory for storing a computer program capable of running on the processor.
[0211] When the processor runs the computer program, it executes any of the method steps in the above processing method.
[0212] Figure 10 This is a schematic diagram of the structural composition of the electronic device in this application. Figure 3 Electronic device 1000 can be a mobile phone, computer, digital broadcasting terminal, information transceiver, game console, tablet device, medical device, fitness equipment, personal digital assistant, or other device with data parsing function. Figure 10 The illustrated electronic device 1000 includes at least one processor 1001, a memory 1002, at least one network interface 1004, and a user interface 1003. The various components in the electronic device 1000 are coupled together via a bus system 1005. It is understood that the bus system 1005 is used to implement communication between these components. In addition to a data bus, the bus system 1005 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 10 The general labeled all buses as Bus System 1005.
[0213] The user interface 1003 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.
[0214] It is understood that memory 1002 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 1002 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0215] In this embodiment, the memory 1002 is used to store various types of data to support the operation of the electronic device 1000. Examples of such data include: any computer program for operating on the electronic device 1000, such as the operating system 10021 and application program 10022; contact data; phonebook data; messages; pictures; audio, etc. The operating system 10021 includes various system programs, such as a framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. The application program 10022 may include various applications, such as a media player, browser, etc., used to implement various application services. Programs implementing the methods of this embodiment may be included in the application program 10022.
[0216] The methods disclosed in the embodiments of this application can be applied to or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 1001 or by instructions in the form of software. The processor 1001 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 1001 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in the memory 1002. The processor 1001 reads the information in the memory 1002 and completes the steps of the aforementioned method in conjunction with its hardware.
[0217] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0218] In an exemplary embodiment, this application also provides a computer-readable storage medium, such as a memory 1002 including a computer program, which can be executed by a processor 1001 of an electronic device 1000 to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM; it may also be various devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0219] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs any of the method steps in the above-described processing method.
[0220] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0221] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0222] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0223] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0224] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0225] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A processing method applied to a screenless electronic device, the method comprising: receiving a first instruction sent by a target device; the target device comprising at least a first device or a second device connected to the first device; the first instruction carrying an interface identifier of an interface to be tested, a project type to be tested, and a function output mode, the function output mode comprising a screen extension mode and a screen replication mode; obtaining multimedia data output through at least two target interfaces of the first device; the target interfaces being determined based on the interface identifier of the interface to be tested; resolving the multimedia data based on the project type carried by the first instruction to obtain a target parameter of the multimedia data; the target parameter comprising at least one of a frame rate, a resolution, or an image quality, the image quality comprising at least one of a picture color, a picture brightness, or a picture definition; determining whether the target parameter is within a target range, wherein the target parameter within the target range indicates that the target interface meets an expected output condition; outputting a determination result of the target parameter; the determination result indicating whether the function of the target interface is normal; wherein the determining whether the target parameter is within the target range comprises: when the first device is in the screen extension mode, combining first multimedia data and second multimedia data corresponding to the at least two target interfaces to obtain third multimedia data; performing a first comparison between the third multimedia data and target multimedia data, and outputting a data content judgment result of the at least two target interfaces based on a first comparison result; when the first device is in the screen replication mode, performing a second comparison between the first multimedia data and the second multimedia data corresponding to the at least two target interfaces, and outputting a data content judgment result of the at least two target interfaces based on a second comparison result; wherein the data content judgment result is related to a current output condition of the first multimedia data and the second multimedia data.
2. The method of claim 1, wherein, The resolving the multimedia data to obtain the target parameter of the multimedia data comprises at least one of the following methods: resolving the multimedia data into frame images, and determining a frame rate corresponding to the multimedia data based on the frame images; resolving each frame image corresponding to the multimedia data into a plurality of horizontal pixels and a plurality of vertical pixels, and determining a resolution corresponding to the multimedia data based on the plurality of horizontal pixels and the plurality of vertical pixels; extracting at least two frame images from the multimedia data based on a first time length, comparing the pixels of the at least two frame images one by one, and determining an image quality parameter corresponding to the multimedia data based on a comparison result; resolving the multimedia data into a waveform signal, and determining a volume value corresponding to the multimedia data based on the waveform signal.
3. The method of claim 2, wherein, The determining whether the target parameter is within the target range comprises at least one of the following: comparing the frame rate in the target parameter with a first frame rate threshold and a second frame rate threshold respectively, and outputting a frame rate judgment result of the target interface based on a third comparison result, wherein the first frame rate threshold and the second frame rate threshold are two end values of a frame rate range respectively; comparing the resolution in the target parameter with a first resolution threshold and a second resolution threshold respectively, and outputting a resolution judgment result of the target interface based on a fourth comparison result, wherein the first resolution threshold and the second resolution threshold are two end values of a resolution range respectively; comparing the volume value in the target parameter with a first volume threshold and a second volume threshold respectively, and outputting a sound judgment result of the target interface based on a fifth comparison result, wherein the first volume threshold and the second volume threshold are two end values of a volume range respectively; comparing the image quality parameter in the target parameter with a first image quality threshold and a second image quality threshold respectively, and outputting an image quality judgment result of the target interface based on a sixth comparison result, wherein the first image quality threshold and the second image quality threshold are two end values of an image quality range respectively.
4. The method of claim 1, wherein, The method further comprises: detecting a voltage value of a target interface corresponding to the multimedia data; outputting the voltage value; wherein the output voltage value at least includes one of the following methods: sending the voltage value to the first device to output a voltage judgment result for the target interface through the first device; sending the voltage value to a second device connected to the first device to output a voltage judgment result for the target interface through the second device, the first device being a device that provides functional increase or functional enhancement to the second device, and the second device being a device that provides the multimedia data to the first device; sending the voltage value to a third device to output a voltage judgment result for the target interface through the third device, the third device at least including a processing device connected through a network.
5. A processing method, the method comprising: sending a first instruction to a third device; the first instruction carrying an interface identifier of a to-be-tested interface, a to-be-tested item type, and a functional output mode, the functional output mode including a screen extension mode and a screen replication mode; outputting multimedia data through at least two target interfaces to the third device; the target interfaces being determined based on the interface identifier of the to-be-tested interface, and the third device being a screenless electronic device; receiving target parameters sent by the third device for the target interfaces, the target parameters being parameters obtained by the third device after analyzing the multimedia data based on the item type carried by the first instruction; the target parameters including at least one of a frame rate, a resolution, or an image quality, the image quality including at least one of picture color, picture brightness, or picture definition; determining whether the target parameters are in a target range, the target parameters in the target range indicating that the target interfaces meet expected output conditions; outputting a determination result of the target parameters; The determination result is used to represent whether the target interface function is normal or not; The determination of whether the target parameter is in the target range comprises: When the first device is in the screen expansion mode, the first multimedia data and the second multimedia data corresponding to the at least two target interfaces are combined to obtain third multimedia data; the third multimedia data is compared with target multimedia data to output a data content judgment result representing the at least two target interfaces according to a first comparison result; When the first device is in the screen replication mode, the first multimedia data and the second multimedia data corresponding to the at least two target interfaces are compared to output a data content judgment result representing the at least two target interfaces according to a second comparison result; The data content judgment result is related to a current output condition of the first multimedia data and the second multimedia data.
6. The method of claim 5, wherein, The determination of whether the target parameter is in the target range comprises at least one of the following: The frame rate in the target parameter is compared with a first frame rate threshold and a second frame rate threshold respectively to output a frame rate judgment result representing the target interface based on a third comparison result, wherein the first frame rate threshold and the second frame rate threshold are two end values of a frame rate range respectively; The resolution in the target parameter is compared with a first resolution threshold and a second resolution threshold respectively to output a resolution judgment result representing the target interface based on a fourth comparison result, wherein the first resolution threshold and the second resolution threshold are two end values of a resolution range respectively; The volume value in the target parameter is compared with a first volume threshold and a second volume threshold respectively to output a sound judgment result representing the target interface based on a fifth comparison result, wherein the first volume threshold and the second volume threshold are two end values of a volume range respectively; The image quality parameter in the target parameter is compared with a first image quality threshold and a second image quality threshold respectively to output an image quality judgment result representing the target interface based on a sixth comparison result, wherein the first image quality threshold and the second image quality threshold are two end values of an image quality range respectively.
7. A screenless electronic device, comprising: a receiving unit configured to receive a first instruction sent by a target device; The target device comprises at least a first device or a second device connected to the first device; The first instruction carries an interface identifier of a to-be-tested interface, a to-be-tested item type, and a function output mode, wherein the function output mode comprises a screen expansion mode and a screen replication mode; an obtaining unit configured to obtain multimedia data output by at least two target interfaces of the first device; The target interface is determined based on the interface identifier of the to-be-tested interface; an analyzing unit configured to analyze the multimedia data based on the item type carried by the first instruction to obtain a target parameter of the multimedia data, wherein the target parameter comprises at least one of a frame rate, a resolution, or an image quality, and the image quality comprises at least one of picture color, picture brightness, or picture definition; A determining unit is configured to determine whether the target parameter is in a target range, wherein the target parameter in the target range indicates that the target interface meets an expected output condition; An output unit is configured to output a determination result of the target parameter, wherein the determination result indicates whether the target interface function is normal; A combining unit is configured to combine the first multimedia data and the second multimedia data corresponding to the at least two target interfaces to obtain third multimedia data when the first device is in a screen expansion mode; A comparing unit is configured to perform a first comparison between the third multimedia data and target multimedia data, and output a data content judgment result of the at least two target interfaces according to a first comparison result; The comparing unit is further configured to perform a second comparison between the first multimedia data and the second multimedia data corresponding to the at least two target interfaces when the first device is in a screen replication mode, and output a data content judgment result of the at least two target interfaces according to a second comparison result; The data content judgment result is related to a current output condition of the first multimedia data and the second multimedia data.
Citation Information
Patent Citations
Testing method and testing device for multimedia electronic equipment
CN101841732A
Multimedia board card detection method and apparatus
CN107315665A
Multi-screen display system, control method of multi-screen display system and storage medium
CN111913681A
Audio and video interface function test method, device, equipment and medium
CN113691803A
