CN108391201A - A kind of operating method of TWS earphones, device, TWS earphones and storage medium - Google Patents
A kind of operating method of TWS earphones, device, TWS earphones and storage medium Download PDFInfo
- Publication number
- CN108391201A CN108391201A CN201810146332.9A CN201810146332A CN108391201A CN 108391201 A CN108391201 A CN 108391201A CN 201810146332 A CN201810146332 A CN 201810146332A CN 108391201 A CN108391201 A CN 108391201A
- Authority
- CN
- China
- Prior art keywords
- control operation
- touch control
- tws earphones
- tws
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The embodiment of the invention discloses a kind of operating method, device, equipment and the storage mediums of TWS earphones.Wherein, this method includes:Obtain the touch control operation for being applied to true wireless stereo TWS earphones;The broadcasting content in terminal is controlled based on the information of touch control operation, or the information based on the touch control operation controls the TWS earphones;Wherein, the terminal is connect with the TWS earphones.The embodiment of the present invention is easy to operate, can improve operating efficiency.
Description
Technical field
The present embodiments relate to data processing field more particularly to a kind of operating method of TWS earphones, device, TWS ears
Machine and storage medium.
Background technology
With the development of wireless communication technique, user is when listening to audio and video or receiving calls, it will usually select a kind of nothing
True wireless stereo (True WirelessStereo, TWS) earphone that line earphone, especially left and right sound channels wirelessly detach.
Mobile terminal can be connected by TWS earphones by bluetooth wireless mode with main earphone, which passes through bluetooth wireless mode again
It is connected with from earphone, realizes the wireless separation of real earphone left and right sound channels, eliminates conventional earphone or even two ear of bluetooth headset
Between connecting line so that wear it is lighter.
Bluetooth headset currently on the market is generally by being arranged entity or virtual key, to adjust earpiece volume or selection song
Song, there is no the adjusted settings of effective input mode enough.Referred to using voice in many TWS earphones listed
Order is operated, but can consume more energy, will also result in apparent influence, and the meeting under noisy environment to the continuation of the journey of earphone
Influence the usage experience of user.
Invention content
An embodiment of the present invention provides a kind of operating method of TWS earphones, device, TWS earphones and storage medium, operation letters
It is single, the operating efficiency to terminal or to TWS earphones can be improved, and do not influence the cruising ability of earphone.
In a first aspect, an embodiment of the present invention provides a kind of operating method of TWS earphones, this method includes:
Obtain the touch control operation for being applied to true wireless stereo TWS earphones;
The broadcasting content in terminal is controlled based on the information of touch control operation, or the letter based on the touch control operation
Breath controls the TWS earphones;Wherein, the terminal is connect with the TWS earphones.
Second aspect, an embodiment of the present invention provides a kind of operating device of TWS earphones, which includes:
Touch control operation acquisition module, for obtaining the touch control operation for being applied to true wireless stereo TWS earphones;
Playing control module controls the broadcasting content in terminal for the information based on touch control operation, Huo Zheji
The TWS earphones are controlled in the information of the touch control operation;Wherein, the terminal is connect with the TWS earphones.
The third aspect, an embodiment of the present invention provides a kind of TWS earphones, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing
Device realizes the operating method of the TWS earphones described in any embodiment of the present invention.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes the operating method of the TWS earphones described in any embodiment of the present invention when the program is executed by processor.
Operating method, device, equipment and the storage medium of a kind of TWS earphones provided in an embodiment of the present invention, pass through user
The information of touch control operation on TWS earphones controls the broadcasting content in terminal, or control TWS earphones, not
The cruising ability of earphone is influenced, and easy to operate, the operating efficiency to terminal or to earphone can be improved.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of the operating method for TWS earphones that the embodiment of the present invention one provides;
Fig. 2A is that the touch-control for being applied to true wireless stereo TWS earphones is obtained in method provided by Embodiment 2 of the present invention
The method flow diagram of operation;
Fig. 2 B are the rippled interface sectional drawing of the multiple sensing datas obtained in method provided by Embodiment 2 of the present invention;
Fig. 2 C are that multiple sensing datas in method provided by Embodiment 2 of the present invention to acquisition carry out the micro- of first differential
The interface sectional drawing for dividing result to show;
Fig. 2 D are that multiple sensing datas in method provided by Embodiment 2 of the present invention to acquisition carry out the micro- of second-order differential
The interface sectional drawing for dividing result to show;
The waveform of the multiple sensing datas obtained when Fig. 2 E is in methods provided by Embodiment 2 of the present invention to quickly swinging
Interface sectional drawing;
Fig. 2 F are that multiple sensing datas in method provided by Embodiment 2 of the present invention to acquisition carry out the micro- of first differential
The interface sectional drawing for dividing result to show;
Fig. 2 G are that multiple sensing datas in method provided by Embodiment 2 of the present invention to acquisition carry out the micro- of second-order differential
The interface sectional drawing for dividing result to show;
Fig. 3 is that the touch-control for being applied to true wireless stereo TWS earphones is obtained in the method that the embodiment of the present invention three provides
The method flow diagram of operation;
Fig. 4 is a kind of structural schematic diagram of the operating device for TWS earphones that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram for TWS earphones that the embodiment of the present invention five provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of the operating method for TWS earphones that the embodiment of the present invention one provides, provided in this embodiment
A kind of operating method of TWS earphones can be applied in the scene that TWS earphones are connected with terminal, and the method can be used for one kind
In TWS earphones without operation button, it can be used for having in the TWS earphones of operation button.This method can be by of the invention real
The operating device of the TWS earphones of example offer is applied to execute, which can be realized by way of software and/or hardware, union
At in TWS earphones.Referring to Fig. 1, this method specifically comprises the following steps:
S110 obtains the touch control operation for being applied to true wireless stereo TWS earphones.
Specifically, TWS earphones in the prior art usually pass through setting when technology is connect with terminal by radio communication
Physical button, virtual key or phonetic order on TWS earphones are come the song that selects terminal currently playing, or adjust TWS
The broadcast sound volume of earphone, this mode can cause significantly to influence on the continuation of the journey of TWS earphones.In order to preferably to terminal and TWS
Earphone is controlled, and any button can need not be arranged in the present embodiment on TWS earphones, when user needs to adjust volume or choosing
When selecting song, only by acting on the touch control operation of TWS earphones, to realize the control to terminal and TWS earphones.Wherein, touch-control
Operation can act on TWS earphones to realize by user.
Optionally, TWS earphones can be arranged on earphone in advance in production and development process can get touch-control behaviour
The sensor of work obtains corresponding touch control operation by the sensor when user acts on TWS earphones.
Optionally, when TWS earphones connect terminal, if user needs to control terminal or earphone, work can be passed through
With the setting position of the TWS earphones, nucleus formation is in the touch control operation of the TWS earphones, and by being set in advance in TWS earphones inside
The sensor set obtains the corresponding touch control operation.Wherein, setting position can be the position that sensor is arranged.
S120 controls the broadcasting content in terminal based on the information of touch control operation, or based on touch control operation
Information controls TWS earphones.
Wherein, the information of touch control operation includes at least one of following:The quantity of touch control operation, the position of touch control operation and
The pressure information of touch control operation.Specifically, the quantity of touch control operation can indicate the touch-control that user is applied on TWS earphones
Number, for example, when user clicks TWS earphones, which can indicate the number clicked by the user that sensor detects, to
Judgement is single-click operation or double click operation etc.;The position of touch control operation can be to be acted on by the user that sensor detects
Specific location onto TWS earphones, for example, the left earphone or right earphone of TWS earphones, it is different to correspond to execution according to position difference
Control operation;The pressure information of touch control operation can indicate the pressure being applied to by the user that sensor detects on TWS earphones
Power size may determine that whether the touch control operation of acquisition is maloperation accordingly, for example, when clicking TWS earphones due to user, effect
Power is larger, and active force when maloperation is smaller, therefore can judge the touch-control obtained behaviour according to the pressure information of touch control operation
Work is that user really clicks the operation of TWS earphones or user does not pay attention to caused maloperation.
Further, according to the information of touch control operation, broadcasting content or TWS earphones to terminal are controlled accordingly.
Wherein, when the broadcasting content or TWS earphones to terminal control, TWS earphones and the terminal technology phase by radio communication
Even.
Further, the touch control operation that user is applied on TWS earphones is got, and determines the information of the touch control operation,
Optionally, it may be determined that the quantity of the touch control operation in the information of the touch control operation, the position of touch control operation and touch control operation
Pressure information at least one of.
Wherein, in the information for determining the touch control operation, which is judged according to the pressure information of the touch control operation
Whether it is maloperation, if not maloperation, then the position of quantity and touch control operation based on the touch control operation in the information is right
The broadcasting content for the terminal being connected with the TWS earphones or progress of TWS earphones is corresponding controls.For example, the pressure when touch control operation is believed
When breath is more than the minimum pressure obtained when user normally clicks, it is judged as the operation that user really acts on TWS earphones, without
It is maloperation, if the operating position of the touch control operation is left earphone, the playback of songs of control terminal, if the behaviour of the touch control operation
It is right earphone to make position, then controls TWS earphones, if alternatively, detect that touch control operation is primary, switches song, if detecting
Touch control operation is twice, then to adjust volume.
In an embodiment of the invention, optionally, the broadcasting content in terminal is carried out based on the information of touch control operation
It controls, may include:
Information based on touch control operation, by the currently playing song of terminal switch to upper one or next.
Specifically, can be in the pressure information according to the quantity of touch control operation, the position of touch control operation and touch control operation
At least one of, the broadcasting content in terminal is controlled accordingly.The information and terminal of touch control operation can be pre-set
The correspondence of control, after getting touch control operation, the quantity of the touch control operation in the information based on the touch control operation, position
Or pressure information, the song information currently playing to terminal control, switch to accordingly one it is first or next.
Illustratively, correspondence can be set in advance as:If detecting the touch-control for the left earphone for acting on TWS earphones
Operation is primary, then the currently playing song of terminal is switched to upper one.If detecting the touch control operation for acting on left earphone
Quantity be twice, then the currently playing song of terminal is switched to next.It is applied on TWS earphones when getting user
When touch control operation, it may be determined that be applied to the quantity of the touch control operation on left earphone, then correspondingly control terminal will be currently playing
Song switch to one or control terminal currently playing song is switched to next.
Optionally, TWS earphones are controlled based on the information of touch control operation, may include:
Information based on touch control operation adjusts the volume of TWS earphones.
Specifically, can be in the pressure information according to the quantity of touch control operation, the position of touch control operation and touch control operation
At least one of, the volume played to TWS earphones is controlled accordingly.The information and TWS of touch control operation can be pre-set
The correspondence that earphone is adjusted, after getting touch control operation, the quantity of the touch control operation in the information based on the touch control operation,
Position or pressure information, are adjusted the broadcast sound volume of TWS earphones, tune up volume accordingly or turn volume down.
Illustratively, correspondence can be set in advance as:If monitoring to act on the touch-control of the right earphone of TWS earphones
Operation is primary, then tunes up the broadcast sound volume of TWS earphones.If detecting, the touch control operation for acting on right earphone is twice, to adjust
The broadcast sound volume of small TWS earphones.When getting the touch control operation that user is applied on TWS earphones, it may be determined that be applied to the right side
The quantity of touch control operation on earphone, then correspondingly tune up the broadcast sound volume of TWS earphones, or turns the broadcast sound volume of TWS earphones down.
The technical solution of the present embodiment, by the information of touch control operation of the user on TWS earphones to the broadcasting in terminal
Content is controlled, or control TWS earphones, is not had an impact the cruising ability of earphone, and easy to operate, can be improved pair
Terminal or operating efficiency to earphone.
Embodiment two
Fig. 2A is that the touch-control for being applied to true wireless stereo TWS earphones is obtained in method provided by Embodiment 2 of the present invention
The method flow diagram of operation.The present embodiment is on the basis of the above embodiments, true wireless stereo TWS to be applied to acquisition
The step for touch control operation of earphone, optimizes and a kind of scheme for providing.With reference to Fig. 2A, this method specifically includes:
S210 obtains multiple sensing datas that sensor is read by direct memory access dma mode.
Wherein, sensor is separately positioned on the main earphone of TWS earphones and from earphone.Wherein, the left and right ear of TWS earphones
One of them in machine can based on earphone, another be from earphone, main earphone by wireless blue tooth mode respectively with terminal and from
Earphone establishes connection.
Sensor for obtaining sensing data in real time.Wherein, when user acts on TWS earphones or without effect TWS earphones
When, sensor obtains sensing data in real time, but when user acts on TWS earphones, the sensing data that sensor obtains changes
It is larger.Wherein, sensor can be pressure sensor, and can also be that acceleration transducer etc. is any can detect touch control operation
Sensor.Wherein, when pressure sensor can reduce data acquisition caused by shaking error information.When selection accelerates
When spending sensor, which can be arranged to any position on TWS earphone middle left and right earphones, detect use
When family is applied to the touch control operation of TWS earphones, which can be by larger pressure change, to be directly changed acceleration sensing
The acceleration magnitude that device is read, acceleration transducer can select accelerometer, when using 3-axis acceleration sensor, need
To the 3-axis acceleration data of reading by carrying out synthesis processing as vector sum.
Wherein, when sensor reads sensing data, the sensing data after reading can be stored in First Input First Output
In (First Input First Output, FIFO), ensure the sequence of the sensing data read in real time.And sensor can be with
Abnormal data when obtaining sensing data is carried out filtering out operation, reduces itself interference, improves the data precision that sensor is read,
Such as Kalman filtering or high-pass filtering etc..
When user acts on TWS earphones, multiple sensing datas can be obtained by the sensor being arranged on TWS earphones,
And multiple sensing datas are analyzed, so that it is determined that user is applied to the information of the touch control operation on TWS earphones.From sensor
Middle acquisition data can optionally be obtained by direct memory access (DirectMemory Access, DMA) mode.
Specifically, TWS earphones can read the sensing data of setting quantity every time, it is not only to read a sensing data every time,
And handle multiple sensing datas of reading, system resource occupation rate can be mitigated, greatly save system resource.
Optionally, the method for obtaining sensing data can be TWS earphones main earphone by dma mode from be arranged in main ear
Sensing data is read in sensor on machine, and is obtained synchronization and be arranged in the sensing number read from the sensor on earphone
According to.Wherein, main earphone, which obtains the mode being arranged in the data read from the sensor on earphone, to be:Pass through DMA from earphone
Mode obtains sensing data from the sensor being arranged on itself, and main earphone is sent to from by the sensing data of acquisition.Wherein,
Main earphone can be the left earphone of TWS earphones, can be the right earphone of TWS earphones from earphone.
TWS earphones obtain data by dma mode as a result, can simplify data acquisition operations, meet high speed data transfer
Requirement, mitigate system resource occupation rate, greatly save system resource.
In one embodiment of the invention, in order to detect the integrality of touch control operation, can it is upper once obtain consolidate
Latter half data are chosen in the sensing data of fixed number amount, and choose first half from the sensing data of the fixed quantity currently obtained
Partial data, and two parts data of selection are combined, the data of combination are handled, and two groups to acquisition may be implemented
Sensing data is handled three times, and the corresponding sensing data of touch control operation is prevented to be divided between double sampling, is increased this and is touched
The integrality of control operation detection.
For example, sensor samples sensing data using the sample frequency of 100Hz, and sets and pass through DMA every time
It is in the prior art, per second to carry out 4 data processings when mode can obtain 25 sensing datas, also require to click or
The time that person double-clicks is necessarily less than 250 milliseconds, and in order to detect the integrality of touch control operation in the present embodiment, it can be to two groups
After calculation process being carried out by 25 data that dma mode obtains, 12 numbers after being selected in preceding 25 once obtained data
According to 13 data before being selected in 25 data currently obtained form one group of new 25 data, transported again
It calculates, that is, obtains 2 groups of sensing datas, complete 3 processing operations, improve data-handling efficiency, increase touch control operation detection
Integrality.
S220 is carried out differential process to multiple sensing datas, and is determined the information of touch control operation based on differentiation result.
It in embodiments of the present invention, can be to obtaining in order to judge the situation of change of the sensing data caused by touch control operation
The multiple sensing datas taken carry out differential process.Wherein, Numeric differential can accurately show current sensor data and upper one
The variable quantity size of the sensing data of secondary acquisition reduces false triggering to how much determine corresponding touch control operation according to variable quantity.
Meanwhile differential process may include first differential or second-order differential, the variation for further increasing sensing data judges
Accuracy, reduce false triggering.It optionally, can be accurate according to the differentiation result obtained to multiple sensing datas progress differential process
The variation of true judgement sensing data caused by touch control operation, so that it is determined that in the information of touch control operation the touch control operation number
Amount, position or pressure information etc..Wherein, differentiation result can be shown by data variation waveform, to indicate multiple biographies
Feel the situation of change of data.
Wherein, differential process is carried out to multiple sensing datas of the acquisition, may include first differential and second-order differential, and
Corresponding differentiation result, that is, the waveform of corresponding display sensing data situation of change are obtained, and according to the rising of the waveform
Specifically judge sensing data situation of change with declining, that is, according to the raising and lowering of waveform when corresponds to the sensing number obtained
According to data value, determine the pressure information of touch control operation, judge the raising and lowering of the waveform whether since user really clicks
Operation causes, and the waveform the rise and fall times for according to corresponding pressure information being more than the minimum value normally clicked determine that touch-control is grasped
The quantity of work is left earphone or right earphone according to the source that corresponding sensing data obtains, determines the position of touch control operation.
Illustratively, multiple sensing datas that sensor is read are obtained by dma mode, and carries out differential process, obtained
Corresponding differentiation result.Wherein, Fig. 2 B are the rippled interface sectional drawing of the multiple sensing datas obtained, and Fig. 2 C are to the multiple of acquisition
Sensing data carries out the interface sectional drawing of the differentiation result of first differential, and Fig. 2 D are micro- to multiple sensing datas progress second order of acquisition
The interface sectional drawing of the differentiation result divided, the sensing data that original acquisition is can be seen that in conjunction with Fig. 2 B, Fig. 2 C and Fig. 2 D are not easy really
Fixed specific touch control operation information, and after carrying out first differential, it can be clearly seen that the variation of multiple sensing datas of acquisition
Situation, and can accurately determine specific corresponding touch control operation, after second-order differential, further improve the standard of touch control operation detection
True property.In Fig. 2 D, hence it is evident that find out that sensing data consecutive variations are twice, to determine and touch according to the data value of corresponding sensing data
The pressure information of operation is controlled, if exceeding the minimum value normally clicked, it is determined that click, and obtained according to the sensing data twice
Source is to make earphone still to have earphone, determines touch control operation position.
Optionally, differential process can also eliminate motion artifacts caused by TWS earphones are quickly swung, logical in quick swing
It crosses dma mode and obtains multiple sensing datas that sensor is read, for example, Fig. 2 E are the wave of the multiple sensing datas obtained when swinging
Shape interface sectional drawing, Fig. 2 F are the interface sectional drawing for the differentiation result that multiple sensing datas of acquisition are carried out with first differential, and Fig. 2 G are
The interface sectional drawing that multiple sensing datas of acquisition are carried out with the differentiation result of second-order differential, can be in conjunction with Fig. 2 E, Fig. 2 F and Fig. 2 G
To find out, rule is compared in the variation of sensing data caused by quickly swinging, and can detect the sensing data of variation in a long time,
With caused by touch control operation sensing data variation waveform it is significantly different, can eliminate accordingly due to quickly swing and caused by it is common
Interference, improves the detection efficiency of touch control operation.
In one embodiment of the invention, optionally, the information of touch control operation is determined based on differentiation result, can be wrapped
It includes:The set that the continuous data changed over time in the multiple sensing data is formed is determined based on the differentiation result;Wherein,
The sum of data value of sensing data in the set is more than predetermined threshold value;If the time interval between two contiguous sets is more than
Or it is equal to preset time threshold, determine that the touch control operation being applied on the TWS earphones is single-click operation;If the set
Quantity at least two, and the time interval between every adjacent set is respectively less than preset time threshold, according to the set
The quantity of the touch control operation on the TWS earphones is applied to described in quantity determination.
Specifically, differentiation result can be shown by waveform that data change over time, multiple sensing datas are indicated
Situation of change.In the corresponding waveform of differentiation result, the continuous data changed over time in the multiple sensing datas obtained is determined
The set of formation, the set can be the multiple sensing numbers for waveform corresponding acquisition during raising and lowering that differentiation result is shown
According to as shown in Figure 2 D, it may be determined that two set, wherein the sum of data value of corresponding sensing data is more than pre- in the set
If threshold value, the pressure size that can be generated when can click TWS earphones by detecting user, and a series of experiments is carried out, finally
Best predetermined threshold value is obtained, as the predetermined threshold value in the present embodiment.Wherein, the predetermined threshold value is for judging the continuous sensing
The variation of data whether be caused by really clicking TWS earphones by user, or caused by maloperation.
Optionally, the differentiation result for obtaining changing over time situation by waveform display sensing data as shown in Figure 2 D can
To determine what the continuous data of raising and lowering at any time in multiple sensing datas was formed according to the display result in the waveform
Two set, and the sum of data value of sensing data of the corresponding consecutive variations of the set is more than predetermined threshold value, that is, really
Caused by continuous sensing data variation in the fixed set is the touch control operation being applied on TWS earphones by user, rather than accidentally
Operation.
Wherein, in order to judge touch control operation for single-click operation or double click operation, it can be determined that determining continuous data becomes
Change the interval time between each contiguous set formed, therefore set a preset time threshold, which uses
Interval time length between judging touch control operation that user is applied on TWS earphones, that is, changed over time in waveform
Continuous data formed two contiguous sets between time interval.Further, if current collection and upper a moment Neighbor Set
The time interval of conjunction is more than or equal to the preset time threshold, then can determine that the set is corresponding and be applied on TWS earphones
Touch control operation be single-click operation.In Fig. 2 D, the last one corresponding obtained during judging previous waveform raising and lowering
Sensing data, the time interval between first sensing data of acquisition corresponding with during the latter waveform raising and lowering, if
The time interval is more than or equal to preset time threshold, it is determined that the touch control operation is single-click operation.
Wherein, when the number for the set for determining the continuous data changed over time formation in the corresponding waveform of differentiation result
Amount at least two, and be respectively less than the preset time threshold per the time interval between adjacent set, then can determine pair
The quantity for the set answered, and the quantity for the touch control operation being applied on TWS earphones is determined with this, that is, judge that touch control operation is
The multi-hit operation such as double click operation or three double hits.Illustratively, as in Fig. 2 D, however, it is determined that the continuous data shape changed over time
At set quantity be two, and the time interval between the two contiguous sets be less than preset time threshold, it is determined that make
It is double click operation to use the touch control operation on TWS earphones.
Time interval between the contiguous set formed as a result, according to the continuous data changed over time in differentiation result is sentenced
It is disconnected, the judgement of false triggering can be reduced with the click type of the corresponding touch control operation of accurate judgement, improve touch control operation detection
Accuracy.
Optionally, TWS earphones for a long time without use and in a dormant state when, can also be by judging double click operation
Make the TWS earphones establish with terminal simultaneously as the trigger source for waking up earphone system from dormant state, after wake-up to connect, and controls
Broadcasting in terminal processed.
The technical solution of the present embodiment obtains multiple sensing datas of TWS earphones by dma mode, and carries out corresponding
Processing accurately determines touch control operation information, reduces processing power consumption, and filtered with sensor by differentiating, reduces fortune
Complexity is calculated, itself interference is further reduced, improves operating efficiency.
Embodiment three
Fig. 3 is that the touch-control for being applied to true wireless stereo TWS earphones is obtained in the method that the embodiment of the present invention three provides
The method flow diagram of operation.The present embodiment is on the basis of the above embodiments, true wireless stereo TWS to be applied to acquisition
The step for touch control operation of earphone, optimizes and another scheme for providing.With reference to Fig. 3, this method specifically includes:
S310, what the multiple sensing datas and second sensor read by dma mode acquisition first sensor were read
Multiple sensing datas.
Specifically, TWS earphones include main earphone and from earphone, first sensor is arranged on main earphone, second sensor
It is arranged from earphone.
The main earphone of TWS earphones can obtain multiple sensing datas that first sensor is read by dma mode, and
The sensing data of second sensor reading can be obtained.Wherein, the data method in main earphone acquisition second sensor can be:
Sensing data is obtained from second sensor from earphone by dma mode, and sensing data is sent to main earphone, and main earphone connects
Receive the sensing data sent from earphone.S320, by first sensor and second sensor read under same state it is identical
Sensing data is filtered out.
Wherein, the main earphone of TWS earphones is when the sensor number for getting first sensor and second sensor is read respectively
According to when, the sensing data obtained in two sensors can be merged, by the same time read under same state
Identical sensing data is filtered out, that is, the sensing data that time point two sensors consistent with amplitude are read is carried out
Abatement, can eliminate motion artifacts, can reduce detection error caused by same status data when subsequent differentiator judges.
S330 carries out differential process to remaining sensing data after filtering out, and determines touch control operation based on differentiation result
Information.
Specifically, carry out differential process to remaining sensing data after filtering out, can improve data processing efficiency and
The accuracy of touch control operation detection, and determine according to the differentiation result obtained after differential process the information of touch control operation.
The technical solution of the present embodiment obtains multiple sensing datas of left and right earphone by dma mode, and carries out corresponding
Processing, accurately determine touch control operation information, alleviate system resource occupation rate, save system resource, reduce processing work(
Consumption, and eliminated with data by differentiating, computational complexity is reduced, itself interference and motion artifacts are further reduced,
Improve operating efficiency.
Time interval between the contiguous set formed according to the continuous data changed over time in differentiation result judges, accurate
The click type for really judging corresponding touch control operation, reduces the judgement of false triggering, improves the accuracy of touch control operation detection.
Example IV
Fig. 4 is a kind of structural schematic diagram for the operating device of TWS earphones that the embodiment of the present invention four provides, which can be with
The operating method for executing the TWS earphones that above-mentioned any embodiment provides has the corresponding function module of execution method and beneficial to effect
Fruit.As shown in figure 4, the device includes:
Touch control operation acquisition module 401, for obtaining the touch control operation for being applied to true wireless stereo TWS earphones.
Playing control module 402 controls the broadcasting content in terminal for the information based on touch control operation, or
The TWS earphones are controlled according to the information of touch control operation;Wherein, the terminal is connect with the TWS earphones.
The technical solution of the present embodiment, by the information of touch control operation of the user on TWS earphones to the broadcasting in terminal
Content is controlled, or control TWS earphones, is not had an impact the cruising ability of earphone, and easy to operate, can be improved pair
Terminal or operating efficiency to earphone.
Further, the information of above-mentioned touch control operation includes at least one of following:The quantity of touch control operation, touch control operation
The pressure information of position and touch control operation.
Further, above-mentioned playing control module 402 can also include:Terminal Control Element 403, for being grasped based on touch-control
The information of work, by the currently playing song of terminal switch to upper one or next;Earphone control unit 404, for being based on
The information of touch control operation adjusts the volume of TWS earphones.
Further, above-mentioned touch control operation acquisition module 401 may include:Data capture unit 405, for by direct
Internal storage access dma mode obtains multiple sensing datas that sensor is read;Wherein, sensor is arranged on TWS earphones;At data
Unit 406 is managed, for carrying out differential process to multiple sensing datas, and determines the information of touch control operation based on differentiation result.
Further, above-mentioned data capture unit 405 can be specifically used for:First sensor is obtained by dma mode to read
Multiple sensing datas that the multiple sensing datas and second sensor taken are read;Wherein, TWS earphones include main earphone and from ear
Machine, first sensor are arranged on main earphone, and second sensor is arranged from earphone.
Correspondingly, above-mentioned touch control operation acquisition module 401 can also include:Data filter out unit 407, for being passed first
The identical sensing data under same state that sensor and second sensor are read is filtered out.
Correspondingly, above-mentioned data processing unit 406 can be specifically used for:Remaining sensing data after filtering out is carried out micro-
Divide processing, and determines the information of touch control operation based on differentiation result.
Further, above-mentioned data processing unit 406 can be also used for:It is determined in multiple sensing datas based on differentiation result
The set that the continuous data changed over time is formed;Wherein, the sum of data value of sensing data in set is more than predetermined threshold value;
If the time interval between two contiguous sets is more than or equal to preset time threshold, determines and be applied to touching on TWS earphones
Control operation is single-click operation;If the quantity at least two of set, and the time interval between every adjacent set is respectively less than pre-
If time threshold, the quantity for being applied to the touch control operation on TWS earphones is determined according to the quantity of set.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for TWS earphones that the embodiment of the present invention five provides.As shown in figure 5, the TWS earphones
Including processor 50, storage device 51 and communication device 52;The quantity of processor 50 can be one or more in the TWS earphones
It is a, in Fig. 5 by taking a processor 50 as an example;Processor 50, storage device 51 and the communication device 52 of TWS earphones can be by total
Line or other modes connect, in Fig. 5 for being connected by bus.
Storage device 51 is used as a kind of computer readable storage medium, can be used for storing software program, computer executable
Program and module, if the corresponding module of operating method of the TWS earphones in the embodiment of the present invention is (for example, for TWS earphones
Touch control operation acquisition module 401 in operating device and playing control module 402).Processor 50 is stored in storage by operation
Software program, instruction in device 51 and module, to execute various function application and the data processing of TWS earphones, i.e.,
Realize the operating method of above-mentioned TWS earphones.
Storage device 51 can include mainly storing program area and storage data field, wherein storing program area can store operation
Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.
Can also include nonvolatile memory in addition, storage device 51 may include high-speed random access memory, for example, at least one
A disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device 51 can
Further comprise that the memory remotely located relative to processor 50, these remote memories can pass through network connection to TWS
Earphone.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Communication device 52 can be used for TWS earphones and establish connection with terminal, realize network connection or mobile data cube computation.
A kind of TWS earphones provided in this embodiment can be used for executing the operation for the TWS earphones that above-mentioned any embodiment provides
Method has corresponding function and advantageous effect.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should
Program can realize the operating method of the TWS earphones in above-mentioned any embodiment when being executed by processor.This method specifically includes:
Obtain the touch control operation for being applied to true wireless stereo TWS earphones;
The broadcasting content in terminal is controlled based on the information of touch control operation, or the letter based on the touch control operation
Breath controls the TWS earphones;Wherein, the terminal is connect with the TWS earphones.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present invention is provided, computer
The method operation that executable instruction is not limited to the described above, can also be performed the TWS earphones that any embodiment of the present invention is provided
Operating method in relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art
Part can be expressed in the form of software products, which can be stored in computer readable storage medium
In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of the operating device of above-mentioned TWS earphones, included each unit and module are only
It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;Separately
Outside, the specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of operating method of TWS earphones, which is characterized in that including:
Obtain the touch control operation for being applied to true wireless stereo TWS earphones;
The broadcasting content in terminal is controlled based on the information of touch control operation, or the information pair based on the touch control operation
The TWS earphones are controlled;Wherein, the terminal is connect with the TWS earphones.
2. according to the method described in claim 1, it is characterized in that, the information of the touch control operation includes at least one of following:
The pressure information of the quantity of touch control operation, the position of touch control operation and touch control operation.
3. according to the method described in claim 2, it is characterized in that, it is described based on the information of touch control operation to the broadcasting in terminal
Content is controlled, including:
Based on the information of the touch control operation, by the currently playing song of terminal switch to upper one or next.
4. according to the method described in claim 2, it is characterized in that, the information based on the touch control operation is to the TWS
Earphone is controlled, including:
Based on the information of the touch control operation, the volume of the TWS earphones is adjusted.
5. according to the method described in claim 2, it is characterized in that, the acquisition is applied to true wireless stereo TWS earphones
Touch control operation, including:
Multiple sensing datas that sensor is read are obtained by direct memory access dma mode;Wherein, the sensor setting exists
On the TWS earphones;
Differential process is carried out to the multiple sensing data, and determines the information of the touch control operation based on differentiation result.
6. according to the method described in claim 5, it is characterized in that, the acquisition is applied to true wireless stereo TWS earphones
Touch control operation, including:
Multiple sensing datas that first sensor is read and multiple biographies that second sensor is read are obtained by the dma mode
Feel data;Wherein, the TWS earphones include main earphone and from earphone, and the first sensor is arranged on the main earphone, institute
Second sensor is stated to be arranged described from earphone;
The identical sensing data under same state that the first sensor and the second sensor are read is filtered out;
Differential process is carried out to remaining sensing data after filtering out, and determines the letter of the touch control operation based on differentiation result
Breath.
7. method according to claim 5 or 6, which is characterized in that described to determine the touch control operation based on differentiation result
Information, including:
The set that the continuous data changed over time in the multiple sensing data is formed is determined based on the differentiation result;Its
In, the sum of data value of sensing data in the set is more than predetermined threshold value;
If the time interval between two contiguous sets is more than or equal to preset time threshold, determination is applied to the TWS ears
Touch control operation on machine is single-click operation;
If the quantity at least two of the set, and the time interval between every adjacent set is respectively less than preset time threshold
Value, according to the quantity for the touch control operation being applied to described in the determination of the quantity of the set on the TWS earphones.
8. a kind of operating device of TWS earphones, which is characterized in that including:
Touch control operation acquisition module, for obtaining the touch control operation for being applied to true wireless stereo TWS earphones;
Playing control module controls the broadcasting content in terminal for the information based on touch control operation, or is based on institute
The information for stating touch control operation controls the TWS earphones;Wherein, the terminal is connect with the TWS earphones.
9. a kind of TWS earphones, which is characterized in that the TWS earphones include:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real
The now operating method of the TWS earphones as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The operating method of the TWS earphones as described in any in claim 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810146332.9A CN108391201B (en) | 2018-02-12 | 2018-02-12 | Operation method and device of TWS earphone, TWS earphone and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810146332.9A CN108391201B (en) | 2018-02-12 | 2018-02-12 | Operation method and device of TWS earphone, TWS earphone and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108391201A true CN108391201A (en) | 2018-08-10 |
CN108391201B CN108391201B (en) | 2020-10-02 |
Family
ID=63069476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810146332.9A Active CN108391201B (en) | 2018-02-12 | 2018-02-12 | Operation method and device of TWS earphone, TWS earphone and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108391201B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104662A (en) * | 2018-08-28 | 2018-12-28 | Oppo广东移动通信有限公司 | Instruction executing method, operation response method, terminal and ear speaker device |
CN110166874A (en) * | 2019-06-03 | 2019-08-23 | 广州由我科技股份有限公司 | A kind of induction touching type bluetooth headset |
CN110324494A (en) * | 2019-07-01 | 2019-10-11 | 维沃移动通信有限公司 | A kind of operating method and relevant device of terminal device |
CN111131952A (en) * | 2019-12-27 | 2020-05-08 | 深圳春沐源控股有限公司 | Control method of earphone assembly, earphone assembly and computer readable storage medium |
CN111741389A (en) * | 2020-02-20 | 2020-10-02 | 珠海市杰理科技股份有限公司 | True wireless earphone and method, device and system for realizing operation control through touch of true wireless earphone |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4365309A (en) * | 1980-10-03 | 1982-12-21 | Hitachi, Ltd. | Digital differential analyzing processor |
CN103733519A (en) * | 2011-07-01 | 2014-04-16 | 微晶片科技德国第二公司 | Evaluation method and evaluation device for a capacitive contact sensor |
CN107465972A (en) * | 2017-09-15 | 2017-12-12 | 歌尔股份有限公司 | The audio play control method and wireless headset of a kind of mobile terminal |
-
2018
- 2018-02-12 CN CN201810146332.9A patent/CN108391201B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4365309A (en) * | 1980-10-03 | 1982-12-21 | Hitachi, Ltd. | Digital differential analyzing processor |
CN103733519A (en) * | 2011-07-01 | 2014-04-16 | 微晶片科技德国第二公司 | Evaluation method and evaluation device for a capacitive contact sensor |
CN107465972A (en) * | 2017-09-15 | 2017-12-12 | 歌尔股份有限公司 | The audio play control method and wireless headset of a kind of mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104662A (en) * | 2018-08-28 | 2018-12-28 | Oppo广东移动通信有限公司 | Instruction executing method, operation response method, terminal and ear speaker device |
CN110166874A (en) * | 2019-06-03 | 2019-08-23 | 广州由我科技股份有限公司 | A kind of induction touching type bluetooth headset |
CN110324494A (en) * | 2019-07-01 | 2019-10-11 | 维沃移动通信有限公司 | A kind of operating method and relevant device of terminal device |
CN111131952A (en) * | 2019-12-27 | 2020-05-08 | 深圳春沐源控股有限公司 | Control method of earphone assembly, earphone assembly and computer readable storage medium |
CN111131952B (en) * | 2019-12-27 | 2023-11-03 | 深圳春沐源控股有限公司 | Earphone assembly control method, earphone assembly and computer readable storage medium |
CN111741389A (en) * | 2020-02-20 | 2020-10-02 | 珠海市杰理科技股份有限公司 | True wireless earphone and method, device and system for realizing operation control through touch of true wireless earphone |
CN111741389B (en) * | 2020-02-20 | 2022-07-22 | 珠海市杰理科技股份有限公司 | True wireless earphone and method, device and system for realizing operation control through touch of true wireless earphone |
Also Published As
Publication number | Publication date |
---|---|
CN108391201B (en) | 2020-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108391201A (en) | A kind of operating method of TWS earphones, device, TWS earphones and storage medium | |
US9374647B2 (en) | Method and apparatus using head movement for user interface | |
JP4780185B2 (en) | Music reproduction system and information processing method | |
CN109256146B (en) | Audio detection method, device and storage medium | |
CN110970057B (en) | Sound processing method, device and equipment | |
EP2669893A2 (en) | Apparatus and method for high speed visualization of audio stream in an electronic device | |
JP6789668B2 (en) | Information processing equipment, information processing system, information processing method | |
US11249719B2 (en) | Audio playback control method of mobile terminal, and wireless earphone | |
KR20170076478A (en) | Display device and method for changing settings of display device | |
WO2018223837A1 (en) | Music playing method and related product | |
WO2019128639A1 (en) | Method for detecting audio signal beat points of bass drum, and terminal | |
WO2018076380A1 (en) | Electronic device, and method for generating video thumbnail in electronic device | |
CN1937462A (en) | Content-preference-score determining method, content playback apparatus, and content playback method | |
WO2019128638A1 (en) | Method for extracting big beat information from music beat points, storage medium and terminal | |
CN104581480A (en) | Touch control headset system and touch control command recognition method | |
CN110830368B (en) | Instant messaging message sending method and electronic equipment | |
CN108335688A (en) | Main beat point detecting method and computer storage media, terminal in music | |
KR20200094732A (en) | Method and system for classifying time series data | |
CN107613387A (en) | Method, apparatus, playback equipment and the storage medium that control data plays | |
CN109524018A (en) | A kind of echo processing method and equipment | |
CN108076223A (en) | Target switching method, device, terminal device and storage medium | |
CN106921802B (en) | Audio data playing method and device | |
JP6727921B2 (en) | Information processing device, information processing system, and information processing method | |
CN105959792B (en) | Playing control method, device and system | |
CN109413556B (en) | Equipment positioning method and device, earphone device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |