CN111726724A - Information processing device and method - Google Patents

Information processing device and method Download PDF

Info

Publication number
CN111726724A
CN111726724A CN202010622266.5A CN202010622266A CN111726724A CN 111726724 A CN111726724 A CN 111726724A CN 202010622266 A CN202010622266 A CN 202010622266A CN 111726724 A CN111726724 A CN 111726724A
Authority
CN
China
Prior art keywords
output device
audio output
audio
target
current
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.)
Pending
Application number
CN202010622266.5A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010622266.5A priority Critical patent/CN111726724A/en
Publication of CN111726724A publication Critical patent/CN111726724A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application provides an information processing apparatus, including: an audio interface; a detector connectable to an audio output device based on the audio interface, the detector for detecting a target parameter of the audio output device; the controller is in data communication with the detector through a data bus and can be connected with an audio output device based on the audio interface; the controller is used for obtaining the target parameters detected by the detector through a data bus to determine a target driving current and outputting the target driving current to an audio output device through the audio interface, and the target driving current is used for driving the audio output device to work. In the scheme, the corresponding driving current is output to the audio output device through the detected target parameters of the audio output device so as to drive the audio output device to work, the driving current is matched with the target parameters of the audio output device, the sound effect of the audio output device can be ensured, and the user experience is improved.

Description

Information processing device and method
Technical Field
The present application relates to the field of electronic devices, and more particularly, to an information processing apparatus and method.
Background
The earphone is a portable device and can be used with electronic equipment.
Earphone kind is many in the existing market, and the design among the present electronic equipment all is according to fixed driving capability output, leads to the driving capability to mismatch with the earphone demand for the sound effect of earphone is relatively poor, and user experience is very not good.
Disclosure of Invention
In view of this, the present application provides an information processing apparatus and method, and the present application provides the following technical solutions:
an information processing apparatus comprising:
the audio interface is used for connecting an audio output device;
the detector can be connected with an audio output device based on the audio interface and is used for detecting a target parameter of the audio output device;
the controller is in data communication with the detector through a data bus and can be connected with an audio output device based on the audio interface;
the controller is used for obtaining the target parameters detected by the detector through a data bus to determine a target driving current and outputting the target driving current to an audio output device through the audio interface, and the target driving current is used for driving the audio output device to work.
Optionally, in the above apparatus, the audio interface includes: at least one signal pin for signal transmission between an electronic device and the audio output apparatus;
the detector is specifically configured to detect a current value of the audio interface through one of the at least one signal pin, determine a target parameter corresponding to the current value based on a relationship between the current value and the target parameter, and characterize a detection current of the audio output device by the current value of the audio interface.
Optionally, in any one of the above apparatuses, the target parameter is an impedance value,
the detector is used for outputting a detection voltage to the audio interface through one of the at least one signal pin so that the audio output device generates the detection current based on the detection voltage.
Optionally, in the above apparatus, the at least one signal pin at least includes an electrical pin, the electrical pin of the audio interface is connected to the controller,
and the audio signal output by the controller is sent to an audio output device through the electric pin, and the intensity of the audio signal corresponds to the target driving current.
An information processing method, the method comprising:
detecting a target parameter of an audio output device through an audio interface in a case where the audio output device is connected to an electronic apparatus through the audio interface of the electronic apparatus;
and determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
Optionally, the method, the electronic device comprises a detector and a controller,
under the condition that the audio output device is connected to the electronic equipment through an audio interface of the electronic equipment, the detector detects a target parameter of the audio output device through the audio interface;
the controller determines a target driving current based on the target parameter of the audio output device, and outputs the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
Optionally, in the method, when the target parameter is an impedance value, the detecting the target parameter of the audio output apparatus through the audio interface includes:
outputting a preset detection voltage to the audio interface;
obtaining a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the preset detection voltage;
and determining the target parameter corresponding to the current value based on the corresponding relation between the current value and the target parameter, wherein the current value of the audio interface represents the detection current of the audio output device.
Optionally, in the method, when the target parameter is an impedance value, the detecting the target parameter of the audio output apparatus through the audio interface includes:
the audio interface outputs detection voltage;
detecting a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the detection voltage;
calculating to obtain a resistance value based on the preset detection voltage and the current value;
and determining the impedance value of the audio output device corresponding to the resistance value according to a preset impedance threshold value range mapping rule.
Optionally, in the method, the determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface includes:
selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current;
outputting the target drive current to the audio interface.
Optionally, in the method, the determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface includes:
selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current;
determining a target application of audio to be output in the electronic equipment;
selecting a current adjustment mode corresponding to the target application;
and outputting an adjusting driving current to the audio interface based on the current adjusting mode and the target driving current value, wherein the adjusting driving current is obtained by adjusting the target driving current based on the current adjusting mode.
As can be seen from the above-described technical solutions, the present application provides an information processing apparatus including: the audio interface is used for connecting an audio output device; the detector can be connected with an audio output device based on the audio interface and is used for detecting a target parameter of the audio output device; the controller is in data communication with the detector through a data bus and can be connected with an audio output device based on the audio interface; the controller is used for obtaining the target parameters detected by the detector through a data bus to determine a target driving current and outputting the target driving current to an audio output device through the audio interface, and the target driving current is used for driving the audio output device to work. In the scheme, the corresponding driving current is output to the audio output device through the detected target parameters of the audio output device so as to drive the audio output device to work, the driving current is matched with the target parameters of the audio output device, the sound effect of the audio output device can be ensured, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an information processing apparatus according to an embodiment 1 of the present application;
fig. 2 is a schematic structural diagram of an information processing apparatus according to embodiment 2 of the present application;
fig. 3 is a schematic structural diagram of an audio interface in embodiment 2 of an information processing apparatus provided in the present application;
fig. 4 is a flowchart of an information processing method according to embodiment 1 of the present application;
fig. 5 is a flowchart of an information processing method according to embodiment 2 of the present application;
fig. 6 is a flowchart of an information processing method embodiment 3 provided in the present application;
fig. 7 is a flowchart of an information processing method according to embodiment 4 of the present application;
fig. 8 is a flowchart of an information processing method according to embodiment 5 of the present application;
fig. 9 is a schematic view of an application scenario of an information processing apparatus according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, a schematic structural diagram of an embodiment 1 of an information processing apparatus provided by the present application, the apparatus being applied to an electronic device, includes the following structures: an audio interface 101, a detector 102, and a controller 103;
the audio interface 101 is used for connecting an audio output device;
the audio output device is matched with the audio interface, and information transmission between the audio output device and the electronic equipment can be realized through the audio interface, so that the audio output device outputs audio.
The audio output device is provided with a plug corresponding to the audio interface, the plug of the audio output device and the audio interface can be plugged together, circuit conduction is achieved, and then the audio output device can output the audio of the electronic equipment.
In particular, the audio output device may be a headset, such as a three-piece headset or a four-piece headset.
The specific form of the earphone is not limited in the application, and the earphone can be an in-ear earphone, a headset and the like.
The detector 102 can be connected with an audio output device based on the audio interface, and is used for detecting a target parameter of the audio output device;
when the audio output device is connected with the audio interface, the detector is connected with the audio output device based on the audio interface, and then the target parameter of the audio output device is detected.
It should be noted that the values of the target parameters of different audio output devices may be different or the same, and the difference of the target parameters indicates that the audio output devices are adapted to different driving currents.
The controller 103 is in data communication with the detector through a data bus and can be connected with an audio output device based on the audio interface;
the controller is used for obtaining the target parameters detected by the detector through a data bus to determine a target driving current and outputting the target driving current to an audio output device through the audio interface, and the target driving current is used for driving the audio output device to work.
The controller is in data communication with the detector through a data bus, determines a target driving current based on the target parameter after acquiring the target parameter through the data bus, and outputs the target driving current to the audio output device through the audio interface so as to drive the audio output device to work. The target driving current is a driving current adapted to the audio output device, and the target driving current drives the audio output device to have the best sound effect.
In a specific embodiment, the data Bus provided between the detector and the controller may be an I2C (Inter-Integrated Circuit) Bus, an SMBUS (System Management Bus), or the like.
In summary, the information processing apparatus provided in this embodiment includes: the audio interface is used for connecting an audio output device; the detector can be connected with an audio output device based on the audio interface and is used for detecting a target parameter of the audio output device; the controller is in data communication with the detector through a data bus and can be connected with an audio output device based on the audio interface; the controller is used for obtaining the target parameters detected by the detector through a data bus to determine a target driving current and outputting the target driving current to an audio output device through the audio interface, and the target driving current is used for driving the audio output device to work. In the scheme, the corresponding driving current is output to the audio output device through the detected target parameters of the audio output device so as to drive the audio output device to work, the driving current is matched with the target parameters of the audio output device, the sound effect of the audio output device can be ensured, and the user experience is improved.
As shown in fig. 2, a schematic structural diagram of an embodiment 2 of an information processing apparatus provided by the present application includes the following structures: an audio interface 201, a detector 202, and a controller 203;
the structural function of the controller is the same as that in embodiment 1, and details are not described in this embodiment.
Wherein, this audio interface 201 includes: at least one signal pin 204 for signal transmission between an electronic device and the audio output apparatus;
the detector is specifically configured to detect a current value of the audio interface through one of the at least one signal pin, determine a target parameter corresponding to the current value based on a relationship between the current value and the target parameter, and characterize a detection current of the audio output device by the current value of the audio interface.
Specifically, the audio interface includes a signal pin, where the signal pin is a pin capable of performing signal transmission, and the signal pin specifically performs signal transmission between the electronic device and the audio output device, and may be transmitted from the electronic device to the audio output device, or may be transmitted from the audio output device to the electronic device.
The detector is connected with any one signal pin, the current value of the audio interface is detected through the signal pin, and the current value of the audio interface represents the detection current of the audio output device.
The detector presets a relationship between the current value and the target parameter, and based on the relationship and the detected current value, the corresponding target parameter can be determined, so as to determine the corresponding driving current based on the value of the target parameter.
In a specific implementation, the target parameter may be an impedance value, the detector may output a detection voltage to the audio interface first, since the audio output device does not have a power supply, the detector generates a current based on the voltage value provided by the audio interface, and the impedance value of the audio output device may be calculated based on a relationship between the current and the voltage.
In specific implementation, the audio interface has two structures, three-segment type and four-segment type, wherein the three-segment type audio interface includes three pins: left channel pin (L), right channel pin (R) and ground pin (GND), wherein four-section formula audio interface includes four pins: a left channel pin (L), a right channel pin (R), a microphone pin (MIC), and a ground pin (GND).
Wherein, L is used for outputting the audio information of a left channel, R is used for outputting the audio information of a right channel, and MIC is used for transmitting signals to the electronic equipment by the audio output device.
Fig. 3 is a schematic structural diagram of an audio interface, in which (a) is a three-segment audio interface, and (b) is a four-segment audio interface.
In a specific implementation, the signal pin may be L, R in the three-segment audio interface, or L, R and MIC in the four-segment audio interface.
The at least one signal pin at least comprises an electric pin, the electric pin of the audio interface is connected with the controller, an audio signal output by the controller is sent to an audio output device through the electric pin, and the strength of the audio signal corresponds to the target driving current.
The electric pin is a pin capable of receiving the driving current output by the controller, and transmits the driving current to the audio output device connected with the electric pin, so that the audio output device works based on the driving current.
Specifically, the electrical pins are a left channel pin (L) and a right channel pin (R) in the audio interface, and the two pins can receive an audio signal output by the controller.
In a specific implementation, when the controller constructs the audio signal output, the target driving current is sent to the audio output device through the audio signal, and the intensity of the audio signal corresponds to the magnitude of the target driving current.
When the target parameter is an impedance value, the detector is used for outputting a detection voltage to the audio interface through one of the at least one signal pin so that the audio output device generates the detection current based on the detection voltage.
The target parameter is specifically an impedance value, which is an impedance value of the audio output device, and different audio output devices may have different impedance values due to different specific circuit structures, electrical components, and the like.
Specifically, the detector outputs a detection voltage to the audio interface through a signal pin, and the audio output device connected to the audio interface generates a detection current based on the detection voltage.
In a specific implementation, the detector calculates the impedance value of the audio output device according to the detected current value and the detected voltage.
For example, the following formula can be used to calculate:
Figure BDA0002563429020000081
wherein R represents an impedance value of the audio output device, U represents a detection voltage, and I represents a detection current.
In summary, in an information processing apparatus provided in this embodiment, the audio interface includes: at least one signal pin for signal transmission between an electronic device and the audio output apparatus; the detector is specifically configured to detect a current value of the audio interface through one of the at least one signal pin, determine a target parameter corresponding to the current value based on a relationship between the current value and the target parameter, and characterize a detection current of the audio output device by the current value of the audio interface. In the scheme, the current value of the audio output device is detected through the signal pin of the audio interface, the target parameter of the audio output device can be determined based on the relation between the current value and the target parameter, the data processing process is simple and easy to implement, and the data processing burden of the electronic equipment is small.
Corresponding to the embodiment of the information processing device provided by the application, the application also provides an embodiment of a method for applying the information processing device.
Fig. 4 is a flowchart of embodiment 1 of an information processing method provided in the present application, where the method is applied to an electronic device, and the method includes the following steps:
step S401: detecting a target parameter of an audio output device through an audio interface in a case where the audio output device is connected to an electronic apparatus through the audio interface of the electronic apparatus;
when the audio output device is connected to the electronic device, in order to ensure an output effect, a requirement of the audio output device needs to be determined first, so as to configure a corresponding driving capability for the audio output device based on the requirement of the audio output device.
Specifically, the requirement of the audio output device is embodied based on the target parameter, the target parameter may be directly acquired information or obtained based on analysis of the acquired information, the detection process of the target parameter will be explained in the subsequent embodiments, and details are not described in this embodiment.
Step S402: and determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
The electronic device is preset with a corresponding relation between the driving current and the target parameter, and the target driving current corresponding to the target parameter is determined based on the corresponding relation.
Specifically, the electronic device outputs the target driving current to the audio output device through the audio interface to drive the audio output device to work.
In specific implementation, the corresponding relationship between the driving current and the target parameter may be a one-to-one mapping corresponding relationship, or may be a corresponding relationship based on a specific calculation formula, and the specific form of the corresponding relationship is not limited in this application.
Specifically, the electronic device according to the present invention can only be provided with a detector for detecting a target parameter of the audio output apparatus, and a controller for determining a target driving current based on the target parameter and outputting the target driving current to the audio output apparatus through the audio interface.
In summary, an information processing method provided in this embodiment includes: detecting a target parameter of an audio output device through an audio interface in a case where the audio output device is connected to an electronic apparatus through the audio interface of the electronic apparatus; and determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work. In the scheme, the corresponding driving current is output to the audio output device through the detected target parameters of the audio output device so as to drive the audio output device to work, the driving current is matched with the target parameters of the audio output device, the sound effect of the audio output device can be ensured, and the user experience is improved.
Fig. 5 is a flowchart of embodiment 2 of an information processing method provided in the present application, where the method includes the following steps:
step S501: under the condition that an audio output device is connected to the electronic equipment through an audio interface of the electronic equipment, outputting preset detection voltage to the audio interface;
the target parameter is an impedance value, specifically, an impedance value of the audio output device, and different audio output devices may have different impedance values due to different circuit structures, electrical components, and the like.
For example, the impedance values of different audio output devices are different, such as the impedance value of some audio output devices is 32ohm (ohm), the impedance value of some audio output devices is 16ohm, etc., of course, the impedance value of the audio output device is not only 32ohm and 16ohm, but also may have other values, which is not limited in this application.
Specifically, in order to detect the impedance value of the audio output device, the current of the audio output device may be detected by outputting a detection voltage thereto, and then the corresponding impedance value may be calculated.
Step S502: obtaining a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the preset detection voltage;
in this embodiment, by outputting the detection voltage to the audio interface, the audio output device connected to the audio interface generates a current based on the detection voltage.
In specific implementation, the detection voltage is generally a fixed value, such as 3V (volt), 5V, etc., and the specific value of the detection voltage is not limited in this application.
The detection current of the audio output device can be obtained by detecting the current value of the audio interface.
Step S503: determining a target parameter corresponding to the current value based on the corresponding relation between the current value and the target parameter, wherein the current value of the audio interface represents the detection current of the audio output device;
wherein, the current value and the impedance value have corresponding relation.
And determining corresponding target parameters based on the detected current values and the corresponding relation.
In a specific implementation, the detection voltage applied to the audio output device is known, the detection current of the audio output device can also be obtained through detection, and the impedance value of the audio output device can be obtained through calculation based on the detection voltage and the detection current.
Step S504: and determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
Step S504 is the same as step S402 in embodiment 1, and details are not described in this embodiment.
In summary, in an information processing method provided in this embodiment, when the target parameter is an impedance value, the detecting the target parameter of the audio output apparatus through the audio interface includes: outputting a preset detection voltage to the audio interface; obtaining a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the preset detection voltage; and determining the target parameter corresponding to the current value based on the corresponding relation between the current value and the target parameter, wherein the current value of the audio interface represents the detection current of the audio output device. In the scheme, the impedance value of the audio output device can be calculated by applying the detection voltage to the audio output device and acquiring the detection current generated by the audio output device based on the detection voltage, the calculation process is simple and easy to implement, and the data processing amount is small.
Fig. 6 is a flowchart of embodiment 3 of an information processing method provided in the present application, where the method includes the following steps:
step S601: under the condition that an audio output device is connected to the electronic equipment through an audio interface of the electronic equipment, outputting a detection voltage through the audio interface;
the target parameter is an impedance value, specifically, an impedance value of the audio output device, and different audio output devices may have different impedance values due to different circuit structures, electrical components, and the like.
Specifically, in order to detect the impedance value of the audio output device, the current of the audio output device may be detected by outputting a detection voltage thereto, and then the corresponding impedance value may be calculated.
Step S602: detecting a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the detection voltage;
in this embodiment, by outputting the detection voltage to the audio interface, the audio output device connected to the audio interface generates a current based on the detection voltage.
In one embodiment, the detection voltage is generally a fixed value, such as 3V or 5V.
The detection current of the audio output device can be obtained by detecting the current value of the audio interface.
Step S603: calculating to obtain a resistance value based on the preset detection voltage and the current value;
wherein the preset detection voltage is a voltage applied to the audio output device, the current value is a current generated by the audio output device based on the detection voltage, and the resistance value R of the audio output device can be obtained by simple calculation based on ohm's law0
For example, the following formula can be used to calculate:
Figure BDA0002563429020000111
wherein R is0Denotes a resistance value, U denotes a detection voltage, and I denotes a detection current.
Step S604: determining an impedance value of the audio output device corresponding to the resistance value according to a preset impedance threshold range mapping rule;
the electronic device is preset with an impedance threshold range mapping rule, the range of the resistance value is judged by defining the threshold range, one range corresponds to one impedance value, and the resistance values in the range all correspond to the impedance value.
As a specific example, a resistance value in the range of (0, 10) corresponds to a resistance value of 10, and a resistance value in the range of (0, 20) corresponds to a resistance value of 20.
For example, if a resistance value is 19ohm, the corresponding range is (0, 20), and the impedance value of the audio output device corresponding to the resistance value is 20 ohm.
It should be noted that the impedance threshold division threshold and the corresponding impedance value provided in this embodiment are both examples, and other threshold divisions may be adopted in specific implementation, and other impedance values may also be set, which is not limited in this application.
In specific implementation, a threshold range mapping rule between the resistance value and the target driving current may be set, where a resistance value in a certain threshold range corresponds to a target driving current value, and a resistance value in another threshold range corresponds to another target driving current value.
Then, after calculating the resistance value of the audio output device, which is the value of the target parameter of the audio output device, step S605 is executed to determine the threshold range corresponding to the resistance value based on the threshold range mapping rule between the resistance value and the target driving current, and further determine the target driving current corresponding to the threshold range.
Step S605: and determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
Step S605 is the same as step S402 in embodiment 1, and details are not described in this embodiment.
In summary, in an information processing method provided in this embodiment, when the target parameter is an impedance value, the detecting the target parameter of the audio output apparatus through the audio interface includes: the audio interface outputs detection voltage; detecting a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the detection voltage; calculating to obtain a first resistance value based on the preset detection voltage and the current value; and determining the impedance value of the audio output device corresponding to the first resistance value according to a preset impedance threshold value range mapping rule. According to the scheme, the resistance value of the audio output device can be calculated by applying the detection voltage to the audio output device and acquiring the detection current generated by the audio output device based on the detection voltage, the impedance value corresponding to the range to which the resistance value belongs is determined according to the preset impedance threshold range mapping rule, the calculation process is simple and feasible, and the data processing amount is small.
Fig. 7 is a flowchart of embodiment 4 of an information processing method provided in the present application, where the method includes the following steps:
step S701: detecting a target parameter of an audio output device through an audio interface in a case where the audio output device is connected to an electronic apparatus through the audio interface of the electronic apparatus;
step S701 is the same as step S401 in embodiment 1, and details are not described in this embodiment.
Step S702: selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current;
the electronic device is preset with a corresponding relation between the target parameter and the driving current, and the corresponding target driving current value can be selected based on the value of the target parameter.
Specifically, a one-to-one correspondence relationship between the target parameter and the driving current may be set, or a plurality of adjacent or consecutive values of the target parameter may be associated with a driving current value, and the specific content of the correspondence relationship is not limited in the present application.
Step S703: outputting the target drive current to the audio interface.
And outputting the target driving current to the audio interface so that an audio output device connected with the audio interface works based on the target driving current.
Specifically, the target driving current is output to an electrical pin of the audio interface, which may be a left channel pin (L) and a right channel pin (R) of the audio interface, and the target driving current is sent to the audio output device through control of the audio signal.
Wherein the intensity of the audio signal corresponds to the magnitude of the target driving current.
In summary, in an information processing method provided in this embodiment, the determining a target driving current based on a target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface includes: selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current; outputting the target drive current to the audio interface. In the scheme, the target driving current is matched with the target parameters of the audio output device, so that the sound effect of the audio output device can be ensured, and the user experience is improved.
Fig. 8 is a flowchart of embodiment 5 of an information processing method provided in the present application, where the method includes the following steps:
step S801: detecting a target parameter of an audio output device through an audio interface in a case where the audio output device is connected to an electronic apparatus through the audio interface of the electronic apparatus;
step S801 is the same as step S401 in embodiment 1, and details are not described in this embodiment.
Step S802: selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current;
the electronic device is preset with a corresponding relation between the target parameter and the driving current, and the corresponding target driving current value can be selected based on the value of the target parameter.
Specifically, a one-to-one correspondence relationship between the target parameter and the driving current may be set, or a plurality of adjacent or consecutive values of the target parameter may be associated with a driving current value, and the specific content of the correspondence relationship is not limited in the present application.
Step S803: determining a target application of audio to be output in the electronic equipment;
when the application in the electronic device is started, specific information is sent to the system, so that a program and/or a functional chip and the like corresponding to the application are called.
Specifically, based on information in a system of the electronic device, an application that transmits the information is determined, and the application is a target application of the audio to be output.
Step S804: selecting a current adjustment mode corresponding to the target application;
wherein different applications may have different adjustment modes due to different requirements in use.
Wherein, this current regulation mode includes: full, no and partial adjustments.
Specifically, the partial adjustment may be one or more predetermined adjustment ratios, such as 30%, 50%, 70%, etc., and the adjustment ratio is not limited in this application.
In one embodiment, the default current value is used for the irregular mode.
For example, if the requirement for the output sound quality is high, the corresponding adjustment mode is more prone to the adjustment of the sound quality, several requirements for the power consumption of the application are high, and the requirement for the sound quality is not high, the corresponding adjustment mode is more prone to the adjustment with low power consumption.
As an example, in music applications, the requirement for the output sound quality is high, and in order to ensure the output sound effect, a full-tone mode is required;
as an example, in a conference call application, the requirement for sound quality is not very high, and it may be adjusted in an un-adjusted or partially adjusted manner.
Step S805: and outputting an adjusting driving current to the audio interface based on the current adjusting mode and the target driving current value, wherein the adjusting driving current is obtained by adjusting the target driving current based on the current adjusting mode.
And determining an adjusting drive current based on the determined current adjusting mode and the target drive current value.
For example, the target driving current is 2A (ampere), and if the determined current adjustment mode is full adjustment, the corresponding adjusted driving current is 2A; if the determined current adjusting mode is not adjusted, correspondingly adjusting the driving current to be default current; if the determined current adjustment mode is partial adjustment and the partial adjustment is 60%, the corresponding adjusted driving current is 1.8A.
Specifically, the adjustment driving current is output to the audio interface, the adjustment driving current corresponds to the application of audio output and the audio output device respectively, the audio output device is driven to work based on the adjustment driving current, the application requirement can be met, the sound effect of the audio output device can be guaranteed, and the user experience is improved.
In summary, in an information processing method provided in this embodiment, the determining a target driving current based on a target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface includes: selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current; determining a target application of audio to be output in the electronic equipment; selecting a current adjustment mode corresponding to the target application; and outputting an adjusting driving current to the audio interface based on the current adjusting mode and the target driving current value, wherein the adjusting driving current is obtained by adjusting the target driving current based on the current adjusting mode. In the scheme, the target driving current value is adjusted based on the requirement of the target application of the audio to be output, the adjustment driving current is determined, the adjustment driving current corresponds to the application of the audio output and the audio output device respectively, the audio output device is driven to work based on the adjustment driving current, the requirement of the application can be guaranteed, the sound effect of the audio output device can be guaranteed, and the user experience is improved.
Corresponding to the embodiment of the information processing device provided by the application, the application also provides an application scene applying the information processing device.
Fig. 9 is a schematic diagram illustrating an application scenario of an information processing apparatus provided in the present application, where the information processing apparatus includes a controller 901, a detector 902, and an audio interface 903; the controller is specifically a CODEC (coder-decoder), the detector may be implemented by a specific chip in the electronic device, such as an EC (embedded controller) or an SIO (Super Input/Output ) chip, and may be implemented by a functional unit in the EC/SIO chip structure, such as a HW Monitor (Hardware detection unit), an I2C or an SMBUS bus is connected between the controller and the detector, and information between the two is transmitted through the bus.
The audio interface adopts a four-section type interface, and comprises four pins including 1, 2, 3 and 4, wherein the pin 3 is a grounding pin, and the pins 1, 2 and 4 are a left sound channel pin, a right sound channel pin and a microphone pin respectively. The detector is connected with the right sound channel pin, and the controller is respectively connected with the left sound channel pin and the right sound channel pin.
When the audio interface is connected with the audio output device, the detector outputs detection voltage, the detection voltage is output to the audio output device through the right channel pin, the audio output device generates detection current based on the detection voltage, the detector detects current value through the right channel pin, the current is the detection current generated by the audio output device, and the impedance value of the audio output device is calculated based on the detection voltage and the detection current. The detector transmits the obtained impedance value to the controller through a bus, and the controller selects a corresponding target driving current based on the impedance value, outputs the target driving current to the left channel pin and the right channel pin through audio signals and drives the audio output device to work.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (10)

1. An information processing apparatus comprising:
the audio interface is used for connecting an audio output device;
the detector can be connected with an audio output device based on the audio interface and is used for detecting a target parameter of the audio output device;
the controller is in data communication with the detector through a data bus and can be connected with an audio output device based on the audio interface;
the controller is used for obtaining the target parameters detected by the detector through a data bus to determine a target driving current and outputting the target driving current to an audio output device through the audio interface, and the target driving current is used for driving the audio output device to work.
2. The apparatus of claim 1, the audio interface comprising: at least one signal pin for signal transmission between an electronic device and the audio output apparatus;
the detector is specifically configured to detect a current value of the audio interface through one of the at least one signal pin, determine a target parameter corresponding to the current value based on a relationship between the current value and the target parameter, and characterize a detection current of the audio output device by the current value of the audio interface.
3. The apparatus of any of claims 1-2, the target parameter being an impedance value,
the detector is used for outputting a detection voltage to the audio interface through one of the at least one signal pin so that the audio output device generates the detection current based on the detection voltage.
4. The apparatus of claim 2, the at least one signal pin comprising at least an electrical pin, the electrical pin of the audio interface being connected to the controller,
and the audio signal output by the controller is sent to an audio output device through the electric pin, and the intensity of the audio signal corresponds to the target driving current.
5. An information processing method, the method comprising:
detecting a target parameter of an audio output device through an audio interface in a case where the audio output device is connected to an electronic apparatus through the audio interface of the electronic apparatus;
and determining a target driving current based on the target parameter of the audio output device, and outputting the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
6. The method of claim 5, the electronic device comprising a detector and a controller,
under the condition that the audio output device is connected to the electronic equipment through an audio interface of the electronic equipment, the detector detects a target parameter of the audio output device through the audio interface;
the controller determines a target driving current based on the target parameter of the audio output device, and outputs the target driving current to the audio output device through the audio interface, wherein the target driving current is used for driving the audio output device to work.
7. The method of claim 5, wherein detecting the target parameter of the audio output device over the audio interface when the target parameter is an impedance value comprises:
outputting a preset detection voltage to the audio interface;
obtaining a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the preset detection voltage;
and determining the target parameter corresponding to the current value based on the corresponding relation between the current value and the target parameter, wherein the current value of the audio interface represents the detection current of the audio output device.
8. The method of claim 5, wherein detecting the target parameter of the audio output device over the audio interface when the target parameter is an impedance value comprises:
the audio interface outputs detection voltage;
detecting a current value of the audio interface, wherein the current of the audio interface is a detection current generated by an audio output device based on the detection voltage;
calculating to obtain a resistance value based on the preset detection voltage and the current value;
and determining the impedance value of the audio output device corresponding to the resistance value according to a preset impedance threshold value range mapping rule.
9. The method of claim 5, the determining a target drive current based on a target parameter of the audio output device, the target drive current output to an audio output device through the audio interface, comprising:
selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current;
outputting the target drive current to the audio interface.
10. The method of claim 5, the determining a target drive current based on a target parameter of the audio output device, the target drive current output to an audio output device through the audio interface, comprising:
selecting a target driving current value corresponding to the numerical value of the target parameter from the corresponding relation between the preset target parameter and the driving current;
determining a target application of audio to be output in the electronic equipment;
selecting a current adjustment mode corresponding to the target application;
and outputting an adjusting driving current to the audio interface based on the current adjusting mode and the target driving current value, wherein the adjusting driving current is obtained by adjusting the target driving current based on the current adjusting mode.
CN202010622266.5A 2020-06-30 2020-06-30 Information processing device and method Pending CN111726724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010622266.5A CN111726724A (en) 2020-06-30 2020-06-30 Information processing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010622266.5A CN111726724A (en) 2020-06-30 2020-06-30 Information processing device and method

Publications (1)

Publication Number Publication Date
CN111726724A true CN111726724A (en) 2020-09-29

Family

ID=72570972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010622266.5A Pending CN111726724A (en) 2020-06-30 2020-06-30 Information processing device and method

Country Status (1)

Country Link
CN (1) CN111726724A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602154A (en) * 2015-01-07 2015-05-06 深圳市中兴移动通信有限公司 Full impedance headset output method, device and terminal
CN104837102A (en) * 2014-02-11 2015-08-12 联发科技股份有限公司 Method and electronic device for headphone speaker impedance detection
CN105700613A (en) * 2016-02-14 2016-06-22 惠州Tcl移动通信有限公司 Output power adjusting device and method of mobile terminal
CN106095385A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 A kind of audio method to set up and mobile terminal
CN106303815A (en) * 2015-05-22 2017-01-04 西安中兴新软件有限责任公司 Method for controlling volume and electronic equipment
CN107948790A (en) * 2017-11-30 2018-04-20 北京松果电子有限公司 Earphone recognition methods and device
CN108781083A (en) * 2016-02-22 2018-11-09 思睿逻辑国际半导体有限公司 Direct current (DC) and/or exchange (AC) load detecting for audio coder-decoder
US20180352332A1 (en) * 2017-06-06 2018-12-06 Oculus Vr, Llc Over-ear speaker system for head-mounted display unit
CN109388367A (en) * 2018-09-04 2019-02-26 Oppo广东移动通信有限公司 Audio method of adjustment, device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837102A (en) * 2014-02-11 2015-08-12 联发科技股份有限公司 Method and electronic device for headphone speaker impedance detection
CN104602154A (en) * 2015-01-07 2015-05-06 深圳市中兴移动通信有限公司 Full impedance headset output method, device and terminal
CN106303815A (en) * 2015-05-22 2017-01-04 西安中兴新软件有限责任公司 Method for controlling volume and electronic equipment
CN105700613A (en) * 2016-02-14 2016-06-22 惠州Tcl移动通信有限公司 Output power adjusting device and method of mobile terminal
CN108781083A (en) * 2016-02-22 2018-11-09 思睿逻辑国际半导体有限公司 Direct current (DC) and/or exchange (AC) load detecting for audio coder-decoder
CN106095385A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 A kind of audio method to set up and mobile terminal
US20180352332A1 (en) * 2017-06-06 2018-12-06 Oculus Vr, Llc Over-ear speaker system for head-mounted display unit
CN107948790A (en) * 2017-11-30 2018-04-20 北京松果电子有限公司 Earphone recognition methods and device
CN109388367A (en) * 2018-09-04 2019-02-26 Oppo广东移动通信有限公司 Audio method of adjustment, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3352373B1 (en) Systems and methods for detection of load impedance of a transducer device coupled to an audio device
CN101951446B (en) It is connected to the detection of the ancillary equipment of electronic equipment via audio/video plug, identifies and operate
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
KR101469545B1 (en) Method for processing and audio signal and apparatus for processing an audio signal thereof
US8064613B1 (en) Electret microphone detection using a current source
CN103379420B (en) A kind of method determining earphone line sequence and electronic equipment
JP5161153B2 (en) Audio device recognition apparatus and portable computer
CN105246002B (en) Data transmission circuit, mobile terminal and line control earphone for line control earphone
JP2008529460A (en) Adjusting the current limit threshold based on the power requirements of the receiving device in a system for providing power over a communication link
KR20150100916A (en) Detection circuit
JP2009519518A (en) Control circuit for providing an interface between connectable terminal and peripheral circuit
EP2797346B1 (en) Detection circuit
TWI462396B (en) Signal connecting module, electronic device, and connector identification method thereof
US20110219244A1 (en) Power extracting system and a splitter
WO2021147416A1 (en) Charging control method, electronic device, charging box, and electronic system
JP2009194890A (en) Mobile terminal, audio apparatus discrimination method, audio apparatus discrimination program, and program recording medium
TW201640368A (en) Data transmission system and transmission method thereof
CN111726724A (en) Information processing device and method
CN107908387B (en) Signal transmission circuit, signal transmission system, signal transmission method and intelligent terminal
CN104883644A (en) Information processing method and an electronic device
JPH09148861A (en) Acoustic equipment
CN109769174B (en) Judging circuit and method for positive and negative terminals of MIC (microphone) of earphone and electronic equipment
US9338548B2 (en) Mobile device and corresponding noise-canceling earphone
CN105812980A (en) Earphone
JP5017036B2 (en) Microphone power supply device and balance adjustment method thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200929

RJ01 Rejection of invention patent application after publication