CN112332932B - Method and system for testing FM (frequency modulation) function of terminal - Google Patents

Method and system for testing FM (frequency modulation) function of terminal Download PDF

Info

Publication number
CN112332932B
CN112332932B CN202011191778.7A CN202011191778A CN112332932B CN 112332932 B CN112332932 B CN 112332932B CN 202011191778 A CN202011191778 A CN 202011191778A CN 112332932 B CN112332932 B CN 112332932B
Authority
CN
China
Prior art keywords
terminal
test
tested terminal
tested
channel
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
CN202011191778.7A
Other languages
Chinese (zh)
Other versions
CN112332932A (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 CN202011191778.7A priority Critical patent/CN112332932B/en
Publication of CN112332932A publication Critical patent/CN112332932A/en
Application granted granted Critical
Publication of CN112332932B publication Critical patent/CN112332932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/0082Monitoring; Testing using service channels; using auxiliary channels
    • H04B17/0085Monitoring; Testing using service channels; using auxiliary channels using test signal generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/0082Monitoring; Testing using service channels; using auxiliary channels
    • H04B17/0087Monitoring; Testing using service channels; using auxiliary channels using auxiliary channels or channel simulators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method and a system for testing FM (frequency modulation) functions of a terminal. The test system is applied to a test host machine in a test device with a terminal FM function, and comprises a shielding space, and the test host machine, a tested terminal, an earphone antenna and a plurality of FM transmitters which are all arranged in the shielding space; wherein: the tested terminal and the plurality of FM transmitters are electrically connected with the test host, and the earphone antenna is electrically connected with the tested terminal; the FM transmitter is used for transmitting FM signals; the tested terminal is used for receiving the FM signal; the test host is used for setting the transmission parameters of the plurality of FM transmitters according to the test case, controlling the tested terminal to search the FM signals and/or switching the channels of the FM signals received currently, and detecting the FM function of the tested terminal according to the test case and the FM information of the FM signals received by the tested terminal. The invention can realize the automatic test of the channel searching and switching functions in the terminal FM function, thereby enriching the test of the terminal FM function.

Description

Method and system for testing FM function of terminal
Technical Field
The invention relates to the technical field of testing, in particular to a method and a system for testing FM (Frequency Modulation) functions of a terminal FM.
Background
In an actual network environment, information such as content and frequency of an FM signal received by a terminal is continuously updated along with time change, so that the FM information received by the terminal has no repeatability or predictability, and further, testing of the FM function of the terminal mostly depends on manual testing, and specifically, whether the terminal correctly receives the FM signal is judged through human hearing and vision. In addition, few solutions aiming at realizing the automatic testing of the FM function of the terminal only involve comparing whether the audio playing and receiving of a single radio station are consistent, and cannot test other aspects of the FM function of the terminal.
Disclosure of Invention
The invention aims to overcome the defect that the test on the terminal FM function only relates to whether a single radio station correctly receives an FM signal in the prior art, and provides a method and a system for testing the terminal FM function.
The invention solves the technical problems through the following technical scheme:
a testing device for the FM function of a terminal comprises a shielding space, a testing host, a tested terminal, an earphone antenna and a plurality of FM transmitters, wherein the testing host, the tested terminal, the earphone antenna and the plurality of FM transmitters are all arranged in the shielding space; wherein:
the tested terminal and the plurality of FM transmitters are electrically connected with the test host, and the earphone antenna is electrically connected with the tested terminal;
the FM transmitter is used for transmitting FM signals;
the tested terminal is used for receiving FM signals;
the test host is used for setting the transmission parameters of the plurality of FM transmitters according to the test case, controlling the tested terminal to search the FM signals and/or switching the channels of the FM signals currently received, and detecting the FM function of the tested terminal according to the test case and the FM information of the FM signals received by the tested terminal.
Preferably, the test device further comprises a recording device electrically connected with the test host;
the recording equipment is used for recording the audio played by the tested terminal;
the test host is further used for controlling the recording equipment to record audio and specifically detecting the FM function of the tested terminal according to the test case and the audio recorded by the recording equipment.
A test method of terminal FM function is applied to a test host in any one of the test devices of terminal FM function, and comprises the following steps:
setting the transmitting frequencies of a plurality of FM transmitters according to the test case;
controlling the tested terminal to search FM signals;
judging whether FM information received by the tested terminal is matched with the test case, wherein the FM information comprises the channel number of FM signals and the channel frequency of each FM signal;
and if so, determining that the tested terminal passes the FM channel searching function test.
Preferably, after the step of determining that the terminal under test passes the FM channel searching function test, the method further includes:
controlling the tested terminal to switch the channel of the currently received FM signal;
judging whether the channel frequency of the currently received FM signal is matched with the transmitting frequency in the test case or not after the channel is switched;
if the terminal is matched with the audio source, controlling the recording equipment to record the audio played by the tested terminal;
calculating the similarity between the audio frequency sent by the FM transmitter with the transmitting frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
judging whether the similarity is larger than a preset threshold value or not;
and if so, determining that the tested terminal passes the FM channel switching function test.
Preferably, before the step of controlling the tested terminal to search for the FM signal, the method further includes:
setting an audio playing way of the tested terminal;
before the step of calculating the similarity between the audio frequency sent by the FM transmitter, the transmission frequency of which matches the channel frequency of the currently received FM signal, and the audio frequency recorded by the recording device in the test case, the method further includes:
checking an audio playing way of the tested terminal;
judging whether the checked audio playing path is matched with the set audio playing path;
if yes, executing the step of calculating the similarity between the audio frequency sent by the FM transmitter with the transmission frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
and/or the presence of a gas in the atmosphere,
the step of controlling the tested terminal to switch the channel of the currently received FM signal comprises the following steps:
and controlling the tested terminal to switch the currently received channel upwards or downwards.
A test system of terminal FM function, the test system is applied to the test host computer in the test device of any kind of above-mentioned terminal FM function, the test system includes:
the first setting module is used for setting the transmitting frequencies of the plurality of FM transmitters according to the test cases;
the searching control module is used for controlling the tested terminal to search the FM signal;
the first judgment module is used for judging whether FM information received by the tested terminal is matched with the test case or not, wherein the FM information comprises the channel number of FM signals and the channel frequency of each FM signal;
and if so, calling a first determining module for determining that the tested terminal passes the FM channel searching function test.
Preferably, the test system further comprises:
the switching control module is used for controlling the tested terminal to switch the channel of the currently received FM signal after the tested terminal is determined to pass the FM channel searching function test;
the second judgment module is used for judging whether the channel frequency of the FM signal currently received after channel switching is matched with the transmitting frequency in the test case;
if the terminal is matched with the audio source, calling a recording control module for controlling a recording device to record the audio played by the tested terminal;
the calculation module is used for calculating the similarity between the audio frequency sent by the FM transmitter with the transmission frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
the third judging module is used for judging whether the similarity is greater than a preset threshold value or not;
and if so, calling a second determining module for determining that the tested terminal passes the FM channel switching function test.
Preferably, the test system further comprises:
the second setting module is used for setting an audio playing path of the tested terminal;
the viewing module is used for viewing the audio playing path of the tested terminal;
the fourth judging module is used for judging whether the checked audio playing path is matched with the set audio playing path;
if yes, calling the computing module;
and/or the presence of a gas in the gas,
the switching control module is specifically configured to control the terminal under test to switch a currently received channel up or down.
An electronic device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize any one of the above-mentioned testing methods for the FM function of the terminal.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of any of the above-mentioned methods for testing FM functions of a terminal.
The positive progress effects of the invention are as follows: the test device based on the FM function of the terminal can simulate the receiving and transmitting environment of FM signals in an actual network, can respectively set the transmitting parameters of a plurality of FM transmitters in the simulated receiving and transmitting environment, and can also control the tested terminal serving as an FM receiving end to search and switch channels, so that the test device can realize the automatic test of the channel searching and switching functions in the FM function of the terminal, thereby enriching the test of the FM function of the terminal.
Drawings
Fig. 1 is a block diagram of a device for testing FM functions of a terminal according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a method for testing FM functions of a terminal according to embodiment 2 of the present invention.
Fig. 3 is a block diagram of a system for testing FM functions of a terminal according to embodiment 3 of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a testing arrangement of terminal FM function, refer to fig. 1, the testing arrangement of this embodiment includes shielded space 1 and all sets up test host 2 in shielded space 1, by terminal 3, earphone antenna 4, many FM transmitters 5, wherein, shielded space 1 is used for shielding the interference signal who is in shielded space 1 outside, in order to avoid the influence of external interference signal to the testing arrangement that this embodiment provided, and then avoid the influence of external interference signal to terminal FM function test result, in order to improve this embodiment testing arrangement's reliability, and then improve the reliability of terminal FM function test result.
Referring to fig. 1, in this embodiment, the terminal 3 to be tested and the plurality of FM transmitters 5 are both electrically connected to the test host 2, so that the test host 2 can automatically control the terminal 3 to be tested and the FM transmitters 5, wherein a specific manner of implementing the electrical connection can be selected according to practical application, and further, in this embodiment, the terminal 3 to be tested and the FM transmitters 5 are preferably both electrically connected to the test host 2 via a USB (Universal Serial Bus) interface. In the present embodiment, the earphone antenna 4 is electrically connected to the terminal under test 3 via an earphone hole of the terminal under test 3 so as to receive FM signals. In addition, in this embodiment, the test host 2 may be implemented by an electronic device with control and calculation capabilities, such as a computer, and the terminal 3 to be tested may be an electronic device capable of receiving FM signals, such as a mobile phone, a tablet computer, a radio, and the like.
In the present embodiment, the FM transmitter 5 is configured to transmit FM signals, and the test host 2 is configured to set transmission parameters of a plurality of FM transmitters 5 according to the test case. The terminal under test 3 is used for receiving FM signals, and the test host 2 is also used for controlling the terminal under test 3 to receive FM signals, and specifically, may be used for controlling the terminal under test 3 to search for FM signals, switch channels of currently received FM signals, and the like.
Specifically, in the present embodiment, the test cases are automatically updated over time and may include the transmission frequency and the transmitted audio frequency of each FM transmitter 5, and the like, and may further include an audio playing path of the terminal under test 3, and the like, where the audio playing path includes a speaker of the terminal under test 3 and an earphone electrically connected to the terminal under test 3. On this basis, the test host 2 in this embodiment may also be configured to detect the FM function of the terminal under test 3 according to the test case and the FM information of the FM signal received by the terminal under test 3.
Specifically, when controlling the terminal 3 to be tested to search for FM signals, the test host 2 may detect the FM channel searching function of the terminal 3 to be tested according to the comparison result between the number of FM transmitters and the transmission power of each FM transmitter included in the test case and used for transmitting FM signals in the shielded space 1, and the number of channels of FM signals received by the terminal 3 to be tested and the channel frequency of each FM signal.
Referring to fig. 1, the testing apparatus in this embodiment further includes a recording device 6 electrically connected to the testing host 2, wherein a specific manner of implementing the electrical connection may be selected according to an actual application, and further, in this embodiment, the recording device 6 is preferably electrically connected to the testing host 2 through a USB interface. In this embodiment, the recording device 6 is used to record the audio played by the terminal 3 under test, and the recording device 6 is preferably disposed close to the terminal 3 under test, so as to improve the recording effect of the audio played by the terminal 3 under test.
Based on this, when the test host 2 controls the terminal 3 to be tested to switch the channel of the currently received FM signal, it may first determine whether the channel frequency of the currently received FM signal after the channel switching matches the transmission frequency in the test case, and when it is determined that the channel frequency matches the transmission frequency in the test case, control the recording device 6 to record the audio played by the terminal 3 to be tested, and then detect the FM function of the terminal 3 to be tested according to the test case and the audio recorded by the recording device, specifically, in this embodiment, it is preferable to detect the FM switching function of the terminal 3 to be tested by calculating the similarity between the audio sent by the FM transmitter 5 whose transmission frequency matches the channel frequency of the currently received FM signal in the test case and the audio recorded by the recording device.
Further, in this embodiment, the test case may further include the transmission power of each FM transmitter 5, wherein only the transmission power whose value is greater than the preset threshold value may be used to test the FM function of the terminal, so that the setting of the transmission power can not only realize the simulation of the distance and the strength of the FM signal, but also eliminate the influence of the test host 2 on the FM function test of the terminal 3 to be tested.
In this embodiment, parallel testing of a plurality of terminals under test 3 may also be implemented, specifically, parallel testing may be implemented based on USB interfaces, and in addition, when the number of USB interfaces of the test host 2 is difficult to meet the requirement of parallel testing, the number of USB interfaces may be directly extended, or the number of USB interfaces may be extended by increasing the number of test hosts 2.
This embodiment can simulate the receiving and dispatching environment of FM signal in the actual network based on the testing arrangement of terminal FM function to in the receiving and dispatching environment of simulation, can set up the transmission parameter of many FM transmitters respectively, can also control the quilt as the FM receiving terminal survey terminal and search for the platform, cut the platform, consequently, this embodiment can realize searching for the platform in the terminal FM function and the automatic test of cutting the platform function, thereby enriched the test of terminal FM function.
Example 2
The present embodiment provides a method for testing an FM function of a terminal, and further, the method provided in this embodiment is applied to a test host in a device for testing an FM function of a terminal provided in embodiment 1. Referring to fig. 2, the test method of the present embodiment includes:
s201, setting the transmitting frequencies of a plurality of FM transmitters according to the test cases;
s202, controlling the tested terminal to search FM signals;
s203, judging whether the FM information received by the tested terminal is matched with the test case;
if yes, go to step S204; if not, go to step S211;
s204, determining that the tested terminal passes the FM channel searching function test;
and S211, determining that the tested terminal does not pass the FM function test.
In this embodiment, when the tested terminal passes the FM channel searching function test, it can be determined that the FM channel searching accuracy of the tested terminal is higher, and when the FM channel searching function test is not passed, it can be determined that the FM channel searching accuracy of the tested terminal is lower, so that the test of the FM channel searching accuracy of the tested terminal can be realized in this embodiment.
Specifically, in this embodiment, the FM information includes the number of channels of the FM signals and the channel frequency of each FM signal, and the test case is automatically updated over time and may include the transmission frequency of each FM transmitter and the transmitted audio. The step S202 may be specifically implemented by finding out an FM signal search button of the terminal to be tested in an automated manner and automatically clicking the FM signal search button to search the full frequency band, and in addition, the FM signal search button may be displayed on the display interface of the terminal to be tested while sending the searched FM information to the test host.
For example, the transmission frequencies of 3 FM transmitters are set in the shielded space according to the test cases, respectively denoted as F 1 、F 2 And F 3 Wherein F is 1 、F 2 And F 3 The FM information (for example, FM station channel list) of the FM signals searched by the tested terminal comprises 3 channels (3 FM station channels are searched), and the frequency of each FM signal (station channel) is F 1 、F 2 And F 3 Then, determining that the FM signal received by the tested terminal is matched with the test case; the FM information (e.g., FM station channel list) of the FM signals searched for at the terminal under test includes the channel number 2 (2 FM station channels searched), or includes the channel number 3 (3 FM station channels searched) but the channel frequency of each FM signal (station channel) is F 1 、F 2 And F 4 And then, determining that the FM signal received by the tested terminal is not matched with the test case.
Referring to fig. 2, after step S204, the present embodiment further includes:
s205, controlling the tested terminal to switch the channel of the currently received FM signal;
s206, judging whether the channel frequency of the FM signal currently received after channel switching is matched with the transmitting frequency in the test case;
if yes, go to step S207; if not, go to step S211;
s207, controlling the recording equipment to record the audio played by the terminal to be tested;
s208, calculating the similarity between the audio frequency sent by the FM transmitter with the transmitting frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
s209, judging whether the similarity is greater than a preset threshold value;
if yes, go to step S210; if not, go to step S211;
and S210, determining that the tested terminal passes the FM channel switching function test.
In this embodiment, when the terminal under test passes the FM station-cutting function test, it may be determined that the FM station-cutting accuracy of the terminal under test is higher, and when the FM station-cutting function test fails, it may be determined that the FM station-cutting accuracy of the terminal under test is lower, so that the detection of the FM station-cutting accuracy of the terminal under test may be implemented in this embodiment.
In this embodiment, step S205 may specifically include a step of controlling the terminal under test to switch up the currently received channel or switch down the currently received channel. In addition, it should be understood that the audio sent by the FM transmitter used to calculate the similarity in step S208 and the audio recorded by the recording device are the same audio, and in this embodiment, the preset threshold may be set in a customized manner according to actual applications. In addition, in this embodiment, the FM station switching function of the terminal under test may be tested again by switching the audio transmitted by the FM transmitter, so as to improve the reliability of this embodiment.
In order to further test the terminal FM function of the terminal under test, the test case in this embodiment may further include an audio playing path of the terminal under test, and the like, where the audio playing path may include a speaker path and an earphone path, and this embodiment may further include, before step S202:
s212, setting an audio playing path of the tested terminal;
step S208 may be preceded by:
s213, checking the audio playing way of the tested terminal;
s214, judging whether the checked audio playing path is matched with the set audio playing path;
if yes, go to step S208; if not, step S211 is executed.
In this embodiment, step S213 may be implemented based on the underlying interface. Based on this, this embodiment can also detect the audio playback way of the terminal under test to enrich the type of the FM function test to the terminal under test, be favorable to improving the FM function of the terminal under test through the test, and then promote user experience.
Further, in this embodiment, the test case may further include transmission power of each FM transmitter, where only the transmission power whose value is greater than the preset threshold value may be used to test the FM function of the terminal, so that the setting of the transmission power can not only realize the simulation of the distance and the strength of the FM signal, but also eliminate the influence of the test host on the FM function test of the terminal to be tested.
The embodiment simulates the conditions of a plurality of radio stations in an actual network environment by sending the audio frequency of known information by a plurality of FM transmitters arranged in a shielded space at known transmitting frequency, realizes the automatic test of the FM channel searching function and the FM channel switching function of the tested terminal, and provides a reliable method for testing the FM function of the terminal.
Example 3
The present embodiment provides a system for testing an FM function of a terminal, and further, the system for testing an FM function of a terminal provided in this embodiment is applied to a test host in a device for testing an FM function of a terminal provided in embodiment 1. Referring to fig. 3, the test system of the present embodiment includes:
the first setting module 301 is configured to set transmission frequencies of the plurality of FM transmitters according to the test case;
the search control module 302 is used for controlling the tested terminal to search the FM signal;
the first judging module 303 is configured to judge whether FM information received by the terminal to be tested matches the test case;
if yes, the first determination module 304 is invoked; if not, the third determination module 311 is called;
a first determining module 304, configured to determine that the terminal under test passes an FM channel searching function test;
and a third determining module 311, configured to determine that the terminal under test fails the FM function test.
In this embodiment, when the tested terminal passes the FM channel searching function test, it can be determined that the FM channel searching accuracy of the tested terminal is higher, and when the FM channel searching function test is not passed, it can be determined that the FM channel searching accuracy of the tested terminal is lower, so that the test of the FM channel searching accuracy of the tested terminal can be realized in this embodiment.
Specifically, in this embodiment, the FM information includes the number of channels of the FM signals and the channel frequency of each FM signal, and the test case is automatically updated over time and may include the transmission frequency of each FM transmitter and the transmitted audio. The search control module 302 may specifically be implemented to find an FM signal search button of the terminal to be tested in an automated manner and automatically click the button to perform full-band search, and in addition, the searched FM information may be sent to the test host and displayed on the display interface of the terminal to be tested.
For example, the transmission frequencies of 3 FM transmitters are set in the shielded space according to the test cases, respectively denoted as F 1 、F 2 And F 3 Wherein F is 1 、F 2 And F 3 The FM information (for example, FM station channel list) of the FM signals searched by the tested terminal comprises 3 channels (3 FM station channels are searched), and the frequency of each FM signal (station channel) is F 1 、F 2 And F 3 Then, determining that the FM signal received by the tested terminal is matched with the test case; FM information (e.g., FM station channel list) of FM signals searched for at a terminal under test) The channel frequency including the channel number 2 (2 FM station channels searched), or the channel number 3 (3 FM station channels searched) but each FM signal (station channel) is F 1 、F 2 And F 4 And then, determining that the FM signal received by the tested terminal is not matched with the test case.
Referring to fig. 3, the test system of the present embodiment further includes:
a switching control module 305, configured to control the terminal to be tested to switch a channel of the currently received FM signal after determining that the terminal to be tested passes the FM channel searching function test;
a second determining module 306, configured to determine whether a channel frequency of a currently received FM signal after channel switching matches a transmission frequency in the test case;
if yes, the recording control module 307 is called; if not, the third determination module 311 is called;
the recording control module 307 is configured to control the recording device to record an audio played by the terminal to be tested;
a calculating module 308, configured to calculate similarity between an audio frequency sent by an FM transmitter, in which a transmission frequency in the test case matches a channel frequency of a currently received FM signal, and an audio frequency recorded by a recording device;
a third determining module 309, configured to determine whether the similarity is greater than a preset threshold;
if so, the second determination module 310 is invoked; if not, the third determination module 311 is called;
and a second determining module 310, configured to determine that the terminal under test passes the FM station switching function test.
In this embodiment, when the terminal under test passes the FM station-cutting function test, it may be determined that the FM station-cutting accuracy of the terminal under test is higher, and when the FM station-cutting function test fails, it may be determined that the FM station-cutting accuracy of the terminal under test is lower, so that the detection of the FM station-cutting accuracy of the terminal under test may be implemented in this embodiment.
In this embodiment, the switching control module 305 may be specifically configured to control the terminal under test to switch up the currently received channel or switch down the currently received channel. In addition, it should be understood that the audio sent by the FM transmitter and the audio recorded by the recording device, which are used for calculating the similarity, are the audio of the same time segment, and in this embodiment, the preset threshold may be set in a customized manner according to the actual application. In addition, in this embodiment, the FM station switching function of the terminal under test may be tested again by switching the audio transmitted by the FM transmitter, so as to improve the reliability of this embodiment.
In order to further test the terminal FM function of the terminal under test, the test case in this embodiment may further include an audio playing path of the terminal under test, and the audio playing path may include a speaker path and an earphone path. Referring to fig. 3, the test system of the present embodiment may further include:
a second setting module 312, configured to set an audio playing path of the terminal to be tested;
the test system of the present embodiment may further include:
the checking module 313 is used for checking the audio playing path of the tested terminal;
a fourth judging module 314, configured to judge whether the checked audio playing path matches the set audio playing path;
if yes, the calculation module 308 is called; if not, the third determination module 311 is invoked.
In this embodiment, the view module 313 may be implemented based on an underlying interface. Based on this, this embodiment can also detect the audio playback way of the terminal under test to enrich the type of the FM function test to the terminal under test, be favorable to improving the FM function of the terminal under test through the test, and then promote user experience.
Further, in this embodiment, the test case may further include transmission power of each FM transmitter, where only the transmission power whose value is greater than the preset threshold value may be used to test the FM function of the terminal, so that the setting of the transmission power can not only realize the simulation of the distance and the strength of the FM signal, but also eliminate the influence of the test host on the FM function test of the terminal to be tested.
The embodiment simulates the conditions of a plurality of radio stations in the actual network environment by sending the audio frequency of the known information by the plurality of FM transmitters arranged in the shielded space at the known transmitting frequency, realizes the automatic test of the FM channel searching function and the FM channel switching function of the tested terminal, and provides a reliable system for testing the FM function test of the terminal.
Example 4
The present embodiment provides an electronic device, which may be represented in the form of a computing device (for example, may be a server device), and includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor may implement the method for testing the FM function of the terminal provided in embodiment 2 when executing the computer program.
Fig. 4 shows a schematic diagram of a hardware structure of the present embodiment, and as shown in fig. 4, the electronic device 9 specifically includes:
at least one processor 91, at least one memory 92, and a bus 93 for connecting the different system components (including the processor 91 and the memory 92), wherein:
the bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 includes volatile memory, such as Random Access Memory (RAM) 921 and/or cache memory 922, and can further include Read Only Memory (ROM) 923.
Memory 92 also includes a program/utility 925 having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 91 executes various functional applications and data processing, such as a test method of the terminal FM function provided in embodiment 2 of the present invention, by running the computer program stored in the memory 92.
The electronic device 9 may further communicate with one or more external devices 94 (e.g., a keyboard, a pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 9 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 9 via the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units/modules described above may be embodied in one unit/module according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 5
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of the method for testing FM functions of a terminal provided in embodiment 2.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps of the test method for implementing the FM functionality of a terminal as described in embodiment 2, when said program product is run on said terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. The test method is characterized in that the test method is applied to a test host machine in a test device of the FM function of the terminal, and comprises a shielding space, and the test host machine, a tested terminal, an earphone antenna and a plurality of FM transmitters which are all arranged in the shielding space; wherein:
the tested terminal and the plurality of FM transmitters are electrically connected with the test host, and the earphone antenna is electrically connected with the tested terminal;
the FM transmitter is used for transmitting FM signals;
the tested terminal is used for receiving FM signals;
the test host is used for setting the transmission parameters of the plurality of FM transmitters according to a test case, controlling the tested terminal to search FM signals and/or switching channels of the FM signals currently received, and detecting the FM function of the tested terminal according to the test case and the FM information of the FM signals received by the tested terminal;
the test method comprises the following steps:
setting the transmitting frequencies of a plurality of FM transmitters according to the test case;
controlling the tested terminal to search FM signals;
judging whether FM information received by the tested terminal is matched with the test case, wherein the FM information comprises the channel number of FM signals and the channel frequency of each FM signal;
and if so, determining that the tested terminal passes the FM channel searching function test.
2. The method for testing the FM function of a terminal according to claim 1, wherein the testing apparatus further includes a recording device electrically connected to the testing host;
the recording equipment is used for recording the audio played by the tested terminal;
the test host is further used for controlling the recording equipment to record audio and specifically detecting the FM function of the tested terminal according to the test case and the audio recorded by the recording equipment.
3. The method for testing the FM function of a terminal according to claim 1 or 2, further comprising, after the step of determining that the terminal under test passes the FM search function test:
controlling the tested terminal to switch the channel of the currently received FM signal;
judging whether the channel frequency of the currently received FM signal is matched with the transmitting frequency in the test case or not after the channel is switched;
if the terminal is matched with the audio source, controlling the recording equipment to record the audio played by the tested terminal;
calculating the similarity between the audio frequency sent by the FM transmitter with the transmitting frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
judging whether the similarity is greater than a preset threshold value or not;
and if so, determining that the tested terminal passes the FM channel switching function test.
4. The method for testing the FM function of a terminal as claimed in claim 3, further comprising, before the step of controlling the tested terminal to search for FM signals:
setting an audio playing way of the tested terminal;
before the step of calculating the similarity between the audio frequency sent by the FM transmitter, the transmission frequency of which matches the channel frequency of the currently received FM signal, and the audio frequency recorded by the recording device in the test case, the method further includes:
checking an audio playing way of the tested terminal;
judging whether the checked audio playing path is matched with the set audio playing path;
if yes, executing the step of calculating the similarity between the audio frequency sent by the FM transmitter with the transmission frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
and/or the presence of a gas in the gas,
the step of controlling the tested terminal to switch the channel of the currently received FM signal comprises the following steps:
and controlling the tested terminal to switch the currently received channel upwards or downwards.
5. The test system for the FM function of the terminal is characterized in that the test system is applied to a test host machine in a test device for the FM function of the terminal and comprises a shielding space, and the test host machine, a tested terminal, an earphone antenna and a plurality of FM transmitters which are all arranged in the shielding space; wherein:
the tested terminal and the FM transmitters are electrically connected with the test host, and the earphone antenna is electrically connected with the tested terminal;
the FM transmitter is used for transmitting an FM signal;
the tested terminal is used for receiving FM signals;
the test host is used for setting the transmission parameters of the FM transmitters according to a test case, controlling the tested terminal to search FM signals and/or switching channels of currently received FM signals, and detecting the FM function of the tested terminal according to the test case and the FM information of the FM signals received by the tested terminal;
the test system comprises:
the first setting module is used for setting the transmitting frequencies of the FM transmitters according to the test cases;
the searching control module is used for controlling the tested terminal to search the FM signal;
the first judgment module is used for judging whether FM information received by the tested terminal is matched with the test case or not, wherein the FM information comprises the channel number of FM signals and the channel frequency of each FM signal;
and if so, calling a first determining module for determining that the tested terminal passes the FM channel searching function test.
6. The system for testing the FM functions of a terminal of claim 5, wherein the testing apparatus further comprises a sound recording device electrically connected to the testing host;
the recording equipment is used for recording the audio played by the tested terminal;
the test host is further used for controlling the recording equipment to record audio and specifically detecting the FM function of the tested terminal according to the test case and the audio recorded by the recording equipment.
7. A test system for FM functions of a terminal as claimed in claim 5 or 6, wherein said test system further comprises:
the switching control module is used for controlling the tested terminal to switch a channel of the currently received FM signal after the tested terminal is determined to pass the FM channel searching function test;
the second judgment module is used for judging whether the channel frequency of the FM signal currently received after channel switching is matched with the transmitting frequency in the test case;
if the terminal is matched with the audio source, calling a recording control module for controlling a recording device to record the audio played by the tested terminal;
the calculation module is used for calculating the similarity between the audio frequency sent by the FM transmitter with the transmission frequency matched with the channel frequency of the currently received FM signal in the test case and the audio frequency recorded by the recording equipment;
the third judging module is used for judging whether the similarity is greater than a preset threshold value or not;
and if so, calling a second determining module for determining that the tested terminal passes the FM channel switching function test.
8. The system for testing FM functions of a terminal as claimed in claim 7, wherein the system further comprises:
the second setting module is used for setting the audio playing way of the terminal to be tested;
the viewing module is used for viewing the audio playing path of the tested terminal;
the fourth judging module is used for judging whether the checked audio playing path is matched with the set audio playing path;
if yes, calling the computing module;
and/or the presence of a gas in the gas,
the switching control module is specifically configured to control the tested terminal to switch a currently received channel up or down.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for testing the FM functionality of a terminal as claimed in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for testing FM functions of a terminal according to any one of claims 1 to 4.
CN202011191778.7A 2020-10-30 2020-10-30 Method and system for testing FM (frequency modulation) function of terminal Active CN112332932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011191778.7A CN112332932B (en) 2020-10-30 2020-10-30 Method and system for testing FM (frequency modulation) function of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011191778.7A CN112332932B (en) 2020-10-30 2020-10-30 Method and system for testing FM (frequency modulation) function of terminal

Publications (2)

Publication Number Publication Date
CN112332932A CN112332932A (en) 2021-02-05
CN112332932B true CN112332932B (en) 2023-03-14

Family

ID=74297585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011191778.7A Active CN112332932B (en) 2020-10-30 2020-10-30 Method and system for testing FM (frequency modulation) function of terminal

Country Status (1)

Country Link
CN (1) CN112332932B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726939A (en) * 2021-08-30 2021-11-30 展讯半导体(成都)有限公司 System, method, medium and device for testing functions of terminal radio

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201340445Y (en) * 2008-09-12 2009-11-04 惠州华阳通用电子有限公司 Automatic testing system for electronic products
CN101849377A (en) * 2007-09-04 2010-09-29 艾比奎蒂数字公司 Digital radio broadcast receiver, broadcasting method and be used for the method for tagging content of interest
CN102291479A (en) * 2011-08-09 2011-12-21 青岛海信移动通信技术股份有限公司 Terminal function detection method and terminal
CN102651216A (en) * 2011-02-23 2012-08-29 上海晨兴希姆通电子科技有限公司 Method for testing frequency modulation (FM) frequency and magnitude
CN103685721A (en) * 2012-08-31 2014-03-26 美国亚德诺半导体公司 Environment detection for mobile devices
CN111182116A (en) * 2019-12-31 2020-05-19 紫光展讯通信(惠州)有限公司 Multi-channel audio testing device and testing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2481237A (en) * 2010-06-17 2011-12-21 Nokia Corp Protecting a speaker arrangement against over-modulated broadcasts
US10401476B2 (en) * 2015-04-01 2019-09-03 Advantest Corporation Frequency modulated (FM) chirp testing for automotive radars using standard automated test equipment (ATE) digital pin channels
CN109510636A (en) * 2018-10-31 2019-03-22 华勤通讯技术有限公司 Receive test method, device, medium and the equipment of FM signal function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101849377A (en) * 2007-09-04 2010-09-29 艾比奎蒂数字公司 Digital radio broadcast receiver, broadcasting method and be used for the method for tagging content of interest
CN201340445Y (en) * 2008-09-12 2009-11-04 惠州华阳通用电子有限公司 Automatic testing system for electronic products
CN102651216A (en) * 2011-02-23 2012-08-29 上海晨兴希姆通电子科技有限公司 Method for testing frequency modulation (FM) frequency and magnitude
CN102291479A (en) * 2011-08-09 2011-12-21 青岛海信移动通信技术股份有限公司 Terminal function detection method and terminal
CN103685721A (en) * 2012-08-31 2014-03-26 美国亚德诺半导体公司 Environment detection for mobile devices
CN111182116A (en) * 2019-12-31 2020-05-19 紫光展讯通信(惠州)有限公司 Multi-channel audio testing device and testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CDR传输系统测量实践;李平江;《广播与电视技术》;20200615;全文 *

Also Published As

Publication number Publication date
CN112332932A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN105788612B (en) A kind of method and apparatus detecting sound quality
CN102395945B (en) Method, device and system for tracking user behavior in touch screen terminal
CN106331765B (en) Hard solution testing method, terminal, server and computer readable storage medium
CN110989926B (en) Fault magnetic disc slot positioning method and device and electronic equipment
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN109656827B (en) Control tree generation method and terminal equipment
CN109547910B (en) Electronic equipment acoustic assembly performance testing method, device, equipment and storage medium
CN104159159A (en) Interactive method and system based on video as well as terminal and server
CN110196795B (en) Method and related device for detecting running state of mobile terminal application
CN109243488B (en) Audio detection method, device and storage medium
CN105979462A (en) Test processing method and device based on microphone
CN104159136A (en) Interaction information acquisition method, terminal, server and system
CN112332932B (en) Method and system for testing FM (frequency modulation) function of terminal
CN112189344A (en) Method and device for selecting audio track from audio/video file
CN111736918B (en) Buried point configuration method and device and electronic equipment
CN110069407B (en) Function test method and device for application program
CN110177300A (en) Monitoring method, device, electronic equipment and the storage medium of running state of programs
CN111078986A (en) Data retrieval method, device and computer readable storage medium
CN111081085A (en) Dictation control method and terminal equipment
CN109510636A (en) Receive test method, device, medium and the equipment of FM signal function
CN110097895B (en) Pure music detection method, pure music detection device and storage medium
CN108363765A (en) The recognition methods of audio paragraph and device
CN108804897B (en) Screen control method and device, computer equipment and storage medium
CN109614278A (en) The method, apparatus and terminal of positioning problems in automatic test course
CN111078062A (en) Capacitive touch screen detection method and device, touch screen equipment and storage medium

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