CN112689320B - Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium - Google Patents

Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium Download PDF

Info

Publication number
CN112689320B
CN112689320B CN202011563269.2A CN202011563269A CN112689320B CN 112689320 B CN112689320 B CN 112689320B CN 202011563269 A CN202011563269 A CN 202011563269A CN 112689320 B CN112689320 B CN 112689320B
Authority
CN
China
Prior art keywords
module
slave
processor
host
timer
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
CN202011563269.2A
Other languages
Chinese (zh)
Other versions
CN112689320A (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.)
Dangbei Network Technology Co ltd
Original Assignee
Dangbei Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dangbei Network Technology Co ltd filed Critical Dangbei Network Technology Co ltd
Priority to CN202011563269.2A priority Critical patent/CN112689320B/en
Publication of CN112689320A publication Critical patent/CN112689320A/en
Application granted granted Critical
Publication of CN112689320B publication Critical patent/CN112689320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a power consumption optimization method of a 2.4G wireless audio system, the 2.4G wireless audio system and a computer readable storage medium, wherein the method comprises the following steps: if the second processor detects that the duration of disconnection is longer than a first preset duration, the second processor controls a second 2.4G module, a loudspeaker and a microphone of the slave to enter a standby state, then the second processor enters the standby state, and the second 2.4G module sets a timer to be interrupted by itself; when the timer of the second 2.4G module of the slave machine is interrupted and timed to be over, the second 2.4G module is automatically awakened; if the second 2.4G module monitors a broadcast signal containing a connectable identifier within a second preset time period, the second 2.4G module establishes an air connection with the first 2.4G module of the host and exits from a standby state, and the second 2.4G module sends a wake-up pulse to a wake-up pin of the second processor to wake up the second processor of the slave. According to the method and the system, the slave can continue to operate for a longer time under the condition that the use of a user is not influenced through a reasonable automatic dormancy and awakening strategy.

Description

Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
Technical Field
The present application relates to the field of 2.4G wireless connection technologies, and in particular, to a power consumption optimization method for a 2.4G wireless audio system, and a computer-readable storage medium.
Background
In a conventional 2.4G wireless audio system, the system generally includes two devices, namely a host (host) and a slave (slave), the slave is used as an extension of a function of the host, the host and the slave are connected and communicated through a 2.4G wireless connection module, the slave is generally configured with a battery for convenience of movement, and when the slave normally works, the slave works by supplying power to the battery. However, the slave generally has two states of startup and shutdown, and cannot give consideration to normal use and longer endurance time of a user of the slave.
Disclosure of Invention
The embodiments of the present application mainly aim to provide a power consumption optimization method for a 2.4G wireless audio system, and a computer-readable storage medium, which are used to solve the technical problem that a slave cannot give consideration to both normal use and longer endurance time of a user in the 2.4G wireless audio system.
In order to achieve the above object, an embodiment of the present application provides a power consumption optimization method for a 2.4G wireless audio system, where the 2.4G wireless audio system includes a master and a slave, and the master includes a first processor and a first 2.4G module, where the first processor and the first 2.4G module are connected to each other through a communication bus; the slave machine comprises a second processor and a second 2.4G module which are mutually connected through a communication bus, the second 2.4G module is electrically connected with a wake-up pin of the second processor in a one-way mode, and the second processor is externally connected with a loudspeaker and a microphone; the first 2.4G module and the second 2.4G module are connected based on an audio channel and a signaling channel;
the power consumption optimization method comprises the following steps:
after the host computer is started, the first 2.4G module continuously broadcasts a broadcast signal containing a connectable identifier in a signaling channel;
after the slave is started, the second 2.4G module scans a signaling channel, and after a broadcast signal which is broadcasted by the host and contains a connectable identifier is received, the second 2.4G module of the slave is in air connection with the first 2.4G module of the host;
detecting whether the disconnection duration of the second 2.4G module and the first 2.4G module of the host computer is longer than a first preset duration or not by a second processor of the slave computer; if the second processor detects that the disconnection duration is longer than a first preset duration, the second processor controls a second 2.4G module, a loudspeaker and a microphone of the slave to enter a standby state, then the second processor enters the standby state, and the second 2.4G module sets a timer to interrupt;
when the timer of the second 2.4G module of the slave machine is interrupted and timed to be over, the second 2.4G module is automatically awakened; the second 2.4G module scans a signaling channel and monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within a second preset time;
if the second 2.4G module does not monitor the broadcast signal containing the connectable identifier within a second preset time period, the second 2.4G module enters a standby state and automatically sets the timer to interrupt again; if the second 2.4G module monitors the broadcast signal containing the connectable identifier within a second preset time, the second 2.4G module establishes an air connection with the first 2.4G module of the host and exits from a standby state, and the second 2.4G module sends a wake-up pulse to a wake-up pin of the second processor to wake up the second processor of the slave.
Optionally, after the second processor detects that the off duration is longer than the first preset duration, the power consumption optimization method further includes:
the second processor detects whether the slave is in a charging state; and if the slave is not in the charging state, executing the step that the second processor controls the second 2.4G module, the loudspeaker and the microphone of the slave to enter the standby state.
Optionally, after the step of detecting whether the slave is in the charging state by the second processor, the method further includes:
if the slave is in a charging state, the second 2.4G module of the slave scans a signaling channel and monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier; if the broadcast signal which is broadcasted by the first 2.4G module of the host and contains the connectable identifier is monitored, the second 2.4G module of the slave and the first 2.4G module of the host establish air connection.
Optionally, the power consumption optimization method further includes:
and if the slave is converted from the charging state to the non-charging state, executing a step of detecting whether the disconnection duration of the disconnection between the second 2.4G module and the first 2.4G module of the master is greater than a first preset duration by a second processor of the slave.
Optionally, after the slave and the host are connected with the first 2.4G module through the second 2.4G module, an audio channel and a data channel are established, the audio channel transmits audio encoded data, and the signaling channel transmits instruction data;
the first processor of the host and the first 2.4G module adopt a USB interface to simultaneously transmit the audio coding data and the instruction data.
Optionally, the power consumption optimization method further includes:
and the second 2.4G module of the slave computer counts the continuous interruption times of the end of the timer interruption, and if the continuous interruption times are greater than the preset critical times, the second 2.4G module increases the timer interruption time length so that the second 2.4G module can set the timer interruption based on the new timer interruption time length.
Optionally, an acceleration sensor electrically connected with the second 2.4G module is arranged in the slave computer;
after the step of counting the number of continuous interrupts of which the timer interrupt timing ends continuously occurs by the second 2.4G module of the slave, the method further includes:
if the continuous interruption times are larger than the preset maximum times, the second 2.4G module cancels the timer interruption, activates an acceleration sensor in the slave to detect the acceleration of the slave, and then the second 2.4G module enters a standby state;
if the acceleration sensor detects that the acceleration of the slave computer is larger than a preset acceleration value, waking up the second 2.4G module, recovering the initial value of the timing duration interrupted by the timer, executing the step that the second 2.4G module scans a signaling channel, and monitoring whether the first 2.4G module of the host computer broadcasts a broadcast signal containing a connectable identifier within the second preset duration.
Optionally, the first preset duration is longer than a timing duration of timer interruption, and the timing duration is longer than a second preset duration.
In order to achieve the above object, the present application further provides a 2.4G wireless audio system, where the 2.4G wireless audio system includes a master and a slave, and the master includes a first processor and a first 2.4G module, where the first processor and the first 2.4G module are connected to each other through a communication bus; the slave comprises a second processor and a second 2.4G module which are mutually connected through a communication bus, the second 2.4G module is electrically connected with a wake-up pin of the second processor in a one-way mode, and the second processor is externally connected with a loudspeaker and a microphone; the first 2.4G module and the second 2.4G module are connected based on an audio channel and a signaling channel;
the master further includes a first memory and a computer program stored on the first memory and executable on the first processor, the slave further includes a second memory and a computer program stored on the second memory and executable on the second processor, and the computer program, when executed by the first processor and the second processor, implements the steps of the power consumption optimization method of the 2.4G wireless audio system described above.
To achieve the above object, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of the power consumption optimization method of the 2.4G wireless audio system.
The method comprises the steps that a second processor of a slave computer detects whether the disconnection duration of the second 2.4G module and the first 2.4G module of a host computer is longer than a first preset duration; if the disconnection duration is longer than the first preset duration, the second processor controls a second 2.4G module, a loudspeaker and a microphone of the slave computer to enter a standby state, then the second processor enters the standby state, and the second 2.4G module sets a timer to interrupt; when the timer is interrupted and the timing is finished, the second 2.4G module autonomously wakes up and scans a signaling channel, monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within a second preset time period, if the broadcast signal containing the connectable identifier is not monitored, the second 2.4G module enters a standby state and automatically sets the timer interrupt again, if the broadcast signal containing the connectable identifier is monitored, the second 2.4G module establishes air connection with the first 2.4G module of the host and exits the standby state, the second 2.4G module sends a wake-up pulse to a wake-up pin of the second processor, and the slave wakes up the second processor, so that the slave is automatically started up and connected with the host to work when the host is started up and operated, and the slave automatically follows the host to enter the standby state when the host is shut down/standby, the electric quantity of a battery is saved, and the slave can continue to operate for a longer time without influencing the use of a user through reasonable automatic sleep and wake-up strategy.
Drawings
FIG. 1 is a block diagram of an embodiment of a 2.4G wireless audio system of the present application;
fig. 2 is a flowchart illustrating a power consumption optimization method of the 2.4G wireless audio system according to an embodiment of the present application.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The application provides a power consumption optimization method of a 2.4G wireless audio system, the 2.4G wireless audio system and a computer readable storage medium, and mainly relates to a 2.4G wireless connection technology, a single chip computer control technology and a standby dormancy and quick awakening technology of an electronic system.
Wherein, 2.4G wireless connection technique contrast bluetooth, WIFI etc. can self-defined transmission protocol, uses more in a flexible way. The 2.4G wireless connection module can customize a frequency hopping algorithm, transmission power, data coding, a transmission strategy and the like, and can optimize the best effect according to the implementation condition of the whole system. The 2.4G wireless connection technology has more and more application scenes in the field of audio transmission in the last decade, and is generally applied to products such as wireless earphones, wireless remote controllers and wireless sound boxes. Modern processors, system On Chip (SOC), single-Chip computing units mostly support standby sleep and external interrupt wake-up functions.
The invention provides a power consumption optimization method for slave equipment of a 2.4G wireless audio system with a battery. The 2.4G wireless audio system comprises two devices, namely a host (host) and a slave (slave), wherein the host is normally connected with a power supply, and the slave is provided with a battery and a charging device and has three states of starting, shutting down and waiting. The power consumption optimization method can lead the slave to automatically adjust the self startup and standby states according to the startup and shutdown state of the host under the condition that the battery is not charged, lead the slave to automatically enter the standby state when the host is shut down, lead the slave to automatically start and be automatically connected with the host when the host is started, lead the slave to achieve the purposes of reducing the power consumption, prolonging the endurance time and not influencing the use of users through reasonable automatic dormancy and awakening strategies when the host is powered on and works.
The application specifically provides a power consumption optimization method of a 2.4G wireless audio system, and referring to fig. 1, the 2.4G wireless audio system comprises a host and a slave, wherein the host comprises a first processor and a first 2.4G module, which are connected through a communication bus; the slave comprises a second processor and a second 2.4G module which are mutually connected through a communication bus, the second 2.4G module is electrically connected with a wake-up pin of the second processor in a one-way mode, and the second processor is externally connected with a loudspeaker and a microphone; the first 2.4G module and the second 2.4G module are connected based on an audio channel and a signaling channel; the audio channel is used for transmitting audio coding data, and the signaling channel is used for transmitting various types of instruction data;
the host computer is responsible for networking, computing, displaying, playing multimedia, UI (User Interface) interaction and other functions, such as television, projection, commercial flat lamp multimedia interaction equipment. The slave machine has two functions of recording (MIC, microphone) and playing (speaker), which are equivalent to the expanded wireless MIC and wireless speaker of the master machine, and the master machine and the slave machine are connected and communicated through a 2.4G wireless connection module. In addition, the slave machine is provided with a battery for convenient movement. When the slave is not charged, the slave works by supplying power by the battery.
After the slave and the host are connected with the first 2.4G module through the second 2.4G module, an audio channel and a data channel are established, the audio channel transmits audio coding data, and a signaling channel transmits instruction data;
an I2S (Inter-IC Sound) interface is adopted between a second processor and a second 2.4G module of the slave computer to transmit audio coding data, a UART (Universal Asynchronous Receiver/Transmitter) interface is adopted to transmit instruction data, and a USB (Universal Serial Bus) interface is adopted between a first processor and a first 2.4G module of the host computer to simultaneously transmit the audio coding data and the instruction data.
Referring to fig. 2, the power consumption optimization method includes the steps of:
step S10, after the host computer is started, the first 2.4G module continuously broadcasts a broadcast signal containing a connectable identifier in a signaling channel;
after the host is started, the first 2.4G module of the host continuously broadcasts a broadcast signal containing a connectable identifier in a signaling channel to tell a slave machine scanning the signaling channel that the host can establish wireless connection; the slave scans the signaling channel, detects that the broadcast signal of the host includes the connectable identification, and the slave knows that the host is powered on at the moment and can establish wireless connection.
Step S20, after the slave is started, the second 2.4G module scans a signaling channel, and after a broadcast signal which is broadcasted by the host and contains a connectable identifier is received, the second 2.4G module of the slave is connected with the first 2.4G module of the host in the air;
step S30, a second processor of the slave machine detects whether the disconnection duration of the second 2.4G module and the first 2.4G module of the master machine is longer than a first preset duration or not; if the second processor detects that the disconnection duration is longer than a first preset duration, the second processor controls a second 2.4G module, a loudspeaker and a microphone of the slave to enter a standby state, then the second processor enters the standby state, and the second 2.4G module sets a timer to interrupt;
after the second 2.4G module of the slave machine establishes an over-the-air connection with the first 2.4G module of the master machine, the second processor of the slave machine periodically detects whether the second 2.4G module is normally connected with the first 2.4G module of the master machine, specifically, the second processor of the slave machine sends a query instruction to the second 2.4G module through the UART interface, and the second 2.4G module returns a connection state (connection or disconnection) to the second processor, so that the second processor timely detects whether the second 2.4G module is normally connected with the first 2.4G module of the master machine.
After the host is shut down or the slave is far away from the host and exceeds the working range, the second processor of the slave detects that the second 2.4G module is disconnected with the first 2.4G module of the host, and the second processor counts the disconnection duration of the disconnection between the second 2.4G module and the first 2.4G module. If the disconnection duration is longer than a first preset duration (for example, 30 seconds), the second processor of the slave computer sends an instruction to the second 2.4G module of the slave computer through the UART interface to enable the second 2.4G module of the slave computer to enter a standby state (namely, a standby working mode), then the second processor of the slave computer closes an external loudspeaker and a microphone, and then the second processor of the slave computer also enters the standby state, so that the whole system of the slave computer enters the standby state, and the power supply of a battery of the slave computer is saved.
In addition, the second 2.4G module is also a system on chip, the second 2.4G module has an arithmetic unit inside, after receiving the standby instruction sent by the second processor, the second 2.4G module automatically sets a timer interrupt and then enters a standby state, and after the timer interrupt is finished, the second 2.4G module can be waken up again to work.
Step S40, when the timer of the second 2.4G module of the slave machine is interrupted and the time is up, the second 2.4G module is automatically waken up; the second 2.4G module scans a signaling channel and monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within a second preset time;
step S50, if the second 2.4G module does not monitor the broadcast signal containing the connectable identifier within a second preset time, the second 2.4G module enters a standby state and automatically sets the timer to interrupt again; if the second 2.4G module monitors a broadcast signal containing a connectable identifier within a second preset time period, the second 2.4G module establishes an air connection with the first 2.4G module of the host and exits from a standby state, and the second 2.4G module sends a wake-up pulse to a wake-up pin of the second processor to wake up the second processor of the slave.
After the second 2.4G module of the slave is awakened from the timed dormancy standby, the second 2.4G module of the slave starts scanning the signaling channel, and monitors whether the first 2.4G module of the master starts working, if the broadcast signal containing the connectable identifier of the first 2.4G module of the master cannot be scanned within a second preset time (generally set to 100 ms), the second 2.4G module of the slave enters the set timer interrupt again to be timed dormancy, and the process is repeated. In practice, the interval of the timer interrupt automatic awakening of the second 2.4G module of the slave is most suitable in 2-5 seconds, excessive power consumption is avoided, and the state of the host can be detected at the first time.
When the host computer is started up again or the slave computer returns to the working range of the host computer, the first 2.4G module of the host computer continuously sends a broadcast signal containing a connectable identification in a signaling channel. The slave machine second 2.4G module can sense the broadcast signal which is broadcasted by the host machine and contains the connectable identification after waking up from the timing dormancy, and after sensing the broadcast which can be connected by the host machine, the slave machine and the host machine are connected again and quit the dormant state.
And after the second 2.4G module of the slave is connected with the first 2.4G module of the host and exits from the sleep standby state, sending a wake-up pulse to a wake-up pin of a second processor of the slave to wake up the second processor of the slave to start working.
In this embodiment, the slave second processor detects whether the disconnection duration of the second 2.4G module and the first 2.4G module of the master is longer than a first preset duration; if the disconnection duration is longer than the first preset duration, the second processor controls a second 2.4G module, a loudspeaker and a microphone of the slave computer to enter a standby state, then the second processor enters the standby state, and the second 2.4G module sets a timer to interrupt; when the timer is interrupted and the timing is finished, the second 2.4G module autonomously wakes up and scans a signaling channel, monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within a second preset time period, if the broadcast signal containing the connectable identifier is not monitored, the second 2.4G module enters a standby state and automatically sets the timer interrupt again, if the broadcast signal containing the connectable identifier is monitored, the second 2.4G module establishes air connection with the first 2.4G module of the host and exits the standby state, the second 2.4G module sends a wake-up pulse to a wake-up pin of the second processor, and the slave wakes up the second processor, so that the slave is automatically started up and connected with the host to work when the host is started up and operated, and the slave automatically follows the host to enter the standby state when the host is shut down/standby, the electric quantity of a battery is saved, and the slave can continue to operate for a longer time without influencing the use of a user through reasonable automatic sleep and wake-up strategy.
Further, in another embodiment of the power consumption optimization method of the 2.4G wireless audio system of the present invention, after the second processor detects that the off duration is longer than the first preset duration, the power consumption optimization method further includes:
a1, a second processor detects whether a slave is in a charging state;
the slave is internally provided with a battery for supplying power to each functional module and part of the slave, so that the second processor is additionally provided with a battery management module for the battery, and the second processor can detect whether the slave is in a charging state or not through the battery management module.
And step A2, if the slave is not in the charging state, executing the step that the second processor controls the second 2.4G module, the loudspeaker and the microphone of the slave to enter the standby state.
After the slave determines to be disconnected from the master for the first preset time, if the slave is not in the charging state, the slave uses the battery to work, and at this time, it is urgently needed to save the electric quantity for the slave, so that at this time, the second processor controls the second 2.4G module, the speaker and the microphone of the slave to enter the standby state, and continues to execute the subsequent steps of the step S30, where the second 2.4G module sets the timer to interrupt itself, and the like.
Optionally, after the step of detecting whether the slave is in the charging state by the second processor, the method further includes:
step A3, if the slave is in a charging state, the second 2.4G module of the slave scans a signaling channel and monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier; if the broadcast signal which is broadcasted by the first 2.4G module of the host and contains the connectable identifier is monitored, the second 2.4G module of the slave and the first 2.4G module of the host establish air connection.
After the slave machine determines that the slave machine is disconnected with the host machine for a first preset time, if the slave machine is in a charging state, the slave machine works by using the charged electric quantity, the electric quantity of the slave machine does not need to be saved at the moment, and therefore the slave machine has sufficient electric quantity to preferentially ensure the timely connection with the host machine at the moment, the second 2.4G module of the slave machine continuously scans a signaling channel, and whether a broadcast signal containing a connectable identifier is broadcast by the first 2.4G module of the host machine or not is monitored; if the broadcast signal which is broadcasted by the first 2.4G module of the host and contains the connectable identifier is monitored, the second 2.4G module of the slave machine and the first 2.4G module of the host machine are connected in the air, so that the timely connection between the slave machine and the host machine is ensured as much as possible.
In this embodiment, after the slave is disconnected from the master for a first preset time, if the slave is in a charging state, the slave has sufficient available electric quantity, at this time, the slave preferentially considers reconnection detection with the master, the slave normally operates, and the second 2.4G module scans a signaling channel; if the slave is in a non-charging state, the slave is powered by a battery, the available electric quantity is preferred, the slave takes the electric quantity saving priority, enters a standby state, and is interrupted and awakened by a timer to detect whether the host can be connected or not, so that the intelligent selection between the host reconnection priority and the slave electricity saving is realized according to different charging states of the slave, and the use experience of a user on the slave is not influenced as much as possible.
In addition, the power consumption optimization method of the invention further comprises the following steps:
and A4, if the slave is converted from the charging state to the non-charging state, executing the step that a second processor of the slave detects whether the disconnection duration of the second 2.4G module and the first 2.4G module of the host are disconnected is greater than a first preset duration. That is to say, after the slave is charged, when the slave is restored to the uncharged state, the battery capacity of the general slave is relatively sufficient, and the user generally needs to use the slave, so that the slave is not suitable to be directly standby as in the uncharged state under the general use condition of the slave, but the disconnection duration time of the disconnection between the second 2.4G module and the first 2.4G module of the master is judged whether to be greater than the first preset time, the connection state between the slave and the master is determined again, and if the first preset time of disconnection between the slave and the master is up, the related subsequent steps of standby of the slave are performed, so that the endurance of the slave is further optimized, and the intelligence of the user for using the slave is not influenced.
Further, in another embodiment of the power consumption optimization method of the 2.4G wireless audio system of the present invention, the power consumption optimization method further includes:
b1, a second 2.4G module of the slave computer counts the continuous interruption times of the end of the timer interruption timing;
and step B2, if the continuous interruption times are more than the preset critical times, the second 2.4G module increases the timing duration of timer interruption so that the second 2.4G module sets timer interruption based on the new timing duration.
If the second 2.4G module of the slave counts that the continuous interruption frequency of the interruption timing of the timer is more than the preset critical frequency, the slave attempts to establish the wireless connection with the host continuously and fails for the preset critical frequency, the interruption of the slave and the host is probably not accidental wireless network connection failure or signal interruption, the master is shut down or the slave is not in the working range of the host with high probability, at the moment, in order to further improve the battery endurance of the slave, the timer interruption of the second 2.4G module of the slave is not needed so frequently, the second 2.4G module increases the timing duration of the timer interruption, the autonomous awakening time interval of the second 2.4G module of the slave is increased, the frequency of autonomous awakening of the second 2.4G module is reduced, and the situation that the slave is not successfully reconnected for many times, the user does not actively intervene the wireless connection between the slave and the host, and the user's the wireless connection between the slave and the host urgently, so that the battery duration of the slave is further improved under the condition that the use of the user is not influenced.
In addition, an acceleration sensor electrically connected with the second 2.4G module is arranged in the slave computer;
after the step of counting the number of continuous interrupts of which the timer interrupt timing ends continuously occurs by the second 2.4G module of the slave, the method further includes:
step B3, if the continuous interruption times are larger than the preset maximum times, the second 2.4G module cancels the timer interruption, activates an acceleration sensor in the slave to detect the acceleration of the slave, and then the second 2.4G module enters a standby state;
and B4, if the acceleration sensor detects that the acceleration of the slave is greater than a preset acceleration value, waking up the second 2.4G module, recovering the initial value of the timing duration interrupted by the timer, executing the second 2.4G module to scan a signaling channel, and monitoring whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within the second preset duration.
The preset maximum times are larger than the preset critical times, when the continuous interruption times are determined to be larger than the preset maximum times, the fact that the slave is disconnected from the host for a long time is indicated, and a user does not actively intervene in connection between the slave and the host, at the moment, the slave does not need to be automatically awakened based on timer interruption to reconnect the host, at the moment, the timer interruption is cancelled by the second 2.4G module of the slave, an acceleration sensor in the slave is activated to detect the acceleration of the slave, and then the second 2.4G module enters a standby state, namely only the acceleration sensor in the slave continues to work to monitor the motion state of the slave.
If the acceleration sensor detects that the acceleration of the slave is larger than a preset acceleration value, the movement state of the slave is changed violently, the slave is likely to be picked up and operated by a user, at the moment, the acceleration sensor of the slave wakes up the second 2.4G module, the timer interruption timing duration recovers the initial value, the second 2.4G module replies the timer interruption function, the second 2.4G module scans the signaling channel again, whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within the second preset duration is monitored, and if the host is started and the slave is within the working range of the host at the moment, the second 2.4G module of the slave and the first 2.4G module of the host smoothly establish air connection.
In this embodiment, after the continuous interruption is greater than the preset maximum number of times, it is determined that the reconnection requirement of the user on the slave and the host is low, in order to further reduce the power consumption of the slave, the second 2.4G module cancels the timer interruption, the second 2.4G module enters the standby state, and synchronously activates the acceleration sensor in the slave to detect the acceleration of the slave, the acceleration sensor with low power consumption is used to wake up the second 2.4G module at the timing when the acceleration of the slave is greater than the preset acceleration value, and the second 2.4G module is only woken up when the acceleration of the slave is greater than the preset acceleration value, so that the cruising ability of the slave is further improved.
Based on the above embodiments, the first preset time is longer than the timer interruption time, the timer interruption time is longer than the second preset time, for example, the first preset time is 30 seconds, the real-time is 5 seconds, and the second preset time is 100 microseconds, after the slave is disconnected from the host for 30 seconds, the second processor and the second 2.4G module of the slave enter a standby state, the speaker and the microphone of the slave are turned off, the second 2.4G module autonomously wakes up every 5 seconds based on the timer interruption, after waking up, the second 2.4G module determines whether the host broadcasts the broadcast information containing the connectable identifier within 100 microseconds, and if not, the second 2.4G module enters the standby state again, so that the cycle is repeated, and thus, the electric quantity of the slave battery is not excessively consumed, and the host state can also be detected in the first time.
In order to achieve the above object, the present invention further provides a 2.4G wireless audio system, where the 2.4G wireless audio system includes a master and a slave, and the master includes a first processor and a first 2.4G module, which are connected to each other by a communication bus; the slave comprises a second processor and a second 2.4G module which are mutually connected through a communication bus, the second 2.4G module is electrically connected with a wake-up pin of the second processor in a one-way mode, and the second processor is externally connected with a loudspeaker and a microphone; the first 2.4G module and the second 2.4G module are connected based on an audio channel and a signaling channel;
the master further comprises a first memory and a computer program stored on the first memory and executable on the first processor, the slave further comprises a second memory and a computer program stored on the second memory and executable on the second processor, the computer programs, when executed by the first and second processors, implement the steps of the embodiments of the power consumption optimization method for a 2.4G wireless audio system as described above. The memory may be a high-speed RAM memory or a non-volatile memory, such as a disk memory.
To achieve the above object, the present invention further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the embodiments of the power consumption optimization method for a 2.4G wireless audio system as described above.
The 2.4G wireless audio system and the computer-readable storage medium of the present invention include all technical features of the embodiments of the power consumption optimization method of the 2.4G wireless audio system, and the technical scheme development and technical effects are basically the same, so that no description is made herein.
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, the recitation of a claim "comprising a" 8230a "\8230means" does not exclude the presence of additional identical elements in the process, method, article or apparatus in which the element is incorporated, and further, similarly named components, features, elements in different embodiments of the application may have the same meaning or may have different meanings, the specific meaning of which should be determined by its interpretation in the specific embodiment or by further combination with the context of the specific embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "a, B or C" or "a, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or partially with other steps or at least some of the sub-steps or stages of other steps.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then S10 in the specific implementation, but these should be within the protection scope 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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (5)

1. A power consumption optimization method of a 2.4G wireless audio system is disclosed, wherein the 2.4G wireless audio system comprises a host and a slave, and the host comprises a first processor and a first 2.4G module which are connected with each other through a communication bus; the slave comprises a second processor and a second 2.4G module which are mutually connected through a communication bus, the second 2.4G module is electrically connected with a wake-up pin of the second processor in a one-way mode, and the second processor is externally connected with a loudspeaker and a microphone; the first 2.4G module and the second 2.4G module are connected based on an audio channel and a signaling channel;
the power consumption optimization method comprises the following steps:
after the host computer is started, the first 2.4G module continuously broadcasts a broadcast signal containing a connectable identifier in a signaling channel;
after the slave is started, the second 2.4G module scans a signaling channel, and after a broadcast signal which is broadcasted by the host and contains a connectable identifier is received, the second 2.4G module of the slave is in air connection with the first 2.4G module of the host;
the second processor of the slave computer detects whether the disconnection duration of the second 2.4G module and the first 2.4G module of the host computer is greater than a first preset duration; if the second processor detects that the disconnection duration is longer than a first preset duration, the second processor controls a second 2.4G module, a loudspeaker and a microphone of the slave to enter a standby state, then the second processor enters the standby state, and the second 2.4G module sets a timer to interrupt;
when the timer of the second 2.4G module of the slave machine is interrupted and timed to be over, the second 2.4G module is automatically awakened; the second 2.4G module scans a signaling channel and monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier within a second preset time;
if the second 2.4G module does not monitor the broadcast signal containing the connectable identifier within a second preset time period, the second 2.4G module enters a standby state and automatically sets the timer to interrupt again; if the second 2.4G module monitors a broadcast signal containing a connectable identifier within a second preset time, the second 2.4G module establishes an aerial connection with the first 2.4G module of the host and exits from a standby state, and the second 2.4G module sends a wake-up pulse to a wake-up pin of the second processor to wake up the second processor of the slave;
after the second processor detects that the disconnection duration is longer than a first preset duration, the power consumption optimization method further comprises the following steps:
the second processor detects whether the slave is in a charging state;
if the slave is not in the charging state, executing the step that the second processor controls the second 2.4G module, the loudspeaker and the microphone of the slave to enter the standby state;
if the slave is in a charging state, the second 2.4G module of the slave scans a signaling channel and monitors whether the first 2.4G module of the host broadcasts a broadcast signal containing a connectable identifier; if a broadcast signal which is broadcasted by the first 2.4G module of the host and contains a connectable identifier is monitored, the second 2.4G module of the slave machine and the first 2.4G module of the host establish air connection;
the power consumption optimization method further comprises:
if the slave computer is converted from the charging state to the non-charging state, executing a step that a second processor of the slave computer detects whether the disconnection duration time of the second 2.4G module and the first 2.4G module of the host computer are disconnected is longer than a first preset time;
the power consumption optimization method further comprises:
counting the continuous interruption times of the timer when the timer is continuously interrupted and timed out by a second 2.4G module of the slave computer, and if the continuous interruption times are more than the preset critical times, increasing the timer interruption time length by the second 2.4G module so that the second 2.4G module can set the timer interruption based on the new timer interruption time length;
an acceleration sensor electrically connected with the second 2.4G module is arranged in the slave computer;
after the step of counting the number of continuous interrupts of which the timer interrupt timing ends continuously occurs by the second 2.4G module of the slave, the method further includes:
if the continuous interruption times are larger than the preset maximum times, the second 2.4G module cancels the timer interruption, activates an acceleration sensor in the slave to detect the acceleration of the slave, and then the second 2.4G module enters a standby state;
if the acceleration sensor detects that the acceleration of the slave computer is larger than a preset acceleration value, waking up the second 2.4G module, recovering the initial value of the timing duration interrupted by the timer, executing the step that the second 2.4G module scans a signaling channel, and monitoring whether the first 2.4G module of the host computer broadcasts a broadcast signal containing a connectable identifier within the second preset duration.
2. The power consumption optimization method of the 2.4G wireless audio system according to claim 1, wherein after the slave and the host are connected with the first 2.4G module through the second 2.4G module, an audio channel and a data channel are established, the audio channel transmits audio coding data, and the signaling channel transmits command data;
the first processor of the host and the first 2.4G module adopt a USB interface to simultaneously transmit the audio coding data and the instruction data.
3. The method for optimizing power consumption of a 2.4G wireless audio system according to claim 1, wherein the first predetermined duration is longer than a timing duration of a timer interrupt, and the timing duration is longer than the second predetermined duration.
4. A2.4G wireless audio system is characterized in that the 2.4G wireless audio system comprises a host and a slave, wherein the host comprises a first processor and a first 2.4G module which are connected with each other through a communication bus; the slave machine comprises a second processor and a second 2.4G module which are mutually connected through a communication bus, the second 2.4G module is electrically connected with a wake-up pin of the second processor in a one-way mode, and the second processor is externally connected with a loudspeaker and a microphone; the first 2.4G module and the second 2.4G module are connected based on an audio channel and a signaling channel;
the master further comprises a first memory and a computer program stored on the first memory and executable on the first processor, the slave further comprises a second memory and a computer program stored on the second memory and executable on the second processor, the computer programs, when executed by the first and second processors, implementing the steps of the power consumption optimization method of the 2.4G wireless audio system as claimed in any one of claims 1 to 3.
5. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method for power consumption optimization of a 2.4G wireless audio system according to any one of claims 1 to 3.
CN202011563269.2A 2020-12-25 2020-12-25 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium Active CN112689320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011563269.2A CN112689320B (en) 2020-12-25 2020-12-25 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011563269.2A CN112689320B (en) 2020-12-25 2020-12-25 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium

Publications (2)

Publication Number Publication Date
CN112689320A CN112689320A (en) 2021-04-20
CN112689320B true CN112689320B (en) 2023-04-11

Family

ID=75451777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011563269.2A Active CN112689320B (en) 2020-12-25 2020-12-25 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium

Country Status (1)

Country Link
CN (1) CN112689320B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113573253B (en) * 2021-07-15 2022-04-26 深圳市星科启创新科技有限公司 Data transmission method and audio transmission system for game Bluetooth headset
CN113905361A (en) * 2021-09-16 2022-01-07 深圳国实智能有限公司 Bluetooth one-to-many communication method, equipment and storage medium
CN114155636A (en) * 2021-12-14 2022-03-08 深圳Tcl新技术有限公司 Device control method, device, electronic device and storage medium
CN117112473B (en) * 2023-10-19 2024-02-02 紫光同芯微电子有限公司 Data transmission method, system, equipment and storage medium based on single bus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625423A (en) * 2011-03-10 2012-08-01 深圳市华奥通通信技术有限公司 Wireless communication system and wake up method thereof
CN103220758A (en) * 2013-03-28 2013-07-24 东莞宇龙通信科技有限公司 WiFi (wireless fidelity) automatic configuration method and system of mobile terminal
CN107295615A (en) * 2016-04-11 2017-10-24 黎吉春 A kind of method of wake on wireless equipment
WO2017181730A1 (en) * 2016-04-20 2017-10-26 青岛歌尔声学科技有限公司 Bluetooth headset and communication method based on same

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006825A1 (en) * 2012-06-30 2014-01-02 David Shenhav Systems and methods to wake up a device from a power conservation state
FI124600B (en) * 2013-04-30 2014-10-31 Bluegiga Technologies Oy Procedure and technical device for short-range communication
CN105578383A (en) * 2015-05-25 2016-05-11 上海归墟电子科技有限公司 2.4G-based networking communication system and communication method
CN106658365A (en) * 2016-11-18 2017-05-10 青岛海信移动通信技术股份有限公司 Communication method and apparatus based on low-loss Bluetooth protocol
US10045296B2 (en) * 2016-12-20 2018-08-07 Intel IP Corporation Method and apparatus to controlling sleep time for Bluetooth device and Bluetooth enabled device
CN108566634B (en) * 2018-03-30 2021-06-25 深圳市冠旭电子股份有限公司 Method and device for reducing continuous awakening delay of Bluetooth sound box and Bluetooth sound box
CN108777862B (en) * 2018-08-14 2021-05-04 海信视像科技股份有限公司 Bluetooth transmission method, Bluetooth controller and Bluetooth device
CN109548115B (en) * 2018-11-14 2021-04-27 Oppo广东移动通信有限公司 Bluetooth scanning method, device, terminal and storage medium
CN109348431B (en) * 2018-11-14 2021-09-17 Oppo广东移动通信有限公司 Bluetooth scanning method, device, equipment and storage medium
CN110086931B (en) * 2019-04-22 2021-07-06 Oppo广东移动通信有限公司 Device control method and device, host device, mobile terminal and storage medium
CN111132111B (en) * 2019-12-26 2023-12-22 歌尔股份有限公司 BLE-based audio sharing method, system and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625423A (en) * 2011-03-10 2012-08-01 深圳市华奥通通信技术有限公司 Wireless communication system and wake up method thereof
WO2012119394A1 (en) * 2011-03-10 2012-09-13 深圳市华奥通通信技术有限公司 Wireless communication system and wakeup method thereof
CN103220758A (en) * 2013-03-28 2013-07-24 东莞宇龙通信科技有限公司 WiFi (wireless fidelity) automatic configuration method and system of mobile terminal
CN107295615A (en) * 2016-04-11 2017-10-24 黎吉春 A kind of method of wake on wireless equipment
WO2017181730A1 (en) * 2016-04-20 2017-10-26 青岛歌尔声学科技有限公司 Bluetooth headset and communication method based on same

Also Published As

Publication number Publication date
CN112689320A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN112689320B (en) Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
EP3629633B1 (en) Low-power activation of accessory in sleep state
US20070260905A1 (en) Wireless controlled wake up
US8199687B2 (en) Information-communication terminal having function of controlling electric power consumption
CN102833831A (en) Network card device, routing device, system and method for realizing dynamic dormancy and wakeup
WO2016180132A1 (en) Dormancy method and apparatus for wireless fidelity (wi-fi) device
CN110572869A (en) equipment awakening method and device based on BLE and Hall switch
CN110677767A (en) Wireless headset control method and system and TWS headset
CN110545499B (en) Communication method, communication device, chip of communication device, equipment to be charged and system
EP4216582A1 (en) Energy saving method and terminal device
CN112272332B (en) Awakening method and device of intelligent set top box, electronic equipment and storage medium
CN112118470A (en) Awakening method, device and system of set top box and electronic equipment
CN110544965B (en) Communication method, communication device, chip of communication device, equipment to be charged and system
CN112867107B (en) Wireless fidelity WIFI chip control method and related equipment thereof
CN114222330A (en) Wireless sensor network communication system
CN108366415B (en) Method and equipment for supplying power to LPWA equipment
CN112243286A (en) Low-power-consumption energy detection method and communication device thereof
CN114228642A (en) Control method of vehicle controller, control device, storage medium, and electronic apparatus
CN116017646A (en) Wakeup method of multi-link terminal equipment, access equipment and storage medium
CN113394869A (en) Automobile data recorder, low-power-consumption realization method and device thereof, and readable storage medium
CN113794992A (en) Wireless broadcasting method, device, terminal equipment and storage medium
CN116847440A (en) Equipment dormancy control method, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant