CN115022452A - Communication method, device and equipment of audio equipment and storage medium - Google Patents
Communication method, device and equipment of audio equipment and storage medium Download PDFInfo
- Publication number
- CN115022452A CN115022452A CN202210661144.6A CN202210661144A CN115022452A CN 115022452 A CN115022452 A CN 115022452A CN 202210661144 A CN202210661144 A CN 202210661144A CN 115022452 A CN115022452 A CN 115022452A
- Authority
- CN
- China
- Prior art keywords
- audio
- authentication
- equipment
- terminal equipment
- communication
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 130
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000005540 biological transmission Effects 0.000 claims description 19
- 230000004044 response Effects 0.000 claims description 11
- 230000000977 initiatory effect Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000002452 interceptive effect Effects 0.000 claims description 5
- 230000002618 waking effect Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011038 discontinuous diafiltration by volume reduction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
Abstract
The application provides a communication method, a communication device, equipment and a storage medium of audio equipment, and belongs to the technical field of communication. The method comprises the following steps: when the terminal equipment is in a low power consumption state, responding to key triggering operation and generating a wake-up instruction; awakening an authentication chip of the audio equipment based on the awakening instruction, and performing communication authentication with the terminal equipment through the authentication chip; and if the authentication is successful, sending a target instruction to the terminal equipment, wherein the target instruction is generated based on a trigger key corresponding to the key trigger operation. The audio equipment capable of communicating based on the lightning low-voltage differential signal mode can operate the terminal equipment when the terminal equipment is in a screen-off state or a screen-on state is not in motion, and therefore operability of the terminal equipment is improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method, apparatus, device, and storage medium for an audio device.
Background
When a user uses audio equipment such as earphones and earphone converters, the user usually needs to use the equipment to send some control signals to the terminal equipment, for example: volume up, play stop, etc.
However, in the prior art, only the audio device that performs communication by using the original protocol of the terminal device can perform communication through the audio device when the terminal device is turned off or turned on. For audio devices that do not communicate using an original protocol, especially for audio devices that are communicatively connected via an interface in a lighting-LVDS (lighting-low-voltage differential signaling) manner, when a terminal device is turned off or is not turned on, communication with the audio devices in such a communication manner is usually disconnected, so that communication between the audio devices and the terminal device cannot be realized in such a case.
This results in that when using such audio devices, the user cannot control the terminal device through the audio device when the terminal device is in a screen-off state or a screen-on state is not active, which reduces the operability of the terminal device.
Disclosure of Invention
The application aims to provide a communication method, a communication device, an audio device and a storage medium of an audio device, and the audio device can operate the terminal device when the terminal device is in a screen-off state or a screen-on state without action based on a lightning low-voltage differential signal mode, so that the operability of the terminal device is improved.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, a communication method of an audio device is provided, where the method is applied to a main control chip in the audio device, the audio device is in communication connection with a terminal device, the audio device includes a boost circuit, the main control chip and an authentication chip, the main control chip is respectively connected with the boost circuit and the authentication chip, and the boost circuit is configured to boost a power supply voltage provided by the terminal device to the audio device to a preset voltage when the terminal device is in a low power consumption state, so that the main control chip and the authentication chip operate normally; the method comprises the following steps:
when the terminal equipment is in a low power consumption state, responding to key triggering operation and generating a wake-up instruction;
awakening an authentication chip of the audio equipment based on the awakening instruction, and performing communication authentication with the terminal equipment through the authentication chip;
and if the authentication is successful, sending a target instruction to the terminal equipment, wherein the target instruction is generated based on a trigger key corresponding to the key trigger operation.
Optionally, the method further comprises:
detecting whether a communication broadcast packet exists;
if the audio equipment does not exist, determining that the terminal equipment is in a low power consumption state, and when the terminal equipment is in the low power consumption state, the power supply voltage provided by the terminal equipment is a first preset threshold value and the audio equipment is disconnected from the terminal equipment; and when the working voltage of the audio is the first preset threshold value, the audio equipment cannot work normally.
Optionally, determining that the terminal device is in a low power consumption state includes:
if the communication broadcast packet does not exist, acquiring a power supply voltage provided by the terminal equipment;
if the power supply voltage is a first preset threshold value, determining that the terminal equipment is in a low power consumption state;
the method further comprises the following steps:
and if the power supply voltage is a second preset threshold value, determining that the terminal equipment is in a communication stop state, when the terminal equipment is in the communication stop state, disconnecting the audio equipment from the terminal equipment, wherein the second preset threshold value is larger than the first preset threshold value, and when the working voltage of the audio is the second preset threshold value, the audio equipment normally works.
Optionally, waking up the authentication chip of the audio device based on the wake-up instruction includes:
and sending a wake-up instruction to the authentication chip through the wake-up pin so that the authentication chip is activated based on the wake-up instruction and generates a wake-up pulse signal.
Optionally, the communication authentication with the terminal device through the authentication chip includes:
sending a wake-up pulse signal to the terminal equipment through the authentication chip so that the terminal equipment performs interactive authentication with the authentication chip based on the wake-up pulse signal to obtain a generated authentication result;
and receiving the authentication result through the authentication chip, and determining that the terminal equipment is out of the low power consumption state based on the authentication result.
Optionally, before sending the target instruction to the terminal device, the method further includes:
determining whether the basic broadcasting packet data between the audio device and the terminal device is completely transmitted;
and if so, sending a target instruction to the terminal equipment.
Optionally, after determining whether the transmission of the basic broadcast packet data between the audio device and the terminal device is completed, the method further includes:
and if the sending is not completed after the preset time, initializing the main control chip of the audio equipment.
On the other hand, the communication device of the audio device is provided, and the communication device is applied to a main control chip in the audio device, the audio device is in communication connection with a terminal device, the audio device includes a boost circuit, the main control chip and an authentication chip, the main control chip is respectively connected with the boost circuit and the authentication chip, the boost circuit is used for boosting a power supply voltage provided by the terminal device to the audio device to a preset voltage when the terminal device is in a low power consumption state, so that the main control chip and the authentication chip work normally; the device includes: the system comprises a response module, an authentication initiating module and an instruction transmission module;
the response module is used for responding to key triggering operation and generating a wake-up instruction when the terminal equipment is in a low power consumption state;
the authentication initiating module is used for awakening an authentication chip of the audio equipment based on the awakening instruction and carrying out communication authentication with the terminal equipment through the authentication chip;
and the instruction transmission module is used for sending a target instruction to the terminal equipment if the authentication is successful, wherein the target instruction is an instruction generated by a trigger key corresponding to the key trigger operation.
Optionally, the apparatus further comprises: a state determination module; a state determination module, specifically configured to detect whether a communication broadcast packet exists; if the audio equipment does not exist, determining that the terminal equipment is in a low power consumption state, and when the terminal equipment is in the low power consumption state, the power supply voltage provided by the terminal equipment is a first preset threshold value and the audio equipment is disconnected from the terminal equipment; and when the working voltage of the audio is the first preset threshold value, the audio equipment cannot work normally.
Optionally, the state determination module is specifically configured to obtain a power supply voltage provided by the terminal device if the communication broadcast packet does not exist; if the power supply voltage is a first preset threshold value, determining that the terminal equipment is in a low power consumption state; the state determining module is further configured to determine that the terminal device is in a communication stop state if the power supply voltage is a second preset threshold, disconnect communication between the audio device and the terminal device when the terminal device is in the communication stop state, the second preset threshold is greater than the first preset threshold, and enable the audio device to normally operate when the working voltage of the audio is the second preset threshold.
Optionally, the authentication initiating module is specifically configured to send a wake-up instruction to the authentication chip through the wake-up pin, so that the authentication chip is activated based on the wake-up instruction and generates a wake-up pulse signal.
Optionally, the authentication initiating module is specifically configured to send a wake-up pulse signal to the terminal device through the authentication chip, so that the terminal device performs interactive authentication with the authentication chip based on the wake-up pulse signal to obtain a generated authentication result; and receiving the authentication result through the authentication chip, and determining that the terminal equipment is out of the low power consumption state based on the authentication result.
Optionally, the instruction transmission module is further configured to determine whether sending of the basic broadcast packet data between the audio device and the terminal device is completed; and if so, sending a target instruction to the terminal equipment.
Optionally, the instruction transmission module is further configured to initialize the main control chip of the audio device if the sending is not completed after the preset time is exceeded.
In another aspect of the embodiments of the present application, there is provided a computer device, including: the audio equipment comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and when the processor executes the computer program, the steps of the communication method of the audio equipment are realized.
In another aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the steps of the communication method of an audio device.
The beneficial effects of the embodiment of the application include:
in the communication method, the communication device, the communication equipment and the storage medium of the audio equipment, a wake-up instruction can be generated in response to key triggering operation when the terminal equipment is in a low power consumption state; awakening an authentication chip of the audio equipment based on the awakening instruction, and performing communication authentication with the terminal equipment through the authentication chip; and if the authentication is successful, sending a target instruction to the terminal equipment. The audio equipment comprises a lifting circuit, the lifting circuit is used for raising the power supply voltage provided for the audio equipment by the terminal equipment to a preset voltage when the terminal equipment is in a low power consumption state, so that the main control chip and the authentication chip work normally, under the condition, the audio equipment can work normally, communication interaction between the audio equipment and the terminal equipment can be realized by waking up the authentication chip, communication connection between the terminal equipment and the audio equipment is realized again, and operability of the terminal equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an audio device according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a communication method of an audio device according to an embodiment of the present application;
fig. 3 is another schematic flowchart of a communication method of an audio device according to an embodiment of the present application;
fig. 4 is another schematic flowchart of a communication method of an audio device according to an embodiment of the present application;
fig. 5 is another schematic flowchart of a communication method of an audio device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a communication device of an audio device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
For the audio equipment which does not adopt the original protocol for communication, when the terminal equipment is in the screen-off state, the audio equipment is disconnected from communication, because the power supply voltage of the audio equipment is mainly provided by the terminal equipment, and when the terminal equipment is in the screen-off state, the power supply voltage can be reduced, only part of modules of the audio equipment can be positioned to maintain basic functions, and the work needing higher voltage such as communication awakening and the like can not be realized, therefore, the audio equipment can not realize the communication with the terminal equipment.
In order to solve the above problems in the prior art, the embodiment of the present application provides a communication method of an audio device, and a specific structure of the audio device is specifically explained below.
Fig. 1 is a schematic structural diagram of an audio device according to an embodiment of the present application, and referring to fig. 1, the audio device 100 includes: the main control chip 110 is connected with the boost circuit 130 and the authentication chip 120, and the boost circuit 130 is used for boosting the power supply voltage provided by the terminal device 200 to the audio device to a preset voltage when the terminal device is in a low power consumption state, so that the main control chip 110 and the authentication chip 120 work normally.
The audio device 100 may specifically be a device such as an earphone, an earphone adapter, or a sound box that communicates through a lighting-LVDS interface, and is not limited herein.
The terminal device 200 may specifically be a terminal device that can communicate with the audio device 100 in a lighting-LVDS manner, for example: the electronic device may be a mobile phone, a tablet computer, a game machine, a dedicated electronic device, or the like, and is not limited herein.
For the audio device 100, the main control chip 110 may be a Micro Controller Unit (MCU) or other types of control units, and the like, which is not limited herein specifically, and any control function may be implemented.
The authentication chip 120 may specifically be a chip having an authentication function, and the authentication chip 120 may be awakened by the main control chip 110 and communicate with the terminal device 200 after awakening to implement authentication, where the authentication may specifically be authentication of a communication protocol.
The boost circuit 130 may be a boost circuit, and may boost the voltage of the entire audio device 100 to a preset voltage when the supply voltage provided by the terminal device does not satisfy the preset voltage, so as to implement normal operation of the entire audio device 100.
Alternatively, during operation, the terminal device 200 may provide a supply voltage to the audio device 100, so that the audio device 100 operates normally.
It should be noted that, if the audio device 100 is a device such as an earphone or a sound box that directly has an audio playing function, the device may further include physical keys, for example: a key for controlling volume up/down, a key for controlling audio play/stop, etc.; if the audio device 100 is a device without an audio playing function, such as an adapter, the audio device 100 may also be connected to another device with an audio playing function, and the device may also have the physical key.
When the audio device 100 is operating normally, communication with the terminal device 200 may be achieved in response to a trigger operation of a physical key. In the audio device 100, the main control chip 110 may be directly connected to the terminal device 200 in a communication manner; the boost circuit 130 may be connected to the main control chip 110 and the terminal device 200, respectively; authentication chip 120 may also be communicatively coupled to terminal device 200.
The following explains a specific implementation procedure of the communication method of the audio device provided in the embodiment of the present application, with reference to the specific structure of the audio device and the connection relationship thereof.
Fig. 2 is a flowchart illustrating a communication method of an audio device according to an embodiment of the present application, please refer to fig. 2, where the method includes:
s210: and when the terminal equipment is in a low power consumption state, responding to the key triggering operation and generating a wake-up instruction.
Optionally, an execution main body of the method may specifically be a main control chip in the audio device.
It should be noted that, the current operating state of the terminal device may be determined first, for example: may include a normal operating state and a low power consumption state. When the terminal device is determined to be in the low power consumption state, a wake-up instruction may be generated in response to a key trigger operation.
The key triggering operation may be a physical key on the audio device or a physical key of another device in communication connection with the audio device (when the audio device is an earphone or a sound box, the physical key is a key of the earphone or the sound box, and when the audio device is an earphone adapter, the physical key may be a physical key of the earphone or the sound box in communication connection with the audio device).
In the physical structure, after the physical key is triggered, a related instruction can be sent to the main control chip, so that the main control chip can know that the corresponding physical key is triggered in time, and a wake-up instruction can be generated based on the triggered instruction.
S220: and awakening the authentication chip of the audio equipment based on the awakening instruction, and performing communication authentication with the terminal equipment through the authentication chip.
Optionally, the main control chip and the authentication chip may be specifically connected through a wake-up pin of the main control chip, and after the main control chip generates a wake-up instruction, the authentication chip may be woken up through the wake-up instruction.
It should be noted that the authentication chip performs corresponding work only after receiving the wake-up instruction, and if the authentication chip receives the wake-up instruction, the authentication chip always remains in a dormant state.
Optionally, the authentication chip may be further in communication connection with the terminal device, and after the authentication chip receives the wake-up instruction and wakes up, the authentication chip may perform communication authentication with the terminal device, specifically, the terminal device may obtain a communication protocol supported by the audio device, and if a requirement condition of the terminal device is met, the authentication may be successful.
Correspondingly, after the authentication is successful, the authentication chip may receive the authentication result sent by the terminal device, and may feed back the authentication condition to the main control chip based on the authentication result, so that the main control chip determines whether the authentication is successful or failed.
S230: and if the authentication is successful, sending a target instruction to the terminal equipment.
The target instruction is generated based on a trigger key corresponding to the key trigger operation.
Optionally, after the authentication result is determined to be that the authentication is successful, the main control chip may directly communicate with the terminal device, specifically, send a target instruction to the terminal device, and generate different target instructions based on different key trigger instructions.
For example: if the triggered key is a volume increasing key, the target instruction sent to the terminal equipment can be to control the output volume signal of the terminal equipment to be increased; correspondingly, if the triggered key is a volume reduction key, the target instruction sent to the terminal device may be to control the output volume signal of the terminal device to be reduced; if the triggered key is an audio playing/stopping key, the target instruction sent to the terminal device may be to control the input start or stop of the terminal device to output an audio signal.
According to the communication method of the audio equipment, when the terminal equipment is in a low power consumption state, a wake-up instruction can be generated in response to key triggering operation; awakening an authentication chip of the audio equipment based on the awakening instruction, and performing communication authentication with the terminal equipment through the authentication chip; and if the authentication is successful, sending a target instruction to the terminal equipment. The audio equipment comprises a lifting circuit, the lifting circuit is used for raising the power supply voltage provided for the audio equipment by the terminal equipment to a preset voltage when the terminal equipment is in a low power consumption state, so that the main control chip and the authentication chip work normally, under the condition, the audio equipment can work normally, communication interaction between the audio equipment and the terminal equipment can be realized by waking up the authentication chip, communication connection between the terminal equipment and the audio equipment is realized again, and operability of the terminal equipment is improved.
A specific procedure for implementing the state determination in the communication method of the audio device provided in the embodiment of the present application is specifically explained below.
Fig. 3 is another schematic flow chart of a communication method of an audio device according to an embodiment of the present application, please refer to fig. 3, where the method further includes:
s310: it is detected whether a communication broadcast packet exists.
Optionally, the main control chip may monitor whether a communication broadcast packet exists currently in real time, where the communication broadcast packet may be data sent when the main control chip interacts with the terminal device.
The detection may be performed at intervals, for example: 10 μ s or 100 μ s, etc., but not limited thereto, the communication broadcast packet may be labeled by a digital signal after being detected, for example: 1 may indicate the presence of a communication broadcast packet; 0 may indicate that there is no communication broadcast packet. The marked information can be temporarily stored through a register on the main control chip, and when the communication broadcast packet needs to be determined whether or not, the digital signal in the register can be checked so as to determine the existence of the communication broadcast packet.
S320: and if not, determining that the terminal equipment is in a low power consumption state.
When the terminal equipment is in a low power consumption state, the power supply voltage provided by the terminal equipment is a first preset threshold value, and the audio equipment is disconnected from the terminal equipment in communication; and when the working voltage of the audio is the first preset threshold value, the audio equipment cannot work normally.
It should be noted that the voltage of the first preset threshold may be, for example, 1V, and at this voltage, the audio device can only maintain partial functions, for example: the function of detecting the broadcast packet in real time or other basic functions for maintaining the chip to work; due to the presence of the boost circuit, the voltage can be boosted in the working process, so that the voltage is greater than 1V, for example, 3.8V, and under the voltage, the audio equipment can realize all functions.
Another specific implementation procedure of the communication method of the audio device provided in the embodiment of the present application is specifically explained below.
Fig. 4 is another schematic flow chart of a communication method of an audio device according to an embodiment of the present application, please refer to fig. 4, where determining that a terminal device is in a low power consumption state includes:
s410: and if the communication broadcast packet does not exist, acquiring the power supply voltage provided by the terminal equipment.
Optionally, after determining that there is no communication broadcast packet, further performing state determination, and specifically acquiring a supply voltage provided by the terminal device.
The different operating states in which the audio device is located may be determined based on the different supply voltages.
S420: and if the power supply voltage is the first preset threshold value, determining that the terminal equipment is in a low power consumption state.
Optionally, the power supply voltage of the first preset threshold may be 1V, in this state, it may be determined that the terminal device is in a low power consumption state, and when the boost circuit obtains that the power supply voltage is the first preset threshold, the boost circuit may automatically start to perform voltage boosting.
The actual condition corresponding to the low power consumption state may specifically be that the terminal device turns off the screen.
The method further comprises the following steps:
s430: and if the power supply voltage is the second preset threshold value, determining that the terminal equipment is in a communication stop state.
When the terminal equipment is in a communication stop state, the audio equipment and the terminal equipment are disconnected from communication, the second preset threshold is larger than the first preset threshold, and when the working voltage of the audio is the second preset threshold, the audio equipment works normally.
Optionally, the second preset threshold may be 3.8V, that is, a voltage value obtained by pulling up the voltage by the boosting circuit, and under the condition of the power supply voltage, it may be determined that the terminal device is in the communication stop state.
The actual situation corresponding to the communication stop state may specifically be that the terminal device is on screen and does not act.
When the terminal equipment is in a communication stop state, the work of a circuit is not required to be promoted, and the communication between the audio equipment and the terminal equipment can be recovered only after the authentication of the steps is carried out through the authentication chip.
Optionally, waking up the authentication chip of the audio device based on the wake-up instruction includes: and sending a wake-up instruction to the authentication chip through the wake-up pin so that the authentication chip is activated based on the wake-up instruction and generates a wake-up pulse signal.
The main control chip and the authentication chip can be connected through a wake-up pin of the main control chip, and after the main control chip generates a wake-up instruction, the wake-up instruction can be sent to the authentication chip through the wake-up pin.
Optionally, the authentication chip may be further in communication connection with the terminal device, and after receiving the wake-up instruction, the authentication chip may activate itself based on the wake-up instruction, and may generate a wake-up pulse signal based on the wake-up instruction, and implement communication authentication with the terminal device through the wake-up pulse signal. The wake-up pulse signal may include protocol information and the like that is to be verified.
Next, a further specific implementation procedure of the communication method of the audio device provided in the embodiment of the present application is specifically explained.
Fig. 5 is another schematic flow chart of a communication method of an audio device according to an embodiment of the present application, please refer to fig. 5, where performing communication authentication with a terminal device through an authentication chip includes:
s510: and sending a wake-up pulse signal to the terminal equipment through the authentication chip so that the terminal equipment performs interactive authentication with the authentication chip based on the wake-up pulse signal to obtain a generated authentication result.
Optionally, after the authentication chip is activated, a wake-up pulse signal generated based on the wake-up signal may be sent to the terminal device, and the terminal device may receive the wake-up pulse signal and perform corresponding authentication to determine whether a communication protocol used by the audio device satisfies a communication condition of the terminal device. If so, the authentication can be determined to be successful; if not, the authentication failure can be determined, then no matter the authentication success or failure, after the authentication is completed, an authentication result can be returned to the authentication chip of the audio equipment, and under the condition of successful authentication, the power supply of the terminal equipment can be recovered, namely, the terminal equipment is separated from the screen-off state.
And when the terminal equipment is separated from the screen extinguishing state, the terminal equipment can correspondingly communicate with a main control chip of the audio equipment.
S520: and receiving the authentication result through the authentication chip, and determining that the terminal equipment is out of the low power consumption state based on the authentication result.
Optionally, after the terminal device generates the authentication result, the authentication chip may receive the authentication result, and may send the authentication result to the main control chip, and the main control chip may determine whether the authentication is successful based on the authentication result, and if so, it indicates that the current terminal device is in a state where communication can be performed, and the main control chip may normally communicate with the terminal device, that is, may send the communication broadcast packet.
Accordingly, after the terminal device can normally communicate with the audio device, it can be determined that the terminal device is out of the low power consumption state and enters a normal operating state.
Optionally, before sending the target instruction to the terminal device, the method further includes: determining whether the basic broadcasting packet data between the audio device and the terminal device is completely transmitted; and if so, sending a target instruction to the terminal equipment.
Optionally, before the audio device sends the target instruction to the terminal device, it may be determined whether the audio device is currently in a state in which the audio device can send the target instruction, and it may be determined whether the sending of the basic broadcast packet data between the audio device and the terminal device is completed, where the basic broadcast packet may be basic data required by communication, and the communication may be performed normally only after the sending of the basic broadcast packet is completed.
When it is determined that the basic broadcast packet data transmission between the audio device and the terminal device is completed, the target instruction may be transmitted to the terminal device.
Optionally, after determining whether the transmission of the basic broadcast packet data between the audio device and the terminal device is completed, the method further includes: and if the sending is not completed after the preset time, initializing the main control chip of the audio equipment.
Optionally, if the transmission of the basic broadcast packet is still not completed after a preset time in the process of determining whether the transmission of the basic broadcast packet is completed, it may be determined that there is an error in the transmission of the basic broadcast packet, and the main control chip may be initialized and then re-execute the above steps to transmit the target instruction.
For example, if the transmission completion is detected after heat is sealed for more than 100ms, a timeout reset may be performed to perform an initialization process.
The following describes apparatuses, devices, storage media, and the like corresponding to the communication method of the audio device provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and will not be described again below.
Fig. 6 is a schematic structural diagram of a communication apparatus of an audio device according to an embodiment of the present application, please refer to fig. 6, which is a communication apparatus of an audio device applied to a main control chip in an audio device, the audio device is in communication connection with a terminal device, the audio device includes a boost circuit, the main control chip and an authentication chip, the main control chip is respectively connected with the boost circuit and the authentication chip, the boost circuit is configured to boost a power supply voltage provided by the terminal device for the audio device to a preset voltage when the terminal device is in a low power consumption state, so that the main control chip and the authentication chip operate normally; the device includes: a response module 610, an authentication initiation module 620 and an instruction transmission module 630;
a response module 610, configured to generate a wake-up instruction in response to a key trigger operation when the terminal device is in a low power consumption state;
the authentication initiating module 620 is configured to wake up an authentication chip of the audio device based on the wake-up instruction, and perform communication authentication with the terminal device through the authentication chip;
and the instruction transmission module 630 is configured to send a target instruction to the terminal device if the authentication is successful, where the target instruction is an instruction generated based on a trigger key corresponding to the key trigger operation.
Optionally, the apparatus further comprises: a status determination module 640; a status determining module 640, specifically configured to detect whether a communication broadcast packet exists; if the audio equipment does not exist, determining that the terminal equipment is in a low power consumption state, and when the terminal equipment is in the low power consumption state, the power supply voltage provided by the terminal equipment is a first preset threshold value and the audio equipment is disconnected from the terminal equipment; and when the working voltage of the audio frequency is a first preset threshold value, the audio frequency equipment cannot work normally.
Optionally, the state determining module 640 is specifically configured to obtain a power supply voltage provided by the terminal device if the communication broadcast packet does not exist; if the power supply voltage is a first preset threshold value, determining that the terminal equipment is in a low power consumption state; the state determining module is further configured to determine that the terminal device is in a communication stop state if the power supply voltage is a second preset threshold, disconnect communication between the audio device and the terminal device when the terminal device is in the communication stop state, the second preset threshold is greater than the first preset threshold, and enable the audio device to normally operate when the working voltage of the audio is the second preset threshold.
Optionally, the authentication initiating module 620 is specifically configured to send a wake-up instruction to the authentication chip through the wake-up pin, so that the authentication chip is activated based on the wake-up instruction and generates a wake-up pulse signal.
Optionally, the authentication initiating module 620 is specifically configured to send a wake-up pulse signal to the terminal device through the authentication chip, so that the terminal device performs interactive authentication with the authentication chip based on the wake-up pulse signal to obtain a generated authentication result; and receiving the authentication result through the authentication chip, and determining that the terminal equipment is out of the low power consumption state based on the authentication result.
Optionally, the instruction transmission module 630 is further configured to determine whether the basic broadcast packet data between the audio device and the terminal device is completely transmitted; and if so, sending a target instruction to the terminal equipment.
Optionally, the instruction transmission module 630 is further configured to initialize the main control chip of the audio device if the sending is not completed after the preset time is exceeded.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application, and referring to fig. 7, the computer device includes: the memory 710 and the processor 720, wherein the memory 710 stores a computer program operable on the processor 720, and the processor 720 executes the computer program to implement the steps of the communication method of the audio device.
The computer device may be a main control chip of the audio device.
In another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the communication method of the audio device.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be 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, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are 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.
The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific 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 the 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.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. The communication method of the audio equipment is characterized in that the method is applied to a main control chip in the audio equipment, the audio equipment is in communication connection with terminal equipment, the audio equipment comprises a lifting circuit, the main control chip and an authentication chip, the main control chip is respectively connected with the lifting circuit and the authentication chip, and the lifting circuit is used for raising the power supply voltage provided by the terminal equipment for the audio equipment to a preset voltage when the terminal equipment is in a low power consumption state so as to enable the main control chip and the authentication chip to work normally; the method comprises the following steps:
when the terminal equipment is in a low power consumption state, responding to key triggering operation and generating a wake-up instruction;
awakening an authentication chip of the audio equipment based on the awakening instruction, and performing communication authentication with the terminal equipment through the authentication chip;
and if the authentication is successful, sending a target instruction to the terminal equipment, wherein the target instruction is generated based on a trigger key corresponding to the key trigger operation.
2. The communication method of an audio device according to claim 1, wherein the method further comprises:
detecting whether a communication broadcast packet exists;
if the audio equipment does not exist, determining that the terminal equipment is in the low power consumption state, and when the terminal equipment is in the low power consumption state, the power supply voltage provided by the terminal equipment is a first preset threshold value and the audio equipment is disconnected from the terminal equipment; and when the working voltage of the audio frequency is the first preset threshold value, the audio frequency equipment cannot work normally.
3. The audio device communication method of claim 2, wherein the determining that the terminal device is in the low power consumption state comprises:
if the communication broadcast packet does not exist, acquiring a power supply voltage provided by the terminal equipment;
if the power supply voltage is a first preset threshold value, determining that the terminal equipment is in the low power consumption state;
the method further comprises the following steps:
if the power supply voltage is a second preset threshold value, determining that the terminal equipment is in a communication stop state, when the terminal equipment is in the communication stop state, disconnecting communication between the audio equipment and the terminal equipment, wherein the second preset threshold value is larger than the first preset threshold value, and when the working voltage of the audio is the second preset threshold value, the audio equipment works normally.
4. The communication method of the audio device according to claim 1, wherein the waking up the authentication chip of the audio device based on the wake-up instruction comprises:
and sending a wake-up instruction to the authentication chip through a wake-up pin so that the authentication chip is activated based on the wake-up instruction and generates a wake-up pulse signal.
5. The communication method of the audio device according to claim 4, wherein the performing communication authentication with the terminal device through the authentication chip includes:
sending a wake-up pulse signal to the terminal equipment through the authentication chip so that the terminal equipment performs interactive authentication with the authentication chip based on the wake-up pulse signal to obtain a generated authentication result;
and receiving the authentication result through the authentication chip, and determining that the terminal equipment is out of the low power consumption state based on the authentication result.
6. The communication method of the audio device according to claim 1, wherein before the transmitting of the target instruction to the terminal device, the method further comprises:
determining whether transmission of basic broadcasting packet data between the audio device and the terminal device is completed;
and if so, sending a target instruction to the terminal equipment.
7. The communication method of an audio device according to claim 6, wherein after the determination of whether transmission of the base broadcast packet data between the audio device and the terminal device is completed, the method further comprises:
and if the sending is not completed after the preset time, initializing the main control chip of the audio equipment.
8. The communication device of the audio equipment is characterized in that the device is applied to a main control chip in the audio equipment, the audio equipment is in communication connection with terminal equipment, the audio equipment comprises a lifting circuit, the main control chip and an authentication chip, the main control chip is respectively connected with the lifting circuit and the authentication chip, and the lifting circuit is used for raising the power supply voltage provided by the terminal equipment for the audio equipment to a preset voltage when the terminal equipment is in a low power consumption state so as to enable the main control chip and the authentication chip to work normally; the device comprises: the system comprises a response module, an authentication initiating module and an instruction transmission module;
the response module is used for responding to key triggering operation and generating a wake-up instruction when the terminal equipment is in a low power consumption state;
the authentication initiating module is used for awakening an authentication chip of the audio equipment based on the awakening instruction and carrying out communication authentication with the terminal equipment through the authentication chip;
and the instruction transmission module is used for sending a target instruction to the terminal equipment if the authentication is successful, wherein the target instruction is generated based on a trigger key corresponding to the key trigger operation.
9. A computer device, comprising: memory in which a computer program is stored which is executable on the processor, a processor which, when executing the computer program, carries out the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210661144.6A CN115022452B (en) | 2022-06-13 | 2022-06-13 | Communication method, device, equipment and storage medium of audio equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210661144.6A CN115022452B (en) | 2022-06-13 | 2022-06-13 | Communication method, device, equipment and storage medium of audio equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115022452A true CN115022452A (en) | 2022-09-06 |
CN115022452B CN115022452B (en) | 2024-04-02 |
Family
ID=83074864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210661144.6A Active CN115022452B (en) | 2022-06-13 | 2022-06-13 | Communication method, device, equipment and storage medium of audio equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115022452B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014146509A1 (en) * | 2013-03-19 | 2014-09-25 | 福建联迪商用设备有限公司 | Startup wakeup method for external terminal of audio device |
CN107027163A (en) * | 2017-06-08 | 2017-08-08 | 歌尔股份有限公司 | TypeC earphones wake up mobile phone circuit |
WO2017166608A1 (en) * | 2016-03-31 | 2017-10-05 | 乐视控股(北京)有限公司 | Method and apparatus for adjusting playback state of multimedia, electronic device, and storage medium |
CN207200919U (en) * | 2017-08-07 | 2018-04-06 | 歌尔科技有限公司 | The earphone of TypeC interfaces |
CN109348060A (en) * | 2018-11-07 | 2019-02-15 | Oppo广东移动通信有限公司 | A kind of control method and device, equipment |
CN109388225A (en) * | 2018-09-30 | 2019-02-26 | 深圳市致行科技有限公司 | Key triggers energy-saving control method, storage medium, control device and its terminal |
CN109672950A (en) * | 2017-10-13 | 2019-04-23 | 华为终端(东莞)有限公司 | A kind of power-saving circuit and electricity saving method based on Type-C earphone |
CN110312235A (en) * | 2019-05-16 | 2019-10-08 | 深圳市豪恩声学股份有限公司 | Audio frequency apparatus, operation method, device and the storage medium that real-time voice wakes up |
CN112449332A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | Bluetooth connection method and electronic equipment |
CN113259809A (en) * | 2021-06-17 | 2021-08-13 | 浙江地芯引力科技有限公司 | Authentication device, adapter device and adapter |
WO2021248942A1 (en) * | 2020-06-12 | 2021-12-16 | 深圳大学 | Intelligent earphone-based user identification and emotion monitoring method |
CN113840266A (en) * | 2020-06-24 | 2021-12-24 | 华为技术有限公司 | Bluetooth pairing method, device, system, electronic equipment and storage medium |
EP3968144A1 (en) * | 2019-06-29 | 2022-03-16 | Huawei Technologies Co., Ltd. | Voice control method and related apparatus |
CN114327651A (en) * | 2021-12-21 | 2022-04-12 | 上海深聪半导体有限责任公司 | Chip wake-up method, system, electronic device and readable storage medium |
-
2022
- 2022-06-13 CN CN202210661144.6A patent/CN115022452B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014146509A1 (en) * | 2013-03-19 | 2014-09-25 | 福建联迪商用设备有限公司 | Startup wakeup method for external terminal of audio device |
WO2017166608A1 (en) * | 2016-03-31 | 2017-10-05 | 乐视控股(北京)有限公司 | Method and apparatus for adjusting playback state of multimedia, electronic device, and storage medium |
CN107027163A (en) * | 2017-06-08 | 2017-08-08 | 歌尔股份有限公司 | TypeC earphones wake up mobile phone circuit |
CN207200919U (en) * | 2017-08-07 | 2018-04-06 | 歌尔科技有限公司 | The earphone of TypeC interfaces |
CN109672950A (en) * | 2017-10-13 | 2019-04-23 | 华为终端(东莞)有限公司 | A kind of power-saving circuit and electricity saving method based on Type-C earphone |
CN109388225A (en) * | 2018-09-30 | 2019-02-26 | 深圳市致行科技有限公司 | Key triggers energy-saving control method, storage medium, control device and its terminal |
CN109348060A (en) * | 2018-11-07 | 2019-02-15 | Oppo广东移动通信有限公司 | A kind of control method and device, equipment |
CN110312235A (en) * | 2019-05-16 | 2019-10-08 | 深圳市豪恩声学股份有限公司 | Audio frequency apparatus, operation method, device and the storage medium that real-time voice wakes up |
EP3968144A1 (en) * | 2019-06-29 | 2022-03-16 | Huawei Technologies Co., Ltd. | Voice control method and related apparatus |
CN112449332A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | Bluetooth connection method and electronic equipment |
WO2021248942A1 (en) * | 2020-06-12 | 2021-12-16 | 深圳大学 | Intelligent earphone-based user identification and emotion monitoring method |
CN113840266A (en) * | 2020-06-24 | 2021-12-24 | 华为技术有限公司 | Bluetooth pairing method, device, system, electronic equipment and storage medium |
CN113259809A (en) * | 2021-06-17 | 2021-08-13 | 浙江地芯引力科技有限公司 | Authentication device, adapter device and adapter |
CN114327651A (en) * | 2021-12-21 | 2022-04-12 | 上海深聪半导体有限责任公司 | Chip wake-up method, system, electronic device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115022452B (en) | 2024-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3547715B1 (en) | Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker | |
CN110769319B (en) | Standby wakeup interaction method and device | |
CN111103963A (en) | Fingerprint module starting method and device, storage medium and terminal | |
CN102437917B (en) | A kind of network wake-up method, network wake-up device and computer | |
CN115622177A (en) | Charging method, mobile terminal and storage medium | |
CN109688393B (en) | Screen projection control method and first electronic device | |
CN106066769B (en) | A kind of processing method and mobile terminal of mobile terminal | |
US20170086038A1 (en) | Triggering application action using non-standard controls | |
CN112559082B (en) | Terminal device, NFC clock control method, NFC module and medium | |
CN114035477A (en) | Equipment awakening method, device and system | |
US20150318719A1 (en) | Charging method and electronic device | |
WO2012106948A1 (en) | Network connection method and communication terminal | |
CN115022452B (en) | Communication method, device, equipment and storage medium of audio equipment | |
CN109831714B (en) | Method and device for identifying earphone keys and electronic equipment | |
WO2023088198A1 (en) | Network connection method and apparatus, and electronic device | |
CN110168511B (en) | Electronic equipment and method and device for reducing power consumption | |
JP6806072B2 (en) | Communication equipment, information processing equipment, and communication methods | |
CN101751294B (en) | BIOS instruction control method | |
CN108459838B (en) | Information processing method and electronic equipment | |
CN106681950B (en) | Signal transmission processing method and device | |
CN107239354B (en) | Method and terminal for notifying screen-off event | |
CN113542206A (en) | Image processing method and device and computer readable storage medium | |
CN111201522A (en) | Universal serial bus equipment and power saving method thereof | |
CN112449327A (en) | Method and device for switching working states of wireless data interaction terminal | |
CN109817162B (en) | Notification message response method, processor, driving chip and display device |
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 |