CN109348060B - Control method, device and equipment - Google Patents

Control method, device and equipment Download PDF

Info

Publication number
CN109348060B
CN109348060B CN201811321615.9A CN201811321615A CN109348060B CN 109348060 B CN109348060 B CN 109348060B CN 201811321615 A CN201811321615 A CN 201811321615A CN 109348060 B CN109348060 B CN 109348060B
Authority
CN
China
Prior art keywords
earphone
terminal
communication mode
instruction
headset
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
CN201811321615.9A
Other languages
Chinese (zh)
Other versions
CN109348060A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811321615.9A priority Critical patent/CN109348060B/en
Publication of CN109348060A publication Critical patent/CN109348060A/en
Application granted granted Critical
Publication of CN109348060B publication Critical patent/CN109348060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a control method, a control device and control equipment, wherein the method is applied to a terminal with a data interface, and the method comprises the following steps: detecting a communication mode between an earphone inserted into the data interface and the terminal and a working state of the earphone; if the communication mode is a digital communication mode and the working state of the earphone is a standby state, sending a first instruction to the earphone, wherein the first instruction is used for switching the earphone to an analog communication mode; disconnecting the power link between the terminal and the headset after determining that the headset has switched to the analog communication mode.

Description

Control method, device and equipment
Technical Field
The embodiment of the application relates to electronic technology, and relates to but is not limited to a control method, a control device and control equipment.
Background
With the development of terminal technology, more and more applications are integrated on the terminal to meet the needs of daily life and work of users, so that the dependence of the users on the terminal is stronger and stronger. Meanwhile, due to the requirement of terminal lightness and thinness, the battery design is also increasingly lighter and thinner, and the battery capacity is limited, which brings great challenges to the cruising ability of the terminal. Based on the limited cruising ability of the terminal, how to reduce the power consumption of the terminal becomes a problem generally faced in the industry.
Disclosure of Invention
In view of the above, embodiments of the present application provide a control method, apparatus and device to solve at least one problem in the related art.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a control method, where the method is applied to a terminal having a data interface, and the method includes:
detecting a communication mode between an earphone inserted into the data interface and the terminal and a working state of the earphone;
if the communication mode is a digital communication mode and the working state of the earphone is a standby state, sending a first instruction to the earphone, wherein the first instruction is used for switching the earphone to an analog communication mode;
disconnecting the power link between the terminal and the headset after determining that the headset has switched to the analog communication mode.
In a second aspect, an embodiment of the present application provides another control method, where the method is applied to a headset, where the headset is connected to a terminal through a data interface plugged into the terminal, and the method includes:
receiving a first instruction sent by the terminal, wherein the first instruction is sent by the terminal when the terminal detects that a communication mode between the earphone and the terminal is a digital communication mode and an operating state of the earphone is a standby state;
and switching the communication mode to an analog communication mode so that the terminal disconnects a power supply link with the earphone.
In a third aspect, an embodiment of the present application provides a control device, where the device has a data interface, and the device further includes:
a detection module configured to detect a communication mode between the headset inserted into the data interface and the device, and an operating state of the headset;
the earphone comprises an instruction sending module, a communication module and an earphone control module, wherein the instruction sending module is configured to send a first instruction to the earphone if the communication mode is a digital communication mode and the working state of the earphone is a standby state, and the first instruction is used for switching the earphone to an analog communication mode;
a power control module configured to disconnect a power link between the device and the headset after determining that the headset has switched to the analog communication mode.
In a fourth aspect, an embodiment of the present application provides another control apparatus, where the apparatus is connected to a terminal through a data interface plugged into the terminal, and the apparatus includes:
a receiving module configured to receive a first instruction sent by the terminal, where the first instruction is sent by the terminal when the terminal detects that a communication mode between the device and the terminal is a digital communication mode and an operating state of the device is a standby state;
a switching module configured to switch the communication mode to an analog communication mode so that the terminal disconnects a power supply link with the device.
In a fifth aspect, an embodiment of the present application provides a control device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the steps in the control method according to any one of the above aspects.
In the control method, if the communication mode between an earphone inserted into the data interface and the terminal is detected to be a digital communication mode and the working state of the earphone is a standby state, a first instruction is sent to the earphone so that the earphone is switched to an analog communication mode, and then a power supply link between the terminal and the earphone is disconnected. Therefore, on the premise of not influencing the response of the terminal to the keys of the earphone (namely, controlling the earphone to be in the analog communication mode), the power supply link between the terminal and the earphone is disconnected, so that when the terminal is in the standby state, the terminal does not supply power to the earphone any more, and the power consumption of the terminal is reduced.
Drawings
FIG. 1A is a schematic diagram of a flow chart of an implementation of a control method according to an embodiment of the present application;
fig. 1B is a schematic diagram of a partial circuit structure of a Type-C earphone according to an embodiment of the present application;
FIG. 2A is a schematic diagram of a flow chart of another control method according to an embodiment of the present disclosure;
fig. 2B is a schematic diagram illustrating a connection relationship between a Type-C interface and a 3.5 mm audio interface in a terminal according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a flow chart of another control method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a flow chart of another control method according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a flow chart of another control method according to an embodiment of the present application;
FIG. 6A is a schematic diagram of a control device according to an embodiment of the present disclosure;
FIG. 6B is a schematic diagram of a structure of another control device according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a structure of another control device according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a hardware entity of a control device according to an embodiment of the present application.
Detailed Description
The technical solution of the present application is further elaborated below with reference to the drawings and the embodiments.
With the development of technology, most of the earphones currently support a digital communication mode, that is, support input of digital audio data, after the earphones are inserted into a data interface of a terminal through an earphone plug, if the communication mode between the earphones and the terminal is the digital communication mode, the terminal must continuously supply power to the earphones, and even if the earphones are in a standby state, the power needs to be supplied to the earphones, so that the power consumption of the terminal is greatly increased. However, after the user uses the headset, the user often forgets to pull the headset out, so that the headset is in a standby state for a long time, and the mobile phone still supplies power to the headset at the moment. For example, after a user makes a call using a headset, the user often puts the handset on one side along with the headset. For another example, in order to avoid noise to rest in a roommate at night, a user watches a movie by using an earphone, the user often gets into dream when the movie is played for half, and the earphone is still plugged in a mobile phone. Such a situation causes the headset to be in a standby state for a long time, and the power consumption of the mobile phone is greatly increased because the mobile phone also supplies power to the headset.
Based on this, the embodiments of the present application provide a control method, which is applied to a terminal having a data interface, and in general, the terminal may be various types of devices having control capability in the implementation process, for example, the terminal may include a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, and the like. The functions implemented by the method can be implemented by calling program codes through a processor in the terminal, and the program codes can be stored in a computer storage medium.
Fig. 1A is a schematic view of an implementation flow of a control method according to an embodiment of the present application, and as shown in fig. 1A, the method includes steps S101 to S103:
s101, detecting a communication mode between an earphone inserted into the data interface and the terminal and a working state of the earphone;
in general, whether the communication mode is a digital communication mode or an analog communication mode may be determined by detecting a pin voltage of a pin on a data interface used to characterize the communication mode. For example, taking the data interface as a Type-C interface as an example, as shown in fig. 1B, which shows a partial circuit structure of a Type-C headset, it can be seen from the figure that the switch 11 is connected in parallel with the first resistor 12 on the CC1 pin (i.e., pin a 5) and the second resistor 13 on the CC2 pin (i.e., pin B5) to be grounded, and the control unit 14 is connected to the switch 11 for triggering the switch 11 to open and close. Thus, when the switch 11 is closed, the pin CC1 and the pin CC2 are directly grounded, and the Type-C headset supports an analog communication mode, i.e., can receive analog audio data output by the terminal; when the switch 11 is turned off, the pin CC1 and the pin CC2 are grounded through the first resistor 12 and the second resistor 13, respectively, and the Type-C headset supports a digital communication mode, i.e., can receive digital audio data output by the terminal. Therefore, in practical applications, when the data interface is a Type-C interface, the communication mode between the headset and the terminal, i.e., the currently supported communication mode of the headset, can be determined by detecting the pin voltages on the CC1 pin and the CC2 pin on the interface. For example, if the pin voltages on pin CC1 and pin CC2 are less than a preset voltage threshold, then it is determined that the communications mode currently supported by the headset is an analog communications mode; if the pin voltages on pin CC1 and pin CC2 are greater than or equal to a preset voltage threshold, then it is determined that the communications mode currently supported by the headset is a digital communications mode.
S102, if the communication mode is a digital communication mode and the working state of the earphone is a standby state, sending a first instruction to the earphone, wherein the first instruction is used for switching the earphone to an analog communication mode;
for example, in the above-mentioned part of the circuit in the Type-C headset shown in fig. 1B, when the control unit 14 in the headset receives the first instruction, the control unit 14 triggers the switch 11 to close, so that the headset is switched to the analog communication mode; when the control unit 14 receives a second instruction, which is sent by the terminal after closing the power supply link between the terminal and the headset when the terminal determines that the headset exits the standby state, the control unit 14 triggers the switch 11 to open, thereby causing the headset to switch the communication mode from the analog communication mode to the digital communication mode.
S103, after the earphone is determined to be switched to the analog communication mode, disconnecting a power supply link between the terminal and the earphone.
It will be appreciated that it may be determined whether the headset has switched to the analogue communication mode by detecting a pin voltage on a pin on the data interface that is characteristic of the communication mode (e.g. a CC pin on a Type-C interface). And after determining that the earphone is switched to the analog communication mode, cutting off a power supply link between the terminal and the earphone, for example, disconnecting a connection circuit between a power supply Bus (VBUS) pin on a Type-C interface and a VBUS pin on a Type-C earphone plug.
It should be noted that, switching the earphone to the analog communication mode before disconnecting the power supply link is convenient for a user to wake up the earphone to exit the standby state through an earphone key, that is, when the power supply link is in the power-off state, the mobile phone can also respond to the earphone key.
In an embodiment of the present application, a control method is provided, which is applied to a terminal having a data interface, and in the control method, if it is detected that a communication mode between an earphone inserted into the data interface and the terminal is a digital communication mode and an operating state of the earphone is a standby state, a first instruction is sent to the earphone so that the earphone is switched to an analog communication mode, and then a power supply link between the terminal and the earphone is disconnected. Therefore, on the premise of not influencing the response of the terminal to the earphone key (namely after the earphone is controlled to be in the analog communication mode), a power supply link between the terminal and the earphone is disconnected, so that the terminal does not supply power to the earphone when the earphone is in the standby state, and the power consumption of the terminal is reduced.
Fig. 2A is a schematic view of an implementation flow of another control method according to an embodiment of the present application, where the method is applied to a terminal having a data interface, and as shown in fig. 2A, the method includes steps S201 to S210:
s201, acquiring the working state of the terminal;
s202, determining whether the working state of the terminal is a standby state; if yes, go to step S203; otherwise, returning to execute the step S201;
in practical applications, a signal for indicating an operating state of the terminal may be obtained from a Micro-programmed Control Unit (MCU) in the terminal to determine the operating state of the terminal.
S203, determining the working state of the earphone inserted into the data interface to be a standby state, and then entering the step S204;
it will be appreciated that if the operating state of the terminal is a standby state, then the operating state of the headset must also be a standby state.
S204, detecting whether the communication mode between the earphone and the terminal is a digital communication mode; if yes, go to step S205; otherwise, go to step S207;
s205, sending a first instruction to the earphone, wherein the first instruction is used for enabling the earphone to be switched to an analog communication mode, and then, entering S206;
s206, determining whether the earphone is switched to the analog communication mode; if yes, go to step S207; otherwise, returning to execute step S205;
s207, disconnecting a power supply link between the terminal and the earphone, and then entering a step S208;
s208, detecting whether the earphone exits the standby state; if yes, go to step S209; otherwise, returning to execute the step S208;
it should be noted that the earphone exiting from the standby state does not include the situation that the earphone is unplugged from the data interface, and the embodiments of the present application are implemented on the premise that the earphone plug of the earphone is plugged into the data interface.
In other embodiments, if an operation instruction for waking up the terminal to exit the standby state is received, determining that the headset exits the standby state;
for example, when receiving an unlocking instruction, a mobile phone in a screen locking state determines that the unlocking instruction is an operation instruction for waking up the mobile phone to exit a standby state.
Or, in other embodiments, if it is detected that the connection voltage between the earphone seat on the terminal and the earphone is switched from the first voltage to the second voltage, it is determined that the earphone exits the standby state.
For example, still taking Type-C headphones as an example, the USB Type-C protocol defines an audio adapter accessory mode, which multiplexes four pins of a Type-C interface onto a conventional headphone jack to support analog headphones, i.e., to be able to respond to the keys of headphones in an analog communication mode, as shown in fig. 2B, which shows the connection relationship between a Type-C plug (i.e., a headphone plug) on the headphones and a 3.5 mm audio interface on the terminal, wherein the 3.5 mm audio interface is the original 3.5 mm pin corresponding to the headphones in the analog communication mode, called a headphone jack for short, and the headphone jack corresponds to the pins a6/B6, a7/B7, and A8/B8 on the Type-C plug, respectively, and the codec in the terminal can determine whether the keys on the headphones are pressed by detecting whether there is a change in the voltages on these pins, that is, when a key on the headset is pressed, the terminal can detect a voltage change on these pins, i.e., a change in connection voltage between the headset holder on the terminal and the headset, thereby determining whether the headset exits the standby state.
S209, closing a power supply link between the terminal and the earphone, and then entering a step S210;
s210, sending a second instruction to the earphone, wherein the second instruction is used for switching the earphone from the analog communication mode to the digital communication mode.
It will be appreciated that the headset is only capable of executing the second instruction after the power link has been closed.
Fig. 3 is a schematic diagram of an implementation flow of another control method according to an embodiment of the present application, where the method is applied to a terminal having a data interface, and an earphone is connected to the terminal by being plugged into the data interface through an earphone plug, as shown in fig. 3, the method includes steps S301 to S311:
s301, detecting whether audio data are input or output in the data interface; if yes, executing step S302; otherwise, returning to execute the step S301;
s302, obtaining Input Output (IO) time of the audio data, and then entering step S303;
here, it should be noted that the IO time refers to a time when audio data is currently output.
S303, after the IO time, detecting whether audio data pass through the data interface within a preset time length; if yes, returning to execute the step S302; otherwise, go to step S304;
it is understood that if the data interface has no audio data input or output within a preset time period after the IO time, it may be determined that the headset enters a standby state; if the data interface has audio data input or output within the preset time duration after the IO time, when the step S302 is executed again, the obtained IO time is the IO time corresponding to the current audio data input or output.
S304, determining the working state of the earphone to be a standby state, and then entering the step S305;
s305, detecting whether the communication mode between the earphone and the terminal is a digital communication mode; if yes, go to step S306; otherwise, go to step S308;
s306, sending a first instruction to the earphone, wherein the first instruction is used for enabling the earphone to be switched to an analog communication mode, and then, entering the step S307;
s307, determining whether the earphone is switched to the analog communication mode; if yes, go to step S308;
s308, disconnecting a power supply link between the terminal and the earphone, and then entering the step S309;
s309, if an operation instruction for waking up the terminal to exit the standby state is received, or if it is detected that the connection voltage between the earphone seat on the terminal and the earphone is switched from a first voltage to a second voltage, determining that the earphone exits the standby state, and then, entering the step S310;
here, it should be noted that, after receiving the operation instruction for waking up the terminal to exit the standby state, it is further required to detect whether the earphone plug of the earphone is still plugged in the data interface of the terminal, and if the earphone plug of the earphone is already unplugged from the data interface, the execution is ended so far, and step S310 and step S311 are not executed any more; if the earphone plug of the earphone is not pulled out of the data interface and the earphone is still connected with the terminal, the process goes to step S310.
S310, closing a power supply link between the terminal and the earphone, and then entering step S311;
s311, sending a second instruction to the earphone, wherein the second instruction is used for switching the earphone from the analog communication mode to the digital communication mode.
Fig. 4 is a schematic view of an implementation flow of another control method according to an embodiment of the present application, where the method is applied to an earphone, and the earphone is connected to a terminal through a data interface plugged into the terminal, as shown in fig. 4, the method includes steps S401 to S402:
s401, receiving a first instruction sent by the terminal, wherein the first instruction is sent by the terminal when the terminal detects that a communication mode between the earphone and the terminal is a digital communication mode and a working state of the earphone is a standby state;
s402, switching the communication mode to an analog communication mode so that the terminal can break a power supply link with the earphone.
In other embodiments, after the terminal closes the power supply link with the headset, the method further includes steps S403 to S404:
s403, receiving a second instruction sent by the terminal, wherein the second instruction is sent by the terminal after a power supply link between the terminal and the earphone is closed when the terminal determines that the earphone exits the standby state;
s404, switching the communication mode to the digital communication mode.
Fig. 5 is a schematic view of an implementation flow of another control method according to an embodiment of the present application, and as shown in fig. 5, the method includes steps S501 to S509:
s501, the terminal 51 with the data interface 511 detects the working state of the earphone 52 inserted into the data interface;
s502, if the working state of the earphone is the standby state, the terminal detects the communication mode with the earphone;
s503, if the communication mode is a digital communication mode, the terminal sends a first instruction to the earphone, wherein the first instruction is used for switching the earphone to an analog communication mode;
in other embodiments, if the communication mode is an analog communication mode and the operating state of the headset is a standby state, the terminal directly disconnects the power supply link with the headset without switching the communication mode of the headset.
S504, the earphone receives and executes the first instruction, the communication mode is switched to an analog communication mode, and then the step S505 is carried out;
s505, the earphone sends a response signal to the terminal to inform that the terminal is switched to the analog communication mode;
s506, the terminal receives the response signal and disconnects a power supply link between the terminal and the earphone;
s507, if the terminal detects that the earphone exits the standby state, the terminal closes a power supply link with the earphone, and then the step S508 is carried out;
s508, the terminal sends a second instruction to the earphone, wherein the second instruction is used for enabling the earphone to be switched from the analog communication mode to the digital communication mode;
s509, the earphone receives and executes the second instruction, and switches the communication mode to the digital communication mode.
Based on the foregoing embodiments, the present application provides a control device, where the control device includes modules and units included in the modules, and may be implemented by a processor in a terminal; it can also be realized by a specific logic circuit; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 6A is a schematic structural diagram of a control device according to an embodiment of the present application, and as shown in fig. 6A, the device 600 includes a detection module 601, an instruction sending module 602, and a power supply control module 603, where:
a detection module 601 configured to detect a communication mode between the headset inserted into the data interface and the apparatus 600, and an operating state of the headset;
an instruction sending module 602, configured to send a first instruction to the headset if the communication mode is a digital communication mode and the working state of the headset is a standby state, where the first instruction is used to switch the headset to an analog communication mode;
a power control module 603 configured to disconnect a power link between the apparatus 600 and the headset after determining that the headset has switched to the analog communication mode.
In other embodiments, the power supply control module 603 is further configured to:
if the communication mode is an analog communication mode and the operational state of the headset is a standby state, the power link between the device 600 and the headset is disconnected.
In other embodiments, the power supply control module 603 is further configured to:
if it is determined that the headset exits the standby state, the power supply link between the apparatus 600 and the headset is closed, and then the instruction sending module is triggered to send a second instruction to the headset, where the second instruction is used to switch the headset from the analog communication mode to the digital communication mode.
In other embodiments, the detecting module 601 includes:
a first acquiring unit configured to acquire an operating state of the apparatus 600;
a first determining unit configured to determine that the operating state of the headset is the standby state if the operating state of the apparatus 600 is the standby state.
In other embodiments, the detecting module 601 includes:
the second obtaining unit is configured to obtain IO time of the audio data when the data interface is detected to have audio data input or output;
and the second determining unit is configured to determine that the working state of the earphone is a standby state after the IO time if the data interface is detected to have no audio data passing within a preset time length.
In other embodiments, as shown in fig. 6B, the apparatus 600 further comprises:
a determining module 604 configured to determine that the headset exits the standby state if an operation instruction for waking up the apparatus 600 to exit the standby state is received; or, configured to determine that the headset exits the standby state if it is detected that a connection voltage between a headset holder on the device 600 and the headset is switched from a first voltage to a second voltage.
An embodiment of the present application provides another control device, and fig. 7 is a schematic structural diagram of another control device according to an embodiment of the present application, and as shown in fig. 7, the device 700 includes:
a receiving module 701 configured to receive a first instruction sent by the terminal, where the first instruction is sent by the terminal when the terminal detects that a communication mode between the apparatus 700 and the terminal is a digital communication mode and an operating state of the apparatus 700 is a standby state;
a switching module 702 configured to switch the communication mode to an analog communication mode so that the terminal disconnects a power supply link with the apparatus 700.
In other embodiments of the present invention, the substrate may be,
the receiving module 701 is further configured to receive a second instruction sent by the terminal, where the second instruction is sent by the terminal after closing a power supply link between the terminal and the apparatus 700 when the terminal determines that the apparatus 700 exits the standby state;
the switching module 702 is further configured to switch the communication mode to the digital communication mode.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the control method is implemented in the form of a software functional module and sold or used as a standalone product, the control method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially embodied in the form of a software product stored in a storage medium, and including instructions for enabling a terminal (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) or a headset to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present application provides a control device, fig. 8 is a schematic diagram of a hardware entity of the control device in the embodiment of the present application, and as shown in fig. 8, the hardware entity of the control device 800 includes: comprising a memory 801 and a processor 802, said memory 801 storing a computer program operable on the processor 802, said processor 802 implementing the steps in the control method provided in the above described embodiments when executing said program. It should be noted that the control device 800 may be an earphone or a terminal.
The Memory 801 is configured to store instructions and applications executable by the processor 802, and when the control device 800 is the terminal, the Memory 801 may further buffer data (for example, image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 802 and modules in the terminal, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
Correspondingly, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the control method provided in the above-described embodiments.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially embodied in the form of a software product stored in a storage medium, and including instructions for enabling a terminal (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) or a headset to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A control method, applied to a terminal having a data interface, the method comprising:
detecting a communication mode between an earphone inserted into the data interface and the terminal and a working state of the earphone;
if the communication mode is a digital communication mode and the working state of the earphone is a standby state, sending a first instruction to the earphone, wherein the first instruction is used for switching the earphone to an analog communication mode;
after determining that the headset has switched to the analog communication mode, disconnecting a power supply link between the terminal and the headset;
if the communication mode is the analog communication mode and the working state of the earphone is the standby state, disconnecting a power supply link between the terminal and the earphone;
if the earphone is determined to exit the standby state, closing a power supply link between the terminal and the earphone; wherein the earphone exiting the standby state does not include the earphone being unplugged from the data interface;
sending a second instruction to the headset, the second instruction for causing the headset to switch from the analog communication mode to the digital communication mode.
2. The method of claim 1, wherein the detecting the operational state of the headset comprises:
acquiring the working state of the terminal; if the working state of the terminal is the standby state, determining that the working state of the earphone is the standby state;
alternatively, the first and second electrodes may be,
when the data interface is detected to have audio data input or output, the input/output IO time of the audio data is acquired; and after the IO time, if the data interface is detected to have no audio data passing within a preset time, determining that the working state of the earphone is a standby state.
3. The method of claim 1, wherein after said disconnecting the power link between the terminal and the headset, the method further comprises:
if an operation instruction for awakening the terminal to exit the standby state is received, determining that the earphone exits the standby state;
or, if it is detected that the connection voltage between the earphone seat on the terminal and the earphone is switched from the first voltage to the second voltage, determining that the earphone exits the standby state.
4. A control method applied to a headset connected to a terminal through a data interface plugged into the terminal, the method comprising:
receiving a first instruction sent by the terminal, wherein the first instruction is sent by the terminal when the terminal detects that a communication mode between the earphone and the terminal is a digital communication mode and an operating state of the earphone is a standby state;
switching the communication mode to an analog communication mode according to the first instruction so that the terminal disconnects a power supply link with the earphone;
after the terminal closes a power supply link between the terminal and the earphone, receiving a second instruction sent by the terminal, wherein the second instruction is sent by the terminal after the power supply link between the terminal and the earphone is closed when the terminal determines that the earphone exits the standby state; wherein the earphone exiting the standby state does not include the earphone being unplugged from the data interface;
and switching the communication mode to the digital communication mode according to the second instruction.
5. A control device, the device having a data interface, the device further comprising:
a detection module configured to detect a communication mode between the headset inserted into the data interface and the device, and an operating state of the headset;
the earphone comprises an instruction sending module, a communication module and an earphone control module, wherein the instruction sending module is configured to send a first instruction to the earphone if the communication mode is a digital communication mode and the working state of the earphone is a standby state, and the first instruction is used for switching the earphone to an analog communication mode;
a power control module configured to disconnect a power link between the device and the headset after determining that the headset has switched to the analog communication mode;
the power supply control module is further configured to: disconnecting a power supply link between the device and the headset if the communication mode is an analog communication mode and the operating state of the headset is a standby state;
the power supply control module is further configured to: closing a power supply link between the device and the headset if it is determined that the headset exits the standby state; wherein the earphone exiting the standby state does not include the earphone being unplugged from the data interface; and triggering the instruction sending module to send a second instruction to the earphone, wherein the second instruction is used for switching the earphone from the analog communication mode to the digital communication mode.
6. A control device, wherein the device is connected to a terminal via a data interface plugged into the terminal, the device comprising:
a receiving module configured to receive a first instruction sent by the terminal, where the first instruction is sent by the terminal when the terminal detects that a communication mode between the device and the terminal is a digital communication mode and an operating state of the device is a standby state;
the switching module is configured to switch the communication mode to an analog communication mode according to the first instruction so that the terminal disconnects a power supply link with the device;
a receiving module, further configured to receive a second instruction sent by the terminal, where the second instruction is sent by the terminal after a power supply link between the terminal and the device is closed when the terminal determines that the device exits the standby state; wherein the device exiting the standby state does not include the device unplugging from the data interface;
the switching module is further configured to switch the communication mode to the digital communication mode according to the second instruction.
7. A control device comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps in the control method of any one of claims 1 to 3 or claim 4 when executing the program.
CN201811321615.9A 2018-11-07 2018-11-07 Control method, device and equipment Active CN109348060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811321615.9A CN109348060B (en) 2018-11-07 2018-11-07 Control method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811321615.9A CN109348060B (en) 2018-11-07 2018-11-07 Control method, device and equipment

Publications (2)

Publication Number Publication Date
CN109348060A CN109348060A (en) 2019-02-15
CN109348060B true CN109348060B (en) 2021-06-01

Family

ID=65312697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811321615.9A Active CN109348060B (en) 2018-11-07 2018-11-07 Control method, device and equipment

Country Status (1)

Country Link
CN (1) CN109348060B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114772A (en) * 2019-06-20 2020-12-22 傲基科技股份有限公司 Voice interaction device, control method and equipment thereof, and computer storage medium
CN115022452B (en) * 2022-06-13 2024-04-02 浙江地芯引力科技有限公司 Communication method, device, equipment and storage medium of audio equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009017039A (en) * 2007-07-02 2009-01-22 Ricoh Co Ltd Image photographing device
JP2010072710A (en) * 2008-09-16 2010-04-02 Minakuchi Laboratory Digital image processing computer system having programmable toggle switch

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635902A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Audio interface compatible with digital audio device and implementation method
CN105704607A (en) * 2016-04-29 2016-06-22 乐视控股(北京)有限公司 Method and equipment for switching earphone modes
CN107122037B (en) * 2017-04-21 2023-11-03 三明市脉源数字文化创意有限公司 Method, device and system for reducing power consumption of Type-C interface
CN207968826U (en) * 2018-04-08 2018-10-12 歌尔科技有限公司 A kind of digital simulation TypeC earphones

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009017039A (en) * 2007-07-02 2009-01-22 Ricoh Co Ltd Image photographing device
JP2010072710A (en) * 2008-09-16 2010-04-02 Minakuchi Laboratory Digital image processing computer system having programmable toggle switch

Also Published As

Publication number Publication date
CN109348060A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US11102697B2 (en) Method for controlling earphone switching and earphone
US8340721B2 (en) Notebook computer and cell phone assembly
EP3780328B1 (en) Reverse charging device
US20110101913A1 (en) Electronic device and power source control device
US20090176540A1 (en) Audio selection control for personal communication devices
US20120254479A1 (en) System and Method for Supplementing and/or Modifying Operations of a Mobile Computing Device Using a Cover
CN113422864A (en) Method, terminal and system for selecting Bluetooth device
JP4395845B2 (en) Electronic device and program
WO2021077611A1 (en) Battery charging method, battery charging apparatus and storage medium
KR20110137190A (en) Method for power management of mobile communication terminal and mobile communication terminal using this method
CN109348060B (en) Control method, device and equipment
US20090197578A1 (en) Mobile wireless device
JP6353979B2 (en) Method, apparatus and system for supplying power to an active noise reduction headset
US20150113301A1 (en) Charging method and mobile electronic device
CN111949107B (en) Method and device for controlling electronic equipment comprising USB Type-C interface and electronic equipment
CN104679795B (en) Scene mode switching method and device and mobile terminal
EP2284718B1 (en) Apparatus and method for determining type of accessory in a portable terminal
CN109525919B (en) On-off control device, on-off control method, system and storage medium
WO2018201943A1 (en) Device control method, device and system
JP2019185771A (en) Method, device for processing data of bluetooth speaker, and bluetooth speaker
JP2013153244A (en) Terminal device and charge control method and program
CN109586125B (en) Type-C adapter, terminal and electronic equipment
KR20040069516A (en) Portable terminal having power-saving mode function and control method thereof
JP2014003508A (en) Portable audio output device
CN111147799B (en) Switching method and processing equipment

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