CN113726939B - System, method, medium and equipment for testing functions of terminal radio - Google Patents

System, method, medium and equipment for testing functions of terminal radio Download PDF

Info

Publication number
CN113726939B
CN113726939B CN202111003847.1A CN202111003847A CN113726939B CN 113726939 B CN113726939 B CN 113726939B CN 202111003847 A CN202111003847 A CN 202111003847A CN 113726939 B CN113726939 B CN 113726939B
Authority
CN
China
Prior art keywords
terminal
audio
test
audio signal
relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111003847.1A
Other languages
Chinese (zh)
Other versions
CN113726939A (en
Inventor
杨继平
李胜平
姚瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202111003847.1A priority Critical patent/CN113726939B/en
Publication of CN113726939A publication Critical patent/CN113726939A/en
Application granted granted Critical
Publication of CN113726939B publication Critical patent/CN113726939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/56Arrangements characterised by components specially adapted for monitoring, identification or recognition covered by groups H04H60/29-H04H60/54
    • H04H60/58Arrangements characterised by components specially adapted for monitoring, identification or recognition covered by groups H04H60/29-H04H60/54 of audio

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a test system, a method, a medium and equipment for a radio function of a terminal. The frequency modulation transmitter is used for transmitting frequency modulation signals corresponding to the first audio file; the tested terminal is used for receiving the frequency modulation signals through the audio line and playing the sound corresponding to the received frequency modulation signals; and the test host is used for recording the sound played by the tested terminal from the first moment until the second moment finishes recording, and obtaining a second audio file. When the test host judges that the first audio file is inconsistent with the second audio file, the radio function of the tested terminal is determined to be abnormal, and the method is used for accurately testing the radio performance of the equipment.

Description

System, method, medium and equipment for testing functions of terminal radio
Technical Field
The present invention relates to the field of terminal device testing technologies, and in particular, to a system, a method, a medium, and a device for testing a terminal radio function.
Background
With rapid development of electronic industry and communication technology, intelligent home devices, such as mobile phones, intelligent sound boxes, intelligent bracelets, etc., are increasing at present, and people's life is becoming more intelligent. The mobile phone has become an indispensable necessity in people's daily life because of its portability and the possibility of downloading various functions of application software from an application store.
The radio function in the mobile phone needs to be tested in sound before leaving the factory, and currently in practical test, the test personnel basically rely on the manual judgment of whether the radio play sound is abnormal or not, but in this way, the subjectivity of the test result is stronger, the problem that the radio has no sound output in the process of playing the sound is solved, and the test personnel can not judge whether the sound is caused by the silence of a broadcasting station or the abnormal function of the radio.
Disclosure of Invention
The invention aims to provide a system, a method, a medium and equipment for testing the function of a terminal radio, which are used for accurately testing the radio performance of the equipment.
In a first aspect, an embodiment of the present invention provides a system for testing a function of a terminal radio, where the system includes: the device comprises a test host, an auxiliary terminal, a tested terminal, a first audio line, a second audio line, a data line and a frequency modulation transmitter; the auxiliary terminal and the tested terminal are electrically connected with the test host through data wires, a first end part of the first audio wire is electrically connected with the tested terminal through an earphone hole of the tested terminal, a second end part of the first audio wire is electrically connected with the test host, and the auxiliary terminal is connected with the frequency modulation transmitter through the second audio wire;
The auxiliary terminal is used for receiving a first control command from the test host through the data line, and according to the first control command, the radio application of the auxiliary terminal starts to play a first audio signal from a first moment until stopping to play the first audio signal at a second moment;
the frequency modulation transmitter is used for receiving sound from the auxiliary terminal through the second audio line and transmitting a frequency modulation signal corresponding to the first audio signal through the transmitting antenna;
the tested terminal is used for receiving a second control command from the test host through the data line, receiving a frequency modulation signal through the first audio line according to the second control command, and playing sound corresponding to the frequency modulation signal;
The test host is used for acquiring the sound played by the tested terminal through the first audio line, recording the sound played by the tested terminal from the first moment, and recording the sound until the second moment is finished, so as to obtain a second audio signal; and when the first audio signal is inconsistent with the second audio signal, determining that the radio function of the tested terminal is abnormal. In one possible implementation, the test host is further configured to: and when the first audio signal is consistent with the second audio signal, determining that the radio of the tested terminal is normal in function.
The test system provided by the embodiment of the invention has the beneficial effects that: the method is characterized in that the radio of the tested terminal synchronously receives the frequency modulation signal and plays the audio signal, the test host can synchronously record the sound played by the tested terminal, so that the test host can judge whether the radio function is normally played or not by comparing the recorded audio signal with the first audio signal, and the method can complete the sound test without disassembling the tested terminal, the sound test process is independent of manpower, the comparison is objective, and the reliability of the sound test result is higher.
In one possible implementation, the second end of the first audio line is electrically connected to the test host through a relay; the test host is also used for controlling the relay to be electrified before the first moment arrives, controlling the relay to be electrified when the first moment arrives, and controlling the relay to be electrified until the second moment arrives, wherein the relay is electrified, and the first audio line is not communicated; the relay is powered down, and the first audio line is communicated. In the method, whether the first audio line is communicated or not is controlled by the relay switch, so that the problem that the radio cannot resume playing when the radio is started again after the radio is turned off can be solved.
In one possible implementation, the test host is further configured to, prior to controlling the relay to power down: acquiring parameters of a radio application playing interface from the tested terminal through the data line; and determining that the playing interface of the radio application is normal according to the parameter. The method can ensure that the sound test is started after the radio application of the tested terminal is displayed normally, so as to ensure that the sound test can be performed normally.
In one possible implementation, after the test host determines that the radio function of the tested terminal is abnormal, the test host is further configured to: a test log is generated, the test log including a test case identification, a test period of time, the first audio signal, and the second audio signal. The test log is helpful for analyzing the reasons and abnormal moments of radio function abnormality so as to facilitate subsequent debugging.
In a second aspect, an embodiment of the present invention further provides a method for testing a radio function of a terminal, where the method can be applied to a test host, and the test host is electrically connected to an auxiliary terminal and a tested terminal through a data line, and the method includes:
Controlling the radio application of the auxiliary terminal to start playing the first audio signal from the first moment until stopping playing the first audio signal at the second moment;
The tested terminal is controlled to search a frequency modulation signal and play sound corresponding to the received frequency modulation signal, wherein the frequency modulation signal is a signal transmitted by the frequency modulation transmitter when the auxiliary terminal plays the first audio signal;
Acquiring sound played by the tested terminal through the first audio line, starting to record the sound played by the tested terminal from the first moment until the second moment finishes recording, and obtaining a second audio signal;
And when the first audio signal is inconsistent with the second audio signal, determining that the radio function of the tested terminal is abnormal.
The testing method provided by the embodiment of the invention has the beneficial effects that: according to the method, the auxiliary terminal is relied on to play the first audio signal, the radio of the tested terminal synchronously receives the frequency modulation signal and plays the audio signal, the test host can synchronously record the sound played by the tested terminal, so that the test host can judge whether the radio function is normal or not by comparing the recorded audio signal with the first audio signal, and therefore the method can complete sound test without disassembling the tested terminal, the sound test process is independent of manpower, the comparison is objective, and the reliability of sound test results is higher.
In a third aspect, an embodiment of the present invention further provides a device for testing a function of a terminal radio, where the device includes a module/unit configured to perform a method according to any one of the possible designs of the second aspect. These modules/units may be implemented by hardware, or may be implemented by hardware executing corresponding software.
In a fourth aspect, an embodiment of the present invention provides a terminal device, including a processor and a memory. Wherein the memory is for storing one or more computer programs; the one or more computer programs stored in the memory, when executed by the processor, enable the terminal device to implement the method of any one of the possible designs of the second aspect described above.
In a fifth aspect, embodiments of the present invention also provide a computer readable storage medium, the computer readable storage medium comprising a computer program, which when run on an electronic device causes the electronic device to perform the method of any one of the possible designs of the above aspect.
In a sixth aspect, embodiments of the present invention also provide a method comprising a computer program product, which when run on a terminal, causes the electronic device to perform any one of the possible designs of the above aspect.
In a seventh aspect, embodiments of the present invention further provide a chip, the chip being coupled to a memory for executing a computer program stored in the memory, so that the electronic device performs the method of any one of the possible designs of the above aspect.
Advantageous effects concerning the above second to seventh aspects can be seen from the description of the above first or second aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a test system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another test system according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a flow chart of a method for testing functions of a terminal radio according to an embodiment of the present invention;
FIG. 5 is a flowchart of another method for testing the function of a terminal radio according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a terminal radio function test device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of another test host structure according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. In the description of embodiments of the application, the terminology used in the embodiments below is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship of associated objects, meaning that there may be three relationships; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless stated otherwise. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
As shown in FIG. 1, the system for testing the radio function of the terminal provided by the embodiment of the invention comprises a test host 10, an auxiliary terminal 20, a tested terminal 30, a first audio line 11, a second audio line 12, a data line 13 and a frequency modulation transmitter 40.
In the system, an auxiliary terminal 20 and a tested terminal 30 are electrically connected with a test host 10 through a data wire 13, a first end part of a first audio wire 11 is electrically connected with the tested terminal 30 through an earphone hole of the tested terminal 30, a second end part of the first audio wire 11 is electrically connected with the test host 10, and the auxiliary terminal 20 is connected with a frequency modulation transmitter 30 through a second audio wire. Illustratively, the first audio line 11 may be a dual-headed audio line, one end of which is inserted into the earphone hole of the terminal under test 30 and the other end of which is inserted into the earphone hole of the test host 10.
The auxiliary terminal 20 is configured to receive a first control command from the test host 10 through the data line 13, and according to the first control command, the radio application of the auxiliary terminal 20 starts playing the first audio signal from the first moment until stopping playing the first audio signal at the second moment.
And a fm transmitter 40 for receiving sound from the auxiliary terminal 20 through the second audio line 12 and transmitting a fm signal corresponding to the first audio signal through the transmitting antenna.
The tested terminal 30 is configured to receive a second control command from the test host 10 through the data line 13, receive the fm signal through the first audio line 11 according to the second control command, and play a sound corresponding to the fm signal.
The test host 10 is configured to obtain, through the first audio line 11, sound played by the tested terminal 30, record, from a first time, sound played by the tested terminal 30, until the second time ends recording, and obtain a second audio signal, in addition to sending a first control command to the auxiliary terminal 20 and sending a second control command to the tested terminal 30; when the first audio signal is inconsistent with the second audio signal, the radio function of the tested terminal 30 is determined to be abnormal, otherwise, the radio function of the tested terminal 30 is determined to be normal.
In one possible embodiment, the system may further include a relay 50, as shown in fig. 2, where the second end of the first audio line 11 is electrically connected to the test host 10 through the relay 50, and the relay 50 is used to control whether the first audio line 11 is turned on. When the test host 10 controls the relay to be powered on, the first audio line is not conducted, and when the test host 10 controls the relay to be powered off, the first audio line 11 is conducted.
Fig. 1 shows a hardware configuration block diagram of the terminal under test 30.
In some embodiments, the terminal 30 under test includes at least one of a modem 310, a mobile communication module 320, a wireless communication module 330, a collector 340, an external device interface 350, a controller 360, a display 370, an audio output interface 380, memory, a power supply, a user interface 390.
In still other embodiments, the modem 310 senses electromagnetic waves through an antenna, converts the sensed electromagnetic waves into electrical signals, processes and transforms the electrical signals into sound, receives broadcast signals, for example, by wireless reception, and demodulates audio signals from the broadcast signals.
The mobile communication module 320 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal 30 to be tested. The mobile communication module 320 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), or the like. The mobile communication module 320 may receive electromagnetic waves from an antenna, filter, amplify, etc., the received electromagnetic waves, and transmit the electromagnetic waves to the modem 310 for demodulation. The mobile communication module 320 may also amplify the signal modulated by the modem 310, and convert the signal into electromagnetic waves through an antenna to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 320 may be provided in the controller 360. In some embodiments, at least some of the functional modules of the mobile communication module 320 may be provided in the same device as at least some of the modules of the controller 360.
The wireless communication module 330 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network, WIRELESS FIDELITY), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near Field Communication (NFC), infrared (IR), etc. applied to the terminal 30 under test. The wireless communication module 330 may be one or more devices that integrate at least one communication processing module. The wireless communication module 330 receives electromagnetic waves via an antenna, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the controller 360. The wireless communication module 330 may also receive a signal to be transmitted from the controller 360, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via an antenna.
In other embodiments, the collector 340 is configured to collect signals of the external environment or interaction with the outside. For example, the collector 340 includes a light receiver, a sensor for collecting the intensity of ambient light; or the collector 340 includes an image collector such as a camera, which may be used to collect external environmental scenes, user attributes, or user interaction gestures, or the collector 340 includes a sound collector such as a microphone, etc. for receiving external sounds.
In still other embodiments, the external device interface 350 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, or the like. The input/output interface may be a composite input/output interface formed by a plurality of interfaces.
In other embodiments, the controller 360 and the modem 310 may be located in separate devices, i.e., the modem 310 may also be located in an external device to the host device in which the controller 360 is located, such as an external set-top box or the like.
In still other embodiments, the controller 360 controls the operation of the display device and responds to user operations by various software control programs stored on the memory. The controller 360 controls the overall operation of the terminal 30 under test. For example: in response to receiving a user command to select a UI object to be displayed on the display 370, the controller 360 may perform an operation related to the object selected by the user command.
In some possible embodiments, the controller 360 includes at least one of a central processing unit (central processing unit, CPU), a video processor, an audio processor, a graphics processor (graphics processing unit, GPU), RAM, ROM, a first interface to an nth interface for input/output, a communication Bus (Bus), and the like.
And the central processing unit is used for executing the operating system and application program instructions stored in the memory and executing various application programs, data and contents according to various interaction instructions received from the outside so as to finally display and play various audio and video contents. The central processor may include a plurality of processors. Such as one main processor and one or more sub-processors.
In some embodiments, a graphics processor is used to generate various graphical objects, such as: at least one of icons, operation menus, and user input instruction display graphics. The graphic processor comprises an arithmetic unit, which is used for receiving various interactive instructions input by a user to operate and displaying various objects according to display attributes; the device also comprises a renderer for rendering various objects obtained based on the arithmetic unit, wherein the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform at least one of decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, image synthesis, and other video processing according to a standard codec of an input signal, so as to obtain a signal that can be directly displayed or played on the terminal 30 under test.
In some embodiments, the video processor includes at least one of a demultiplexing module, a video decoding module, an image compositing module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the demultiplexed video signal, including decoding, scaling and the like. And an image synthesis module, such as an image synthesizer, for performing superposition mixing processing on the graphic generator and the video image after the scaling processing according to the GUI signal input by the user or generated by the graphic generator, so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received frame rate into a video output signal and changing the video output signal to be in accordance with a display format, such as outputting RGB data signals.
In some embodiments, the audio processor is configured to receive an external audio signal, decompress and decode according to a standard codec protocol of an input signal, and at least one of noise reduction, digital-to-analog conversion, and amplification, to obtain a sound signal that can be played in the speaker.
In some embodiments, a user may input a user command through a GUI displayed on the display 370, and the user input interface receives the user input command through the GUI. Or the user may input the user command by inputting a specific sound or gesture, the user input interface recognizes the sound or gesture through the sensor, and receives the user input command.
In some embodiments, a "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user that enables conversion between an internal form of information and a form acceptable to the user. A commonly used presentation form of a user interface is a GUI, which refers to a graphically displayed user interface related to computer operations. It may be an interface element such as an icon, window, control, etc. displayed in a display screen of the electronic device, where the control may include at least one of a visual interface element such as an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, etc.
In some embodiments, the display 370 includes a display screen component for presenting a picture, and a driving component for driving an image display, for receiving an image signal from the controller output, for displaying video content, image content, and components of a menu manipulation interface, and a user manipulation UI interface, etc.
In other embodiments, the display 370 may be at least one of a liquid crystal display, an Organic LIGHT EMITTING Diode (OLED) display, and a projection display, and may also be a projection device and a projection screen.
In still other embodiments, audio output interface 380 includes speakers, external audio output electronics, and the like.
In some embodiments, the user interface 390 is an interface (e.g., physical keys on a display device body, or the like) that may be used to receive control inputs.
In a specific implementation, the terminal 30 to be tested may be a mobile phone, a tablet computer, a handheld computer, a personal computer (personal computer, PC), a cellular phone, a personal digital assistant (personal DIGITAL ASSISTANT, PDA), a wearable device (such as a smart watch), a smart home device (such as a television), a vehicle-mounted computer, a game console, and an augmented reality (augmented reality, AR) \virtual reality (VR) device, etc., and the specific device configuration of the terminal 30 to be tested is not limited in this embodiment.
Based on the test system shown in fig. 1 or fig. 2, an embodiment of the present invention provides a flowchart of a method for testing a function of a terminal radio, as shown in fig. 4, where the method flowchart may be executed by a test host 10, and the method includes the following steps:
s401, controlling the radio application of the auxiliary terminal to start playing the first audio signal from the first moment until stopping playing the first audio signal at the second moment.
In reference to fig. 1, the test host firstly sends an FM playing command to the auxiliary terminal, and after the auxiliary terminal receives the playing command, the radio application starts playing a preset audio file, and because the auxiliary terminal is connected with the FM transmitter through the second audio line, the FM transmitter receives sound from the auxiliary terminal through the second audio line, and transmits a FM signal corresponding to the first audio signal through the transmitting antenna.
S402, controlling the tested terminal to search the frequency modulation signal and playing the sound corresponding to the received frequency modulation signal.
In the step, the first audio line is inserted into the earphone hole of the tested terminal, so that the first audio line is used as an antenna to enable the tested terminal to receive the frequency modulation signal, then the received electromagnetic wave is converted into an electric signal, and finally the electric signal is converted into sound through the processing and conversion of the circuit.
S403, acquiring the sound played by the tested terminal through a first audio line, and recording the sound played by the tested terminal from the first moment until the second moment finishes recording, so as to obtain a second audio signal.
In this step, the test host is electrically connected to the tested terminal through the first audio line, so that the test host can obtain the sound played by the tested terminal, and record the sound.
S404, when the first audio signal is inconsistent with the second audio signal, determining that the radio function of the tested terminal is abnormal.
In one possible implementation, when the first audio signal is consistent with the second audio signal, it is determined that the radio of the tested terminal is normal.
For example, when the first audio device has an audio waveform for a certain period of time and the second audio signal does not have an audio waveform for the period of time, it may be determined that the radio of the device under test does not properly receive the demodulated signal for the second period of time, and the radio is malfunctioning.
According to the method, the first audio line is connected with the test host and the terminal to be tested, so that sound played by the terminal to be tested can be recorded in a lossless manner, and the accuracy of sound output of the radio is improved. The method is characterized in that the radio of the tested terminal synchronously receives the frequency modulation signal and plays the audio signal, the test host can synchronously record the sound played by the tested terminal, so that the test host can judge whether the radio function is normally played or not by comparing the recorded audio signal with the first audio signal, and the method can complete the sound test without disassembling the tested terminal, the sound test process is independent of manpower, the comparison is objective, and the reliability of the sound test result is higher.
In one possible embodiment, when the relay 50 is further included in the test system, the test host may control the relay to power up before the first time arrives, such that the first audio line is not connected, and control the relay 50 to power down when the first time arrives, such that the first audio line starts to be connected, and further control the relay 50 to power up until the second time arrives, such that the first audio line is not connected. In addition, the control relay is powered down when the next FM sound test is started. Therefore, the communication state of the first audio line can be controlled through the relay switch, after the radio application playing is closed, the automatic playing can be recovered when the first audio line is conducted, and the problem that the radio application cannot be recovered automatically when the radio application is started again after the radio application playing is closed is solved, so that the test efficiency is prompted.
In one possible embodiment, before the control relay is powered down, it is further configured to: acquiring parameters of a radio application playing interface from a tested terminal through a data line; and determining whether the playing interface of the radio application is normal according to the parameters of the playing interface. If the relay is normal, the relay is controlled to be powered down, otherwise, the relay is kept in a powered-up state. The test host obtains User Interface (UI) information of the radio application from the tested terminal through a USB cable, and determines that the radio application playing interface is being displayed by the tested terminal currently through information such as a window ID and a window control.
In one possible implementation manner, after the test host determines that the radio function of the tested terminal is abnormal, the method further includes: a test log is generated, the test log including a test case identification, a test period, a first audio signal, and a second audio signal. The test log is helpful for analyzing the reasons and abnormal moments of radio function abnormality so as to facilitate subsequent debugging.
To more systematically describe the above test method, the following description is made in conjunction with the interactive flowchart shown in fig. 5.
S501, the auxiliary terminal 20 enters the play interface of the FM application.
S502, the relay 50 defaults to the powered state, and the first audio line is not conductive.
S503, the tested terminal 30 completes the initialization operation and enters the playing interface of the FM application.
S504, the test host 10 obtains parameters of the radio application playing interface.
S505, the test host 10 judges whether the radio function playing interface of the tested terminal 30 is normal, if yes, S506 is executed, otherwise S507 is executed.
And S506, if yes, the test host 10 sends a power-down instruction to the relay, and the relay is powered down, so that the first audio line is conducted.
If not, the test host 10 controls the relay to keep the power-on state, and the first audio line is not conducted.
S508, the test host 10 sends a first control command to the auxiliary terminal 20.
S509, the auxiliary terminal 20 receives the first control command, starts playing the first audio signal from the first moment, and stops playing the first audio signal by the fm transmitter until the second moment arrives.
S510, the test host 10 sends a second control command to the tested terminal 30.
S511, the tested terminal 30 receives the second control command from the testing host 10 via the data line 13, and receives the FM signal via the first audio line 11 according to the second control command, and plays the sound corresponding to the FM signal.
In S512, the test host 10 starts recording the sound from the terminal 30 under test at the first moment until the second moment arrives, and stops recording the sound from the terminal 30 under test.
S513, the test host 10 judges whether the first audio signal is consistent with the second audio signal, if so, the process jumps to S514, otherwise, the process jumps to S515.
S514, the test host 10 determines that the radio functions normally.
S515, the test host 10 determines that the radio is abnormal in function and generates a test log.
In summary, the invention relies on the auxiliary terminal to play the first audio signal, the radio of the tested terminal synchronously receives the frequency modulation signal and plays the audio signal, the test host can synchronously record the sound played by the tested terminal, thus the test host can judge whether the radio function is normal by comparing the recorded audio signal with the first audio signal, the method can complete the sound test without disassembling the tested terminal, the sound test process does not depend on manpower, the comparison is objective, and the reliability of the sound test result is stronger.
In some embodiments of the present application, the embodiment of the present application also discloses a device for testing a function of a terminal radio, as shown in fig. 6, where the device is configured to implement the methods described in the above method embodiments, and the method includes: a control unit 601, configured to control a radio application of the auxiliary terminal to start playing a first audio signal from a first moment until stopping playing the first audio signal at a second moment; the tested terminal is controlled to search a frequency modulation signal and play sound corresponding to the received frequency modulation signal, wherein the frequency modulation signal is a signal transmitted by a frequency modulation transmitter when the auxiliary terminal plays a first audio signal; and the recording unit 602 is configured to obtain, through the first audio line, a sound played by the tested terminal, and record, from the first time, the sound played by the tested terminal until the second time is over, so as to obtain a second audio signal. And the judging unit 603 is configured to determine that the radio function of the tested terminal is abnormal when the first audio signal is inconsistent with the second audio signal. All relevant contents of each step related to the above method embodiment may be cited to the functional descriptions of the corresponding functional modules, which are not described herein.
In other embodiments of the present application, embodiments of the present application disclose a test host, as shown in fig. 7, which may include: one or more processors 701; a memory 702; a display 703; one or more applications (not shown); and one or more computer programs 704, the devices described above may be connected by one or more communication buses 705. Wherein the one or more computer programs 704 are stored in the memory 702 and configured to be executed by the one or more processors 701, the one or more computer programs 704 include instructions that can be used to perform the various steps as in fig. 4 and the corresponding embodiments.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The functional units in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited to this, and any changes or substitutions within the technical scope disclosed in the embodiment of the present invention should be covered in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. The system for testing the radio function of the terminal is characterized by comprising a test host, an auxiliary terminal, a tested terminal, a first audio line, a second audio line, a data line and a frequency modulation transmitter; the auxiliary terminal and the tested terminal are electrically connected with the test host through data wires, a first end part of the first audio wire is electrically connected with the tested terminal through an earphone hole of the tested terminal, a second end part of the first audio wire is electrically connected with the test host, and the auxiliary terminal is connected with the frequency modulation transmitter through the second audio wire; the second end part of the first audio line is electrically connected with the test host through a relay;
The test host is further used for controlling the relay to be electrified before the first moment arrives, controlling the relay to be electrified when the first moment arrives, and controlling the relay to be electrified until the second moment arrives, wherein the relay is electrified, and the first audio line is not communicated; the relay is powered down, and the first audio line is communicated;
the auxiliary terminal is used for receiving a first control command from the test host through the data line, and according to the first control command, the radio application of the auxiliary terminal starts to play a first audio signal from a first moment until a second moment stops playing the first audio signal;
the frequency modulation transmitter is used for receiving sound from the auxiliary terminal through the second audio line and transmitting a frequency modulation signal corresponding to the first audio signal through the transmitting antenna;
The tested terminal is used for receiving a second control command from the test host through the data line, receiving a frequency modulation signal through the first audio line according to the second control command, and playing sound corresponding to the frequency modulation signal;
The test host is used for acquiring the sound played by the tested terminal through the first audio line, recording the sound played by the tested terminal from the first moment until the second moment finishes recording, and obtaining a second audio signal; and when the first audio signal is inconsistent with the second audio signal, determining that the sound test of the radio function of the tested terminal is abnormal.
2. The test system of claim 1, wherein the test host is further configured to: and when the first audio signal is consistent with the second audio signal, determining that the radio of the tested terminal is normal in function.
3. The test system of claim 1, wherein the test host, prior to controlling the relay to power down, is further configured to:
Acquiring parameters of a radio application playing interface from the tested terminal through the data line;
and determining that the playing interface of the radio application is normal according to the parameters.
4. The test system according to claim 1 or 2, wherein after the test host determines that the radio function of the tested terminal is abnormal, the test host is further configured to: generating a test log, wherein the test log comprises a test case identifier, a test time period, the first audio signal and the second audio signal.
5. The method is characterized by being applied to a test host, wherein the test host is electrically connected with an auxiliary terminal and a tested terminal through a data line, a second end part of a first audio line is electrically connected with the test host through a relay, the relay is controlled to be electrified before the first time arrives, the relay is controlled to be electrified when the first time arrives, and the relay is controlled to be electrified until the second time arrives, wherein the relay is electrified, and the first audio line is not communicated; the relay is powered down, and the first audio line is communicated; the method comprises the following steps:
Controlling the radio application of the auxiliary terminal to start playing a first audio signal from a first moment until stopping playing the first audio signal at a second moment;
the tested terminal is controlled to search a frequency modulation signal and play sound corresponding to the received frequency modulation signal, wherein the frequency modulation signal is a signal transmitted by a frequency modulation transmitter when the auxiliary terminal plays a first audio signal;
Acquiring sound played by the tested terminal through a first audio line, starting to record the sound played by the tested terminal from the first moment until the second moment finishes recording, and obtaining a second audio signal;
and when the first audio signal is inconsistent with the second audio signal, determining that the sound test of the radio function of the tested terminal is abnormal.
6. The method of claim 5, wherein the method further comprises:
and when the first sound source is consistent with the second audio signal, determining that the radio of the tested terminal is normal in function.
7. The method of claim 5, further comprising, prior to controlling the relay to power down:
Acquiring parameters of a radio application playing interface from the tested terminal through the data line;
and determining that the playing interface of the radio application is normal according to the parameters.
8. The method according to claim 5 or 6, wherein after the test host determines that the radio function of the tested terminal is abnormal, the method further comprises:
Generating a test log, wherein the test log comprises a test case identifier, a test time period, the first audio signal and the second audio signal.
9. The device is characterized by being applied to a test host, wherein the test host is electrically connected with an auxiliary terminal and a tested terminal through a data line, a second end part of a first audio line is electrically connected with the test host through a relay, the relay is controlled to be electrified before reaching at a first moment, the relay is controlled to be electrified when reaching at the first moment, and the relay is controlled to be electrified until reaching at a second moment, wherein the relay is electrified, and the first audio line is not communicated; the relay is powered down, and the first audio line is communicated; the device comprises:
The control unit is used for controlling the radio application of the auxiliary terminal to start playing the first audio signal from the first moment until stopping playing the first audio signal at the second moment; the tested terminal is controlled to search a frequency modulation signal and play sound corresponding to the received frequency modulation signal, wherein the frequency modulation signal is a signal transmitted by a frequency modulation transmitter when the auxiliary terminal plays a first audio signal;
the recording unit is used for acquiring the sound played by the tested terminal through the first audio line, recording the sound played by the tested terminal from the first moment until the second moment finishes recording, and obtaining a second audio signal;
And the judging unit is used for determining that the sound test of the radio function of the tested terminal is abnormal when the first audio signal is inconsistent with the second audio signal.
10. A terminal device, comprising: a processor and a memory for storing a computer program; the processor is configured to execute the computer program stored in the memory, so that the terminal performs the method according to any one of claims 5 to 8.
11. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the method of any of claims 5 to 8.
CN202111003847.1A 2021-08-30 2021-08-30 System, method, medium and equipment for testing functions of terminal radio Active CN113726939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111003847.1A CN113726939B (en) 2021-08-30 2021-08-30 System, method, medium and equipment for testing functions of terminal radio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111003847.1A CN113726939B (en) 2021-08-30 2021-08-30 System, method, medium and equipment for testing functions of terminal radio

Publications (2)

Publication Number Publication Date
CN113726939A CN113726939A (en) 2021-11-30
CN113726939B true CN113726939B (en) 2024-05-28

Family

ID=78678979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111003847.1A Active CN113726939B (en) 2021-08-30 2021-08-30 System, method, medium and equipment for testing functions of terminal radio

Country Status (1)

Country Link
CN (1) CN113726939B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449499A (en) * 2022-02-10 2022-05-06 展讯半导体(成都)有限公司 System, method, device and equipment for testing short-distance communication state

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202221451U (en) * 2011-07-29 2012-05-16 惠州市德赛西威汽车电子有限公司 Parameter automatic test system for vehicle-mounted entertainment system
CN205986834U (en) * 2016-07-28 2017-02-22 广州尼罗电子科技有限公司 FM transmitter system based on mobile terminal control
CN109510636A (en) * 2018-10-31 2019-03-22 华勤通讯技术有限公司 Receive test method, device, medium and the equipment of FM signal function
CN111261195A (en) * 2020-01-10 2020-06-09 Oppo广东移动通信有限公司 Audio testing method and device, storage medium and electronic equipment
CN112332932A (en) * 2020-10-30 2021-02-05 展讯半导体(成都)有限公司 Device, method and system for testing FM function of terminal
CN112882458A (en) * 2021-01-27 2021-06-01 东风电子科技股份有限公司 Intelligent cabin combined test equipment device
CN113096694A (en) * 2019-12-23 2021-07-09 北京声智科技有限公司 Electronic terminal and play quality detection method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6799056B2 (en) * 2001-01-31 2004-09-28 Joseph Curley Computer system including multi-channel wireless communication link to a remote station
US7706373B2 (en) * 2006-11-01 2010-04-27 Nuvoiz, Inc. Session initiation and maintenance while roaming
KR101800889B1 (en) * 2011-02-07 2017-11-23 삼성전자주식회사 Device and method for playing music

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202221451U (en) * 2011-07-29 2012-05-16 惠州市德赛西威汽车电子有限公司 Parameter automatic test system for vehicle-mounted entertainment system
CN205986834U (en) * 2016-07-28 2017-02-22 广州尼罗电子科技有限公司 FM transmitter system based on mobile terminal control
CN109510636A (en) * 2018-10-31 2019-03-22 华勤通讯技术有限公司 Receive test method, device, medium and the equipment of FM signal function
CN113096694A (en) * 2019-12-23 2021-07-09 北京声智科技有限公司 Electronic terminal and play quality detection method thereof
CN111261195A (en) * 2020-01-10 2020-06-09 Oppo广东移动通信有限公司 Audio testing method and device, storage medium and electronic equipment
CN112332932A (en) * 2020-10-30 2021-02-05 展讯半导体(成都)有限公司 Device, method and system for testing FM function of terminal
CN112882458A (en) * 2021-01-27 2021-06-01 东风电子科技股份有限公司 Intelligent cabin combined test equipment device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Self-Structuring Impedance Matcher for In-Vehicle Digital Audio Broadcasting Applications;Yen-Sheng Chen;《IEEE》;20170605;全文 *
基于Android系统的FM收音机功能的设计与实现;陈登虎;《中国优秀硕士学位论文全文数据库》;全文 *

Also Published As

Publication number Publication date
CN113726939A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US9699292B2 (en) Method and system for reproducing contents, and computer-readable recording medium thereof
US20160277791A1 (en) Display system, and method of playing bluetooth audio and apparatus of display system
EP3016377B1 (en) Display apparatus, controlling method and display system
JP2012085009A (en) Information processor and information processing method
US9520132B2 (en) Voice recognition device and voice recognition method
CN112055240B (en) Display device and operation prompt display method for pairing display device with remote controller
US20160191841A1 (en) Display device and display method
CN114449499A (en) System, method, device and equipment for testing short-distance communication state
CN113726939B (en) System, method, medium and equipment for testing functions of terminal radio
WO2014204878A1 (en) Paired devices
CN115278332A (en) Display device, playing device and data transmission method
KR20150122437A (en) display apparatus and controlling method thereof
CN112214190A (en) Display equipment resource playing method and display equipment
US8910207B2 (en) Electronic apparatus, method of controlling electronic apparatus, and computer-readable storage medium
CN1987632A (en) Radio transmission device, system and its method for projection display device
CN111918056B (en) Camera state detection method and display device
CN113490208A (en) Connection method, configuration method, device, medium and equipment of wireless access point
CN215300807U (en) Control device, display device, and control system
CN111931692A (en) Display device and image recognition method
CN113709783B (en) Automatic test system, method, device, medium and equipment for modem
KR20210103277A (en) Electronic apparatus and method of controlling the same
CN115567122A (en) Bluetooth function compatibility test system, method, device, equipment and medium
KR102359163B1 (en) Electronic device for speech recognition and method thereof
CN115134734A (en) Audio path detection system, method, device, equipment and medium
CN117812701A (en) Display equipment and control device positioning method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant