CN113543006B - Earphone testing method and device, electronic equipment and medium - Google Patents

Earphone testing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN113543006B
CN113543006B CN202110745045.1A CN202110745045A CN113543006B CN 113543006 B CN113543006 B CN 113543006B CN 202110745045 A CN202110745045 A CN 202110745045A CN 113543006 B CN113543006 B CN 113543006B
Authority
CN
China
Prior art keywords
volume
earphone
trigger signal
tested
instruction
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
CN202110745045.1A
Other languages
Chinese (zh)
Other versions
CN113543006A (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.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN202110745045.1A priority Critical patent/CN113543006B/en
Publication of CN113543006A publication Critical patent/CN113543006A/en
Application granted granted Critical
Publication of CN113543006B publication Critical patent/CN113543006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • 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

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of computers, and provides an earphone testing method, which comprises the following steps: responding to the detected volume adjustment trigger signal, and adjusting the volume of the earphone to be measured to the target volume; generating a volume synchronous adjusting instruction matched with the target volume; and sending the volume synchronous adjustment instruction to test equipment in communication connection with the earphone to be tested, so that the test equipment synchronously adjusts the volume of the test equipment to be matched with the target volume based on the volume synchronous adjustment instruction. In this application, the earphone that awaits measuring is when detecting volume adjustment trigger signal, directly adjusts self volume to the target volume, and is easy and simple to handle, can realize synchronous adjustment earphone that awaits measuring and test equipment's volume fast, helps improving the efficiency of testing the synchronous volume adjustment function of earphone.

Description

Earphone testing method and device, electronic equipment and medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to an earphone testing method, an earphone testing device, electronic equipment and a medium.
Background
With the continuous development of technology, people have increasingly higher requirements on the performance and the use comfort of electronic products. In practical applications, it is often required that the earphone has a synchronous volume adjustment function. The synchronous volume adjusting function generally means that the volume of the audio source device and the volume of the audio receiving device can be adjusted synchronously.
In the related art, in the production process of the earphone, the synchronous volume adjusting function of the earphone needs to be tested.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a medium for testing headphones, and aims to solve the problem that in the related art, in the production process of the headphones, the efficiency of testing the synchronous volume adjusting function of the headphones is not high enough.
In a first aspect, an embodiment of the present application provides a method for testing an earphone, where the method includes:
responding to the detected volume adjustment trigger signal, and adjusting the volume of the earphone to be measured to the target volume;
generating a volume synchronous adjusting instruction matched with the target volume;
and sending the volume synchronous adjustment instruction to test equipment in communication connection with the earphone to be tested, so that the test equipment synchronously adjusts the volume of the test equipment to be matched with the target volume based on the volume synchronous adjustment instruction.
Further, the method further comprises:
and determining whether the earphone to be detected detects a volume adjustment trigger signal, wherein the volume adjustment trigger signal is used for triggering the earphone to be detected to execute synchronous volume adjustment.
Further, determining whether the earphone to be tested detects the volume adjustment trigger signal includes:
and in response to detecting that the terminal equipment in communication connection with the earphone to be detected is disconnected from the earphone to be detected, determining that the earphone to be detected detects a volume adjustment trigger signal.
Further, determining whether the earphone to be tested detects the volume adjustment trigger signal includes:
and responding to the detection of a preset instruction sent by the terminal equipment in communication connection with the earphone to be detected, and determining that the earphone to be detected detects a volume adjustment trigger signal.
Further, determining whether the earphone to be tested detects the volume adjustment trigger signal includes:
and in response to detecting that the charging level of the earphone to be detected changes, determining that the earphone to be detected detects a volume adjustment trigger signal.
Further, determining whether the earphone to be tested detects the volume adjustment trigger signal includes:
in response to detecting that a universal serial bus (Universal Serial Bus, USB) interface of the headset under test receives a USB signal, it is determined that the headset under test detected a volume adjustment trigger signal.
Further, generating a volume synchronization adjustment instruction adapted to the target volume includes:
determining an adjusting proportion aiming at the target volume according to the target volume and the volume adjusting range of the earphone to be measured;
a volume synchronization adjustment instruction including an adjustment ratio is generated.
In a second aspect, an embodiment of the present application provides an earphone testing device, including:
the first adjusting unit is used for adjusting the volume of the earphone to be measured to the target volume in response to the detection of the volume adjustment trigger signal;
the instruction generation unit is used for generating a volume synchronous adjustment instruction matched with the target volume;
and the second adjusting unit is used for sending a volume synchronous adjusting instruction to the testing equipment which is in communication connection with the earphone to be tested, so that the testing equipment synchronously adjusts the volume of the testing equipment to be matched with the target volume based on the volume synchronous adjusting instruction.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the earphone testing method described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the steps of the earphone testing method described above.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on an electronic device, causes the electronic device to perform the earphone testing method of any one of the above first aspects.
Compared with the related art, the embodiment of the application has the beneficial effects that: the earphone to be tested can adjust the volume of the earphone to be tested to the target volume when receiving the volume adjustment trigger signal, and send a volume synchronous adjustment instruction matched with the target volume to the test equipment, so that the test equipment can synchronously adjust the volume of the test equipment based on the volume synchronous adjustment instruction, thereby realizing synchronous adjustment of the volumes of the earphone to be tested and the test equipment. When the volume adjustment trigger signal is detected by the earphone to be tested, the volume of the earphone to be tested is directly adjusted to the target volume, the operation is simple and convenient, the volume of the earphone to be tested and the volume of the test equipment can be synchronously adjusted, and the efficiency of testing the synchronous volume adjustment function of the earphone can be improved.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the related technical descriptions, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a system architecture diagram to which an earphone testing method according to an embodiment of the present application is applied;
fig. 2 is a flow chart of a method for testing headphones according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for testing headphones according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an earphone testing device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
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.
In order to explain the technical aspects of the present application, the following examples are presented.
Referring to fig. 1, a system architecture diagram applied to an earphone testing method according to an embodiment of the present application is shown.
As shown in fig. 1, the system architecture may include a headset under test 101, a test device 102, and a network 103. The network 103 is the medium used to provide a communication link between the earphone under test 101 and the test device 102. In practice, the network 103 is typically bluetooth.
The earphone 101 to be measured may be various earphones. In practice, the earphone 101 to be measured is usually a bluetooth earphone with a synchronous volume adjusting function. In practical application, the earphone 101 to be measured can respond to the detection of the volume adjustment trigger signal to adjust the volume of the earphone to be measured to the target volume; generating a volume synchronous adjusting instruction matched with the target volume; and sending the volume synchronous adjustment instruction to test equipment in communication connection with the earphone to be tested, so that the test equipment synchronously adjusts the volume of the test equipment to be matched with the target volume based on the volume synchronous adjustment instruction.
The test device 102 is typically a terminal device that tests the earphone 101 to be tested. The test equipment 102 may be hardware or software. When the test device 102 is hardware, it may be a variety of electronic devices that support testing the synchronous volume adjustment function of the headset 101 under test, including but not limited to smartphones, tablets, laptop and desktop computers, and the like. When the test device 102 is software, it may be installed in the electronic devices listed above. Which may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein. Various applications may be installed on the test equipment 102, such as a test class application, a search class application, and the like.
It should be noted that, the earphone testing method provided in the present embodiment is generally performed by the earphone 101 to be tested. It should be understood that the numbers of headphones to be tested, test equipment and networks in fig. 1 are merely illustrative. There may be any number of headphones under test, test equipment, and networks, as desired for implementation.
Referring to fig. 2, a flow chart of an earphone testing method provided in an embodiment of the present application, where the earphone testing method shown in fig. 2 includes:
in step 201, in response to detecting the volume adjustment trigger signal, the volume of the earphone to be measured is adjusted to the target volume.
The volume adjustment triggering signal is usually a signal for triggering the earphone to be tested to perform synchronous volume adjustment. In practice, the volume adjustment trigger signal may be various signals, for example, a touch signal generated by touching the earphone to be measured.
The target volume may be a preset volume value, or may be a volume selected from a preset volume set according to a selection rule. The selection rule may be to randomly select one volume from a preset volume set, or select one volume with the least number of times from the preset volume set.
In this embodiment, the main body of the earphone testing method is usually an earphone to be tested (e.g. the earphone to be tested 101 shown in fig. 1). In the present embodiment, the above-described execution body may detect the volume adjustment trigger signal using an attached sensor (e.g., a gravity sensor, a distance sensor, a fingerprint sensor, a hall sensor, a GPS position sensor, an accelerator sensor, etc.). And if the volume adjustment trigger signal is detected, adjusting the volume of the earphone to be measured to the target volume.
Step 202, generating a volume synchronization adjustment instruction adapted to the target volume.
The volume synchronous adjustment instruction is generally an instruction for controlling the test device to cooperate with the earphone to be tested to perform synchronous volume adjustment.
Here, the execution subject may directly employ the target volume to generate the volume synchronization adjustment instruction including the target volume.
In an optional implementation manner of various embodiments of the present application, generating a volume synchronization adjustment instruction adapted to a target volume may include:
firstly, according to the target volume and the volume adjusting range of the earphone to be measured, an adjusting proportion aiming at the target volume is determined.
The adjustment ratio is generally a ratio of a target volume to a section length corresponding to a volume adjustment range of the earphone to be measured. For example, if the target volume is 20, the volume adjustment range of the earphone to be measured is 0-100, and the adjustment ratio is 20%.
Here, the executing body may directly calculate the adjustment ratio for the target volume by using the target volume and the volume adjustment range of the earphone to be measured.
Then, a volume synchronization adjustment instruction including an adjustment ratio is generated.
Here, the execution body may directly generate the volume synchronization adjustment instruction including the adjustment ratio by using the adjustment ratio.
It should be noted that, because the volume adjustment ranges of the earphone to be tested and the test equipment are generally different, the volume synchronous adjustment instruction including the adjustment proportion is sent to the test equipment, so that the test equipment adjusts the volume of the test equipment to the corresponding adjustment proportion, the volume of the test equipment can be flexibly and reasonably adjusted, and the user experience is improved.
And 203, sending a volume synchronization adjustment instruction to test equipment in communication connection with the earphone to be tested, so that the test equipment synchronously adjusts the volume of the test equipment to be matched with the target volume based on the volume synchronization adjustment instruction.
Here, the execution body may transmit the volume synchronization adjustment instruction to the test device. Thus, the test equipment can adjust the volume of the test equipment to be matched with the target volume based on the volume synchronous adjustment instruction after receiving the volume synchronous adjustment instruction. For example, the test device may adjust the volume to be the same as the target volume, or may adjust the volume to be the same as the adjustment ratio corresponding to the target volume.
According to the method provided by the embodiment, when the volume adjustment trigger signal is received, the volume of the earphone to be measured can be adjusted to the target volume, and the volume synchronous adjustment instruction matched with the target volume is sent to the test equipment, so that the test equipment can synchronously adjust the volume of the test equipment based on the volume synchronous adjustment instruction, and the volumes of the earphone to be measured and the test equipment are synchronously adjusted. When the volume adjustment trigger signal is detected by the earphone to be tested, the volume of the earphone to be tested is directly adjusted to the target volume, the operation is simple and convenient, the volume of the earphone to be tested and the volume of the test equipment can be synchronously adjusted, and the efficiency of testing the synchronous volume adjustment function of the earphone can be improved.
With further reference to fig. 3, a flowchart of another earphone testing method provided in an embodiment of the present application, where the earphone testing method shown in fig. 3 includes:
step 301, determining whether the earphone to be tested detects a volume adjustment trigger signal.
The volume adjustment triggering signal is used for triggering the earphone to be tested to execute synchronous volume adjustment.
Here, the earphone to be measured may determine whether the earphone to be measured detects the volume adjustment trigger signal in various ways.
Optionally, the earphone to be tested may determine whether the earphone to be tested detects the volume adjustment trigger signal in at least one of the following manners one to four.
In the first mode, in response to detecting that the terminal equipment in communication connection with the earphone to be detected is disconnected from the earphone to be detected, it is determined that the earphone to be detected detects a volume adjustment trigger signal.
The terminal device in communication connection with the earphone to be tested can be various electronic devices, such as a mobile phone.
Here, the terminal device may first establish a communication connection with the earphone to be tested, for example, establish a bluetooth connection, and then disconnect the communication connection with the earphone to be tested. In this way, the earphone to be tested can detect that the terminal equipment in the connection state with the earphone to be tested is suddenly disconnected. When the earphone to be detected detects that the terminal equipment in a connection state with the earphone to be detected is suddenly disconnected, the earphone to be detected can be considered to detect the volume adjustment trigger signal.
In a second mode, in response to detection of a preset instruction sent by terminal equipment in communication connection with the earphone to be detected, it is determined that the earphone to be detected detects a volume adjustment trigger signal.
The preset command is usually a preset command.
Here, the terminal device may send a preset instruction to the earphone to be tested. In this way, the earphone to be tested can receive the preset instruction. When the earphone to be tested receives a preset instruction, the earphone to be tested can be considered to detect the volume adjustment trigger signal.
In a third mode, in response to detecting that the charging level of the earphone to be detected changes, it is determined that the earphone to be detected detects a volume adjustment trigger signal.
Here, if the earphone to be measured is a chargeable earphone, the charging level of the earphone to be measured is generally changed when the earphone to be measured is changed from a charged state to an uncharged state or from the uncharged state to the charged state. When the earphone to be tested detects that the charging level changes, the volume adjustment trigger signal can be considered to be detected.
In a fourth mode, in response to detecting that the USB interface of the earphone to be detected receives a USB signal, it is determined that the earphone to be detected detects a volume adjustment trigger signal.
Here, if the earphone to be tested has a USB interface, the earphone to be tested may receive a USB signal. When the earphone to be tested receives the USB signal, the volume adjustment trigger signal can be considered to be detected.
It should be noted that, whether the volume adjustment trigger signal is detected or not may be determined in at least one of a plurality of ways, which has a plurality of optional ways and is better in practicability. In addition, each mode in the multiple modes can trigger the earphone to be tested to execute synchronous volume adjustment, so that the earphone synchronous volume adjustment device is high in flexibility and easy to realize, and the efficiency of testing the synchronous volume adjustment function of the earphone is further improved.
In step 302, in response to detecting the volume adjustment trigger signal, the volume of the earphone to be measured is adjusted to the target volume.
In step 303, a volume synchronization adjustment command adapted to the target volume is generated.
And step 304, sending a volume synchronous adjustment instruction to test equipment in communication connection with the earphone to be tested, so that the test equipment synchronously adjusts the volume of the test equipment to be matched with the target volume based on the volume synchronous adjustment instruction.
In this embodiment, the specific operations of steps 302-304 are substantially the same as those of steps 201-203 in the embodiment shown in fig. 2, and will not be described here again.
The embodiment can trigger the earphone to be tested to execute synchronous volume adjustment in various optional modes, and has good practicability and high flexibility. The efficiency of testing the synchronous volume adjusting function of the earphone is further improved.
In an optional implementation manner of various embodiments of the present application, the above earphone testing method further includes: and receiving a volume synchronization instruction sent by the test equipment, and adjusting the volume of the earphone to be tested to the indicated volume indicated by the volume synchronization instruction according to the volume synchronization instruction.
The volume synchronization instruction is generally an instruction for controlling the earphone to be tested to cooperate with the test equipment to perform synchronous volume adjustment. The volume synchronization command generally includes an instruction volume.
Here, the earphone to be tested may receive the volume synchronization instruction of the test device, and adjust the volume of the earphone to be tested to the indicated volume indicated by the volume synchronization instruction.
With further reference to fig. 4, corresponding to the earphone testing method of the above embodiment, fig. 4 is a block diagram of a structure of an earphone testing device 400 provided in an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 4, the apparatus includes:
a first adjusting unit 401, configured to adjust the volume of the earphone to be measured to a target volume in response to detecting the volume adjustment trigger signal;
an instruction generating unit 402, configured to generate a volume synchronization adjustment instruction adapted to a target volume;
and the second adjusting unit 403 is configured to send a volume synchronization adjusting instruction to a test device communicatively connected to the earphone to be tested, so that the test device adjusts the volume of the test device to be matched with the target volume based on the volume synchronization adjusting instruction.
In some embodiments, the apparatus further comprises an action triggering unit (not shown in the figures). Wherein the action triggering unit may be configured to: and determining whether the earphone to be detected detects a volume adjustment trigger signal, wherein the volume adjustment trigger signal is used for triggering the earphone to be detected to execute synchronous volume adjustment.
In some embodiments, the action triggering unit is specifically configured to:
and in response to detecting that the terminal equipment in communication connection with the earphone to be detected is disconnected from the earphone to be detected, determining that the earphone to be detected detects a volume adjustment trigger signal.
In some embodiments, the action triggering unit is specifically further configured to:
and responding to the detection of a preset instruction sent by the terminal equipment in communication connection with the earphone to be detected, and determining that the earphone to be detected detects a volume adjustment trigger signal.
In some embodiments, the action triggering unit is specifically further configured to:
and in response to detecting that the charging level of the earphone to be detected changes, determining that the earphone to be detected detects a volume adjustment trigger signal.
In some embodiments, the action triggering unit is specifically further configured to:
and in response to detecting that the universal serial bus interface of the earphone to be detected receives the universal serial bus signal, determining that the earphone to be detected detects the volume adjustment trigger signal.
In some embodiments, instruction generation unit 402 is specifically configured to:
determining an adjusting proportion aiming at the target volume according to the target volume and the volume adjusting range of the earphone to be measured;
a volume synchronization adjustment instruction including an adjustment ratio is generated.
According to the device provided by the embodiment, when the volume adjustment trigger signal is received, the volume of the earphone to be measured can be adjusted to the target volume, and the volume synchronous adjustment instruction matched with the target volume is sent to the test equipment, so that the test equipment can synchronously adjust the volume of the test equipment based on the volume synchronous adjustment instruction, and the volumes of the earphone to be measured and the test equipment are synchronously adjusted. When the volume adjustment trigger signal is detected by the earphone to be tested, the volume of the earphone to be tested is directly adjusted to the target volume, the operation is simple and convenient, the volume of the earphone to be tested and the volume of the test equipment can be synchronously adjusted, and the efficiency of testing the synchronous volume adjustment function of the earphone can be improved.
It should be noted that, because the content of information interaction and execution process between the above devices/units is according to the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
With further reference to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application. As shown in fig. 5, the electronic apparatus 500 of this embodiment includes: at least one processor 501 (only one processor is shown in fig. 5), a memory 502, and a computer program 503, such as a headset test program, stored in the memory 502 and executable on the at least one processor 501. The steps of any of the various method embodiments described above are implemented by processor 501 when executing computer program 503. The processor 501, when executing the computer program 503, implements the steps in the embodiments of the respective earphone test methods described above. The processor 501, when executing the computer program 503, performs the functions of the modules/units in the above-described device embodiments, such as the functions of the units 401 to 403 shown in fig. 4.
By way of example, the computer program 503 may be split into one or more modules/units, which are stored in the memory 502 and executed by the processor 501 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions for describing the execution of the computer program 503 in the electronic device 500. For example, the computer program 503 may be divided into a first adjusting unit, an instruction generating unit, and a second adjusting unit, and specific functions of each unit are described in the above embodiments, which are not described herein.
The electronic device 500 may be a computing electronic device such as an electronic device, a desktop computer, a tablet computer, a cloud electronic device, and a mobile terminal. Electronic device 500 may include, but is not limited to, processor 501, memory 502. It will be appreciated by those skilled in the art that fig. 5 is merely an example of an electronic device 500 and is not meant to be limiting of the electronic device 500, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., an electronic device may also include input-output electronics, network access electronics, buses, etc.
The processor 501 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may be an internal storage unit of the electronic device 500, such as a hard disk or a memory of the electronic device 500. The memory 502 may also be an external storage electronic device of the electronic device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 500. Further, the memory 502 may also include both internal storage units and external storage electronic devices of the electronic device 500. The memory 502 is used to store computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment 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, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application 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 modules, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Wherein the computer readable storage medium may be nonvolatile or volatile. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by hardware related to the instructions of a computer program, where the computer program may be stored in a computer readable storage medium, and when executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable storage medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable storage medium may be appropriately scaled according to the requirements of jurisdictions in which such computer readable storage medium does not include electrical carrier signals and telecommunication signals, for example, according to jurisdictions and patent practices.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for testing headphones, the method comprising:
in response to detecting a volume adjustment trigger signal, adjusting a volume of the earphone to be measured to a target volume, the volume adjustment trigger signal including at least one of: the method comprises the steps that signals generated when the earphone to be tested is disconnected with terminal equipment in a communication mode, preset instructions received by the earphone to be tested from the terminal equipment in the communication mode, charging level change signals of the earphone to be tested, external signals received by a universal serial bus interface of the earphone to be tested, and the target volume is a preset volume value;
generating a volume synchronous adjusting instruction matched with the target volume;
and sending the volume synchronous adjustment instruction to test equipment in communication connection with the earphone to be tested, so that the test equipment synchronously adjusts the volume of the test equipment to be matched with the target volume based on the volume synchronous adjustment instruction.
2. The method according to claim 1, wherein the method further comprises:
and determining whether the earphone to be detected detects a volume adjustment trigger signal, wherein the volume adjustment trigger signal is used for triggering the earphone to be detected to execute synchronous volume adjustment.
3. The method of claim 2, wherein determining whether the earphone under test detects a volume adjustment trigger signal comprises:
and in response to detecting that the terminal equipment in communication connection with the earphone to be detected is disconnected from the earphone to be detected, determining that the earphone to be detected detects a volume adjustment trigger signal.
4. The method of claim 2, wherein determining whether the earphone under test detects a volume adjustment trigger signal comprises:
and responding to the detection of a preset instruction sent by the terminal equipment in communication connection with the earphone to be detected, and determining that the earphone to be detected detects a volume adjustment trigger signal.
5. The method of claim 2, wherein determining whether the earphone under test detects a volume adjustment trigger signal comprises:
and in response to detecting that the charging level of the earphone to be detected changes, determining that the earphone to be detected detects a volume adjustment trigger signal.
6. The method of claim 2, wherein determining whether the earphone under test detects a volume adjustment trigger signal comprises:
and in response to detecting that the universal serial bus interface of the earphone to be detected receives the universal serial bus signal, determining that the earphone to be detected detects the volume adjustment trigger signal.
7. The method according to any one of claims 1-6, wherein the generating a volume synchronization adjustment instruction adapted to the target volume comprises:
determining an adjusting proportion aiming at the target volume according to the target volume and the volume adjusting range of the earphone to be measured;
and generating a volume synchronous adjusting instruction comprising the adjusting proportion.
8. An earphone testing device, for application to an earphone to be tested, said device comprising:
the first adjusting unit is used for adjusting the volume of the earphone to be measured to the target volume in response to the detection of the volume adjusting trigger signal, and the volume adjusting trigger signal comprises at least one of the following: the method comprises the steps that signals generated when the earphone to be tested is disconnected with terminal equipment in a communication mode, preset instructions received by the earphone to be tested from the terminal equipment in the communication mode, charging level change signals of the earphone to be tested, external signals received by a universal serial bus interface of the earphone to be tested, and the target volume is a preset volume value;
the instruction generation unit is used for generating a volume synchronous adjustment instruction matched with the target volume;
and the second adjusting unit is used for sending the volume synchronous adjusting instruction to the testing equipment which is in communication connection with the earphone to be tested, so that the testing equipment synchronously adjusts the volume of the testing equipment to be matched with the target volume based on the volume synchronous adjusting instruction.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202110745045.1A 2021-06-30 2021-06-30 Earphone testing method and device, electronic equipment and medium Active CN113543006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110745045.1A CN113543006B (en) 2021-06-30 2021-06-30 Earphone testing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110745045.1A CN113543006B (en) 2021-06-30 2021-06-30 Earphone testing method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113543006A CN113543006A (en) 2021-10-22
CN113543006B true CN113543006B (en) 2024-01-12

Family

ID=78097619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110745045.1A Active CN113543006B (en) 2021-06-30 2021-06-30 Earphone testing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113543006B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827973B (en) * 2022-06-29 2022-11-29 荣耀终端有限公司 Binaural consistency control method, graphical interface, system and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012109769A (en) * 2010-11-17 2012-06-07 Nec Casio Mobile Communications Ltd Sound emission device
CN108511000A (en) * 2018-03-06 2018-09-07 福州瑞芯微电子股份有限公司 A kind of test intelligent sound box wakes up the method and system of word discrimination
CN109362015A (en) * 2018-09-10 2019-02-19 广东小天才科技有限公司 Volume test method, console device, storage medium and volume test macro
CN209435400U (en) * 2019-03-26 2019-09-24 深圳市云动创想科技有限公司 Portable earphone player based on Bluetooth communication
CN111447539A (en) * 2020-03-25 2020-07-24 北京聆通科技有限公司 Fitting method and device for hearing earphones
CN112741622A (en) * 2019-10-30 2021-05-04 深圳市冠旭电子股份有限公司 Audiometric system, audiometric method, audiometric device, earphone and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012109769A (en) * 2010-11-17 2012-06-07 Nec Casio Mobile Communications Ltd Sound emission device
CN108511000A (en) * 2018-03-06 2018-09-07 福州瑞芯微电子股份有限公司 A kind of test intelligent sound box wakes up the method and system of word discrimination
CN109362015A (en) * 2018-09-10 2019-02-19 广东小天才科技有限公司 Volume test method, console device, storage medium and volume test macro
CN209435400U (en) * 2019-03-26 2019-09-24 深圳市云动创想科技有限公司 Portable earphone player based on Bluetooth communication
CN112741622A (en) * 2019-10-30 2021-05-04 深圳市冠旭电子股份有限公司 Audiometric system, audiometric method, audiometric device, earphone and terminal equipment
CN111447539A (en) * 2020-03-25 2020-07-24 北京聆通科技有限公司 Fitting method and device for hearing earphones

Also Published As

Publication number Publication date
CN113543006A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108521521B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN111797293B (en) Data adjustment method, device, terminal equipment and storage medium
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
EP3001290A1 (en) Data reporting method, apparatus and terminal device
US9766852B2 (en) Non-audio notification of audible events
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
CN108199785B (en) Transmission power testing method, device and system and electronic equipment
CN109889325B (en) Verification method, verification device, electronic equipment and medium
CN111475853B (en) Model training method and system based on distributed data
CN113543006B (en) Earphone testing method and device, electronic equipment and medium
KR20180128579A (en) Method for controlling battery based on status of battery and electronic device for supporting the same
CN106549459B (en) Determination method of charging voltage and mobile terminal
EP2911064A1 (en) Memory initializing method and electronic device supporting the same
KR20210002906A (en) Electronic device for recognizing an object and operating method thereof
CN106775835B (en) Method, server and terminal for acquiring upgrade file
CN110874729B (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN108123762B (en) Transmission power testing method, device and system and electronic equipment
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN113459992B (en) Vehicle control method, and storage medium and electronic device for executing the method
CN111177035B (en) Peripheral processing device, method and electronic equipment
KR20200014544A (en) Electronic apparatus for processing input event and operating method thereof
CN105551500A (en) Audio signal processing method and device
CN103092790B (en) Method of data synchronization and data synchronous system

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