Screen projection function test method and device, equipment and medium

By automatically collecting and analyzing the drive signals and load output signals of electronic equipment, the problem of manual testing being susceptible to environmental noise interference is solved, and the accurate and efficient automated testing of screen projection functions is achieved, ensuring the reliability of test results.

CN119007602APending Publication Date: 2024-11-22BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310580164.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-22
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, the screen projection function test of electronic devices relies on manual operation and is easily disturbed by environmental noise signals, resulting in inaccurate test results and causing defective products to flow out.

Method used

Using automated testing methods, the driver signals and load output signals output from electronic devices are collected to determine whether the screen projection function is abnormal, including spectrum characteristic analysis of audio and video signals and pixel grayscale judgment, eliminate environmental noise interference, and realize automation test.

Benefits of technology

It improves the objectivity and reliability of the test results, reduces the generation of defective products, and ensures the accuracy and efficiency of screen projection function testing of electronic equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007602A_ABST
    Figure CN119007602A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a screen projection function testing method and device, equipment and a medium. The screen projection function test method comprises the steps that in response to a received screen projection test instruction, a driving signal output by electronic equipment and / or a load output signal are / is collected, the driving signal is generated by decoding media data sent by external media equipment through the electronic equipment, and the load output signal is generated by a load driven by the driving signal; performing signal analysis on the driving signal and / or the load output signal to obtain an analysis result; and judging whether the screen projection function of the electronic equipment is abnormal based on the analysis result. Based on the scheme provided by the embodiment of the invention, the test equipment can realize automatic test on the screen projection function of the electronic equipment without participation of test personnel, so that the objectivity and reliability of a test result are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of functional testing, and specifically designs a testing method, device, equipment and medium for a screen projection function. Background Art

[0002] In order to provide users with more convenient media resource playback services using their own displays and speakers, many electronic devices are equipped with projection chips, which can be used to parse the media data sent by external devices, and then use their own motherboard chips to parse the media data to obtain drive signals, and use the drive signals to drive their own loads to work. Before electronic equipment is produced off the production line, the projection function of the electronic equipment needs to be functionally tested to avoid defective product processes.

[0003] In the related art, the screen projection function test of electronic devices is implemented manually. However, manual testing may cause misjudgment due to interference from environmental noise signals, resulting in the outflow of defective products. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present disclosure provide a method, device, equipment and medium for testing a screen projection function.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for testing a screen projection function, including:

[0006] In response to receiving a screen projection test instruction, collecting a driving signal output by the electronic device and / or collecting a load output signal, wherein the driving signal is generated by the electronic device decoding media data sent by an external media device, and the load output signal is generated by the load driven by the driving signal;

[0007] Performing signal analysis on the drive signal and / or the load output signal to obtain an analysis result;

[0008] Based on the analysis result, determine whether the screen projection function of the electronic device is abnormal.

[0009] Optionally, the driving signal includes an audio driving signal;

[0010] The performing signal analysis on the driving signal and / or the load output signal to obtain an analysis result includes:

[0011] Performing frequency spectrum characteristic analysis on the audio driving signal to determine the frequency value of the audio driving signal;

[0012] Determining whether the frequency value is outside a preset frequency band;

[0013] The determining whether the screen projection function of the electronic device is abnormal based on the analysis result includes:

[0014] When the frequency value is outside the preset frequency band, it is determined that the screen projection function of the electronic device is abnormal.

[0015] Optionally, the method further includes: acquiring a device identification of the electronic device;

[0016] After determining the frequency value of the audio drive signal, the method further includes:

[0017] The association relationship between the frequency value and the device identifier is stored, or the association relationship is uploaded to a production management server.

[0018] Optionally, the driving signal includes a video driving signal, and the load is a display;

[0019] The collecting of the load output signal includes: collecting the image signal generated by the display when driven by the video driving signal;

[0020] The performing signal analysis on the driving signal and / or the load output signal to obtain an analysis result includes:

[0021] Performing analog-to-digital conversion on the image signal to determine the pixel grayscale of a pixel point corresponding to the image signal;

[0022] Determining whether the pixel grayscale of the pixel point is outside the corresponding preset grayscale range;

[0023] The determining whether the screen projection function of the electronic device is abnormal based on the analysis result includes:

[0024] When the pixel grayscale is outside the preset grayscale range, it is determined that the screen projection function of the electronic device is abnormal.

[0025] Optionally, the method further includes: acquiring a device identification of the electronic device;

[0026] After determining the pixel grayscale of the pixel point corresponding to the image signal, the method further includes:

[0027] Generate a digital image based on the pixel grayscale of each pixel;

[0028] The association relationship between the digital image and the device identifier is stored, or the association relationship is uploaded to a production management server.

[0029] Optionally, before collecting the driving signal output by the electronic device and / or collecting the load output signal, the method further includes:

[0030] Acquire media data sent by an external media device via a target input interface;

[0031] The media data is decoded to obtain the driving signal, and the driving signal is outputted using the output interface.

[0032] Optionally, before acquiring the media data sent by the external device via the target interaction interface, the method further includes:

[0033] Determining a decoding configuration strategy for the media data;

[0034] The decoding of the media data to obtain the output signal includes: decoding the media data according to the decoding configuration strategy to obtain the output signal.

[0035] In a second aspect, an embodiment of the present disclosure provides a testing device for a screen projection function, including:

[0036] a signal acquisition unit, configured to, in response to receiving a screen projection test instruction, collect a drive signal output by an output interface of the electronic device and / or collect a load output signal, wherein the drive signal is generated by the electronic device decoding media data sent by an external media device, and the load output signal is generated by the load driven by the drive signal;

[0037] A signal analysis unit, used to perform signal analysis on the drive signal and / or the load output signal to obtain an analysis result;

[0038] A judgment unit is used to judge whether the screen projection function of the electronic device is abnormal based on the analysis result.

[0039] In a third aspect, an embodiment of the present disclosure provides a test device, including a processor, a memory and a signal receiving device, wherein the memory is used to store a computer program, and the signal collector is used to collect signals;

[0040] When the computer program is loaded by the processor, the processor controls the signal collector to collect signals to execute the test method for the screen projection function as described in any one of claims 1-7.

[0041] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program. When the computer program is executed by a processor, the processor implements a test method for a front projection function.

[0042] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0043] By adopting the solution provided by the example of the present disclosure, after receiving the screen projection test instruction, the drive signal and / or load output signal output by the electronic device is directly collected, the aforementioned signal is subjected to signal analysis to obtain analysis results, and the screen projection function of the electronic device is judged to be abnormal based on the analysis results. Based on the solution provided by the embodiment of the present disclosure, the test equipment can realize the automated test of the screen projection function of the electronic device, and eliminate the interference of the environmental noise signal by directly collecting the drive signal or the load output signal, thereby ensuring the objectivity and reliability of the test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work, including:

[0046] Figure 1 is a flow chart of a test method for the screen projection function provided by an embodiment of the present disclosure;

[0047] Figure 2 It is a hardware architecture diagram of the screen projection function test provided by some embodiments of the present disclosure;

[0048] Figure 3 It is a structural schematic diagram of a screen projection function testing device provided in an embodiment of the present disclosure;

[0049] Figure 4 It is a schematic diagram of the structure of the test equipment provided in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0051] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0052] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0053] In order to solve the problem that inaccurate test results may occur in the existing manual offline testing of the screen projection function of electronic devices, the embodiments of the present disclosure provide a new method for testing the screen projection function, which implements the testing of the screen projection function of electronic devices through automated testing.

[0054] Figure 1 : is a flow chart of the test method of the screen projection function provided by the embodiment of the present disclosure. Figure 1 As shown, the method for testing the screen projection function provided in the embodiment of the present disclosure can be executed by a test device. The test device can be the electronic device being tested itself, or other external devices, which is not limited in the embodiment of the present disclosure.

[0055] The following is an analysis of the test method for the screen projection function provided by the embodiment of the present disclosure, with the test device as the execution subject. In the explanation of certain embodiments, the electronic device itself will be used as a test device, which will be specifically explained before the corresponding embodiment.

[0056] S110: In response to receiving a screen projection test instruction, collecting a driving signal output by the electronic device and / or collecting a load output signal.

[0057] The aforementioned screen projection test instruction is an instruction triggered by the tester to start the screen projection test. In a specific implementation, the screen projection test instruction can be issued by the tester to control the host computer. In the embodiment of the present disclosure, the test device is regarded as a lower computer. After the test device receives the screen projection test instruction, the test device determines to start the screen projection function test of the electronic device.

[0058] In the disclosed embodiment, the screen projection test instruction can not only trigger the test device to start the screen projection test, but also trigger the electronic device to start the screen projection function, that is, trigger the electronic device to start receiving media data sent by an external media device, decode the media data to obtain a drive signal, and output the drive signal through the output interface. In other words, the drive signal in the disclosed embodiment is a signal generated by the electronic device decoding the media data sent by the external media device.

[0059] As described above, in some embodiments of the present disclosure, the test device can collect the drive signal output by the point device and / or collect the load output signal. The drive signal has been described above and is a signal obtained by the electronic device decoding the media data. The load output signal is the output signal generated by the load under the drive signal. The load output signal can be an acoustic signal, an optical signal, or a radio frequency signal such as Bluetooth, Wifi, etc.

[0060] In some embodiments, the test device may collect the drive signal output by the electronic device for subsequent test operations, may collect the load output signal for subsequent operations, or may collect the aforementioned drive signal and load output signal at the same time for subsequent operations.

[0061] S120: Perform signal analysis on the drive signal and / or the load output signal to obtain analysis results.

[0062] After the drive signal or the load output signal is collected, the test device may then analyze the drive signal and / or the load output signal.

[0063] In a specific implementation, to perform signal analysis on a drive signal or a load output signal, it is necessary to determine a matching signal analysis method according to the types of the drive signal and the load output signal, and then use the matching signal analysis method to process and analyze the corresponding signal to obtain an analysis result.

[0064] It should be noted that the signal analysis of the drive signal and / or the load output signal in the disclosed embodiment is performed by using an automated analysis method to obtain the analysis results. The aforementioned analysis results include indicator data indicating that the screen projection function of the electronic device is abnormal.

[0065] How to perform signal analysis on the drive signal and / or the load output signal to obtain the analysis result will be further analyzed later according to the specific type of signal.

[0066] S130: Determine whether the screen projection function of the electronic device is abnormal based on the analysis result.

[0067] After obtaining the analysis results, the test device can then determine whether the screen projection function of the electronic device is abnormal based on the analysis results and pre-set judgment rules.

[0068] In a specific implementation, when there are multiple analysis results, the test device will determine that the screen projection function of the electronic device is normal only when each analysis result determines that the screen projection function of the electronic device is normal. When one analysis result indicates that the screen projection function of the electronic device is abnormal, the test device determines that the screen projection function of the electronic device is abnormal.

[0069] By adopting the method provided in the embodiment of the present disclosure, after receiving the screen projection test instruction, the test equipment can collect the drive signal and / or load output signal output by the electronic device, perform signal analysis on the aforementioned signal to obtain analysis results, and judge whether the screen projection function of the electronic device is abnormal based on the analysis results. Based on the test method provided in the embodiment of the present disclosure, the test equipment can realize the automated test of the screen projection function of the electronic device without the participation of the test personnel, thus ensuring the objectivity and reliability of the test results.

[0070] As analyzed above, the driving signal can be various types of signals. Accordingly, when executing S120, a matching method needs to be used to perform signal analysis according to the type of the driving signal to obtain an analysis result.

[0071] In some embodiments, the driving signal includes an audio driving signal. The audio driving signal is a device used to drive a speaker or a power amplifier device to work to output an audio signal. In the case where the driving signal includes an audio driving signal, the aforementioned S120 may include S121-S122.

[0072] S121: Analyze the frequency spectrum characteristics of the audio driving signal to determine the frequency value of the audio driving signal.

[0073] In the disclosed example, the test device performs spectrum feature analysis on the audio drive signal, which may be by acquiring the audio drive signal through the audio interface of the electronic device, and then performing time-frequency conversion on the audio drive signal to identify the frequency value of the audio signal contained in the audio drive signal.

[0074] In a specific implementation, the test device can use a time-frequency conversion method such as Fourier transform, Fast Fourier Transform (FFT) to determine the frequency value of the audio drive signal. Since the relevant data processing method is already a prior art, the embodiment of the present disclosure will no longer analyze the aforementioned time-frequency conversion method, and the relevant content can be found in the relevant technical literature.

[0075] S122: Determine whether the frequency value is outside the preset frequency band.

[0076] According to the basic principle of the screen projection function test, the characteristics of the media data sent by the external media device are determined. For example, when the media data includes audio data, the frequency characteristics of the aforementioned audio data are determined. When performing the screen projection function test, the test equipment needs to determine whether the audio drive signal is a drive signal that meets the requirements based on the frequency characteristics of the audio data.

[0077] In a specific implementation, the test device determines whether the audio driving signal is a driving signal that meets the requirements by determining whether the audio driving signal is outside a preset frequency band. The aforementioned preset frequency band is a frequency band determined according to the frequency characteristics of the audio data. Specifically, the preset frequency band can be a frequency band determined according to the frequency of the audio data and a predetermined frequency modulation tolerance.

[0078] It should be noted that, according to the application scenarios and application requirements of the electronic device, the aforementioned frequency values ​​should be multiple typical values ​​included in the audio band. Correspondingly, the aforementioned preset frequency band should also correspondingly include multiple typical sub-frequency bands in the audio band.

[0079] Based on the aforementioned S122, the analysis result is whether the frequency value is outside the preset frequency band. Correspondingly, the aforementioned S130 determines whether the screen projection function of the electronic device is abnormal based on the analysis result, including S131.

[0080] S131: When the frequency value is outside the preset frequency band, it is determined that the screen projection function of the electronic device is abnormal.

[0081] If the frequency value is outside the preset frequency band, specifically, the frequency value in a specific frequency band is outside the preset judgment, then the aforementioned frequency value is judged to be an erroneously parsed frequency value. At this time, it can be determined that the screen projection function of the electronic device is abnormal.

[0082] In some embodiments, the test device may be the electronic device itself. In this case, after decoding to obtain the audio drive signal and outputting the audio drive signal to the audio output interface, the electronic device may monitor (that is, collect) the audio drive signal of the audio output interface, and then decode the aforementioned audio drive signal. In other embodiments, after decoding to obtain the audio drive signal, the electronic device may also send the digital signal corresponding to the audio drive signal directly to the signal analysis process, instead of outputting it through the audio output interface.

[0083] The aforementioned S121-S122 is to collect the audio drive signal output by the electronic device and perform signal analysis on it. In some embodiments, the test equipment can also collect the audio output signal and analyze the audio output signal. The audio output signal is a sound signal output by the speaker driven by the audio drive signal. In addition, the aforementioned speaker is a speaker calibrated with frequency characteristics to ensure that the audio output signal output by the speaker can correctly restore the frequency characteristics of the audio drive signal. Of course, in this case, the test equipment should also be equipped with a pickup calibrated with frequency characteristics so as to be able to collect the aforementioned audio output signal.

[0084] Optionally, in some embodiments of the present disclosure, the testing device may execute S140 - S150 in addition to the aforementioned S110 - S130 .

[0085] S140: Obtain a device identification of the electronic device.

[0086] In a specific implementation, the test device may obtain the device identification of the electronic device by scanning an identification QR code, or obtain the device identification of the test device through interface communication, which is not limited in the embodiments of the present disclosure.

[0087] S150: Storing the association relationship between the frequency value and the device identifier, or uploading the association relationship to a production management server.

[0088] After obtaining the device identification of the electronic device and the frequency value obtained by time-frequency analysis, the test device can then associate the aforementioned frequency value with the device identification of the electronic device to achieve binding between the two. After associating the frequency value and the device identification of the electronic device, the test device can store the aforementioned association relationship, or upload the aforementioned association relationship to the production management server. The production management server is a server specifically used to store electronic equipment production process information and quality inspection information.

[0089] By storing the association between the frequency value and the device identifier, or uploading the aforementioned association to the production management server, the test process information can be retained, providing a basis for subsequent quality problem tracing. In addition, the test equipment can also store the analysis results of whether the aforementioned frequency value is outside the preset frequency band locally, or upload it to the production management server.

[0090] In some embodiments, the driving signal output by the electronic device may include a video driving signal, and the video driving signal is used to drive the load (that is, the display) to output an image signal (that is, an output light signal), and the load output signal collected by the test device is also an image signal. In this case, the aforementioned S120 includes the following S123-S124.

[0091] S123: Perform analog-to-digital conversion on the image signal to determine the pixel grayscale of the pixel point corresponding to the image signal.

[0092] In the embodiment of the present disclosure, in order to realize the acquisition of image signals, the test equipment is equipped with a colorimetrically calibrated camera, which can be a camera based on the principle of charge coupled device (CCD) or a camera based on the principle of complementary metal oxide semiconductor (CMOS), which is not limited in the embodiment of the present disclosure. The camera can acquire the image signal output by the display, and perform analog-to-digital conversion on the image signal through the internal analog-to-digital processing unit to determine the pixel grayscale of the pixel corresponding to the image signal.

[0093] In actual implementation, the pixel grayscale of the aforementioned pixel point can be a monochrome grayscale or an RGB three-color grayscale, which is not limited in the embodiments of the present disclosure.

[0094] It should be noted that the color space range of the aforementioned camera should be wider than the display color space range of the monitor to ensure that signal chromaticity distortion does not occur when the camera collects image signals.

[0095] S124: Determine whether the pixel grayscale of the pixel point is outside the corresponding preset grayscale range.

[0096] According to the basic principle of the screen projection function test, the characteristics of the media data sent by the external media device are determined. For example, when the media data includes image data, the color characteristics (also known as grayscale characteristics) of the aforementioned audio and video data are determined. When performing the screen projection function test, the test equipment needs to determine whether the image output signal is a driving signal that meets the requirements based on the color characteristics of the image data.

[0097] In the embodiment of the present disclosure, the test device can determine the preset grayscale range of each pixel point according to the pixel grayscale of each pixel point of the image data and the color conversion deviation threshold, and judge whether the pixel grayscale of the pixel point is outside the preset grayscale range according to the aforementioned preset grayscale range. In other words, the analysis result determined based on S123-S124 is used to judge whether the pixel grayscale of the pixel point is outside the preset grayscale range.

[0098] In some embodiments, the video drive signal can drive the display to output only one color at a time. At this time, the image signal collected by the camera is a single grayscale image signal. At this time, the grayscale of each pixel point is directly averaged, and it is determined whether the aforementioned average is within a preset grayscale range.

[0099] In some other embodiments, the video driving signal may be a signal in which the pixel grayscale of each pixel is different. In this case, the test device may determine whether the pixel grayscale of each pixel is outside the corresponding preset grayscale range, and count the proportion of pixels whose pixel grayscale is outside the corresponding preset grayscale range. When the aforementioned proportion reaches a proportion threshold, it may be determined that the analysis result is that the color of the image signal is inaccurate.

[0100] When executing the aforementioned S123-S124, the aforementioned S130 determines whether the screen projection function of the electronic device is abnormal based on the analysis result, including S132.

[0101] S132: When the grayscale of the pixel is outside the preset grayscale range, it is determined that the screen projection function of the electronic device is abnormal.

[0102] If the pixel grayscale is outside the preset grayscale range, the test device determines that the video drive signal generated by the electronic device decoding the image data may not be correct, and therefore determines that the screen projection function of the electronic device is abnormal.

[0103] In some embodiments of the present disclosure, when executing the aforementioned S123 and S140, the testing device may further execute the following S160-S170.

[0104] S160: Generate a digital image based on the pixel grayscale of each pixel point.

[0105] The test equipment can combine the collected pixel grayscales of each pixel point according to the arrangement order of the pixel points to generate a digital image with two-dimensional plane information. When the aforementioned video driving signal is a continuous video frame, the aforementioned digital image can be a digital video formed by the video frame; when the aforementioned video driving signal is not a continuous video frame, the aforementioned digital image can be a digital image.

[0106] S170: Storing the association between the digital image and the device identification, or uploading the association to a production management server.

[0107] After obtaining the device identification of the electronic device and obtaining the digital image, the test device can then associate the aforementioned digital image with the device identification of the electronic device to achieve binding between the two. After associating the digital image with the device identification of the electronic device, the test device can store the aforementioned association relationship, or upload the aforementioned association relationship to the production management server. The production management server is a server specifically used to store electronic equipment production process information and quality inspection information.

[0108] By storing the association between the frequency value and the device identifier, or uploading the aforementioned association to the production management server, the test process information can be retained, providing a basis for subsequent quality problem tracing. In addition, the test equipment can also store the analysis results of whether the aforementioned frequency value is outside the preset frequency band locally, or upload it to the production management server.

[0109] As analyzed above, in some embodiments of the present disclosure, the aforementioned screen projection function test can be directly performed by the electronic device to be tested. In this case, in addition to executing the method for executing the aforementioned test process, the electronic device can also execute the following S180-S190 when obtaining the screen projection test instruction.

[0110] S180: Acquire media data sent by an external media device via the target input interface.

[0111] S190: Decode the media data to obtain an output signal, and output a driving signal using an output interface.

[0112] The target input interface is an interface used by an electronic device to receive media data sent by an external media device. It can be a High Definition Multimedia Interface (HDMI) interface, a DP (DisplayPort) interface, or a USB interface, which is not limited in the embodiments of the present disclosure.

[0113] In a specific implementation, after acquiring media data through an external media device, the electronic device allocates the media data to a screen projection control chip. The screen projection control chip processes the media data according to a specific processing method to obtain video data and / or audio data such as the aforementioned, and sends the video data and / or audio data to an operating system chip (also known as a SOC chip) of the electronic device so that the aforementioned chip can be used to decode the video data and / or audio data.

[0114] In some embodiments, before executing the aforementioned S180, the electronic device may further execute the following S200.

[0115] S200: Determine a decoding configuration strategy for media data.

[0116] In a specific implementation, pre-configured test cases are stored in the electronic device. Test cases are used to determine how to test the screen projection function. Test cases can be configured with media data acquisition interface information, media data decoding configuration strategy information, output interface of the decoded drive signal, signal analysis strategy for the drive signal, etc. By reading the test case, the electronic device can obtain the decoding configuration strategy for the media data.

[0117] In the case of executing the aforementioned S200, the electronic device specifically includes S191 when executing S190.

[0118] S191: Decode the media data according to the decoding configuration strategy to obtain an output signal.

[0119] In a specific implementation, the decoding configuration strategy may specify a decoding algorithm, decoding bit rate, etc. Of course, in some embodiments, the electronic device may determine the encoding method and other information of the media data according to the header information of the media data, and adaptively determine the decoding configuration strategy according to the aforementioned encoding method and other information.

[0120] Figure 2 is a hardware architecture diagram of the screen projection function test provided by some embodiments of the present disclosure. Figure 2 As shown, the screen projection function test in the embodiment of the present disclosure is performed by the electronic device 201. The electronic device 201 can interact with the host computer 202 as a lower computer. Test cases are pre-stored in the electronic device 201, and the test cases include various signal processing methods related to the test, as well as information about the corresponding media book receiving port and signal output port. After receiving the screen projection test instruction sent by the host computer 202, the electronic device 201 loads and stores the test cases stored therein, obtains the aforementioned information and performs processing configuration. After determining the aforementioned configuration information, the electronic device 201 obtains the media data sent by the external media device 203 via the target interaction interface, and transmits the media data to the screen projection control chip, so that the screen projection control chip parses the media data to obtain the corresponding video data and audio data. After parsing the aforementioned video data and audio data, the system chip in the electronic device 201 decodes the aforementioned data to obtain a drive signal, and sends the drive signal to the corresponding drive output interface. The drive data interface can output the corresponding drive signal. In the disclosed embodiment, the driving signal includes an audio driving signal and a video driving signal, wherein the audio driving signal is output through the digital audio interface and then collected by the electronic device 201 through the digital audio interface for subsequent analysis. The video driving signal is transmitted to the display 204 through the video output interface and then controls the display 204 to output an image signal. The aforementioned image signal is collected by the camera 205 connected to the electronic device 201 to form a digital image signal and then transmitted to the electronic device 201, so that the electronic device 201 analyzes the digital image signal. The analysis result obtained based on the aforementioned analysis can be used to determine whether the screen projection function of the electronic device 201 is normal.

[0121] In addition to providing the aforementioned testing method for the screen projection function, the embodiment of the present disclosure also provides a testing device for the screen projection function. Figure 3 Schematic diagram of the structure of the screen projection function test device provided by the embodiment of the present disclosure. Figure 3As shown, the screen projection function testing device 300 provided in an embodiment of the present disclosure includes a signal acquisition unit 301, a signal analysis unit 302 and a judgment unit 303.

[0122] The signal acquisition unit 301 is used to collect the driving signal output by the output interface of the electronic device and / or the load output signal in response to receiving a screen projection test instruction. The driving signal is generated by the electronic device decoding the media data sent by the external media device, and the load output signal is generated by the load under the driving of the driving signal; the signal analysis unit 302 is used to perform signal analysis on the driving signal and / or the load output signal to obtain an analysis result; the judgment unit 303 is used to judge whether the screen projection function of the electronic device is abnormal based on the analysis result.

[0123] In some embodiments, the driving signal includes an audio driving signal. The signal analysis unit 302 performs spectrum characteristic analysis on the audio driving signal, determines the frequency value of the audio driving signal, and determines whether the frequency value is outside the preset frequency band. The judgment unit 303 determines that the screen projection function of the electronic device is abnormal when the frequency value is outside the preset frequency band.

[0124] In some embodiments, the screen projection function testing device 300 includes an identification acquisition unit and an association unit. The identification acquisition unit is used to obtain the device identification of the electronic device. The association unit is used to store the association relationship between the frequency value and the device identification, or upload the association relationship to the production management server.

[0125] In some embodiments, the driving signal includes a video driving signal, and the load is the display 204. The signal acquisition unit 301 collects the image signal generated by the display 204 under the drive of the video driving signal. The signal analysis unit 302 determines the pixel grayscale of the pixel corresponding to the image signal by performing analog-to-digital conversion on the image signal, and determines whether the pixel grayscale of the pixel is outside the corresponding preset grayscale range. The judgment unit 303 determines that the screen projection function of the electronic device is abnormal when the pixel grayscale is outside the preset grayscale range.

[0126] In some embodiments, the screen projection function testing device 300 further includes a digital image generating unit, which generates a digital image based on the pixel grayscale of each pixel. Correspondingly, the association unit is also used to store the association relationship between the digital image and the device identifier, or upload the association relationship to the production management server.

[0127] In some embodiments, the screen projection function test device 300 is a device in an electronic device, which also includes a media data receiving unit and a decoding unit. The media data receiving unit is used to obtain media data sent by an external media device via a target input interface, and the decoding unit is used to decode the media data to obtain an output signal, and output a driving signal using an output interface.

[0128] In some embodiments, the screen projection function test device 300 further includes a use case loading unit and a strategy determination unit. The use case loading unit loads a preconfigured test case. The strategy determination unit is used to determine the target input interface and the decoding configuration strategy for the media data according to the test case. The decoding unit decodes the media data according to the decoding configuration strategy to obtain an output signal.

[0129] An embodiment of the present disclosure also provides a testing device, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the testing method of the screen projection function of any of the above embodiments can be implemented.

[0130] Figure 4 Schematic diagram of the structure of the test equipment provided by the embodiment of the present disclosure. Figure 4 , which shows a schematic structural diagram of a testing device 400 suitable for implementing the embodiments of the present disclosure. Figure 4 The test device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0131] like Figure 4 As shown, the test device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 402 or a program loaded from a storage device 408 to a random access memory RAM 403. Various programs and data required for the operation of the test device 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output I / O interface 405 is also connected to the bus 404.

[0132] Typically, the following devices may be connected to the I / O interface 405: input devices 405 including, for example, a touch screen, a touch pad, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 407 including, for example, a liquid crystal display 204 (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication devices 409 may allow the test device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The test apparatus 400 is shown with various devices, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.

[0133] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0134] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0135] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hypertext Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0136] The computer-readable medium may be included in the test device, or may exist independently without being assembled into the test device.

[0137] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the test device, the test device: in response to receiving a screen projection test instruction, collects the driving signal output by the electronic device and / or collects the load output signal, the driving signal is generated by the electronic device decoding the media data sent by the external media device, and the load output signal is generated by the load under the driving of the driving signal; performs signal analysis on the driving signal and / or the load output signal to obtain an analysis result; and determines whether the screen projection function of the electronic device is abnormal based on the analysis result.

[0138] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the tester computer, partially on the tester computer, as a separate software package, partially on the tester computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the tester computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system based on hardware that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0141] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0142] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection according to one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0143] The embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above method embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.

[0144] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0145] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for testing a screen projection function, characterized in that: include: In response to receiving a screen projection test instruction, collecting a driving signal output by the electronic device and / or collecting a load output signal, wherein the driving signal is generated by the electronic device decoding media data sent by an external media device, and the load output signal is generated by the load driven by the driving signal; Performing signal analysis on the drive signal and / or the load output signal to obtain an analysis result; Based on the analysis result, determine whether the screen projection function of the electronic device is abnormal.

2. The method according to claim 1, characterized in that The driving signal comprises an audio driving signal; The performing signal analysis on the driving signal and / or the load output signal to obtain an analysis result includes: Performing frequency spectrum characteristic analysis on the audio driving signal to determine the frequency value of the audio driving signal; Determining whether the frequency value is outside a preset frequency band; The determining whether the screen projection function of the electronic device is abnormal based on the analysis result includes: When the frequency value is outside the preset frequency band, it is determined that the screen projection function of the electronic device is abnormal.

3. The method according to claim 2, characterized in that The method further includes: obtaining a device identification of the electronic device; After determining the frequency value of the audio drive signal, the method further includes: The association relationship between the frequency value and the device identifier is stored, or the association relationship is uploaded to a production management server.

4. The method according to claim 1, characterized in that The driving signal includes a video driving signal, and the load is a display; The collecting of the load output signal includes: collecting the image signal generated by the display when driven by the video driving signal; The performing signal analysis on the driving signal and / or the load output signal to obtain an analysis result includes: Performing analog-to-digital conversion on the image signal to determine the pixel grayscale of a pixel point corresponding to the image signal; Determining whether the pixel grayscale of the pixel point is outside the corresponding preset grayscale range; The determining whether the screen projection function of the electronic device is abnormal based on the analysis result includes: When the pixel grayscale is outside the preset grayscale range, it is determined that the screen projection function of the electronic device is abnormal.

5. The method according to claim 4, characterized in that The method further includes: obtaining a device identification of the electronic device; After determining the pixel grayscale of the pixel point corresponding to the image signal, the method further includes: Generate a digital image based on the pixel grayscale of each pixel; The association relationship between the digital image and the device identifier is stored, or the association relationship is uploaded to a production management server.

6. The method according to any one of claims 1 to 5, characterized in that: Before collecting the driving signal output by the electronic device and / or collecting the load output signal, the method further includes: Acquire media data sent by an external media device via a target input interface; The media data is decoded to obtain the driving signal, and the driving signal is outputted using the output interface.

7. The method according to claim 6, characterized in that Before acquiring the media data sent by the external device via the target interaction interface, the method further includes: Determining a decoding configuration strategy for the media data; The decoding of the media data to obtain the output signal includes: decoding the media data according to the decoding configuration strategy to obtain the output signal.

8. A test device for screen projection function, characterized in that: include: a signal acquisition unit, configured to, in response to receiving a screen projection test instruction, collect a drive signal output by an output interface of the electronic device and / or collect a load output signal, wherein the drive signal is generated by the electronic device decoding media data sent by an external media device, and the load output signal is generated by the load driven by the drive signal; A signal analysis unit, used to perform signal analysis on the drive signal and / or the load output signal to obtain an analysis result; A judgment unit is used to judge whether the screen projection function of the electronic device is abnormal based on the analysis result.

9. A testing device, characterized in that: It includes a processor, a memory and a signal receiving device, wherein the memory is used to store computer programs, and the signal collector is used to collect signals; When the computer program is loaded by the processor, the processor controls the signal collector to collect signals to execute the test method for the screen projection function as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the processor implements the test method for the screen projection function as described in any one of claims 1-7.

Citation Information

Cited By

  • Test method, test system and electronic equipment

    CN119232921A