CN104601803A - Media resource switching method, terminal and system - Google Patents

Media resource switching method, terminal and system Download PDF

Info

Publication number
CN104601803A
CN104601803A CN201410836375.1A CN201410836375A CN104601803A CN 104601803 A CN104601803 A CN 104601803A CN 201410836375 A CN201410836375 A CN 201410836375A CN 104601803 A CN104601803 A CN 104601803A
Authority
CN
China
Prior art keywords
port
terminal
media resource
signal
acceleration
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.)
Pending
Application number
CN201410836375.1A
Other languages
Chinese (zh)
Inventor
李灿松
潘虎
张宏超
赵晋伊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201410836375.1A priority Critical patent/CN104601803A/en
Publication of CN104601803A publication Critical patent/CN104601803A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Headphones And Earphones (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a media resource switching method, terminal and system; the method comprises the following steps: monitoring, by a terminal, an interrupt signal of a first port and a second port with interrupted output, wherein the interrupt signal is transmitted via a receiving earphone, and the interrupt signal is transmitted when a gravitational acceleration signal generated by the earphone oscillate along with the head is greater than a first threshold; switching the medial resource by the terminal according to a first preset mode based on the port received the interrupt signal, wherein the first preset mode records the correspondence among the first port, the second port and the media resource switching mode. By such way, the playing sequence of media resources can be switched without being operated by a user at the terminal, thus simplifying the switching steps, and increasing the user experience.

Description

A kind of media resource changing method, terminal and system
Technical field
The present invention relates to sensor technical field, particularly relate to a kind of media resource changing method, terminal and system.
Background technology
Present many intelligent terminals leading is that the sound shadow of high-quality is play, such as, have many smart mobile phone brands to be bragged about for music phone or video mobile phones.Have increasing intelligent terminal user by terminal music appreciating or video, earphone becomes the requisite auxiliary device of user.
But in the process appreciating the broadcasting of sound shadow, the playing sequence that user is arranged according to player plays media resource, can run into current hope and skip, or wishes the media resource appreciated several times more.Now user can only carry out troublesome operation on intelligent terminal, to switch, reduces the experience of user to media resource.
Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of media resource changing method, terminal and system, can switch media resource, simplifying the troublesome operation of switching media resource, improve Consumer's Experience when not opening playback terminal.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of media resource changing method, the step of the method comprises: the first port that terminal monitoring output is interrupted and the interrupt signal that the second port sends to receive earphone, send when interrupt signal is greater than first threshold by earphone with the acceleration of gravity signal that head oscillation produces; Terminal is according to receiving the port of interrupt signal according to the first preset mode switching media resource, the corresponding relation of the first preset mode record first port and the second port and media resource switch mode.
Wherein, at terminal monitoring first port and the second port with in the step of the interrupt signal receiving earphone and send, if acceleration of gravity signal is greater than first threshold, terminal is after earphone Gravity accelerometer judges the direction of acceleration of gravity signal, receive the interrupt signal sent to the first port or the second port according to the second preset mode, the corresponding relation of the direction of the second preset mode record acceleration of gravity signal and the first port, the second port.
Wherein, at terminal monitoring first port and the second port with in the step of the interrupt signal receiving earphone and send, terminal is when acceleration of gravity signal is less than Second Threshold or be greater than the 3rd threshold value by the first port or the second port accepts interrupt signal, and Second Threshold and the 3rd threshold value are that the register of earphone Gravity accelerometer presets.
Wherein, the method also comprises:
The acceleration of gravity signal that terminal monitoring the 3rd port sends to receive earphone, acceleration of gravity signal is produced with head oscillation by earphone, and terminal is by twin wire data/address bus I2C real-time reception acceleration of gravity signal;
The direction of terminal judges acceleration of gravity signal, according to the 3rd preset mode switching media resource, the direction of the 3rd preset mode record acceleration of gravity signal and the corresponding relation of media resource switch mode.
Wherein, acceleration of gravity signal is the component of acceleration that Gravity accelerometer produces, and by judging the direction of component, carries out the switching of media resource.
Wherein, after terminal monitoring first port and the second port are with the step of the interrupt signal receiving earphone and send, the method also comprises: whether terminal judges opens by waving head switching media resource function, and performs terminal according to the step of port according to the first preset mode switching media resource receiving interrupt signal when by waving head switching media resource function and opening.
Wherein, terminal is video playing terminal or audio-frequency playing terminal.
Wherein, in terminal according in the step of the port receiving interrupt signal according to the first preset mode switching media resource, first port and the second port and the corresponding relation of media resource switch mode comprise the switching of the switching of the first port and the corresponding song of the second port, the first port and the corresponding video of the second port, or the first port and the second port correspondence is looked, the mixing of audio frequency switches.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide the terminal that a kind of media resource switches, and this terminal comprises monitoring modular and handover module; The interrupt signal that monitoring modular sends to receive earphone for first port and the second port of monitoring output interruption, sends when interrupt signal is greater than first threshold by earphone with the acceleration of gravity signal that head oscillation produces; The port that handover module is used for according to receiving interrupt signal carrys out switching media resource according to the first port of the first preset mode record and the corresponding relation of the second port and media resource switch mode.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide the system that a kind of media resource switches, this system comprises Gravity accelerometer, data transmission bus, earphone and terminal, and Gravity accelerometer to be used at earphone with producing acceleration of gravity signal during head oscillation, judge the direction of acceleration of gravity signal and according to the second preset mode by the first port of Gravity accelerometer or the second port transmission interrupt signal; Data transmission bus is used for interrupt signal to be transferred to terminal from Gravity accelerometer; Terminal is used for according to receiving the port of interrupt signal according to the first preset mode switching media resource; The corresponding relation of the first preset mode record first port, the second port and media resource switch mode; The direction of the second preset mode record acceleration of gravity signal and the corresponding relation of the port of transmission interrupt signal.
The invention has the beneficial effects as follows: the situation being different from prior art, the changing method of media resource of the present invention passes through the output interruptive port of monitor terminal receive interruption signal, the direction of the acceleration signal that the Gravity accelerometer obtaining earphone end produces, terminal only need judge the port of receive interruption signal, and carry out switching media resource according to the corresponding relation of the port preset in terminal and media resource switching mode, the mechanism of terminal judges is simple, user is not needed to operate in terminal, simplify the step of switching media resource, synchronous signal transmission and response are rapidly, improve the experience of user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of media resource changing method first of the present invention execution mode;
Fig. 2 is the schematic flow sheet of a kind of media resource changing method second of the present invention execution mode;
Fig. 3 is the structural representation of Gravity accelerometer in a kind of media resource changing method second of the present invention execution mode;
Fig. 4 is the schematic flow sheet of a kind of media resource changing method the 3rd of the present invention execution mode;
Fig. 5 is the structural representation of a kind of media resource switching terminal first of the present invention execution mode;
Fig. 6 is the structural representation of a kind of media resource switched system first of the present invention execution mode.
Embodiment
Consult Fig. 1, Fig. 1 is the schematic flow sheet of a kind of media resource changing method first of the present invention execution mode.The step of the method comprises:
S101: the first port that terminal monitoring output is interrupted and the interrupt signal that the second port sends to receive earphone.
So-called interruption is the execution that CPU suspends present procedure, then performs the program dealt with urgent work, and automatically can recover the process performing original program after this transaction is complete.In above process, need interrupt signal prompting, change to make CPU the program performed.Such as someone is in reading, and put down books after hearing tap-tap and stand up to open the door, then pick up books and continue reading, whole process is interrupted exactly, and hereinto in disconnected process, interrupt signal is tap-tap.Interruption in the present invention uses the software interrupt caused by instruction INT, and this interruption is controlled.
Gravity accelerometer is integrated in the sound chamber of earphone, and sensor chip encapsulation is 2mm*2mm, therefore slightly can increase the volume of PlayGear Stealth, but can not affect tonequality, also can not affect user's wear headphones.The circuit of earphone increases by two data wires, exports the holding wire of interrupt signal as transducer.
In the present embodiment, when user swings head, the built-in Gravity accelerometer of earphone according to the swaying direction of user's head, can produce corresponding acceleration signal.Sensor internal has judgment mechanism, can judge the direction of the acceleration of gravity signal produced: when user's head does not occur to swing, Gravity accelerometer has acceleration of gravity signal vertically downward; When user's head occurs to swing to the left or to the right, Gravity accelerometer follows head, creates corresponding acceleration signal to the left or to the right, and the direction of acceleration signal is to the left or to the right.The register of Gravity accelerometer presets first threshold, when the numerical value of the acceleration signal that Gravity accelerometer calculates is greater than first threshold, triggers to export and interrupt.Two ports that transducer exports interrupt signal are INT1 and INT2, when transducer judgment mechanism judges that the acceleration signal direction of synthesis is to the left, and INT1 port triggered interrupts, when direction is to the right, INT2 port triggered interrupts.Earphone is connected with terminal, and two data wires and the terminal that export interruption are in connected state, and after triggered interrupts, a wherein data wire and terminal disconnecting, the interrupt signal that transmission one is instantaneous is simultaneously to terminal.
S102: terminal is according to receiving the port of interrupt signal according to the first preset mode switching media resource.
Gravity accelerometer produces acceleration signal and triggers output interruption, and Transmission signal, terminal monitoring, to the transmission of interrupt signal, according to the port in the terminal of receive interruption signal, determines the direction of acceleration signal.In the present embodiment, output interruptive port INT1 with INT2 on Gravity accelerometer chip is connected with the second port correspondence with the first port in terminal by data line, after one of them exports interruptive port triggered interrupts, the corresponding with it port accepts of terminal is to interrupt signal.First port of terminal preset receive interruption signal and the corresponding relation of the second port and media resource switch mode.Be: after terminal monitoring receives interrupt signal to the first port make the terminal player playing music be switched to a song as predeterminable; After terminal monitoring is to the second port accepts to interrupt signal, the terminal player playing music is made to be switched to next song.Afterwards, terminal, according to above-mentioned pre-conditioned, carries out the switching of song according to the wish of oneself.
Be different from prior art, the changing method of media resource of the present invention passes through the output interruptive port of monitor terminal receive interruption signal, the direction of the acceleration signal that the Gravity accelerometer obtaining earphone end produces, terminal only need judge the port of receive interruption signal, and carry out switching media resource according to the corresponding relation of the port preset in terminal and media resource switching mode, the mechanism of terminal judges is simple, user is not needed to operate in terminal, simplify the step of switching media resource, synchronous signal transmission and response rapidly, improve the experience of user.
Consult Fig. 2, Fig. 2 is the schematic flow sheet of a kind of media resource changing method second of the present invention execution mode.Consult Fig. 3, Fig. 3 is the structural representation of Gravity accelerometer in a kind of media resource changing method second of the present invention execution mode.The step of the method comprises:
S201: terminal when acceleration of gravity signal is less than Second Threshold or be greater than the 3rd threshold value by the first port or the second port accepts interrupt signal.
In the present embodiment, the register of Gravity accelerometer presets Second Threshold and the 3rd threshold value.The accekeration that the value of Second Threshold and the 3rd threshold value need produce according to the sensitivity of Gravity accelerometer and statistics normal human head rotation gives assignment.Applicant of the present invention is through overtesting and a large amount of calculating, be 10 and 170 by Second Threshold and the 3rd threshold value assignment, Second Threshold and the representative of the 3rd threshold value be the discernible data of Gravity accelerometer register that the acceleration of the horizontal direction that Gravity accelerometer produces with head oscillation changes into, the horizontal acceleration signal value produced to Gravity accelerometer when terminal monitoring is after the conversion of Gravity accelerometer, when the numerical value produced is greater than the 3rd threshold value 170 or is less than Second Threshold 10, trigger to export and interrupt, wherein acceleration signal value is greater than 170 expression acceleration directions to the right, be less than 10 expression acceleration directions left, if the value of acceleration signal is between 10-170, then can not triggered interrupts.Be provided with 10-170 as between buffering area, the head of user can be allowed to do slight oscillatory occurs, and cause non-active switching.Two ports that transducer exports interrupt signal are INT1 and INT2, when acceleration signal direction is to the left, and INT1 port triggered interrupts, when direction is to the right, INT2 port triggered interrupts.
S202: terminal is according to receiving the port of interrupt signal according to the first preset mode switching media resource.
In the present embodiment, output interruptive port INT1 with INT2 on Gravity accelerometer chip is connected with the second port correspondence with the first port in terminal by data line, and when INT1 port triggered interrupts, Transmission signal is to the first port of terminal.First port of receive interruption signal is identical with a upper execution mode with the corresponding relation of media resource switch mode with the second port.Terminal is according to pre-conditioned switching song.
Be different from prior art, the method of switching media resource of the present invention is prefixed two acceleration rate threshold at Gravity accelerometer, the acceleration signal that Gravity accelerometer produces and these two threshold values compare, to determine the direction of the acceleration signal produced, thus switching song, simplify and switch song operation, and provide the buffering area of acceleration signal, can avoid causing non-active song to switch because of head slight oscillatory unintentionally.
Consult Fig. 4, Fig. 4 is the schematic flow sheet of a kind of media resource changing method the 3rd of the present invention execution mode.The step of the method comprises:
S301: the acceleration of gravity signal that terminal monitoring the 3rd port sends to receive earphone.
Twin wire data/address bus I2C and Inter-Integrated Circuit is the twin wire universal serial bus developed by PHILIPS company, for connecting microcontroller and ancillary equipment thereof, is a kind of bus standard that microelectronics Control on Communication field extensively adopts.It is a kind of special shape of synchronous communication, has interface line few, and control mode is simple, and device package form is little, and traffic rate is advantages of higher comparatively.I2C bus supports any IC production process (CMOS, bipolarity).Transmission of information between the device of bus is being connected to by serial data (SDA) line and serial clock (SCL) line.In the present invention, Gravity accelerometer is connected with terminal, with signal transmission by the circuit of earphone at the twin wire data/address bus that earphone is built-in.
In the present embodiment, the chip of Gravity accelerometer is arranged twin wire data/address bus, namely two data transmission links are set, as serial data (SDA) line and the serial clock (SCL) of twin wire data/address bus.When user swings head, Gravity accelerometer can according to the swaying direction of user's head, produce corresponding acceleration signal and pass through the data line transfer of twin wire data/address bus in real time to terminal, the acceleration signal of the 3rd port real-time reception twin wire data bus transmission of terminal, enters step S302.
S302: the direction of terminal judges acceleration of gravity signal, according to the 3rd preset mode switching media resource.
Judgment mechanism in terminal judges the direction of the acceleration of gravity signal received.Terminal built-in arranges two threshold values the 4th threshold value and the 5th threshold value, size is equal with the 3rd threshold value with Second Threshold, namely the 4th threshold value is the 10, five threshold value is that the 170, four threshold value is identical with the meaning of the 3rd threshold value with Second Threshold in last execution mode with the value of the 5th threshold value.3rd port real-time reception Gravity accelerometer of terminal passes through the value of the acceleration signal of twin wire data bus transmission, make comparisons with the 4th threshold value and the 5th threshold value, when the value of acceleration signal is less than 10, be judged to be acceleration direction left, make a song in terminal plays, when the value of acceleration signal is greater than 170, be judged to be acceleration direction to the right, make next song of terminal plays, realize the switching of song.
Method of the present invention can be used for the broadcasting of terminal switch video, makes the Gravity accelerometer of earphone produce acceleration signal, by the judgement to acceleration signal, to switch video playback by swinging head; Simultaneously, method of the present invention can be used for looking, the mixing of audio frequency switches, as passed through to arrange, playback of songs is switched to the right when the head of user is swung, when continuing to swing, be switched to next song to the right, when swinging, switch to video playback left, when continuing to swing, be switched to next video left.
Be different from prior art, the method of present embodiment is directly transferred to terminal the acceleration signal that Gravity accelerometer produces, by the direction of terminal judges acceleration signal, thus judge the direction of user's head oscillation, and switching song according to preset mode, the present invention not only only for the switching of song, also can be used for switching during video playback, the mixing simultaneously can also carrying out song and video switches, and improves the experience of user.
Consult Fig. 5, Fig. 5 is the structural representation of a kind of media resource switching terminal first of the present invention execution mode.This terminal 400 comprises: monitoring modular 410 and handover module 420.
Wherein, monitoring modular 400 is responsible for the first port on monitoring terminal 400 and the second port (sign), first port and the second port by the connection of earphone 401 to the built-in Gravity accelerometer chip 4011 of earphone, preset Second Threshold and the 3rd threshold value on the register 40111 of Gravity accelerometer chip 4011, the value of two threshold values is respectively 10 and 170, is through the great many of experiments of inventor and obtains in conjunction with empirical data.Gravity accelerometer chip 4011 also has two and exports interrupt interface INT1 and INT2, these two interfaces are connected with the second port with the first port of terminal 400 respectively by earphone circuit.When the value that head swings the acceleration signal of generation is left less than Second Threshold 10, trigger the interruption exporting interrupt INT 1, the interface of INT1 sends interrupt signal to the first port; When the value that head swings the acceleration signal of generation is to the right greater than the 3rd threshold value 170, trigger the interruption exporting interrupt INT 2, the interface of INT2 sends interrupt signal to the second port.Terminal 400 monitors the first port or the second port accepts to interrupt signal, send message to the handover module 420 of terminal 400, first port of handover module 420 according to the second preset mode record and the corresponding relation of the second port and media resource switch mode, carry out the switching of media resource, concrete corresponding relation can be the first port receive interruption signal and is then switched to a media resource, and the second port accepts interrupt signal is then switched to next media resource.
Be different from prior art, terminal in present embodiment can carry out the switching of media resource by carrying out head oscillation at earphone end, not needing opens a terminal operates, simplify operating procedure, enhance Consumer's Experience, audio frequency, video are provided simultaneously and look, the mixing of audio frequency switches, and enhances interest.
Consult Fig. 6, Fig. 6 is the structural representation of a kind of media resource switched system first of the present invention execution mode.This system 500 comprises: Gravity accelerometer 510, data transmission bus 520 and terminal 530.
The quantity of Gravity accelerometer 510 is 2, is arranged in the sound chamber of the left and right receiver of earphone respectively, and two Gravity accelerometers 510 are adopted the even identical transducer of functional similarity and are interconnected by the circuit of earphone.Identical or the phase difference of the acceleration signal vector produced when the Gravity accelerometer 510 of the right and left in tolerance interval, the carrying out of triggering following step.So-called tolerance interval refers to that acceleration signal phase difference is less, tolerance interval need be set at Gravity accelerometer 510, due to the swing of head, two Gravity accelerometers 510 produce two acceleration signals, and these two acceleration can first compare.When two acceleration signal differences are positioned at the tolerance interval of setting, then triggering following step; When two acceleration signal differences exceed the tolerance interval of setting, then not triggering following step.When user is when using the system of present embodiment to appreciate media resource, if because other people call when head rotation or unconscious or subconscious rotary head, head oscillation amplitude is less, and the acceleration signal difference that the Gravity accelerometer 510 of the left and right sides produces is comparatively large, this situation can not cause the switching of the media resource of terminal plays.If the identical or difference of acceleration signal produced through the Gravity accelerometer 510 comparing the left and right sides is at tolerance interval, the register 511 of Gravity accelerometer 510 is prefixed Second Threshold and the 3rd threshold value, after receiving acceleration signal, the acceleration of horizontal direction can be decomposited in acceleration signal, compare with two threshold values.Second Threshold is identical with value in aforementioned embodiments with the value of the 3rd threshold value, and wherein Second Threshold value is the 10, three threshold value value is 170.Gravity accelerometer 510 sets, when the horizontal component of acceleration signal is greater than the 3rd threshold value value or is less than Second Threshold, output interruptive port INT1 and INT2 (sign) triggered interrupts on Gravity accelerometer 510.Be specially, when the horizontal component of acceleration signal is greater than 170, trigger the interruption of INT2 port, when the horizontal component of acceleration signal is less than 10, trigger the interruption of INT1 port.After interrupt signal is transferred to terminal 530, terminal 530 judges whether handoff functionality switch 531 is opened, if when being judged as handoff functionality switch 531 for closing, the interrupt signal received can not any operation of triggered interrupts 530.
Output interruptive port INT1 and INT2 on Gravity accelerometer 510 is connected to terminal 530 by data transmission bus 520.Data transmission bus 520 comprises audio signal transmission wire road 521 and interrupt signal transmission line 522, audio signal transmission wire road 521 is appreciated to headset earpiece the audio signal transmission of the media resource of terminal plays for people, interrupt signal transmission line 522 has two data wires, have no progeny in exporting in triggering, Transmission signal, be directly connected between Gravity accelerometer 510 and terminal 530, corresponding with the first receiving port in terminal 530 and the second receiving port (sign).Have no progeny because head oscillation triggers in output, on the monitoring modular 532 of terminal 530, the first receiving port or the second receiving port receive interrupt signal, judge that handoff functionality switch 531 is as after unlatching, monitoring modular 532 is by the receiving port of receive interruption signal, determine the direction of head oscillation, and according to the switch mode that the handover module 533 in terminal 530 presets, carry out the switching of media resource.
Be different from prior art, the system that media resource of the present invention switches is by the judgement of Gravity accelerometer to user's head oscillation direction, the corresponding corresponding relation at terminal profile, with switching media resource, simplify the operation, improve Consumer's Experience, the function of switching media resource can be closed simultaneously, user is along with the random swing head of rhythm, and can not cause the switching of media resource appreciating rock and roll class music, enhances practicality.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a media resource changing method, is characterized in that, described method comprises:
The first port that terminal monitoring output is interrupted and the interrupt signal that the second port sends to receive earphone, wherein, send when described interrupt signal is greater than first threshold by described earphone with the acceleration of gravity signal that head oscillation produces;
Terminal according to receiving the port of described interrupt signal according to the first preset mode switching media resource, wherein, the corresponding relation of the first port and the second port and media resource switch mode described in described first preset mode record.
2. method according to claim 1, it is characterized in that, at described terminal monitoring first port and the second port with in the step of the interrupt signal receiving earphone and send, if described acceleration of gravity signal is greater than first threshold, described terminal, after described earphone Gravity accelerometer judges the direction of described acceleration of gravity signal, receives the described interrupt signal sent to described first port or the second port according to the second preset mode; Wherein, the corresponding relation of the direction of acceleration of gravity signal described in described second preset mode record and described first port, the second port.
3. method according to claim 1, it is characterized in that, at described terminal monitoring first port and the second port with in the step of the interrupt signal receiving earphone and send, described terminal when described acceleration of gravity signal is less than Second Threshold or be greater than the 3rd threshold value by interrupt signal described in described first port or the second port accepts, wherein, described Second Threshold and the 3rd threshold value are that the register of described earphone Gravity accelerometer presets.
4. method according to claim 1, is characterized in that, described method also comprises:
The acceleration of gravity signal that terminal monitoring the 3rd port sends to receive earphone; Described acceleration of gravity signal is produced with head oscillation by described earphone, and described terminal is by acceleration of gravity signal described in twin wire data/address bus I2C real-time reception;
The direction of acceleration of gravity signal described in terminal judges, according to the 3rd preset mode switching media resource; The direction of acceleration of gravity signal and the corresponding relation of media resource switch mode described in described 3rd preset mode record.
5. the method according to claim 1-4 any one, is characterized in that, described acceleration of gravity signal is the direction that the component of acceleration of described Gravity accelerometer generation passes through to judge described component, carries out the switching of media resource.
6. method according to claim 1, it is characterized in that, after described terminal monitoring first port and the second port are with the step of the interrupt signal receiving earphone and send, described method also comprises: whether described terminal judges opens by waving head switching media resource function, and when described by wave head switching media resource function open time perform described terminal according to the step of port according to the first preset mode switching media resource receiving described interrupt signal.
7. method according to claim 1, is characterized in that, described terminal is video playing terminal or audio-frequency playing terminal.
8. method according to claim 7, it is characterized in that, in described terminal according in the step of the port receiving described interrupt signal according to the first preset mode switching media resource, described first port and the second port and the corresponding relation of media resource switch mode comprise the switching of the switching of described first port and the corresponding song of the second port, described first port and the corresponding video of the second port, or described first port and the second port correspondence is looked, the mixing of audio frequency switches.
9. a terminal for media resource switching, it is characterized in that, described terminal comprises monitoring modular and handover module;
Wherein, described monitoring modular for monitor export interrupt the first port and the second port with receives earphone transmission interrupt signal; Wherein, send when described interrupt signal is greater than first threshold by described earphone with the acceleration of gravity signal that head oscillation produces;
The port that described handover module is used for according to receiving described interrupt signal carrys out switching media resource according to the corresponding relation of the first port described in the first preset mode record and the second port and media resource switch mode.
10. a system for media resource switching, it is characterized in that, described system comprises Gravity accelerometer, data transmission bus and terminal;
Wherein, described Gravity accelerometer is used at earphone with producing acceleration of gravity signal during head oscillation and judging the direction of described acceleration of gravity signal and send interrupt signal according to the second preset mode by the first port of described Gravity accelerometer or the second port; Described data transmission bus is used for described interrupt signal to be transferred to described terminal from described Gravity accelerometer; Described terminal is used for according to receiving the port of described interrupt signal according to the first preset mode switching media resource; Described first preset mode record receives described first port of described interrupt signal and the corresponding relation of the second port and media resource switch mode; The direction of acceleration of gravity signal described in described second preset mode record and the corresponding relation of the port of transmission interrupt signal.
CN201410836375.1A 2014-12-26 2014-12-26 Media resource switching method, terminal and system Pending CN104601803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410836375.1A CN104601803A (en) 2014-12-26 2014-12-26 Media resource switching method, terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410836375.1A CN104601803A (en) 2014-12-26 2014-12-26 Media resource switching method, terminal and system

Publications (1)

Publication Number Publication Date
CN104601803A true CN104601803A (en) 2015-05-06

Family

ID=53127289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410836375.1A Pending CN104601803A (en) 2014-12-26 2014-12-26 Media resource switching method, terminal and system

Country Status (1)

Country Link
CN (1) CN104601803A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714018A (en) * 2015-07-21 2017-05-24 杭州纳雄科技有限公司 Earphone circuit, earphone control method, and using method of earphone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668080A (en) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 Method and device for controlling mobile terminal by earphone
CN102833644A (en) * 2011-06-15 2012-12-19 比亚迪股份有限公司 Bluetooth headset with acceleration transducer and control method of Bluetooth headrest
CN104185109A (en) * 2014-09-01 2014-12-03 联想(北京)有限公司 Control system, earphone, electronic device and control method
CN104199655A (en) * 2014-08-27 2014-12-10 深迪半导体(上海)有限公司 Audio switching method, microprocessor and earphones

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668080A (en) * 2009-09-28 2010-03-10 中兴通讯股份有限公司 Method and device for controlling mobile terminal by earphone
CN102833644A (en) * 2011-06-15 2012-12-19 比亚迪股份有限公司 Bluetooth headset with acceleration transducer and control method of Bluetooth headrest
CN104199655A (en) * 2014-08-27 2014-12-10 深迪半导体(上海)有限公司 Audio switching method, microprocessor and earphones
CN104185109A (en) * 2014-09-01 2014-12-03 联想(北京)有限公司 Control system, earphone, electronic device and control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714018A (en) * 2015-07-21 2017-05-24 杭州纳雄科技有限公司 Earphone circuit, earphone control method, and using method of earphone
CN106714018B (en) * 2015-07-21 2023-05-26 杭州纳雄科技有限公司 Earphone circuit, earphone control method and earphone use method

Similar Documents

Publication Publication Date Title
CN203289452U (en) Wireless audio system based on acoustic wave communication pairing
CN110166877A (en) A kind of audio frequency playing method, device and the charging box of TWS earphone
CN106648537B (en) A kind of decoded control method of audio data and mobile terminal
MXPA06006012A (en) High data rate interface with improved link synchronization.
BRPI0410885B1 (en) GENERATE AND IMPLEMENT A SIGNAL AND INTERFACE PROTOCOL FOR HIGHER DATA RATES
CN103677728B (en) A kind of electronic installation and audio-frequency information sharing method
CN108810621B (en) Video data playing method and device, mobile terminal and storage medium
JP6526238B2 (en) Operating system and method for realizing the function of a Bluetooth (registered trademark) slave facility using an embedded operating system
WO2020164534A1 (en) Auxiliary information reporting method and apparatus, and communication device
CN110149620B (en) Control method and device of intelligent earphone, intelligent earphone and storage medium
CN204559840U (en) A kind of earphone with Data Control plate
CN104601803A (en) Media resource switching method, terminal and system
CN104063033B (en) State switching method and electronic equipment based on interconnection electronic devices
CN104978031A (en) Head-mounted display and video control method for head-mounted display
CN101227670B (en) Mobile phone line control machine and control method thereof
CN202872916U (en) Colinear remote data-voice co-transmission equipment
CN201355847Y (en) Continuous key-press processing device and TV set
CN105578278A (en) Display equipment and method for realizing incoming-call on-function on MHL source
CN102833513B (en) High definition player
CN103037044A (en) Coal mine multi-media public address communication terminal
CN1951084B (en) High data rate interface with improved chain circuit synchrony
TWI312076B (en) Apparatus and related method for chip i/o test
CN201039376Y (en) A portable radio visual doorbell
CN110035346A (en) Communication means, device, bluetooth headset and the storage medium of bluetooth headset
Li et al. Design of music toy car based on smart phone via Bluetooth remote control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506

RJ01 Rejection of invention patent application after publication