Test method and related device
Patent Information
- Application Number
- PCT/CN2025/077099
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-06
- Filing Date
- 2025-02-13
- Publication Date
- 2025-10-02
AI Technical Summary
Bluetooth audio devices have insufficient anti-interference capabilities, causing them to malfunction under the influence of interference sources in the 2.4GHz to 2.8GHz frequency band, affecting their performance. Furthermore, the degree of automation in anti-interference testing is low.
By controlling the first device to send data to the second device and generate an interference signal, air interface transmission data is obtained to determine anti-interference parameters, and automated anti-interference testing is implemented using test equipment.
The automation level and efficiency of anti-interference testing of wireless communication equipment are improved, with high accuracy and low misjudgment rate, and the anti-interference performance at different distances and rotation angles can be evaluated.
Smart Images

Figure CN2025077099_02102025_PF_FP_ABST
Abstract
Description
A testing method and related equipment
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 6, 2024, with application number 202410260023.X and invention name “A testing method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of testing, and in particular to a testing method and related equipment. Background Art
[0003] When a Bluetooth audio device's anti-interference capability is insufficient, it can be affected by interference sources in the 2.4GHz to 2.8GHz frequency band in the surrounding environment, preventing it from functioning properly and impacting its performance. However, the degree of automation in Bluetooth audio device anti-interference testing is low. Summary of the Invention
[0004] The present application provides a testing method and related equipment, which can improve the automation level of anti-interference testing of wireless communication equipment.
[0005] In a first aspect, a testing method is provided. The method can be executed by a testing device or a chip in the testing device.
[0006] The testing method includes the following steps: controlling a first device to transmit first data to a second device via an air interface; generating a first interference signal based on a scenario factor of an interference scenario, wherein the scenario factor of the interference scenario is used to characterize the interference scenario; obtaining data transmitted via the air interface; and determining first anti-interference parameters of the first device and the second device based on the data transmitted via the air interface.
[0007] The first anti-interference parameter is used to characterize the anti-interference performance of the first device and the second device.
[0008] It can be seen that in this solution, by controlling the first device to send data to the second device through the air interface and generating a first interference signal to obtain data transmitted through the air interface under the action of the first interference signal, the first anti-interference parameters of the first device and the second device can be determined based on the data transmitted through the air interface, and the automated anti-interference test of the wireless communication device can be realized, thereby improving the degree of automation and test efficiency of the anti-interference test of the wireless communication device.
[0009] Exemplarily, the first device is controlled to send the first data to the second device via the air interface and generate the first interference signal simultaneously. In another exemplary embodiment, the first interference signal is first controlled to be generated, and then the first device is controlled to send the first data to the second device via the air interface.
[0010] In a possible implementation of the first aspect, when the first data is first audio data, the testing method further includes the following steps: obtaining second audio data received by the second device from the first device via an air interface; and determining a number of audio freezes based on the first audio data and the second audio data.
[0011] In this solution, the number of audio freezes can be determined based on the first audio data sent by the first device and the second audio data received by the second device. The accuracy of determining the number of audio freezes based on the audio data is high and the error rate is low.
[0012] In a possible implementation of the first aspect, determining the number of audio freezes based on the first audio data and the second audio data includes the following steps: determining a first eigenvalue corresponding to each audio frame in the first audio data; determining a second eigenvalue corresponding to each audio frame in the second audio data; and determining the number of audio freezes based on the first eigenvalue and the second eigenvalue.
[0013] In this solution, feature detection is performed based on the first audio data and the second audio data to obtain a first feature value and a second feature value, and the number of audio freezes is determined based on the first feature value and the second feature value. By performing audio feature detection on the audio data, the number of audio freezes can be calculated more accurately.
[0014] In a possible implementation of the first aspect, the test method further includes the following steps: obtaining a first distance between the first device and the second device. The first anti-interference parameter is the anti-interference parameter when the distance between the first device and the second device is the first distance.
[0015] In this solution, during testing, the physical distance between the first device and the second device can be adjusted to test the anti-interference parameters at different physical distances.
[0016] In a possible implementation of the first aspect, the test method further includes the following steps: obtaining a first rotation angle of the second device. The first anti-interference parameter is the anti-interference parameter when the rotation angle of the second device is the first rotation angle.
[0017] In this solution, during testing, the rotation angle of the second device can be adjusted to test the anti-interference parameters at different rotation angles (ie, postures).
[0018] In a possible implementation of the first aspect, the air interface transmission mode between the first device and the second device includes at least one of the following: StarFlash, Bluetooth, wireless local area network, ZigBee, or near-field communication NFC.
[0019] When the air interface transmission mode adopts star flash, the application of the test method of this application can provide a star flash anti-interference ability evaluation standard, which is conducive to the research and development of star flash technology.
[0020] In a second aspect, the present application also provides a testing device, including a control module, a generation module, an acquisition module and a determination module.
[0021] The control module is used to control the first device to send the first data to the second device through the air interface.
[0022] The generating module is configured to generate a first interference signal based on a scene factor of an interference scene, where the scene factor of the interference scene is used to characterize a characteristic of the interference scene.
[0023] The acquisition module is used to obtain data transmitted through the air interface.
[0024] The determination module is configured to determine first anti-interference parameters of the first device and the second device based on data transmitted over the air interface.
[0025] In this solution, the test device controls the first device to send data to the second device through the air interface and generates a first interference signal to obtain data transmitted through the air interface under the action of the first interference signal. Based on the data transmitted through the above air interface, the first anti-interference parameters of the first device and the second device can be determined. The test device can realize automated anti-interference testing of wireless communication equipment, thereby improving the degree of automation and test efficiency of anti-interference testing of wireless communication equipment.
[0026] In a possible implementation of the second aspect, when the first data is first audio data, the acquiring module is further configured to acquire second audio data received by the second device from the first device via an air interface. The determining module is further configured to determine a number of audio freezes based on the first audio data and the second audio data.
[0027] In a possible implementation of the second aspect, the determination module, in determining the number of audio freezes based on the first audio data and the second audio data, is specifically configured to: determine a first eigenvalue corresponding to each audio frame in the first audio data; determine a second eigenvalue corresponding to each audio frame in the second audio data; and determine the number of audio freezes based on the first eigenvalue and the second eigenvalue.
[0028] In a possible implementation of the second aspect, the acquisition module is further configured to acquire a first distance between the first device and the second device. The first anti-interference parameter is an anti-interference parameter when the distance between the first device and the second device is the first distance.
[0029] In a possible implementation of the second aspect, the acquisition module is further configured to acquire a first rotation angle of the second device. The first anti-interference parameter is an anti-interference parameter when the rotation angle of the second device is the first rotation angle.
[0030] In a possible implementation of the second aspect, the air interface transmission mode between the first device and the second device includes at least one of the following: StarFlash, Bluetooth, wireless local area network, ZigBee, or near-field communication NFC.
[0031] In a third aspect, the present application also provides a testing device comprising a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute the testing method as described in the first aspect.
[0032] In a fourth aspect, the present application further provides a test system comprising a first device, a second device, an interference module, an air interface data acquisition module, and the test device described in the second or third aspect. The interference module is configured to generate a first interference signal, and the air interface data acquisition module is configured to collect data transmitted by the first device via an air interface.
[0033] In the present application, the test system can be used to implement automated anti-interference testing of wireless communication devices (i.e., the first device and the second device), thereby improving the degree of automation and test efficiency of the anti-interference testing of wireless communication devices.
[0034] In a possible implementation of the fourth aspect, when the first data sent by the first device to the second device is first audio data, the test system further includes an audio acquisition module for acquiring second audio data received by the second device from the first device via the air interface.
[0035] In this solution, the second audio data can be obtained using the audio acquisition module. In this way, the test device can determine the number of audio freezes based on the first audio data sent by the first device and the second audio data received by the second device. The accuracy of determining the number of audio freezes based on the audio data is high and the error rate is low.
[0036] In one possible implementation of the fourth aspect, the test system further includes a posture adjustment module for adjusting the posture of the second device. The posture can be understood as the rotation angle of the second device, which can refer to a left-right rotation angle, a vertical rotation angle, or a rotation angle in both the vertical and left-right directions. Exemplarily, the posture adjustment module can be a 360° turntable or a pan / tilt platform.
[0037] In a possible implementation manner of the fourth aspect, the system further includes a distance adjustment module, configured to adjust the distance between the first device and the second device.
[0038] In a fifth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the testing method as described in the first aspect.
[0039] In a sixth aspect, the present application further provides a computer program product comprising instructions, which, when run on a computer, enables the computer to execute the testing method described in the first aspect.
[0040] In a seventh aspect, the present application further provides a chip, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface and executes the test method described in the first aspect.
[0041] Optionally, as an implementation method, the chip may further include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the test method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The following is an introduction to the drawings used in the embodiments of this application.
[0043] FIG1A is a schematic structural diagram of a first device provided in an embodiment of the present application;
[0044] FIG1B is a schematic diagram of a flow chart of a testing method provided in an embodiment of the present application;
[0045] FIG2 is a schematic diagram of a flow chart of a training feature factor extraction model provided in an embodiment of the present application;
[0046] FIG3 is a schematic diagram of the structure of a test system provided in an embodiment of the present application;
[0047] FIG4 is a schematic diagram of the structure of another test system provided in an embodiment of the present application;
[0048] FIG5 is a schematic structural diagram of a testing device provided in an embodiment of the present application;
[0049] FIG6 is a schematic structural diagram of another testing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The technical solution in this application will be described below with reference to the accompanying drawings.
[0051] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0052] The "at least one" mentioned in the embodiments of this application refers to one or more, and "plurality" refers to two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can be represented by: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. The serial numbers of the steps in the embodiments of this application (such as step S1, step S21, etc.) are only for distinguishing different steps and do not limit the order of execution between the steps.
[0053] Furthermore, unless otherwise specified, ordinal numbers such as "first" and "second" in the embodiments of this application are used to distinguish multiple objects and are not used to limit the order, timing, priority, or importance of multiple objects. For example, the first device and the second device are only for ease of description and do not indicate differences in structure, importance, etc. between the first and second devices. In some embodiments, the first device and the second device can also be the same device.
[0054] In the above embodiments, the term "when" can be interpreted to mean "if...", "after...", "in response to determining...", or "in response to detecting...", depending on the context. The above are merely optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concepts and principles of the present application shall be included in the scope of protection of the present application.
[0055] When the anti-interference capability of a Bluetooth audio device is insufficient, the Bluetooth audio device will be affected by interference sources in the 2.4GHz to 2.8GHz frequency band in the surrounding environment and will not be able to work properly, affecting the use of the Bluetooth audio device. For example, Bluetooth audio devices are mobile phones and Bluetooth headsets. When a user uses a mobile phone to play music via Bluetooth, the user can listen to music wirelessly through the Bluetooth headset they are wearing. When the mobile phone and Bluetooth headset are interfered with, the user will feel that the music playback is stuck, affecting the user experience. Therefore, it is necessary to conduct anti-interference tests on Bluetooth audio devices to help test the anti-interference capability of the device and thus improve the user experience. However, the degree of automation of anti-interference testing of Bluetooth audio devices is low.
[0056] To this end, an embodiment of the present application provides a testing method that can improve the degree of automation of anti-interference testing of wireless communication devices.
[0057] The above test method can be executed by a test device, or by a chip in the test device. The above test device can be a desktop computer, a notebook computer, or other device.
[0058] The test method in the embodiments of the present application can be applied to automated anti-interference testing of various wireless communication devices. Such wireless communications include Bluetooth, Near Link, Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) networks), ZigBee, Near Field Communication (NFC), etc.
[0059] SparkLink is a wireless short-range communication technology used to carry data interaction in application scenarios such as smart cars, smart terminals, smart homes, and smart manufacturing. The SparkLink wireless communication system consists of the SparkLink access layer, the basic service layer, and the basic application layer. The SparkLink access layer consists of two parts: basic access (SparkLink Basic, SLB) and low-power access (SparkLink-LowEnergy, SLE). SLB can be understood as Wi-Fi, with faster speeds, lower latency, and larger data transmission. SLE can be understood as Bluetooth, with lower power consumption. SLB and SLE provide different transmission services for different business needs, and the two complement each other.
[0060] Wi-Fi, based on the IEEE 802.11 standard, wirelessly connects devices such as personal computers, smartphones, and tablets, providing high-speed data transmission. Wi-Fi is commonly used in homes, offices, cafes, libraries, and other public places, allowing users to connect to the internet and browse the web, download data, and watch online videos.
[0061] Zigbee is a low-speed, short-range, low-power wireless communication technology based on the IEEE 802.15.4 standard, primarily used for wireless communication between IoT devices. Its name comes from the "zigzag" dance of honeybees, which they use to communicate the location of food sources. Compared to wireless communication technologies like Wi-Fi and Bluetooth, Zigbee offers advantages such as low power consumption, low cost, and self-organizing networking. It is widely used in smart homes, industrial automation, agricultural IoT, and other fields.
[0062] Near Field Communication (NFC) is a contactless wireless communication technology that enables high-speed, two-way data transmission over short distances. NFC utilizes two-way authentication and encryption, offering enhanced security and reliability.
[0063] In an embodiment of the present application, a wireless communication device includes a first device and a second device.
[0064] In a possible implementation, the first device may be a mobile phone, a tablet computer, a wearable device, or the like, and the second device may be a Bluetooth headset, a sensor, or the like.
[0065] For example, referring to FIG1A , FIG1A is a schematic diagram of the structure of a first device provided in an embodiment of the present application; the first device may have more or fewer components than shown in FIG1A , may combine two or more components, or may have a different component configuration. The various components shown in FIG1A may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0066] The first device may include: a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a multispectral sensor (not shown), etc.
[0067] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0068] The controller can be the nerve center and command center of the first device. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0069] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0070] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a USB interface.
[0071] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
[0072] The I2S interface can be used for audio communication.
[0073] The PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
[0074] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
[0075] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes the Camera Serial Interface (CSI) and the Display Serial Interface (DSI).
[0076] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal.
[0077] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.
[0078] The USB interface 130 is an interface that complies with USB standard specifications, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
[0079] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the first device. In other embodiments of the present application, the first device may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0080] The charging management module 140 is configured to receive charging input from a charger.
[0081] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110 to provide power to the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0082] The wireless communication function of the first device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0083] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0084] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on the first device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via antenna 1.
[0085] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0086] The wireless communication module 160 can provide wireless communication solutions including wireless local area network (such as Wi-Fi network), Bluetooth, infrared technology (Infrared, IR), Star Flash, ZigBee, NFC, etc. applied on the first device.
[0087] In some embodiments, antenna 1 of the first device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the first device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), etc.
[0088] The first device implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0089] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), mini-LED, microLED, micro-OLED, quantum dot light-emitting diode (QLED), etc. In some embodiments, the first device can include one or N display screens 194, where N is a positive integer greater than 1.
[0090] The first device can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor.
[0091] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and a light signal is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193. This photosensitive element is also referred to as an image sensor.
[0092] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the first device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0093] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the first device is processing a voice signal, the digital signal processor is used to perform Fourier transform on the voice signal.
[0094] Video codecs are used to compress or decompress digital video. The first device may support one or more video codecs. This allows the first device to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0095] The NPU is a neural network computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications such as image recognition, facial recognition, speech recognition, and text comprehension.
[0096] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first device.
[0097] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the first device by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area.
[0098] The first device can implement audio functions such as music playback and recording through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor. In this embodiment, the first device may include n microphones 170C, where n is a positive integer greater than or equal to 2.
[0099] The audio module 170 is used to convert digital audio information into analog audio signals for output, and is also used to convert analog audio input into digital audio signals.
[0100] Ambient light sensor 180L is used to sense ambient light brightness. The first device can adaptively adjust the brightness of display screen 194 based on the sensed ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust the white balance when taking photos.
[0101] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or touch vibration feedback. For example, touch operations on different applications (such as taking photos, playing audio, etc.) can correspond to different vibration feedback effects.
[0102] In an embodiment of the present application, the processor 110 can call computer instructions stored in the internal memory 121 to enable the first device to execute relevant steps in the test method in the embodiment of the present application (such as sending first data, etc.).
[0103] The test method of the embodiment of the present application is described in detail below:
[0104] Referring to FIG. 1B , FIG. 1B is a flow chart of a testing method provided in an embodiment of the present application. In the embodiment of the present application, the execution subject is a testing device as an example. The testing method includes the following steps:
[0105] 101. A test device controls a first device to send first data to a second device through an air interface.
[0106] Specifically, the above-mentioned data transmission via the air interface refers to wireless communication between the first device and the second device, and the above-mentioned air interface transmission method includes at least one of the following: Bluetooth, StarFlash, Wireless LAN, ZigBee, or NFC. In other words, the test method of the embodiment of the present application is applicable to the anti-interference testing of various wireless communication devices.
[0107] There is no particular limitation on the specific type of the first data. For example, the first data may be audio data, video data, text data, location data, control data, or sensor data.
[0108] 102. The testing device generates a first interference signal based on a scene factor of the interference scene.
[0109] The scene factor of the interference scene is used to characterize the characteristics of the interference scene. The first interference signal meets the interference characteristics of the interference scene, that is, the scene factor of the interference scene can generate a first interference signal close to the real interference signal of the interference scene.
[0110] For example, the test device may simultaneously control the first device to send the first data to the second device via the air interface and generate the first interference signal. For another example, the test device may first control the generation of the first interference signal and then control the first device to send the first data to the second device via the air interface. Both of these approaches ensure that the first interference signal interferes with the wireless communication between the first and second devices.
[0111] 103. The test device obtains data transmitted through the air interface.
[0112] 104. The testing device determines first anti-interference parameters of the first device and the second device based on data transmitted over the air interface.
[0113] The first anti-interference parameter is used to characterize the anti-interference performance of the first device and the second device. The anti-interference performance of the first device and the second device can be evaluated based on the first anti-interference parameter. For example, if the first anti-interference parameter meets certain conditions, it indicates that the anti-interference performance of the first device and the second device is excellent; otherwise, the anti-interference performance of the first device and the second device is poor.
[0114] In an embodiment of the present application, the test device controls the first device to send data to the second device through the air interface and generates a first interference signal to obtain data transmitted through the air interface under the action of the first interference signal. Based on the data transmitted through the above air interface, the first anti-interference parameters of the first device and the second device can be determined, and automated anti-interference testing of wireless communication equipment can be realized, thereby improving the degree of automation and test efficiency of anti-interference testing of wireless communication equipment.
[0115] In a possible implementation, the above-mentioned testing method further includes the following steps:
[0116] The test device obtains a first distance between the first device and the second device. The first anti-interference parameter is the anti-interference parameter when the distance between the first device and the second device is the first distance.
[0117] Specifically, the testing device can adjust the distance between the first device and the second device, for example, by using a slide rail or other device, and the specific details are not particularly limited.
[0118] In the embodiment of the present application, during testing, the physical distance between the first device and the second device can be adjusted to test the anti-interference parameters at different physical distances.
[0119] In a possible implementation, the above-mentioned testing method further includes the following steps:
[0120] The test device obtains a first rotation angle of the second device. The anti-interference parameter obtained when the rotation angle of the second device is the first rotation angle is the first anti-interference parameter.
[0121] Specifically, the test device can adjust the rotation angle of the second device, for example, by using a 360° turntable or a pan / tilt head, etc., without particular limitation. The rotation angle can refer to a left-right rotation angle, an up-down rotation angle, or a rotation angle in both the up-down and left-right directions.
[0122] In the embodiment of the present application, during testing, the rotation angle of the second device can be adjusted to test the anti-interference parameters at different rotation angles (ie, postures).
[0123] In this embodiment of the present application, in order to simulate more interference scenarios, data from multiple real scenarios is first obtained, characteristic factors corresponding to the real scenarios are extracted, and then scenario factors corresponding to different interference scenarios are obtained based on the characteristic factors. Using the scenario factors of different interference scenarios, the interference conditions of different interference scenarios can be simulated to test the anti-interference capability of wireless communication devices under different interference scenarios.
[0124] Specifically, first obtain the training data for training the feature factor extraction model, and use the training data to train the model until the recognition accuracy of the feature factor extraction model reaches more than 90%. Referring to Figure 2, Figure 2 is a flow chart of a training feature factor extraction model provided in an embodiment of the present application; after the training data is labeled and preprocessed, the initial model is trained to obtain the model prediction results corresponding to the training data, and the training effect of the model is evaluated based on the model prediction results. When the training effect of the model does not meet the requirements, add training data and continue to train the model until the recognition accuracy of the model reaches more than 90%.
[0125] After obtaining the characteristic factor extraction model, relevant data from multiple real scenarios are obtained, and the characteristic factor extraction model is used to extract the characteristic factors of the real scenarios, thereby building an interference scenario baseline library. The real interference scenarios are instantiated and modeled in combination with the business interference characteristics, ensuring the consistency of the interference sources, normalizing complex interference scenarios, standardizing test capabilities, and baselineing test cases. This makes the test results repeatable, the test standards consistent, and the confidence level of the evaluation conclusions high.
[0126] Among them, the characteristic factors include service networking, service type, service characteristics, interference spectrum, interference channel, interference networking, equipment type, etc. According to different combinations of characteristic factors, scenario factors of multiple interference scenarios can be generated, that is, interference scenario models. The above-mentioned interference scenarios include typical interference scenarios such as railway station scenarios (multi-user, low traffic), home scenarios, airport scenarios, shopping mall office scenarios, quantitative scenarios (fixed / variable channel models), etc., to achieve full coverage of interference scenarios and ensure that the test results are repeatable. For example, different values of various characteristic factors are combined to obtain various interference scenario models. For example, interference scenario model A is fixed interference, and the interference channel remains unchanged. Interference scenario model B is variable interference, and the interference channel changes. Interference scenario model C is complex interference, and field recording and playback interference.
[0127] The embodiments of the present application provide models of at least two interference scenarios. The interference scenarios are diversified and can test the anti-interference capability of wireless communication equipment in different interference scenarios.
[0128] Exemplarily, the first anti-interference parameter refers to a related anti-interference parameter that can be determined based on data transmitted over the air interface. For example, the first anti-interference parameter includes at least one of air interface data transmission accuracy, interference shielding time, or interference recovery time.
[0129] The air interface data transmission accuracy rate refers to the accuracy rate of successfully transmitted data packets by a device (either the first device or the second device) within a time period. The specific value for this time period can be adjusted based on actual conditions and is not specifically limited. The interference shielding time refers to the time it takes for a device to completely avoid an interference signal after receiving it, while the interference recovery time refers to the time it takes for a device to retreat (disappear) from the interference signal and resume data transmission on the original channel. All three parameters are obtained by capturing air interface data using a packet capture instrument.
[0130] In one possible implementation, when the first data is first audio data, the test method of the embodiment of the present application further includes obtaining second anti-interference parameters of the first device and the second device, where the second anti-interference parameters refer to relevant anti-interference parameters obtained based on the received data of the second device. For example, the second anti-interference parameters include at least one of the number of audio freezes or transmission delay. The transmission delay refers to the time required for data to travel from the sender to the receiver, that is, the transmission delay of the first device sending data to the second device.
[0131] Exemplarily, the first audio data may be monophonic audio data or polyphonic audio data. Monophonic audio refers to audio having only one note or tone, such as a beep or a single instrument sound. In contrast, polyphonic audio includes multiple notes or tones, such as a piece of music or a speech.
[0132] In a possible implementation, the above-mentioned testing method further includes the following steps:
[0133] The test device obtains second audio data received by the second device from the first device through the air interface.
[0134] The test device determines a number of audio freezes based on the first audio data and the second audio data.
[0135] Specifically, the second audio data can be collected using an audio acquisition module. For example, the second audio data can be the audio data itself received by the second device from the first device via the air interface. In this case, the test device can be connected to the second device via an audio cable to obtain the second audio data, and the audio acquisition module is the audio cable. Alternatively, the second audio data can be recorded audio data obtained by collecting audio data received by the second device from the first device via the air interface using an audio recording device (i.e., an audio acquisition module).
[0136] Exemplarily, referring to Figure 3, Figure 3 is a structural diagram of a test system provided in an embodiment of the present application; the test system includes a test device, an interference module, an audio acquisition module, a Bluetooth audio device and a terminal device, wherein the terminal device can be a mobile phone, a tablet computer, a wearable device, etc., and the terminal device is the first device in the embodiment of the present application. The Bluetooth audio device can be a Bluetooth headset, etc., and the Bluetooth audio device is the second device in the embodiment of the present application. For example, during the test process, the test device first controls the terminal device and the Bluetooth audio device to enter pairing mode to establish a Bluetooth connection between the terminal device and the Bluetooth audio device; after the test device controls the interference module to generate a first interference signal, it controls the terminal device to play the first audio data via Bluetooth (i.e., send the first audio data), the Bluetooth audio device receives audio data from the terminal device via Bluetooth, the audio acquisition module acquires the audio received by the Bluetooth audio device to obtain recorded audio data, the audio acquisition module sends the recorded audio data to the test device, and the test device can determine the number of audio freezes based on the first audio data and the recorded audio data.
[0137] In an embodiment of the present application, the number of audio freezes can be determined based on the first audio data sent by the first device and the second audio data received by the second device. The accuracy of determining the number of audio freezes based on the audio data is high and the error rate is low.
[0138] In a possible implementation, the test device determines the number of audio freezes based on the first audio data and the second audio data, specifically including the following steps:
[0139] The testing device determines a first feature value corresponding to each audio frame in the first audio data.
[0140] Specifically, the test device performs feature extraction on each audio frame in the first audio data using an audio feature extraction algorithm to obtain a first feature value corresponding to each audio frame. For example, the audio feature extraction algorithm includes a decoding function, and the test device performs feature detection on the first audio data using the decoding function to obtain a first feature value for each frame in the first audio data.
[0141] The testing device determines a second feature value corresponding to each audio frame in the second audio data.
[0142] Specifically, the testing device performs feature extraction on each audio frame in the second audio data using an audio feature extraction algorithm to obtain a second feature value corresponding to each audio frame.
[0143] The test device determines the number of audio freezes based on the first characteristic value and the second characteristic value.
[0144] Specifically, based on the comparison between the first eigenvalue and the second eigenvalue, the frame segments with abnormal eigenvalues can be found and marked from each frame of the second audio data, so as to determine whether audio jamming occurs in each frame. The embodiment of the present application can realize automatic detection of audio fluency, can identify jamming within 2ms (the jamming interval that can be perceived by the human ear), does not rely on the human ear to make subjective judgments, can automatically monitor the number of audio jams, has high detection accuracy and low false positive rate, which can not only improve the anti-interference test efficiency of wireless communication equipment, but also the test method is not limited by audio technology and can test the audio fluency of multiple audio codecs.
[0145] In the embodiment of the present application, feature detection is performed based on the first audio data and the second audio data to obtain a first feature value and a second feature value, and the number of audio freezes is determined based on the first feature value and the second feature value. By performing audio feature detection on the audio data, the number of audio freezes can be calculated more accurately.
[0146] In one possible embodiment, the first audio data includes the data sending time, and therefore, the second audio data also includes the data sending time, and the data receiving time of the second audio data will also be recorded. Based on the data sending time and the data receiving time, the transmission delay between the first device and the second device can be determined. For example, when the second audio data is the audio data itself received by the second device from the first device through the air interface, the test device can record the data receiving time when it starts to obtain the second audio data through the audio line. Alternatively, when the second audio data is the recorded audio data obtained by audio acquisition module for audio data received by the second device from the first device through the air interface, the time when the audio acquisition module starts recording is the data receiving time. In particular, the above-mentioned time recording does not require the use of a hardware reference clock, and the implementation cost is low.
[0147] The following is a specific example to illustrate the test system:
[0148] With reference to Figure 4, Figure 4 is a structural diagram of another test system provided in an embodiment of the present application; the test system mainly includes an interference module, an air interface data acquisition module, an audio acquisition module, automated test software and a test device 401. Exemplarily, the interference module includes a playback device 405, an attenuator 407 and an antenna 408, and the interference module is used to provide full-scene interference to the device under test (the first device and the second device) based on the interference scenario model, that is, to generate a first interference signal. In the embodiment of the present application, the first device and the second device are located in a test environment, and the interference module applies the interference signal to the first device and the second device through the antenna 408. In the embodiment of the present application, the test environment is a darkroom, the first device is a mobile phone 402 as an example, and the second device is a Bluetooth headset 404 as an example. In addition, the test device 401 can control the playback device 405 to generate an interference scenario model for the first interference signal and the signal strength of the first interference signal.
[0149] In the embodiment of the present application, the test device 401 controls the mobile phone 402 and the Bluetooth headset 404 to enter pairing mode to establish a Bluetooth connection. The test device 401 then controls the mobile phone 402 to play a preset single audio file via Bluetooth. The audio acquisition module takes the audio cable 403 as an example. The test device 401 is connected to the Bluetooth headset 404 via the audio cable 403 to directly capture the sound source of the Bluetooth headset in real time and transmit the captured sound source (second audio data) to the test device 401. The automated test software in the test device 401 processes the second audio data to obtain the second anti-interference parameter.
[0150] In an embodiment of the present application, the test system further includes a posture adjustment module for adjusting the posture of the second device. In an embodiment of the present application, the posture adjustment module takes a 360° turntable as an example. Further illustratively, the test system further includes a distance adjustment module for adjusting the distance between the first device and the second device. In an embodiment of the present application, the distance adjustment module takes a programmable slide as an example, and the distance adjustment module can also be implemented in other ways without limitation. Referring to Figure 4, the Bluetooth headset 404 is placed on a 360° turntable 406, and the mobile phone 402 is placed on a programmable slide in a dark room. The test device 401 can simulate the user's actual signal attenuation scenario by controlling the programmable slide to control the distance between the mobile phone 402 and the 360° turntable 406. The test device 401 can also control the rotation time and angle of the 360° turntable 406 to test the audio quality of the Bluetooth headset 404 when it rotates 360°.
[0151] In the embodiment of the present application, the air interface data acquisition module takes a packet capture instrument as an example, and the air interface data acquisition module can also be other implementation methods, which are not limited. Referring to Figure 4, when the mobile phone 402 plays a single-tone file via Bluetooth, the data transmitted by the mobile phone 402 via the air interface is also captured by the packet capture instrument 409, and the automated test software obtains the first anti-interference parameter based on the data transmitted by the air interface. After the test is completed, the test equipment can automatically output the anti-interference capability test report (including the first anti-interference parameter and the second anti-interference parameter). By viewing the report, the anti-interference capability of the mobile phone 402 and the Bluetooth headset 404 is clear at a glance.
[0152] In the embodiment of the present application, the test system can evaluate the anti-interference capability of wireless communication equipment from multiple dimensions (air interface data transmission accuracy, number of audio freezes, interference shielding time, interference recovery time, transmission delay, etc.), and the interference intensity is adjustable, the interference model is rich, and the scalability is strong. The test dimensions are diversified and the test conclusions are more reliable. In addition, the automated test software supports Harmony and Android systems; the modular interface is conducive to the efficient development of automated use cases and facilitates the transplantation and expansion of test cases and test scenarios.
[0153] In one possible embodiment, different first and second anti-interference parameters are assigned values, and based on the assigned values, anti-interference scores for the first and second devices can be obtained, so that a user can understand the anti-interference capabilities of the first and second devices based on the anti-interference scores. For example, for different interference scenarios, different evaluation weights can be set for different first and second anti-interference parameters, and based on the assigned values and the evaluation weights, the anti-interference scores for the first and second devices can be obtained.
[0154] In this application, when the air interface transmission mode between the first device and the second device of this application adopts star flash transmission, the application of the test method of the embodiment of this application can promote the construction of the anti-interference capability standard of star flash, design a set of standard interference sources for star flash, and a series of anti-interference indicators under this model need to meet specific standards. At the same time, a portable and expandable automated testing platform is designed to provide a star flash anti-interference capability evaluation standard, which is conducive to the research and development of star flash technology.
[0155] The above describes in detail the method of the embodiment of the present application. The following describes the device provided by the embodiment of the present application.
[0156] Figures 5 and 6 are schematic diagrams of the structures of possible devices provided by the embodiments of the present application. Among them, the test equipment shown in Figure 5 can be used to implement the functions of the test method embodiment shown in Figure 1B above, and therefore can also achieve the beneficial effects possessed by the above-mentioned test method embodiment. In an embodiment of the present application, the test equipment can be an electronic device, and can also be a module (such as a chip) applied to an electronic device. The test equipment shown in Figure 6 can be used to implement the functions of the test method embodiment shown in Figure 1B above, and therefore can also achieve the beneficial effects possessed by the above-mentioned test method embodiment. In an embodiment of the present application, the test equipment can be an electronic device, and can also be a module (such as a chip) applied to an electronic device.
[0157] As shown in Figure 5, Figure 5 is a schematic diagram of the structure of a test device provided in an embodiment of the present application; the test device 500 includes a control module 510, a generation module 520, an acquisition module 530, and a determination module 540. The test device 500 is used to implement the functions of the test method embodiment shown in Figure 1B above. Alternatively, the test device 500 may include a module for implementing any function or operation of the test method embodiment shown in Figure 1B above, and the module may be implemented in whole or in part through software, hardware, firmware, or any combination thereof.
[0158] When the test device 500 is used to implement the functions of the method embodiment shown in FIG1B , the control module 510 is configured to control the first device to transmit first data to the second device via the air interface. The generation module 520 is configured to generate a first interference signal based on a scenario factor of an interference scenario, where the scenario factor of the interference scenario is used to characterize the interference scenario. The acquisition module 530 is configured to acquire data transmitted via the air interface. The determination module 540 is configured to determine first anti-interference parameters of the first and second devices based on the data transmitted via the air interface.
[0159] In an embodiment of the present application, the test device 500 controls the first device to send data to the second device through the air interface and generates a first interference signal to obtain data transmitted through the air interface under the action of the first interference signal. Based on the data transmitted through the above air interface, the first anti-interference parameters of the first device and the second device can be determined. The test device 500 can realize automated anti-interference testing of wireless communication equipment, thereby improving the degree of automation and test efficiency of anti-interference testing of wireless communication equipment.
[0160] In one possible implementation, when the first data is first audio data, the acquisition module 530 is further configured to acquire second audio data received by the second device from the first device via the air interface. The determination module 540 is further configured to determine the number of audio freezes based on the first audio data and the second audio data.
[0161] In a possible implementation, the determination module 540 is specifically configured to:
[0162] Determine a first feature value corresponding to each audio frame in the first audio data.
[0163] Determine a second feature value corresponding to each audio frame in the second audio data.
[0164] The number of audio freezes is determined based on the first eigenvalue and the second eigenvalue.
[0165] In a possible implementation, the acquisition module 530 is further configured to acquire a first distance between the first device and the second device. The first anti-interference parameter is an anti-interference parameter when the distance between the first device and the second device is the first distance.
[0166] In a possible implementation, the acquisition module 530 is further configured to acquire a first rotation angle of the second device. The first anti-interference parameter is an anti-interference parameter when the rotation angle of the second device is the first rotation angle.
[0167] For the introduction of the above modules, please refer to the description of the above embodiments, which will not be repeated here.
[0168] Referring to Figure 6 , which is a schematic diagram of the structure of another test device provided in an embodiment of the present application, the test device 600 includes a memory 601, a processor 602, a communication interface 604, and a bus 603. The memory 601, the processor 602, and the communication interface 604 are communicatively connected to each other via the bus 603.
[0169] Optionally, the test device 600 further includes a display screen (not shown), which is connected to the memory 601, the processor 602, and the communication interface 604 via the bus 603. The display screen is used to output information and interact with the user, such as voice output or display output.
[0170] The memory 601 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 601 may store programs. When the program stored in the memory 601 is executed by the processor 602, the processor 602 and the communication interface 604 are used to perform the various steps of the test method of any embodiment of the present application.
[0171] The processor 602 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the test equipment of any embodiment of the present application, or to execute the test method of any embodiment of the present application.
[0172] The processor 602 may also be an integrated circuit chip with signal processing capabilities. During implementation, the various steps of the test method of any embodiment of the present application may be completed by hardware integrated logic circuits or software instructions in the processor 602. The above-mentioned processor 602 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The test methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the test method in conjunction with any embodiment of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or the like. The storage medium is located in the memory 601, and the processor 602 reads the information in the memory 601 and combines its hardware to complete the functions required to be performed by the units included in the test device of any embodiment of the present application, or executes the test method of any embodiment of the present application.
[0173] The communication interface 604 uses a transceiver device such as, but not limited to, a transceiver to implement communication between the test device 600 and other devices or a communication network. For example, the second audio data can be obtained through the communication interface 604.
[0174] The bus 603 may include a path for transmitting information between the various components of the test equipment 600 (e.g., memory 601, processor 602, communication interface 604). In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. 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. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0175] The present application also provides a test system, comprising a first device, a second device, an interference module, an air interface data acquisition module, and the test device described in any of the above embodiments. The interference module is configured to generate a first interference signal, and the air interface data acquisition module is configured to collect data transmitted by the first device via an air interface.
[0176] In the embodiment of the present application, the test system can be used to implement automated anti-interference testing of wireless communication devices (i.e., the first device and the second device), thereby improving the degree of automation and test efficiency of the anti-interference testing of wireless communication devices.
[0177] In a possible implementation, when the first data sent by the first device to the second device is first audio data, the test system further includes an audio acquisition module configured to acquire second audio data received by the second device from the first device via an air interface.
[0178] In this solution, the audio acquisition module can be used to obtain the second audio data. In this way, the test device can determine the number of audio freezes based on the first audio data sent by the first device and the second audio data received by the second device. The accuracy of determining the number of audio freezes based on the audio data is high and the error rate is low. For example, the audio acquisition module can be an audio cable or an audio recording device.
[0179] In one possible embodiment, the test system further includes a posture adjustment module for adjusting the posture of the second device. The posture can be understood as the rotation angle of the second device. The rotation angle can refer to the left-right rotation angle, the up-down rotation angle, or the up-down and left-right rotation angles. Exemplarily, the posture adjustment module can be a 360° turntable or a pan-tilt head.
[0180] In a possible implementation, the test system further includes a distance adjustment module for adjusting the distance between the first device and the second device. For example, the distance adjustment module may be a programmable slide rail or the like.
[0181] The units described as separate components may or may not be physically separate, and 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 these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0182] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0183] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a read-only memory (ROM), a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state drive (SSD).
[0184] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A testing method, characterized in that: The method comprises: Controlling the first device to send first data to the second device through an air interface; generating a first interference signal based on a scene factor of the interference scene, wherein the scene factor of the interference scene is used to characterize a characteristic of the interference scene; Acquiring data transmitted through the air interface; First anti-interference parameters of the first device and the second device are determined based on the data transmitted over the air interface.
2. The method according to claim 1, characterized in that When the first data is first audio data, the method further includes: Acquire second audio data received by the second device from the first device via the air interface; The number of audio freezes is determined based on the first audio data and the second audio data.
3. The method according to claim 2, characterized in that The determining the number of audio freezes based on the first audio data and the second audio data includes: Determining a first eigenvalue corresponding to each audio frame in the first audio data; Determining a second eigenvalue corresponding to each audio frame in the second audio data; The number of audio freezes is determined based on the first feature value and the second feature value.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Obtaining a first distance between the first device and the second device; The first anti-interference parameter is an anti-interference parameter when the distance between the first device and the second device is the first distance.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Acquire a first rotation angle of the second device; The first anti-interference parameter is an anti-interference parameter when the rotation angle of the second device is the first rotation angle.
6. The method according to any one of claims 1 to 5, characterized in that The air interface transmission mode between the first device and the second device includes at least one of the following: StarFlash, Bluetooth, Wireless Local Area Network, ZigBee or Near Field Communication NFC.
7. A testing device, characterized in that: include: a control module, configured to control the first device to send first data to the second device via an air interface; a generating module, configured to generate a first interference signal based on a scene factor of an interference scene, wherein the scene factor of the interference scene is used to characterize a characteristic of the interference scene; An acquisition module, configured to acquire data transmitted via the air interface; A determination module is used to determine first anti-interference parameters of the first device and the second device based on the data transmitted over the air interface.
8. The device according to claim 7, characterized in that When the first data is the first audio data, The acquisition module is further configured to acquire second audio data received by the second device from the first device via the air interface; The determining module is further configured to determine a number of audio freezes based on the first audio data and the second audio data.
9. The device according to claim 8, characterized in that In determining the number of audio freezes based on the first audio data and the second audio data, the determining module is specifically configured to: Determining a first eigenvalue corresponding to each audio frame in the first audio data; Determining a second eigenvalue corresponding to each audio frame in the second audio data; The number of audio freezes is determined based on the first feature value and the second feature value.
10. The device according to any one of claims 7 to 9, characterized in that The acquisition module is further configured to acquire a first distance between the first device and the second device; The first anti-interference parameter is an anti-interference parameter when the distance between the first device and the second device is the first distance.
11. The device according to any one of claims 7 to 10, characterized in that The acquisition module is further configured to acquire a first rotation angle of the second device; The first anti-interference parameter is an anti-interference parameter when the rotation angle of the second device is the first rotation angle.
12. The device according to any one of claims 7 to 11, characterized in that The air interface transmission mode between the first device and the second device includes at least one of the following: StarFlash, Bluetooth, Wireless Local Area Network, ZigBee or Near Field Communication NFC.
13. A testing device, characterized in that: The system comprises a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute the test method according to any one of claims 1 to 5.
14. A testing system, characterized in that: comprising a first device, a second device, an interference module, an air interface data acquisition module, and the test device according to any one of claims 7 to 13; The interference module is used to generate a first interference signal; The air interface data acquisition module is used to collect data transmitted by the first device through the air interface.
15. The system according to claim 14, wherein: When the first data sent by the first device to the second device is first audio data, the system further includes an audio acquisition module configured to acquire second audio data received by the second device from the first device through the air interface.
16. The system according to claim 14 or 15, characterized in that The system further includes a posture adjustment module, configured to adjust the posture of the second device.
17. The system according to any one of claims 14 to 16, characterized in that: The system further includes a distance adjustment module, configured to adjust the distance between the first device and the second device.
18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the testing method according to any one of claims 1 to 6.