CN105161122B - Data processing method and device based on earphone - Google Patents
Data processing method and device based on earphone Download PDFInfo
- Publication number
- CN105161122B CN105161122B CN201510613852.2A CN201510613852A CN105161122B CN 105161122 B CN105161122 B CN 105161122B CN 201510613852 A CN201510613852 A CN 201510613852A CN 105161122 B CN105161122 B CN 105161122B
- Authority
- CN
- China
- Prior art keywords
- preset
- song
- listened
- additional control
- earphone
- 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
Links
Landscapes
- Telephone Function (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The present invention provides a kind of data processing method and device based on earphone, standard control button and preset additional control buttons are provided with outside earphone, and earphone is internally provided with single-chip microcontroller, the earphone is communicated to connect with the intelligent terminal for being equipped with preset music application, it pre-establishes and the first mapping table of pulse signal is generated to the operation behavior and single-chip microcontroller of preset additional control buttons and is stored in earphone, in the earpiece side, method includes:Monitor the operation behavior to preset additional control buttons;The pulse signal of generation corresponding to the operation behavior to preset additional control buttons listened to is determined according to first mapping table, driving single-chip microcontroller generates corresponding pulse signal and is sent to intelligent terminal, so that the intelligent terminal carries out parsing to the pulse signal received and executes corresponding operation according to parsing result.User's operation is more convenient with this and earphone can be made preferably to meet the needs of internet music.
Description
Technical field
The present invention relates to earphone field, in particular to a kind of data processing method and device based on earphone.
Background technique
People listen to music now, are by downloading in advance in intelligent terminal (such as smart phone, PAD etc.) mostly
Music application (alternatively referred to as music APP, such as everyday interesting to listen to, QQ music etc.), the mode then networked or music APP's
Song is downloaded into the mode in intelligent terminal in related pages, listens to music by stereo sets such as earphones, is being listened
During taking music, it may be related to some operations (for example play, pause, adjust volume, be adjusted to a song etc.), it is logical
Often can by being operable to complete in the relevant page of music APP, but if be in the case where being listened to by earphone,
It can also be by being operable to complete to the preset control button on earphone.
However, further include many new functions in existing music APP, such as collection song, search song, shared song etc.,
These operations can only could just be completed by carrying out operation in the relevant page of music application.That is, existing earphone is also
Do not have processing diversification data information ability (such as in the music APP in intelligent terminal search for song, collection song
Songs etc. carry out data interaction with music APP), to meet the needs of people operate internet music.
Therefore, a kind of scheme controlled based on earphone the music APP in intelligent terminal how is proposed, with more
Facilitate user to operate the various functions of music APP and can preferably meet the need that people operate internet music
It asks, becomes current problem to be solved.
Summary of the invention
The present invention provides a kind of data processing method and device based on earphone, can solve above-mentioned exist in the prior art
The problem of, user can be more convenient, the various functions of the preset music application in intelligent terminal are operated, it can be preferably
Meet the needs of people operate internet music, improves user experience.
The invention proposes a kind of data processing method based on earphone, standard control button, institute are provided with outside earphone
State and be additionally provided with preset additional control buttons outside earphone and earphone is internally provided with single-chip microcontroller, the earphone be equipped with it is preset
The intelligent terminal of music application communicates to connect, and pre-establishes and produces to the operation behavior and single-chip microcontroller of preset additional control buttons
It gives birth to the first mapping table of pulse signal and is stored in earphone,
In the earpiece side, the method includes:
Monitor the operation behavior to preset additional control buttons;
It is determined according to first mapping table corresponding to the operation behavior to preset additional control buttons listened to
The pulse signal of generation, driving single-chip microcontroller generates corresponding pulse signal and is sent to intelligent terminal, so as to the intelligence
Terminal device carries out parsing to the pulse signal received and executes corresponding operation according to parsing result.
Further, the operation behavior to preset additional control buttons, including:Press preset additional control buttons
Number and press every time preset additional control buttons time combination.
Further, include in first mapping table:
It presses primary preset additional control buttons and point is temporally not less than preset time, it is corresponding to generate the first preset wavelength
Signal;
It presses primary preset additional control buttons and point is temporally less than preset time, it is corresponding to generate two the second preset waves
Signal long and that there is the first preset interval therebetween;
Continuity point is temporally less than preset time by preset additional control buttons twice and every time point, corresponding to generate two the
Three preset wavelength and the signal therebetween with the second preset interval.
Further, the running parameter of the single-chip microcontroller includes:
Minimum operating voltage is 1.4V, operating current be less than 7 μ A, in the case where in 1 second without operation operating current from
It is dynamic to be adjusted to 0.4 μ A.
The invention also provides a kind of data processing method based on earphone, it is provided with standard control button outside earphone,
Be additionally provided with preset additional control buttons outside the earphone and earphone be internally provided with single-chip microcontroller, the earphone be equipped with it is pre-
The intelligent terminal communication connection for setting music application, pre-establishes the of the pulse signal and operational order for receiving single-chip microcontroller
Two mapping tables are simultaneously stored in preset music application,
In intelligent terminal side, the method includes:
Monitor the pulse signal that the earphone is sent by single-chip microcontroller;
The pulse signal listened to is parsed according to second mapping table to determine that corresponding operation refers to
It enables and executes corresponding operation.
Further, include in second mapping table:Receive behaviour corresponding to the signal of the first preset wavelength
Make instruction for currently listened song carry out beat appreciate or thumb up;
The pulse signal listened to is parsed according to second mapping table to determine that corresponding operation refers to
Corresponding operation is enabled and executes, including:
Corresponding operation is determined after parsing according to second mapping table to the pulse signal listened to
Instruction is sent to preset music to currently being listened song to carry out beating reward or when thumbing up, then will to beat the solicited message appreciated or thumbed up and answers
With corresponding server, so that the server beats the mark appreciated or thumbed up to currently listened song addition;
Receive the addition identification information of the server feedback, and the mark that will be beaten reward according to addition identification information or thumb up
It is shown in the currently relevant page of listened song.
Further, include in second mapping table:It receives two the second preset wavelength and has the therebetween
Operational order corresponding to the signal of one preset interval currently listens song by collection and sharing;
The pulse signal listened to is parsed according to second mapping table to determine that corresponding operation refers to
Corresponding operation is enabled and executes, including:
Corresponding operation is determined after parsing according to second mapping table to the pulse signal listened to
When instruction is currently listened song to collect and sharing, then the solicited message for collecting and sharing currently listened song is sent to preset
The corresponding server of music application;
The corresponding ID of currently listened song and song information for receiving the server feedback, the ID are stored in preset
Under the song collection catalogue of music application, and by the song information be sent to preset music application it is associated have it is synchronous
The platform of sharing function, to be shown in the related pages of the platform.
Further, include in second mapping table:It receives the preset wavelength of two thirds and has the therebetween
The corresponding operational order of the signal of two preset intervals is on-line search song or searching song friend;
The pulse signal listened to is parsed according to second mapping table to determine that corresponding operation refers to
Corresponding operation is enabled and executes, including:
Corresponding operation is determined after parsing according to second mapping table to the pulse signal listened to
Instruction be on-line search song or find song friend when, then by on-line search song or find song friend solicited message be sent to it is preset
The corresponding server of music application;
Receive the server feedback the song retrieved according to pre-set first preference parameter of user or according to
Song friend's information that pre-set second preference parameter of user retrieves is played out and is sent to the song retrieved
The friendly information of the song retrieved is shown in the related pages of preset music application by earphone.
It corresponds to the above method, the invention proposes a kind of data processing equipment based on earphone, is set outside earphone
It is equipped with standard control button, preset additional control buttons are additionally provided with outside the earphone and earphone is internally provided with single-chip microcontroller,
The earphone is communicated to connect with the intelligent terminal for being equipped with preset music application, is pre-established to preset additional control buttons
Operation behavior and single-chip microcontroller generate pulse signal the first mapping table and be stored in earphone,
It is set in the earphone, described device includes:
First monitoring unit, for monitoring the operation behavior to preset additional control buttons;
Determine driving unit, for according to first mapping table determine listen to preset additional control buttons
The corresponding pulse signal generated of operation behavior, driving single-chip microcontroller generates corresponding pulse signal and is sent to intelligent terminal and set
It is standby, so that the intelligent terminal carries out parsing to the pulse signal received and executes corresponding behaviour according to parsing result
Make.
The invention also provides a kind of data processing equipment based on earphone, it is provided with standard control button outside earphone,
Be additionally provided with preset additional control buttons outside the earphone and earphone be internally provided with single-chip microcontroller, the earphone be equipped with it is pre-
The intelligent terminal communication connection for setting music application, pre-establishes the of the pulse signal and operational order for receiving single-chip microcontroller
Two mapping tables are simultaneously stored in preset music application,
It is set in intelligent terminal, described device includes:
Second monitoring unit, the pulse signal sent for monitoring the earphone by single-chip microcontroller;
Resolution executing, for being parsed the pulse signal listened to true according to second mapping table
Fixed corresponding operational order simultaneously executes corresponding operation.
Data processing method and device provided in an embodiment of the present invention based on earphone, can be provided with preset outside earphone
Additional control buttons and single-chip microcontroller is internally provided in earphone, earphone can be with the intelligent terminal that is equipped with preset music application
Communication connection;In earpiece side, the operation behavior to preset additional control buttons can be monitored, and corresponding according to pre-establish first
Relation table (including the corresponding relationship of operation behavior and single-chip microcontroller generation pulse signal to preset additional control buttons) comes
Determine that the corresponding pulse signal generated of the operation behavior listened to, driving single-chip microcontroller generate corresponding pulse signal and be sent to
Intelligent terminal;In intelligent terminal side, the pulse signal that the earphone is sent by single-chip microcontroller can be monitored, further according to
The second mapping table pre-established (including the corresponding relationship for the pulse signal and operational order for receiving single-chip microcontroller)
The pulse signal listened to is parsed to determine corresponding operational order and execution.With this, user can be more convenient to pre-
The various functions for setting music application are operated, and can preferably meet the needs of people operate internet music, are improved
User experience.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the application
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow diagram of the data processing method provided in an embodiment of the present invention based on earphone;
Fig. 2 is the flow diagram of another data processing method based on earphone provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the data processing equipment provided in an embodiment of the present invention based on earphone;
Fig. 4 is the structural schematic diagram of another data processing equipment based on earphone provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to the application protection
Range.
In embodiments of the present invention, the method can be applied to earphone and be equipped with the intelligent terminal of preset music application to set
Standby (such as mobile phone, PAD etc.), preset music application therein can be the music application that specifically matches with earphone, and earphone
It is communicated to connect with intelligent terminal, that is to say, that the executing subject being related to includes earphone and intelligent terminal.Specific
During realization, earphone and intelligent terminal are respectively independent, while connecting each other again, realize skill provided in this embodiment jointly
Art scheme.For ease of description, the embodiment of the present invention is carried out from the angle of earphone and intelligent terminal separately below
It introduces.
Wherein it is possible to be illustrated for In-Ear line control earphone, but it is not limited to In-Ear line control earphone, for example wear
Formula line control earphone, bluetooth headset are equally applicable.(such as on line traffic control component) is provided with standard control button (ratio outside earphone
Such as, broadcasting/pause button, play upper one song/height-regulating volume button plays next song/and turn down volume button) base
On plinth, can be also provided with outside earphone preset additional control buttons (such as may be provided on line traffic control component, with standard control by
The opposite one side of key, effectively to avoid maloperation).
Meanwhile it being internally provided with single-chip microcontroller in earphone, the running parameter of the single-chip microcontroller is settable as follows:Minimum work electricity
Pressure is 1.4V (volt), and operating current is less than 7 μ A (microampere), and operating current is automatically regulated to be in the case where in 1 second without operation
0.4 μ A (is automatically regulated to be standby mode, to save electric quantity consumption).
According to the design needs, it can pre-establish and pulse letter is generated to the operation behavior and single-chip microcontroller of preset additional control buttons
Number mapping table (can be described as the first mapping table) and be stored in the predeterminated position in earphone, for example can be stored in monolithic
In machine;It can also pre-establish and receive the pulse signal of single-chip microcontroller and (it is corresponding to can be described as second with the mapping table of operational order
Relation table) and be stored in preset music application.
Firstly, the embodiment of the present invention provides a kind of data processing method based on earphone from the angle of earphone.
Referring to Fig. 1, for the flow diagram for being the data processing method provided in an embodiment of the present invention based on earphone.
In the earpiece side, described method includes following steps:
S101 monitors the operation behavior to preset additional control buttons.
Wherein, to the operation behavior of preset additional control buttons, it may include:Press preset additional control buttons number and
The combination of the time of preset additional control buttons is pressed every time, for example is pressed primary preset additional control buttons and put temporally big
In 1 second, for example continuity point was by preset additional control buttons twice and each point is temporally less than 1 second, etc..
The operation behavior of preset additional control buttons can be supervised by calling the first preset function for executing monitoring
Listen, the operation behavior of preset additional control buttons monitored, be in order to prevent other application to preset additional control buttons
Operation behavior try to be the first identification, that is to say, that be in order to which the operation behavior to preset additional control buttons is preferentially identified, if
The operation behavior to preset additional control buttons that listens to and the instruction of non-corresponding predetermined registration operation, then to listening to preset attached
The operation behavior of control button is added to let pass, so that operation behavior of the other application to preset additional control buttons judges
And execute subsequent operation;If it is determined that is listened to corresponds to predetermined registration operation instruction to the operation behavior of preset additional control buttons, then
Subsequent operation is carried out according to definitive result.
S102 is determined according to the first mapping table corresponding to the operation behavior to preset additional control buttons listened to
The pulse signal of generation, driving single-chip microcontroller generates corresponding pulse signal and is sent to intelligent terminal, so as to the intelligence
Terminal device carries out parsing to the pulse signal received and executes corresponding operation according to parsing result.
According to the design needs, the pulse signal of generation may include diversified forms, may be set to intelligent terminal and is easy to know
Other form etc., for example may be configured as:One signal with the first preset wavelength, two there is the second preset wavelength and therebetween
Signal with the first preset interval, two with the preset wavelength of third and therebetween signals with the second preset interval, etc..
It wherein, include that pulse is generated to the operation behavior and single-chip microcontroller of preset additional control buttons in the first mapping table
The corresponding relationship of signal, such as, it may include:Primary preset additional control buttons and point are pressed temporally not less than preset time
(for example may be configured as 1 second), the corresponding signal for generating the first preset wavelength (for example may be configured as 1000ms wavelength);It presses primary
Preset additional control buttons and point is temporally less than preset time (1 second), it is corresponding to generate two the second preset wavelength and (for example set
It is set to 350ms wavelength) and therebetween with the signal of the first preset interval (for example may be configured as 300ms);Continuity point is by pre- twice
Set additional control buttons and point be temporally less than preset time (1 second) every time, it is corresponding generate two preset wavelength of third (such as can
It is set as 700ms wavelength) and therebetween with the signal, etc. of the second preset interval (for example may be configured as 350ms).
When having been determined according to the first mapping table corresponding to the operation behavior to preset additional control buttons that listens to
The pulse signal of generation then can issue driving signal to single-chip microcontroller, to drive single-chip microcontroller to generate corresponding pulse signal and by arteries and veins
It rushes signal and is sent to intelligent terminal, so that the intelligent terminal carries out the pulse signal received with preset mode
Parsing, and corresponding operation is executed according to parsing result.
Secondly, the embodiment of the present invention also provides a kind of data processing side based on earphone from the angle of intelligent terminal
Method.
Referring to Fig. 2, in intelligent terminal side, described method includes following steps:
S201 monitors the pulse signal that the earphone is sent by single-chip microcontroller.
The pulse signal that single-chip microcontroller is sent can be monitored by calling the second preset function for executing monitoring, if
Pulse signal and non-corresponding the predetermined registration operation instruction that the single-chip microcontroller listened to is sent, then pulse signal single-chip microcontroller sent
It lets pass, so that operation behavior of the other application to preset additional control buttons is judged and executes subsequent operation;If really
Surely what is listened to corresponds to predetermined registration operation instruction to the pulse signal that single-chip microcontroller is sent, then carries out subsequent behaviour according to definitive result
Make.
S202 parses the pulse signal listened to according to the second mapping table to determine that corresponding operation refers to
It enables, and corresponding operation is executed according to definitive result.
It wherein, include the corresponding relationship for receiving the pulse signal and operational order of single-chip microcontroller in the second mapping table,
For example the signal for receiving a 1000ms wavelength receives two 350ms wavelength and has therebetween corresponding to the first operational order
There is the signal at the interval 300ms to correspond to second operational order, etc., operational order may be configured as more meeting internet music demand
Instruction, for example may include search song, collection and share song etc..
In specific implementation, it for example can be set in the second mapping table, receiving the first preset wavelength (for example can set
Be set to 1000ms wavelength) signal corresponding to operational order by currently listened song carry out beat reward or thumb up.
Based on this, when the signal for listening to the 1000ms wavelength from single-chip microcontroller, and according to the second mapping table to this
After pulse signal is parsed, it may be determined that corresponding operational order is to currently being listened song to carry out beating reward or when thumbing up, then
The solicited message that carries out beating reward to currently listened song or thumb up is sent to the corresponding server of preset music application, to initiate
The request that reward is beaten to current song or is thumbed up.
After the server, which is received, to carry out beating reward or the solicited message thumbed up to currently listened song, current institute is obtained
The corresponding ID of song is listened, (may include default ID, mark to the mark that ID addition is beaten reward or thumbed up, and by addition identification information
Know type, identification number etc.) feed back to preset music application in intelligent terminal.
The preset music application receives the addition identification information of the server feedback, and can be according to addition identification information
The mark beating reward or thumbing up is shown in the currently relevant page of listened song, currently listened song is carried out to beat reward to realize
Or the function of thumbing up.
In specific implementation, for example can be set in the second mapping table, receive two the second preset wavelength (such as
May be configured as 350ms wavelength) and operation corresponding to the signal with the first preset interval (for example may be configured as 300ms) therebetween
Instruction is currently listened song by collection and sharing.
Based on this, when listen to two from single-chip microcontroller 350ms wavelength and therebetween with the interval 300ms signal, root
After being parsed according to the second mapping table to the pulse signal, it may be determined that corresponding operational order is collection and shares current
When listened song, then the solicited message for collecting and sharing currently listened song is sent to the corresponding service of preset music application
Device, to initiate collection and share the request of currently listened song.
After the server is received to collecting and sharing the currently solicited message of listened song, then it can be asked according to described
The acquisition of information currently corresponding ID of listened song and song information (such as including title of the song, singer, affiliated album etc.) are asked, and can
The ID and song information are fed back into preset music application.
The preset music application receives the ID and song information of currently the listened song of the server feedback, will be described
ID is stored under the song collection catalogue (such as some profile folder) of preset music application, to realize to currently listened song
The function of being collected.
Moreover, also the song information can be sent to associated with preset music application with synchronous sharing function
Platform (such as intercommunion platform corresponding with pre-determined synchronization sharing function, can be used for singing the exchange between friend), in the platform
The related pages page of microblogging form (for example be similar to) in shown, so that user oneself and other song friends check and are received
The song information of hiding, to realize to the function that currently listened song is shared.
In specific implementation, for example can be set in the second mapping table, receive two preset wavelength of third (such as
May be configured as 700ms wavelength) and corresponding operate of the signal with the second preset interval (for example may be configured as 350ms) refers to therebetween
Enable is on-line search song or searching song friend.
Based on this, when listen to two from single-chip microcontroller 700ms wavelength and therebetween with the interval 350ms signal, root
Can determine after being parsed according to the second mapping table to the pulse signal corresponding operational order be on-line search song or
When finding song friend, then the solicited message of on-line search song or searching song friend is sent to the corresponding service of preset music application
Device, to initiate on-line search song or find the request of song friend.
After the server receives to on-line search song or find the solicited message of song friend, then it can be asked according to described
Information and pre-set first preference parameter of user (for example, prevalence, rock and roll, allusion etc.) is asked to carry out retrieval and the crawl of song
(for example can retrieve and grab the corresponding ID of song), or according to pre-set second number parameter of user (such as it is American-European, sing
Person's name etc.) sing retrieval and the crawl of friendly information, then by the corresponding ID of the song retrieved or sings friendly information and feed back to
Preset music application.
The corresponding ID of song or sing friendly information, song corresponding to ID that the preset music application receives server feedback
The related pages that song played out and was sent to earphone or the friendly information of song retrieved is shown in preset music application are (such as pre-
Set the friend-making page in music application) in, to realize on-line search song or find the function of song friend.
By aforesaid operations step, it may make that earphone is functionally more diversified, it can be by preset attached on earphone
The operation of control button is added to realize that search song, collection song etc. have the relevant function of internet music, it certainly can be according to reality
Demand presets other rules in the first, second mapping table, to realize more functions, makes earphone is more convenient to use
Family operates and more meets the demand of internet music.
Data processing method provided in an embodiment of the present invention based on earphone can be provided with preset additional control outside earphone
Key processed and single-chip microcontroller is internally provided in the earphone, the earphone and the intelligent terminal for being equipped with preset music application
Communication connection;In earpiece side, the operation behavior to preset additional control buttons can be monitored, and corresponding according to pre-establish first
Relation table (including the corresponding relationship of operation behavior and single-chip microcontroller generation pulse signal to preset additional control buttons) is really
Surely the corresponding pulse signal generated of the operation behavior listened to, driving single-chip microcontroller generate corresponding pulse signal and are sent to intelligence
It can terminal device;In intelligent terminal side, the pulse signal that the earphone is sent by single-chip microcontroller can be monitored, further according to pre-
The second mapping table (including the corresponding relationship for the pulse signal and operational order for receiving single-chip microcontroller) first established is right
The pulse signal listened to is parsed to determine corresponding operational order and execution.With this, user can be more convenient to intelligence
The various functions of preset music application in terminal device are operated, and can preferably meet people and internet music is grasped
The demand of work improves user experience.
The data processing method based on earphone that corresponding foregoing invention embodiment provides, the embodiment of the invention also provides bases
In the data processing equipment of earphone, it is illustrated with reference to the accompanying drawing.
In embodiments of the present invention, described device may be disposed at earphone and be equipped with the intelligent terminal of preset music application and sets
In standby (such as mobile phone, PAD etc.), preset music application therein can be the music application that specifically matches with earphone, and ear
Machine and intelligent terminal communicate to connect, that is to say, that the executing subject being related to includes earphone and intelligent terminal.Having
During body is realized, earphone and intelligent terminal are respectively independent, while connecting each other again, realize jointly provided in this embodiment
Technical solution.For ease of description, separately below from the angle of earphone and intelligent terminal, to the embodiment of the present invention into
Row is introduced.
Referring to Fig. 3, it is set in the earphone, described device includes:
First monitoring unit 31, can be used for monitoring the operation behavior to preset additional control buttons.
Wherein, the operation behavior to preset additional control buttons, including:Press the number of preset additional control buttons
And the combination of the time of preset additional control buttons is pressed every time, for example press primary preset additional control buttons and point temporally
Greater than 1 second, for example continuity point was by preset additional control buttons twice and each point is temporally less than 1 second, etc..
Determine driving unit 32, can be used for according to the first mapping table determine listen to preset additional control buttons
The corresponding pulse signal generated of operation behavior, driving single-chip microcontroller generates corresponding pulse signal and is sent to intelligent terminal and set
It is standby, so that the intelligent terminal carries out parsing to the pulse signal received and executes corresponding behaviour according to parsing result
Make.
Wherein, the pulse signal of the generation includes:The signal of one the first preset wavelength, two the second preset wavelength and
Signal, the preset wavelength of two thirds therebetween with the first preset interval and therebetween with the signal of the second preset interval.
Specifically, including generating arteries and veins to the operation behavior and single-chip microcontroller of preset additional control buttons in the first mapping table
The corresponding relationship of signal is rushed, such as, it may include:Primary preset additional control buttons and point are pressed temporally not less than preset time
(for example may be configured as 1 second), the corresponding signal for generating the first preset wavelength (for example may be configured as 1000ms wavelength);It presses primary
Preset additional control buttons and point is temporally less than preset time (1 second), it is corresponding to generate two the second preset wavelength and (for example set
It is set to 350ms wavelength) and therebetween with the signal of the first preset interval (for example may be configured as 300ms);Continuity point is by pre- twice
Set additional control buttons and point be temporally less than preset time (1 second) every time, it is corresponding generate two preset wavelength of third (such as can
It is set as 700ms wavelength) and therebetween with the signal, etc. of the second preset interval (for example may be configured as 350ms).
In addition, being set in intelligent terminal referring to Fig. 4, described device includes:
Second monitoring unit 41 can be used for monitoring the pulse signal that the earphone is sent by single-chip microcontroller.
Resolution executing 42 can be used for parsing the pulse signal listened to according to second mapping table
To determine corresponding operational order, and corresponding operation is executed according to definitive result.
In specific implementation, it for example can be set in the second mapping table, receiving the first preset wavelength (for example can set
Be set to 1000ms wavelength) signal corresponding to operational order by currently listened song carry out beat reward or thumb up.
Based on this, resolution executing 42 can be used for:
Corresponding operation is determined after parsing according to second mapping table to the pulse signal listened to
Instruction is sent to preset music to currently being listened song to carry out beating reward or when thumbing up, then will to beat the solicited message appreciated or thumbed up and answers
With corresponding server, so that the server beats the mark appreciated or thumbed up to currently listened song addition;
Receive the addition identification information of the server feedback, and the mark that will be beaten reward according to addition identification information or thumb up
It is shown in the currently relevant page of listened song.
In specific implementation, may include in the second mapping table:It is (such as settable to receive two the second preset wavelength
For 350ms wavelength) and operational order corresponding to the signal with the first preset interval (for example may be configured as 300ms) is therebetween
Collect and share currently listened song.
Based on this, resolution executing 42 can be used for:
Corresponding operation is determined after parsing according to second mapping table to the pulse signal listened to
When instruction is currently listened song to collect and sharing, then the solicited message for collecting and sharing currently listened song is sent to preset
The corresponding server of music application;
The corresponding ID of currently listened song and song information for receiving the server feedback, the ID are stored in preset
Under the song collection catalogue of music application, and by the song information be sent to preset music application it is associated have it is synchronous
The platform of sharing function, to be shown in the related pages of the platform.
In specific implementation, may include in the second mapping table:It receives two 700ms wavelength and has therebetween
The corresponding operational order of the signal at the interval 350ms is on-line search song or searching song friend.
Based on this, resolution executing 42 can be used for:
Corresponding operation is determined after parsing according to second mapping table to the pulse signal listened to
Instruction be on-line search song or find song friend when, then by on-line search song or find song friend solicited message be sent to it is preset
The corresponding server of music application;
Receive the server feedback the song retrieved according to pre-set first preference parameter of user or according to
Song friend's information that pre-set second preference parameter of user retrieves is played out and is sent to the song retrieved
The friendly information of the song retrieved is shown in the related pages of preset music application by earphone.
Data processing equipment provided in an embodiment of the present invention based on earphone can be provided with preset additional control outside earphone
Key processed and single-chip microcontroller is internally provided in the earphone, the earphone and the intelligent terminal for being equipped with preset music application
Communication connection;In earpiece side, the operation behavior to preset additional control buttons can be monitored, and corresponding according to pre-establish first
Relation table (including the corresponding relationship of operation behavior and single-chip microcontroller generation pulse signal to preset additional control buttons) is really
Surely the corresponding pulse signal generated of the operation behavior listened to, driving single-chip microcontroller generate corresponding pulse signal and are sent to intelligence
It can terminal device;In intelligent terminal side, the pulse signal that the earphone is sent by single-chip microcontroller can be monitored, further according to pre-
The second mapping table (including the corresponding relationship for the pulse signal and operational order for receiving single-chip microcontroller) first established is right
The pulse signal listened to is parsed to determine corresponding operational order and execution.With this, user can be more convenient to intelligence
The various functions of preset music application in terminal device are operated, and can preferably meet people and internet music is grasped
The demand of work improves user experience.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or
For Installation practice, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.
The data processing method provided by the present invention based on earphone and device are described in detail above, herein
Applying specific case, the principle and implementation of this application are described, and the explanation of above example is only intended to help
Understand the present processes and its core concept;At the same time, for those skilled in the art, according to the thought of the application,
There will be changes in the specific implementation manner and application range.In conclusion the content of the present specification should not be construed as to this
The limitation of application.
Claims (6)
1. a kind of data processing method based on earphone, standard control button is provided with outside earphone, which is characterized in that the ear
It is additionally provided with preset additional control buttons outside machine and earphone is internally provided with single-chip microcontroller, the earphone and preset music is installed
The intelligent terminal of application communicates to connect, and pre-establishes and generates arteries and veins to the operation behavior and single-chip microcontroller of preset additional control buttons
It rushes the first mapping table of signal and is stored in the earphone,
In the earpiece side, the method includes:
Monitor to the operation behaviors of preset additional control buttons, wherein by call execute the first preset function monitored come pair
The operation behavior of preset additional control buttons is monitored, and is monitored the operation behavior of preset additional control buttons, to prevent
Only other application tries to be the first identification to the operation behavior of preset additional control buttons, that is to say, that preset additional control buttons
Operation behavior is preferentially identified, if what is listened to refers to the operation behavior and non-corresponding predetermined registration operation of preset additional control buttons
It enables, then lets pass to what is listened to the operation behavior of preset additional control buttons, so that other application is to preset additional control
The operation behavior of key processed is judged and executes subsequent operation;If it is determined that the operation to preset additional control buttons listened to
Behavior corresponds to predetermined registration operation instruction, then carries out subsequent operation according to definitive result;
Generation corresponding to the operation behavior to preset additional control buttons listened to is determined according to first mapping table
Pulse signal, driving single-chip microcontroller generates corresponding pulse signal and is simultaneously sent to intelligent terminal, so as to the intelligent terminal
The pulse signal that equipment interconnection receives carries out parsing and executes corresponding operation according to parsing result,
Wherein, include in first mapping table:
It presses primary preset additional control buttons and point is temporally not less than preset time, the corresponding letter for generating the first preset wavelength
Number;
Press primary preset additional control buttons and point be temporally less than preset time, it is corresponding generate two the second preset wavelength and
Therebetween with the signal of the first preset interval;
Continuity point presses preset additional control buttons twice and point is temporally less than preset time every time, and two thirds of corresponding generation are pre-
Set wavelength and therebetween with the signal of the second preset interval.
2. the method according to claim 1, wherein the operation behavior to preset additional control buttons, packet
It includes:It presses the number of preset additional control buttons and presses the combination of the time of preset additional control buttons every time.
3. method according to claim 1 or 2, which is characterized in that the running parameter of the single-chip microcontroller includes:
Minimum operating voltage is 1.4V, and operating current is less than 7 μ A, and operating current is adjusted automatically in the case where in 1 second without operation
Whole is 0.4 μ A.
4. a kind of data processing method based on earphone, standard control button is provided with outside earphone, which is characterized in that the ear
It is additionally provided with preset additional control buttons outside machine and earphone is internally provided with single-chip microcontroller, the earphone and preset music is installed
The intelligent terminal of application communicates to connect, and pre-establishes second pair of the pulse signal and operational order that receive single-chip microcontroller
It answers relation table and is stored in preset music application,
In intelligent terminal side, the method includes:
Monitor the pulse signal that the earphone is sent by single-chip microcontroller, wherein by calling the second default letter for executing and monitoring
Number is to monitor the pulse signal that single-chip microcontroller is sent, if pulse signal and non-corresponding that the single-chip microcontroller listened to is sent
Predetermined registration operation instruction, then let pass to the pulse signal that single-chip microcontroller is sent, so that other application presses preset additional control
The operation behavior of key is judged and executes subsequent operation;If it is determined that the pulse signal sent to single-chip microcontroller listened to is corresponding
Predetermined registration operation instruction, then carry out subsequent operation according to definitive result;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Execute corresponding operation, wherein include in second mapping table:Corresponding to the signal for receiving the first preset wavelength
Operational order by currently listened song carry out beat reward or thumb up;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Corresponding operation is executed, including:
Corresponding operational order is determined after parsing according to second mapping table to the pulse signal listened to
By to currently being listened song to carry out beating reward or when thumbing up, then will beat the solicited message appreciated or thumbed up and be sent to preset music application pair
The server answered, so that the server is to the mark that currently listened song addition is beaten reward or thumbed up;
The addition identification information of the server feedback is received, and is shown the mark beating reward or thumbing up according to addition identification information
In the currently relevant page of listened song;
Further include in second mapping table:It receives two the second preset wavelength and there is the first preset interval therebetween
Operational order corresponding to signal currently listens song by collection and sharing;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Corresponding operation is executed, including:
Corresponding operational order is determined after parsing according to second mapping table to the pulse signal listened to
When currently being listened song to collect and sharing, then the solicited message for collecting and sharing currently listened song is sent to preset music
Using corresponding server;
The corresponding ID of currently listened song and song information for receiving the server feedback, are stored in preset music for the ID
Under the song collection catalogue of application, and by the song information be sent to it is associated with preset music application have synchronous sharing
The platform of function, to be shown in the related pages of the platform;And
Further include in second mapping table:It receives the preset wavelength of two thirds and there is the second preset interval therebetween
The corresponding operational order of signal is on-line search song or searching song friend;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Corresponding operation is executed, including:
Corresponding operational order is determined after parsing according to second mapping table to the pulse signal listened to
When singing friend for on-line search song or searching, then the friendly solicited message of on-line search song or searching song is sent to preset music
Using corresponding server;
Receive the song of the server feedback retrieved according to pre-set first preference parameter of user or according to user
Song friend's information that pre-set second preference parameter retrieves, plays out the song retrieved and is sent to earphone
Or the friendly information of the song retrieved is shown in the related pages of preset music application.
5. a kind of data processing equipment based on earphone, standard control button is provided with outside earphone, which is characterized in that the ear
It is additionally provided with preset additional control buttons outside machine and earphone is internally provided with single-chip microcontroller, the earphone and preset music is installed
The intelligent terminal of application communicates to connect, and pre-establishes and generates arteries and veins to the operation behavior and single-chip microcontroller of preset additional control buttons
It rushes the first mapping table of signal and is stored in the earphone,
It is set in the earphone, described device includes:
First monitoring unit, for monitoring the operation behavior to preset additional control buttons, wherein execute monitoring by calling
First preset function monitors the operation behavior of preset additional control buttons, to the operation row of preset additional control buttons
To be monitored, to prevent other application to try to be the first identification the operation behavior of preset additional control buttons, that is to say, that preset
The operation behavior of additional control buttons is preferentially identified, if what is listened to is not to the operation behavior of preset additional control buttons
Corresponding predetermined registration operation instruction, then let pass to the operation behavior of preset additional control buttons to what is listened to, so that other are answered
Judged with the operation behavior to preset additional control buttons and executes subsequent operation;If it is determined that is listened to adds to preset
The operation behavior of control button corresponds to predetermined registration operation instruction, then carries out subsequent operation according to definitive result;
Driving unit is determined, for determining the behaviour to preset additional control buttons listened to according to first mapping table
Make the corresponding pulse signal generated of behavior, driving single-chip microcontroller generates corresponding pulse signal and is sent to intelligent terminal,
So that the intelligent terminal carries out parsing to the pulse signal received and executes corresponding operation according to parsing result,
Wherein, include in first mapping table:
It presses primary preset additional control buttons and point is temporally not less than preset time, the corresponding letter for generating the first preset wavelength
Number;
Press primary preset additional control buttons and point be temporally less than preset time, it is corresponding generate two the second preset wavelength and
Therebetween with the signal of the first preset interval;
Continuity point presses preset additional control buttons twice and point is temporally less than preset time every time, and two thirds of corresponding generation are pre-
Set wavelength and therebetween with the signal of the second preset interval.
6. a kind of data processing equipment based on earphone, standard control button is provided with outside earphone, which is characterized in that the ear
It is additionally provided with preset additional control buttons outside machine and earphone is internally provided with single-chip microcontroller, the earphone and preset music is installed
The intelligent terminal of application communicates to connect, and pre-establishes and receives the second corresponding of the pulse signal of single-chip microcontroller and operational order
Relation table is simultaneously stored in preset music application,
It is set in intelligent terminal, described device includes:
Second monitoring unit, the pulse signal sent for monitoring the earphone by single-chip microcontroller execute monitoring by calling
The second preset function the pulse signal that single-chip microcontroller is sent is monitored, if the pulse that the single-chip microcontroller listened to is sent
Signal and the instruction of non-corresponding predetermined registration operation, then let pass to the pulse signal that single-chip microcontroller is sent, so that other application is to pre-
The operation behavior for setting additional control buttons is judged and executes subsequent operation;If it is determined that listen to single-chip microcontroller is sent
Pulse signal corresponds to predetermined registration operation instruction, then carries out subsequent operation according to definitive result;
Resolution executing, for being parsed the pulse signal listened to to determine according to second mapping table
Corresponding operational order simultaneously executes corresponding operation,
Wherein, include in second mapping table:Receiving operational order corresponding to the signal of the first preset wavelength is
Currently listened song is carried out beating reward or be thumbed up;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Corresponding operation is executed, including:
Corresponding operational order is determined after parsing according to second mapping table to the pulse signal listened to
By to currently being listened song to carry out beating reward or when thumbing up, then will beat the solicited message appreciated or thumbed up and be sent to preset music application pair
The server answered, so that the server is to the mark that currently listened song addition is beaten reward or thumbed up;
The addition identification information of the server feedback is received, and is shown the mark beating reward or thumbing up according to addition identification information
In the currently relevant page of listened song;
Further include in second mapping table:It receives two the second preset wavelength and there is the first preset interval therebetween
Operational order corresponding to signal currently listens song by collection and sharing;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Corresponding operation is executed, including:
Corresponding operational order is determined after parsing according to second mapping table to the pulse signal listened to
When currently being listened song to collect and sharing, then the solicited message for collecting and sharing currently listened song is sent to preset music
Using corresponding server;
The corresponding ID of currently listened song and song information for receiving the server feedback, are stored in preset music for the ID
Under the song collection catalogue of application, and by the song information be sent to it is associated with preset music application have synchronous sharing
The platform of function, to be shown in the related pages of the platform;And
Further include in second mapping table:It receives the preset wavelength of two thirds and there is the second preset interval therebetween
The corresponding operational order of signal is on-line search song or searching song friend;
The pulse signal listened to is parsed to determine corresponding operational order simultaneously according to second mapping table
Corresponding operation is executed, including:
Corresponding operational order is determined after parsing according to second mapping table to the pulse signal listened to
When singing friend for on-line search song or searching, then the friendly solicited message of on-line search song or searching song is sent to preset music
Using corresponding server;
Receive the song of the server feedback retrieved according to pre-set first preference parameter of user or according to user
Song friend's information that pre-set second preference parameter retrieves, plays out the song retrieved and is sent to earphone
Or the friendly information of the song retrieved is shown in the related pages of preset music application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510613852.2A CN105161122B (en) | 2015-09-23 | 2015-09-23 | Data processing method and device based on earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510613852.2A CN105161122B (en) | 2015-09-23 | 2015-09-23 | Data processing method and device based on earphone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105161122A CN105161122A (en) | 2015-12-16 |
CN105161122B true CN105161122B (en) | 2018-11-27 |
Family
ID=54801953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510613852.2A Active CN105161122B (en) | 2015-09-23 | 2015-09-23 | Data processing method and device based on earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105161122B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095291A (en) * | 2016-06-02 | 2016-11-09 | 乐视控股(北京)有限公司 | Method for managing resource, device and mobile terminal |
CN108989935A (en) * | 2018-08-02 | 2018-12-11 | 肇庆市高新区甜慕新能源技术有限公司 | A kind of line control earphone can be used for controlling playback of media files |
CN109246519B (en) * | 2018-10-18 | 2022-03-04 | 珠海市杰理科技股份有限公司 | Line control earphone signal identification method and device, computer equipment and storage medium |
CN110324494B (en) * | 2019-07-01 | 2021-06-25 | 维沃移动通信有限公司 | Terminal device operation method and related device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327068A (en) * | 2013-05-10 | 2013-09-25 | 江苏图格信息技术有限责任公司 | Information synchronization and interaction method and system based on voice frequency pulse signals |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE602007006909D1 (en) * | 2007-03-29 | 2010-07-15 | Research In Motion Ltd | Multi-button control headset for a mobile communication device |
CN101615409B (en) * | 2009-07-31 | 2013-03-27 | 华为终端有限公司 | Media playing controlling method, system, media player and earphone wire device |
CN103426458A (en) * | 2013-07-29 | 2013-12-04 | 孙廉杰 | Intelligent key control device and method for multi-media MP3 radio audio device |
CN204316700U (en) * | 2014-11-14 | 2015-05-06 | 河北联合大学 | A kind of earphone |
CN104410937A (en) * | 2014-12-02 | 2015-03-11 | 林浩 | Intelligent earphone |
CN104579210A (en) * | 2015-01-16 | 2015-04-29 | 深圳联华集成电路有限公司 | Wire headphone volume control circuit for intelligent mobile phone |
CN104679845A (en) * | 2015-02-12 | 2015-06-03 | 林浩 | Data processing method and device based on earphone |
-
2015
- 2015-09-23 CN CN201510613852.2A patent/CN105161122B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327068A (en) * | 2013-05-10 | 2013-09-25 | 江苏图格信息技术有限责任公司 | Information synchronization and interaction method and system based on voice frequency pulse signals |
Also Published As
Publication number | Publication date |
---|---|
CN105161122A (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105161122B (en) | Data processing method and device based on earphone | |
EP1854231B1 (en) | Device capable of being operated within a network, network system, method of operating a device within a network, program element, and computer-readable medium | |
CN101489159B (en) | Electronic device and electronic device accessory | |
CN109391528A (en) | Awakening method, device, equipment and the storage medium of speech-sound intelligent equipment | |
US6757517B2 (en) | Apparatus and method for coordinated music playback in wireless ad-hoc networks | |
CN104679845A (en) | Data processing method and device based on earphone | |
CN104731604B (en) | Determine the method and system for being playing the application program of sound | |
CN104410937A (en) | Intelligent earphone | |
CN107485402A (en) | Mood monitoring device and system | |
CN111739628B (en) | Adjusting method of wearable massager and related device | |
EP3255810B1 (en) | Wearable device | |
CN112331195B (en) | Voice interaction method, device and system | |
CN107205193B (en) | A kind of control method for playing back, earphone and smart machine | |
US10238150B2 (en) | Vibrotactile music perception wearable | |
CN113271376B (en) | Communication control method, electronic equipment and earphone | |
JP2015185019A (en) | External connection device of information communication device and program for external connection device of information communication device | |
CN105223865B (en) | Data processing method based on intelligent control device and device | |
JP2007195664A (en) | Apparatus, system and method for regenerating sleep inducing musical sound | |
CN204945956U (en) | Intelligent control device | |
CN106878286B (en) | Voice data synchronous method and device | |
CN111741391B (en) | True wireless earphone and method, device and system for realizing operation control through knocking of true wireless earphone | |
CN111741389B (en) | True wireless earphone and method, device and system for realizing operation control through touch of true wireless earphone | |
US9609455B2 (en) | Connective device, application program and content retrieval system | |
CN109582820A (en) | A kind of playback of songs method, terminal device and server | |
US11392194B1 (en) | Method and system for detecting, interpreting and communicating touch, physiological responses or emotional responses between mobile user devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |