CN109525919B - On-off control device, on-off control method, system and storage medium - Google Patents

On-off control device, on-off control method, system and storage medium Download PDF

Info

Publication number
CN109525919B
CN109525919B CN201811377268.1A CN201811377268A CN109525919B CN 109525919 B CN109525919 B CN 109525919B CN 201811377268 A CN201811377268 A CN 201811377268A CN 109525919 B CN109525919 B CN 109525919B
Authority
CN
China
Prior art keywords
signal
power
module
touch
control
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
CN201811377268.1A
Other languages
Chinese (zh)
Other versions
CN109525919A (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.)
Anker Innovations Co Ltd
Original Assignee
Anker Innovations 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 Anker Innovations Co Ltd filed Critical Anker Innovations Co Ltd
Priority to CN201811377268.1A priority Critical patent/CN109525919B/en
Publication of CN109525919A publication Critical patent/CN109525919A/en
Application granted granted Critical
Publication of CN109525919B publication Critical patent/CN109525919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides a startup and shutdown control device, a startup and shutdown control method, a startup and shutdown control system and a storage medium. The startup and shutdown control device comprises a touch module, a signal response module and a control module; the touch control module is used for sensing and triggering a touch control signal and sending the sensed touch control signal to the control module; the control module is used for receiving a power-on and power-off signal triggered by a charging interface of an electronic product to be powered on and powered off and/or a touch signal triggered by the touch module, transmitting the received signal to the signal response module if the received signal is a single signal, and transmitting a signal with a higher priority level in the two signals to the signal response module if the two signals are simultaneously received; and the signal response module is used for receiving the signal transmitted by the control module and executing corresponding action. The on-off control device and the on-off control method can avoid the disordered response of the Bluetooth chip.

Description

On-off control device, on-off control method, system and storage medium
Technical Field
The invention relates to the technical field of startup and shutdown of electronic products, in particular to a startup and shutdown control device, a startup and shutdown control method, a control system and a storage medium.
Background
With the continuous development of electronic product technology, electronic devices such as smart phones, notebook computers, interphones, bluetooth headsets and the like are increasingly popularized. The earphone is a pair of conversion units for receiving the electric signal sent by the media player or the receiver and converting the electric signal into audible sound waves by using a loudspeaker close to the ear.
The existing earphones can be divided into wired earphones and wireless earphones, wherein the wired earphones require a left earphone and a right earphone to form a left sound channel and a right sound channel in a wired connection mode, a stereo effect is generated, and wearing is inconvenient. The wireless headset communicates with the terminal through a wireless communication protocol (such as bluetooth), and compared with a wired headset, the wireless headset has the characteristics of no need of data line collection and convenience in use. Among them, the currently latest true wireless interconnection stereo bluetooth headset (TWS headset) is a typical one of wireless headsets, such as the wireless headset of the TWS headset, and the user's requirements for the TWS headset are also increasing, including product ID, playing time, external interface, product function requirements, and the like.
The method comprises the steps that the TWS earphone needs to be turned on and turned off in the using process of the TWS earphone, wherein a power on and off signal or other control signals can be sent to the TWS earphone in various modes, but the TWS earphone cannot distinguish the signals, so that the response disorder of the TWS earphone is caused, and the normal use of the TWS earphone is influenced.
Disclosure of Invention
In order to solve the problem that the existing electronic product has disordered response to a control signal, the invention provides a startup and shutdown control device, which comprises a touch module, a signal response module and a control module;
the touch control module is used for sensing and triggering a touch control signal and sending the sensed touch control signal to the control module;
the control module is used for receiving a power-on and power-off signal triggered by a charging interface of an electronic product to be powered on and powered off and/or a touch signal triggered by the touch module, transmitting the received signal to the signal response module if the received signal is a single signal, and transmitting a signal with a higher priority level in the two signals to the signal response module if the two signals are received simultaneously;
and the signal response module is used for receiving the signal transmitted by the control module and executing corresponding action.
Optionally, the power on/off signal triggered by the charging interface is set to be a signal with a high priority level.
Optionally, when the single signal received by the control module is a falling edge signal of the power on/off signal, the control module transmits a power on signal to the signal response module, so that the signal response module executes a power on action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the control module transmits a power off signal and/or a reset signal to the signal response module so that the signal response module executes power off and/or charging actions;
the power on/off signal is a voltage signal.
Optionally, the falling edge signal is used for indicating that the charging interface is electrically disconnected from the charging device;
the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
The invention also provides a startup and shutdown control method, which comprises the following steps:
triggering a charging interface of an electronic product to be powered on and powered off to form a power on and power off signal and/or a touch signal triggering a touch module in the electronic product to be powered on and powered off;
the control module receives the power-on and power-off signal and the touch signal, if the control module receives a single signal, the single signal is output, and if two or more signals are received simultaneously, the signal with the higher priority level in the two signals is output;
the signal response module performs an action corresponding to the output signal.
Optionally, the power on/off signal triggered by the charging interface is set to be a signal with a high priority level.
Optionally, when the single signal received by the control module is a falling edge signal of the power on/off signal, the signal response module executes an action corresponding to the output signal, including:
executing a starting action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the signal response module executes an action corresponding to the output signal, and the action comprises the following steps:
executing shutdown action, outputting a reset signal and executing charging action;
the power on/off signal is a voltage signal.
Optionally, the falling edge signal is used for indicating that the charging interface is electrically disconnected from the charging device;
the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
The invention also provides a startup and shutdown control system, which comprises a memory, a processor and a computer program stored on the memory and running on the processor, and is characterized in that the steps of the method are realized when the processor executes the computer program.
The invention also provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a computer, performs the steps of the above method.
According to the startup and shutdown control device, the startup and shutdown control method, the control system and the storage medium provided by the embodiment of the invention, the priority level of the startup and shutdown signal triggered by the charging interface and/or the touch signal triggered by the touch module is set in the startup and shutdown device, and the control module receives the two signals simultaneously and transmits the signal with the higher priority level in the two signals to the signal response module, so that the problem that the response of a Bluetooth chip is disordered due to the simultaneous triggering of a plurality of startup and shutdown events caused by the difference of user scenes is avoided.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings, like reference numbers generally represent like parts or steps.
FIG. 1 is a schematic flow chart diagram of a power on/off control method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a switch control apparatus according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a switching machine control apparatus according to another embodiment of the present invention;
fig. 4 is a schematic block diagram of a switch control system according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the invention described herein without inventive step, shall fall within the scope of protection of the invention.
Example one
The present invention provides a power on/off control device to solve the above technical problems, and the power on/off control device will be described in detail with reference to the accompanying drawings.
First, referring to fig. 2, fig. 2 shows a schematic block diagram of a switch control apparatus 200 according to an embodiment of the present invention.
As shown in fig. 2, the switching machine control device 200 according to an embodiment of the present invention includes a signal response module 210, a control module 220, and a touch control module 230 provided in the switching machine control device.
According to the embodiment of the invention, the on-off control device can be used for on-off of various electronic products, such as but not limited to smart phones, notebook computers, interphones, Bluetooth headsets, Bluetooth sound boxes, outdoor monitors and the like. In the following embodiments, a bluetooth headset is taken as an example for illustration, but it should be noted that the detection device for detecting other electronic products is similar or identical.
The touch module is used as an input device of the electronic product and used for sending instructions to the electronic product so as to enable the electronic product to execute corresponding actions.
The touch module may use a touch screen (touchscreen) or a touch pad (touchpad). For example, in one example of the present invention, the touch module is a touch panel, and the touch panel is formed by an array of rows and columns on a printed circuit board; the printing plate and the surface plastic coating are bonded by strong double surfaces, and the sensing detection principle is capacitance sensing. A special ic board under the touchpad surface constantly measures and reports this trajectory to ascertain the motion and position of the finger.
For example, when the electronic product to be turned on and turned off is a bluetooth headset, at least one of the following functions may be implemented when the touch module is touched: turning on and off, turning on, turning off, playing, pausing, volume adjusting and the like are not listed.
The control module is used for receiving various control signals, including a control signal from the touch module and/or a power-on/off signal triggered by a charging interface of an electronic product to be powered on/off. If the received signal is a single signal, the received signal is transmitted to a signal response module, and if the two signals are received simultaneously, the signal with the higher priority level in the two signals is transmitted to the signal response module.
Further, the power on/off signal is a voltage signal. The falling edge signal is used for indicating the charging interface to be electrically disconnected with the charging device; the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
When the single signal received by the control module is a falling edge signal of the power on/off signal, the control module transmits the power on signal to the signal response module so that the signal response module executes the power on action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the control module transmits the power off signal and/or the reset signal to the signal response module so that the signal response module executes power off and/or charging actions.
More specifically, the power on/off signal triggered by the charging interface of the electronic product to be powered on/off means that the charging interface of the electronic product to be powered on/off is electrically connected with a contact of the charging device, the electronic product to be powered on/off is charged, in this state, the electronic product to be powered on/off is in a power-off state, and the voltage of the charging interface of the electronic product to be powered on/off is charging voltage; when the charging interface of the electronic product to be turned on and turned off is disconnected with the contact of the charging device, the voltage of the charging interface of the electronic product to be turned on and turned off is reduced, a falling edge signal is generated at the moment, and the falling edge signal is transmitted to the control module to serve as a starting signal triggered by the charging interface of the electronic product to be turned on and turned off.
Before the electronic product to be turned on and turned off is charged, if the electronic product to be turned on and turned off is in a starting state, when the charging interface of the electronic product to be turned on and turned off is electrically connected with the contact of the charging device, the voltage of the charging interface of the electronic product to be turned on and turned off is increased, a rising edge signal is generated at the moment, and the rising edge signal is transmitted to the control module to serve as a turning-off signal triggered by the charging interface of the electronic product to be turned on and turned off.
And setting the startup and shutdown signal triggered by the charging interface as a signal with high priority level. That is, if the power-on/off signal triggered by the charging interface of the electronic product to be powered on/off and the touch signal triggered by the touch module are received at the same time, the power-on/off signal is transmitted to the signal response module, and the touch signal triggered by the touch module is ignored.
According to the startup and shutdown control device, the startup and shutdown control method, the control system and the storage medium provided by the embodiment of the invention, the priority level of the startup and shutdown signal triggered by the charging interface and/or the touch signal triggered by the touch module is set in the startup and shutdown device, and the control module simultaneously receives the two signals and transmits the signal with the higher priority level in the two signals to the signal response module, so that the problem that the response of a Bluetooth chip is disordered due to the simultaneous triggering of a plurality of startup and shutdown events caused by the difference of user scenes is avoided.
Example two
In an embodiment of the invention, the charging device is a charging box of the TWS headset, and the charging interface of the headset is electrically connected with the corresponding interface of the charging box to charge the headset. The charging device comprises a signal response module, a control module and a touch module, wherein the signal response module, the control module and the touch module are arranged in the on-off control device. In the following, a detailed description is made of the charging box of the TWS headset as the charging device, with reference to the first embodiment of the present invention for selecting and setting the signal response module, the control module and the touch module.
The earphone charging box comprises a box body, an intermediate member, a strip line connector, a winding clamping piece, a circuit board, a battery, a box cover and the like.
Wherein, the box cover and the box body can be closed to form a closed accommodating space for storing the earphones without using the earphones.
Wherein, the lid is equipped with the link, and the box body is equipped with the connecting seat, and the link on the box body is connected fixed lid with the connecting seat. Wherein, the lid sets up to rotation type structure, will charge the box through rotatory lid and open, triggers hall switch circuit simultaneously.
The earphone comprises a box body, a charging structure and an earphone body, wherein a charging interface is arranged on the box body, and an interface contact matched with the charging structure is arranged on the earphone body so as to charge the earphone when the interface contact on the earphone body is connected with the charging interface.
Wherein, the interface that charges on the box that charges can be USB Type-C interface, Micro-USB interface or ordinary bellied contact.
As an implementation mode, a base is further arranged in the charging box, a raised contact point is arranged on the base, and the earphone is placed in the base to realize the contact between the earphone and the charging box, so that the earphone is directly charged.
It should be noted that other conventional structures of the charging box can be selected according to the needs, and are not described in detail herein.
In the present invention, the power on/off control device is disposed on the electronic product to be powered on/off, and is an improvement on the electronic product to be powered on/off, but needs to be used in cooperation with the charging device, because the power on/off signal is triggered when the electronic product to be powered on/off and the charging device are changed from the contact state to the disconnection state, where the charging device may be the charging box or other charging equipment in the above example.
The control module is used for processing after receiving the control information and sending an instruction to the signal response module. The control signal received by the control module comprises a startup and shutdown signal triggered by the charging interface when the electronic product to be started and shutdown is in contact with or separated from the charging device and a signal triggered by the touch module. The signal triggered by the touch module includes an on/off signal, but is not limited to the on/off signal, and may also include other control signals. For example, when the electronic product to be turned on and turned off is an earphone, the signal triggered by the touch module includes at least one of a signal for turning on and turning off, turning on, turning off, playing, pausing, volume adjusting, and the like.
Optionally, the Control module is a Micro-programmed Control Unit (MCU) or a similar structure, which is not limited herein.
After receiving the control signal, the control module processes the signal according to the type and/or priority of the signal, including the following situations:
firstly, when the control module only receives the startup and shutdown signal triggered by the charging interface, the control module only plays a role in signal transmission, transmits the control signal to the signal response module, and executes corresponding actions.
Secondly, when the control module only receives the touch signal triggered by the touch module, the control module only plays a role of signal transmission, and transmits the control signal to the signal response module to execute corresponding actions.
Thirdly, when the control module receives the power-on/off signal triggered by the charging interface and the touch signal triggered by the touch module at the same time, the priority levels of the signals need to be compared, the signals with high priority levels need to be output, and the signals with low priority levels need to be ignored or shielded.
In the invention, the startup and shutdown signal triggered by the charging interface is set as a signal with high priority level. Namely, when the control module receives the power on/off signal triggered by the charging interface and the touch signal triggered by the touch module at the same time, the power on/off signal triggered by the charging interface is output, and meanwhile, the touch signal triggered by the touch module is ignored or shielded.
In addition, the startup and shutdown control device can also realize part of charging control functions. Optionally, when the power on/off signal is a voltage signal and the single signal received by the control module is a falling edge signal of the power on/off signal, the control module transmits the power on signal to the signal response module, so that the signal response module executes a power on action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the control module transmits the power off signal and/or the reset signal to the signal response module so that the signal response module executes power off and/or charging actions;
the switching on and off control device will be further described with reference to fig. 3A and 3B.
Fig. 3A is a circuit structure of the present invention when the Control module is a Micro-programmed Control Unit (MCU), where a charging PIN 5V is a charging interface in the circuit structure for charging, and a detection PIN GPIO3 of the Micro-programmed Control Unit is electrically connected to the charging PIN 5V and is configured to receive a voltage signal of the charging PIN 5V. The TOUCH detection pin GPIO3 of the microprogram control unit is connected to the TOUCH terminal TOUCH-EN of the TOUCH module, and is used for a control signal of the TOUCH terminal TOUCH-EN.
The Micro-programmed Control Unit (MCU) further includes a power-on signal output terminal VREG for transmitting a power-on signal to the signal response module to Control the electronic product to be powered on.
The Micro-programmed Control Unit (MCU) further includes a reset signal output terminal RST for transmitting a reset signal to the signal response module to Control the charging of the electronic product to be turned on or off.
Other circuit structures and settings of the microprogram control unit are the same as those of the conventional setting, and are not described herein again.
Fig. 3B is a circuit structure of the TOUCH module according to the present invention, in which one end of the TOUCH module is connected to the power VBAT, and the TOUCH terminal TOUCH-EN is electrically connected to the TOUCH terminal TOUCH-EN section of the control module, wherein the corresponding circuit inside the TOUCH module is a conventional TOUCH panel circuit, which is not described herein again.
The following describes the power on/off control device by taking the earphone as an example: the starting control device sets the priority of two triggers by adding an MCU component, and a, when the starting control device is started, a product simultaneously receives a 5V PIN foot and a touch trigger signal, responds to the 5V PIN foot trigger signal, and at the moment, touch is invalid, and Bluetooth is started; when the 5V PIN foot or the touch function is triggered independently, the MCU only conducts signal transparent transmission and does not conduct other processing; b. when the machine is shut down, the product simultaneously receives the 5V PIN foot and the touch trigger signal, then responds to the 5V PIN foot trigger signal, and touch at this moment is ineffective, and the bluetooth resets and shuts down.
Specifically, when the earphone is taken out of the charging box, the MCU detection pin GPIO3 receives a falling edge signal and automatically ignores the low level on the touch detection pin GPIO4 within 3 seconds, and at this time, the MCU gives a power-on signal to the bluetooth;
when the earphone is placed in the charging box, the MCU detection pin GPIO3 receives a rising edge signal, and the MCU gives a reset signal RST to the Bluetooth at the moment, and meanwhile, the earphone starts to charge.
According to the invention, through improvement of a power-on and power-off control device, the traditional 3PIN PIN design is changed into a 2PIN PIN design, wherein the 3PIN PIN has the functions of a 5V power supply PIN, a power-on and power-off PIN and a ground wire PIN, and the improved 2PIN is designed into a 5V power supply PIN and a ground wire PIN. Through the IC of MCU on the on-off control device earphone, the problem of the earphone take out from the charging box and the intelligent selection of two switch scenes of touch switch is solved, and simultaneously, the phenomenon that the earphone always exists in the 2PIN needle design and the probability is taken out from the charging box and the earphone is not turned on is also solved.
According to the startup and shutdown control device, the startup and shutdown control method, the control system and the storage medium provided by the embodiment of the invention, the priority level of the startup and shutdown signal triggered by the charging interface and/or the touch signal triggered by the touch module is set in the startup and shutdown device, and the control module simultaneously receives the two signals and transmits the signal with the higher priority level in the two signals to the signal response module, so that the problem that the response of a Bluetooth chip is disordered due to the simultaneous triggering of a plurality of startup and shutdown events caused by the difference of user scenes is avoided.
EXAMPLE III
The present invention also provides a power on/off control method, and first, a power on/off control method 100 for implementing an embodiment of the present invention is described with reference to fig. 1, as shown in fig. 1, including:
step S110: triggering a charging interface of the electronic product to be powered on and powered off to form a power on and power off signal and/or a touch signal triggering the electronic product to be powered on and powered off;
step S120: receiving the power-on and power-off signal and the touch signal, outputting the single signal if the received signal is a single signal, and outputting a signal with a higher priority level in the two signals if two or more signals are received simultaneously;
step S130: an action corresponding to the output signal is executed.
In step S110, the power on/off signal is a voltage signal.
Further, in the voltage signal, the falling edge signal is used for indicating that the charging interface is electrically disconnected from the charging device; the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
Specifically, the power on/off signal triggered by the charging interface of the electronic product to be powered on/off means that the charging interface of the electronic product to be powered on/off is electrically connected with a contact of the charging device to charge the electronic product to be powered on/off, and in this state, the electronic product to be powered on/off is in a power-off state, and the voltage of the charging interface of the electronic product to be powered on/off is a charging voltage; when the charging interface of the electronic product to be turned on and turned off is disconnected with the contact of the charging device, the voltage of the charging interface of the electronic product to be turned on and turned off is reduced, a falling edge signal is generated at the moment, and the falling edge signal is transmitted to the control module to serve as a starting signal triggered by the charging interface of the electronic product to be turned on and turned off.
Before the electronic product to be turned on and turned off is charged, if the electronic product to be turned on and turned off is in a starting state, when the charging interface of the electronic product to be turned on and turned off is electrically connected with the contact of the charging device, the voltage of the charging interface of the electronic product to be turned on and turned off is increased, a rising edge signal is generated at the moment, and the rising edge signal is transmitted to the control module to serve as a turning-off signal triggered by the charging interface of the electronic product to be turned on and turned off.
In this step, the touch module may use a touch screen (touchscreen) or a touch pad (touchpad). For example, in one example of the present invention, the touch module is a touch panel, and the touch panel is formed by an array of rows and columns on a printed circuit board; the printing plate and the surface plastic coating are bonded by strong double surfaces, and the sensing detection principle is capacitance sensing. A special ic board under the touchpad surface constantly measures and reports this trajectory to ascertain the motion and position of the finger.
For example, when the electronic product to be turned on and turned off is a bluetooth headset, at least one of the following functions may be implemented when the touch module is touched: turning on and off, turning on, turning off, playing, pausing, volume adjusting and the like are not listed.
In steps S120 and S130, the power on/off signal and the touch signal are received, and if the received signal is a single signal, the received signal is transmitted to the signal response module, and if the two signals are received simultaneously, the signal with the higher priority level of the two signals is transmitted to the signal response module.
Further, the power on/off signal is a voltage signal. The falling edge signal is used for indicating the charging interface to be electrically disconnected with the charging device; the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
When the single signal received by the control module is a falling edge signal of the power on/off signal, the control module transmits the power on signal to the signal response module so that the signal response module executes the power on action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the control module transmits the power off signal and/or the reset signal to the signal response module so that the signal response module executes power off and/or charging actions.
After receiving the control signal, the control module processes the signal according to the type and/or priority of the signal, including the following situations:
firstly, when the control module only receives the startup and shutdown signal triggered by the charging interface, the control module only plays a role in signal transmission, transmits the control signal to the signal response module, and executes corresponding actions.
Secondly, when the control module only receives the touch signal triggered by the touch module, the control module only plays a role of signal transmission, and transmits the control signal to the signal response module to execute corresponding actions.
Thirdly, when the control module receives the power-on/off signal triggered by the charging interface and the touch signal triggered by the touch module at the same time, the priority levels of the signals need to be compared, the signals with high priority levels need to be output, and the signals with low priority levels need to be ignored or shielded.
In the invention, the startup and shutdown signal triggered by the charging interface is set as a signal with high priority level. Namely, when the control module receives the power on/off signal triggered by the charging interface and the touch signal triggered by the touch module at the same time, the power on/off signal triggered by the charging interface is output, and meanwhile, the touch signal triggered by the touch module is ignored or shielded.
According to the startup and shutdown control device, the startup and shutdown control method, the control system and the storage medium provided by the embodiment of the invention, in the method, the priority level of the startup and shutdown signal triggered by the charging interface and/or the priority level of the touch signal triggered by the touch module is set, and the control module receives the two signals simultaneously and transmits the signal with the higher priority level in the two signals to the signal response module, so that the problem that a plurality of startup and shutdown events are triggered simultaneously due to the difference of user scenes to cause the response confusion of the Bluetooth chip is avoided.
Example four
According to the on-off control system provided by the embodiment of the invention, the on-off control system comprises a storage device and a processor.
And a storage device storing program codes for implementing the corresponding steps in the power on/off control method according to the embodiment of the present invention.
And a processor for executing the program codes stored in the storage device to execute the corresponding steps of the on-off control method according to the embodiment of the present invention, and for implementing the switching circuit, the current detection circuit and the microprogram control unit in the on-off control device according to the embodiment of the present invention.
In one embodiment of the invention, as shown in FIG. 4, the control system 300 includes one or more processors 302, one or more memory devices 304. Optionally, the control system 300 may also include at least one of an input device 306, an output device 308, a communication interface 310, which are interconnected via a bus system 312 and/or other form of connection mechanism (not shown). It should be noted that the components and structure of the control system 300 shown in fig. 3 are exemplary only, and not limiting, and the control system 300 may have other components and structures as desired, such as may also include transceivers for transceiving signals.
The processor 302 may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the control system 300 to perform desired functions. A processor 302 for executing the corresponding steps of the power on/off control method according to the embodiment of the present invention. For example, the processor 302 can include one or more embedded processors, processor cores, microprocessors, logic circuits, hardware Finite State Machines (FSMs), Digital Signal Processors (DSPs), or a combination thereof.
The storage device 304 is used to store various types of data to support the operation of the detection device. For example, may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium and executed by processor 302 to implement the functions of the embodiments of the invention (as implemented by the processor) described below and/or other desired functions. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 306 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
Output device 308 may output various information (e.g., images or sounds) to an external (e.g., user), and may include one or more of a display, speakers, and the like.
The communication interface 310 is used for communication between the control system 300 and other devices, including wired or wireless communication. The control system 300 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication interface 310 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication interface 310 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In one embodiment, the above-described power on/off control method is performed when the program code is executed by the processor.
The switching control system may further comprise a memory for storing information collected by the switching control device.
Illustratively, the information storage mode may include one of the following storage modes: local storage, database storage, distributed file system storage, and remote storage, the storage service addresses may include server IP and server ports. The local storage means that the video data received by the startup and shutdown control system is in the local system; the database storage means that video data received by the power on/off control system is stored in a database of the system, and the database stores a corresponding database which needs to be installed on the power on/off control system; the distributed file system storage means that video data received by the on-off control system is stored in the distributed file system, and the distributed file system storage requires the installation of the distributed file system on the on-off control system; the remote storage refers to that the video data received by the on-off control system is delivered to other storage services for storage. In other examples, the configured storage may also include any other suitable type of storage, and the invention is not limited thereto.
Illustratively, the above-described access to information may be performed in the form of a stream. For example, access to information may be achieved by transmission of a binary stream.
EXAMPLE five
Furthermore, according to an embodiment of the present invention, there is also provided a storage medium on which program instructions are stored, which when executed by a computer or a processor are used for executing corresponding steps of the switch control method according to an embodiment of the present invention, and for implementing corresponding modules in the switch control apparatus according to an embodiment of the present invention. The storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer readable storage medium can be any combination of one or more computer readable storage media, e.g., one containing computer readable program code for randomly generating sequences of action instructions and another containing computer readable program code for performing a power on and off control method.
In one embodiment, the computer program instructions may implement the respective functional modules of the on-off control apparatus according to the embodiment of the present invention when executed by a computer and/or may execute the on-off control method according to the embodiment of the present invention.
In one embodiment, the computer program instructions, when executed by a computer, perform the above power on and off control method.
The modules in the on-off control system according to an embodiment of the present invention may be implemented by a processor of the electronic device of the on-off control apparatus according to an embodiment of the present invention running computer program instructions stored in a memory, or may be implemented when computer instructions stored in a computer-readable storage medium of a computer program product according to an embodiment of the present invention are run by a computer.
According to the startup and shutdown control device, the startup and shutdown control method, the control system and the storage medium, the priority level of the startup and shutdown signal triggered by the charging interface and/or the touch signal triggered by the touch module is set in the startup and shutdown device, so that the situation that due to the difference of user scenes, a plurality of startup and shutdown events are triggered simultaneously, and the response of a Bluetooth chip is disordered is avoided.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the foregoing illustrative embodiments are merely exemplary and are not intended to limit the scope of the invention thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as set forth in the appended claims.

Claims (10)

1. A wireless earphone is characterized by comprising a touch module, a signal response module and a control module;
the touch control module is used for sensing and triggering a touch control signal and sending the sensed touch control signal to the control module;
the control module is used for receiving a power-on and power-off signal triggered by a charging interface of the wireless earphone and/or a touch signal triggered by the touch module, transmitting the received signal to the signal response module if the received signal is a single signal, and transmitting a signal with a higher priority level in the two signals to the signal response module if the two signals are received simultaneously;
the signal response module is used for receiving the signal transmitted by the control module and executing corresponding action;
the wireless headset only has two PIN PINs, and the two PIN PINs are connected with the charging interface.
2. The wireless headset of claim 1, wherein the power-on/off signal triggered by the charging interface is set to a signal with a high priority level.
3. The wireless headset of claim 1,
when the single signal received by the control module is a falling edge signal of the power on/off signal, the control module transmits the power on signal to the signal response module so that the signal response module executes the power on action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the control module transmits a power off signal and/or a reset signal to the signal response module so that the signal response module executes power off and/or charging actions;
the power on/off signal is a voltage signal.
4. The wireless headset of claim 3, wherein the falling edge signal is used to indicate that the charging interface is electrically disconnected from a charging device;
the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
5. A startup and shutdown control method of a wireless headset is characterized in that the wireless headset only has two PIN PINs, and the two PIN PINs are connected with a charging interface, and the method comprises the following steps:
triggering a charging interface of the wireless earphone to form a power on/off signal and/or triggering a touch module of the wireless earphone to form a touch signal;
the control module receives the power-on and power-off signal and/or the touch signal, if the control module receives a single signal, the single signal is output, and if the two signals are received simultaneously, a signal with a high priority level in the two signals is output;
the signal response module performs an action corresponding to the output signal.
6. The power on/off control method according to claim 5, wherein the power on/off signal triggered by the charging interface is set to a signal with a high priority level.
7. The on/off control method according to claim 5,
when the single signal received by the control module is a falling edge signal of the power on/off signal, the signal response module executes an action corresponding to the output signal, and the action includes:
executing a starting action;
when the single signal received by the control module is a rising edge signal of the power on/off signal, the signal response module executes an action corresponding to the output signal, and the action comprises the following steps:
executing shutdown action, outputting a reset signal and executing charging action;
the power on/off signal is a voltage signal.
8. The power on/off control method according to claim 7, wherein the falling edge signal is used for indicating that the charging interface is electrically disconnected from the charging device;
the rising edge signal is used for indicating that the charging interface is electrically connected with the charging device.
9. A system for controlling the power on and off of a wireless headset, comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the steps of the method according to any one of claims 5 to 8 when executing the computer program.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a computer, implements the steps of the method of any of claims 5 to 8.
CN201811377268.1A 2018-11-19 2018-11-19 On-off control device, on-off control method, system and storage medium Active CN109525919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811377268.1A CN109525919B (en) 2018-11-19 2018-11-19 On-off control device, on-off control method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811377268.1A CN109525919B (en) 2018-11-19 2018-11-19 On-off control device, on-off control method, system and storage medium

Publications (2)

Publication Number Publication Date
CN109525919A CN109525919A (en) 2019-03-26
CN109525919B true CN109525919B (en) 2022-03-22

Family

ID=65776672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811377268.1A Active CN109525919B (en) 2018-11-19 2018-11-19 On-off control device, on-off control method, system and storage medium

Country Status (1)

Country Link
CN (1) CN109525919B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460930B (en) 2019-08-16 2020-11-10 歌尔股份有限公司 Earphone control method and circuit and intelligent wrist-worn device
CN110691294B (en) * 2019-09-29 2021-03-26 歌尔科技有限公司 Audio control method, charging box and wireless earphone device
CN110688263B (en) * 2019-09-30 2023-04-11 中国工程物理研究院计算机应用研究所 Application method of hard disk automatic switching device based on FPGA

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201594174U (en) * 2009-12-21 2010-09-29 珠海赛纳科技有限公司 Alarm for imaging device, imaging device and driving device
CN203224860U (en) * 2013-03-20 2013-10-02 上海鼎为软件技术有限公司 Touch control device and electronic device
TWI509479B (en) * 2013-05-02 2015-11-21 Pegatron Corp Touch-controlled electronic apparatus and touch control module thereof
CN203574705U (en) * 2013-11-19 2014-04-30 深圳市金立通信设备有限公司 Terminal
CN105704604A (en) * 2016-02-24 2016-06-22 深圳市百泰实业股份有限公司 Smart home earphones
CN206077633U (en) * 2016-08-23 2017-04-05 深圳市三诺数字科技有限公司 A kind of In-Ear wireless headset
CN207504608U (en) * 2017-11-23 2018-06-15 东莞市云仕电子有限公司 A kind of charging unit and bluetooth headset for bluetooth headset
CN107979363B (en) * 2017-12-26 2021-04-23 广州视源电子科技股份有限公司 Switching on and switching off circuit and electronic equipment

Also Published As

Publication number Publication date
CN109525919A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN110413134B (en) Wearing state detection method and related equipment
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
US11336105B2 (en) Multi-battery charging and discharging device and mobile terminal
US11102697B2 (en) Method for controlling earphone switching and earphone
US10701158B2 (en) Control method of wearable apparatus and related apparatuses
JP7174861B2 (en) Wearable device and method of collecting activity data
WO2021114952A1 (en) Data processing method, terminal device, bluetooth device, and storage medium
CN109525919B (en) On-off control device, on-off control method, system and storage medium
CN112650405B (en) Interaction method of electronic equipment and electronic equipment
CN106445856B (en) Interface circuit, state switching method and device
US11395059B2 (en) Master/slave switching method for wearable apparatus and related product
CN101534349A (en) Method and apparatus for determining external connection device in mobile terminal
KR20150141039A (en) Wearable eletronic apparatus, system and controllin method thereof
KR20100052287A (en) Control method of portable device connected external device and system thereof
CN109450023B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN110557471A (en) Mobile terminal
CN208445606U (en) Housing unit and electronic equipment
CN110543231B (en) Electronic device control method and related equipment
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN109120033B (en) Electronic equipment and wireless charging system
CN108649671B (en) Wireless charging circuit and wearable equipment
CN108595352B (en) Protection method and device for mobile terminal
CN208445605U (en) Housing unit and electronic equipment
JP2023516320A (en) Electronics

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