CN102185960A - Player program switching method and device based on mobile phone - Google Patents

Player program switching method and device based on mobile phone Download PDF

Info

Publication number
CN102185960A
CN102185960A CN2011100005321A CN201110000532A CN102185960A CN 102185960 A CN102185960 A CN 102185960A CN 2011100005321 A CN2011100005321 A CN 2011100005321A CN 201110000532 A CN201110000532 A CN 201110000532A CN 102185960 A CN102185960 A CN 102185960A
Authority
CN
China
Prior art keywords
mobile phone
program
player
request signal
node
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
CN2011100005321A
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 CN2011100005321A priority Critical patent/CN102185960A/en
Publication of CN102185960A publication Critical patent/CN102185960A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a player program switching method based on a mobile phone, which comprises the following steps: detecting press buttons of earphones of the mobile phone to acquire press button signals; responding to the press button signals, and judging the current state of the mobile phone; and if the mobile phone is in a program playing state, sending program switching request signals to a player of the mobile phone, thus switching player programs. The invention also provides a player program switching device based on a mobile phone. By using the above mode, the player program switching of the mobile phone can be controlled through the press button functions of the earphones of the mobile phone, thereby facilitating player program switching by the user at any time.

Description

A kind of player program switching method and device based on mobile phone
Technical field
The present invention relates to the mobile phone technique field, particularly relate to a kind of player program switching method and device based on mobile phone.
Background technology
At present, the wired earphone of mobile phone adapted also provides a button except possessing earphone and microphone function, and this button generally is used to receive calls or stops conversation, and does not have other function.
In addition, existing mobile phone generally all has player function, player function is one of the most used cell-phone function of user, such as, have many consumers and like in public transport, use the player of mobile phone to carry out broadcast program on the subway or in the park, yet when needs switch program, can only switch the program operation by keyboard or touch screen, cause inconvenience for user's use.
Therefore, switch and greatly to make things convenient for the user to switch program if can provide a kind of earphone that utilizes the mobile phone adapted to carry out the player program, to improve user experience.
Summary of the invention
The technical problem that the present invention mainly solves provides a kind of player program switching method and device based on mobile phone, can carry out program by the player of key control mobile phone by handset earphone and switch, make things convenient for user's program of playing of the player of switch mobile phone at any time.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of player program switching method based on mobile phone is provided, comprises: the button of detection of handset earphone, to obtain push button signalling; The response push button signalling, the current state of judgement mobile phone if mobile phone is in the playing programs state, then sends the player of program switching request signal to mobile phone, to switch the program of player.
Wherein, if mobile phone is in electricity condition, then send listen request signal to the session processing module of mobile phone to carry out telephone receiving.
Wherein, if mobile phone is in talking state, then send stop call request signal to session processing module to stop conversation.
Wherein, utilize player to preserve the playing programs tabulation with dique, dique comprises a plurality of nodes, each program is corresponding to a node, utilize pointed current playing program place node, player reads the program storing path from the node of pointed, and the content that reads program from the program storing path is to play.
Wherein, when player receives the program switching request signal, the pairing next node of pointed current playing program node is set.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of player program switching device shifter based on mobile phone is provided, comprises: the push button signalling acquisition module is used for the button of detection of handset earphone, to obtain push button signalling; Condition judgment module, be used to respond push button signalling, judge the current state of mobile phone, program switching request signal generation module, be used for determining mobile phone when being in the playing programs state in condition judgment module, generate the program switching request signal and send the player of program switching request signal, to switch the program of player to mobile phone.
Wherein, device further comprises the signal generation module that listens request, determine mobile phone when being in electricity condition in condition judgment module, the signal generation module that listens request generate the signal and sending of listening request listen request signal to the session processing module of mobile phone to carry out telephone receiving.
Wherein, device further comprises and stops the call request signal generation module, when mobile phone is in talking state, stop the call request signal generation module generate stop call request signal and send stop call request signal to session processing module to stop conversation.
Wherein, player is preserved the playing programs tabulation with dique, dique comprises a plurality of nodes, each program is corresponding to a node, utilize pointed current playing program place node, player reads the program storing path from the node of pointed, and the content that reads program from the program storing path is to play.
Wherein, when player receives the program switching request signal, node pairing next node in pointed current playing program place is set.
The invention has the beneficial effects as follows: be different from the situation of prior art, the player that the present invention controls mobile phone by the handset earphone keypress function carries out the program switching, makes things convenient for the user to switch the program of player at any time.
Description of drawings
Fig. 1 is the player program switching device shifter structure chart based on mobile phone according to the embodiment of the invention;
Fig. 2 is the player program switching method flow chart based on mobile phone according to the embodiment of the invention.
Embodiment
See also Fig. 1, wherein Fig. 1 is the player program switching device shifter structure chart based on mobile phone according to the embodiment of the invention.As shown in Figure 1, the player program switching device shifter based on mobile phone of the present invention comprises: push button signalling acquisition module 101, condition judgment module 102, the signal generation module 103 that listens request, stop call request signal generation module 104, program switching request signal generation module 105, session processing module 106 and player 107.
Wherein, push button signalling acquisition module 101 is used for the key-press status of detection of handset earphone, to obtain push button signalling, and in the present embodiment, can adopt interruption or polling mode to come the key-press status of detection of handset earphone, particularly, interrupt mode is meant to press by the detection of handset earphone keystroke and produces an interrupt signal that corresponding module (as condition judgment module 102) detects this interrupt signal and can think to get access to push button signalling.Whether polling mode be meant every a time interval detection of handset earphone keystroke and press, and when detecting the handset earphone button and press, corresponding module (as condition judgment module 102) can be judged and got access to push button signalling.
Condition judgment module 102 can respond the current state that push button signalling is judged mobile phone, and in the present embodiment, the state of mobile phone comprises: come electricity condition, talking state, playing programs state.
Determine mobile phone when being in electricity condition in condition judgment module 102, condition judgment module 102 can trigger the signal generation module 103 that listens request and generate the signal that listens request, the signal generation module 103 that the listens request signal that will listen request is sent to the session processing module 106 of mobile phone, and session processing module 106 is carried out telephone receiving according to the signal controlling mobile phone that listens request.
Determine mobile phone when being in talking state in condition judgment module 102, condition judgment module 102 can trigger and stop call request signal generation module 104 and generate and stop call request signal, stopping call request signal generation module 104 can be sent to session processing module 106 with stopping call request signal, and session processing module 106 stops conversation according to stopping call request signal control mobile phone.
Determine mobile phone when being in the playing programs state in condition judgment module 102, condition judgment module 102 can trigger program switching request signal generation module 105 and generate the program switching request signal, program switching request signal generation module 105 can be sent to the program switching request signal player 107, and player 107 can carry out program according to the program switching request signal and switch.
Particularly, player 107 can dique be preserved the playing programs tabulation, the order of dique is corresponding one by one with the order of playing programs tabulation, dique comprises a plurality of nodes, each program is corresponding to a node, player 107 can utilize the node at pointed current playing program place, and reads the program storing path from the node of pointed, and then can read the content of program and play this programme content from the program storing path.
And when player 107 receives the program switching request signal, player 107 stops current playing programs, and with the pairing next node of pointed current playing program place node, obtaining programme content, thereby can play next program with respect to current playing program from new node.
See also Fig. 2, Fig. 2 is the player program switching method flow chart based on mobile phone according to the embodiment of the invention.As shown in Figure 2, the player program switching method step based on mobile phone of the present invention comprises:
Step 201: the button of detection of handset earphone, to obtain push button signalling.
Step 202: the response push button signalling, judge the current state of mobile phone, determining mobile phone when being in electricity condition, step 203 can be entered,, step 204 can be entered determining mobile phone when being in the playing programs state, when determining mobile phone when being in talking state, can enter step 205.
In step 203, can send listen request signal to the session processing module of mobile phone to carry out telephone receiving.
In step 204, can send the player 107 of program switching request signal, to switch the program of player to mobile phone.
In step 205, can send stop call request signal to the session processing module 106 of mobile phone to stop conversation;
Wherein, above step 201 can be carried out by push button signalling acquisition module 101, step 202 can be carried out by condition judgment module 102, step 203 can be carried out by the signal generation module 103 that listens request, step 204 can be carried out by stopping call request signal generation module 104, and step 205 can be carried out by program switching request signal generation module 105.
By above technical scheme, player program switching device shifter and method based on mobile phone provided by the present invention can be achieved as follows function: when the user wants to switch song, do not need mobile phone is taken out in pocket or in the bag, operate by cell phone keyboard or touch-screen again, only need click the button on the handset earphone, just can switch, reached the effect of line traffic control, the song that can make the user select oneself to like at that time in numerous songs of mobile phone is listened to, greatly facilitate the user, therefore, the present invention can control the player program switching of mobile phone by the handset earphone keypress function, makes things convenient for the user to switch the program of player at any time.
The above only is embodiments of the invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. player program switching method based on mobile phone is characterized in that described method comprises:
The button of detection of handset earphone is to obtain push button signalling;
Respond described push button signalling, judge the current state of mobile phone,
If described mobile phone is in the playing programs state, then send the player of program switching request signal, to switch the program of described player to described mobile phone.
2. method according to claim 1 is characterized in that, described method further comprises: if described mobile phone is in electricity condition, then send listen request signal to the session processing module of described mobile phone to carry out telephone receiving.
3. method according to claim 1 is characterized in that, described method further comprises: if described mobile phone is in talking state, then send stop call request signal to described session processing module to stop conversation.
4. method according to claim 1, it is characterized in that, utilize described player to preserve the playing programs tabulation with dique, described dique comprises a plurality of nodes, each program is corresponding to a node, utilize pointed current playing program place node, described player reads the program storing path from the described node of described pointed, and reads the content of described program to play from described program storing path.
5. method according to claim 4 is characterized in that, when described player receives described program switching request signal, the pairing next node of the described current playing program of described pointed place node is set.
6. player program switching device shifter based on mobile phone is characterized in that described device comprises:
The push button signalling acquisition module is used for the button of detection of handset earphone, to obtain push button signalling;
Condition judgment module is used to respond described push button signalling, judges the current state of mobile phone,
Program switching request signal generation module, be used for determining described mobile phone when being in the playing programs state in described condition judgment module, generate the program switching request signal and send the player of described program switching request signal, to switch the program of described player to described mobile phone.
7. device according to claim 6, it is characterized in that, described device further comprises the signal generation module that listens request, determine described mobile phone when being in electricity condition in described condition judgment module, the described signal generation module that listens request generate listen request signal and send described listen request signal to the session processing module of described mobile phone to carry out telephone receiving.
8. device according to claim 7, it is characterized in that, described device further comprises and stops the call request signal generation module, when described mobile phone is in talking state, described stop the call request signal generation module generate stop call request signal and send described stop conversation signal to described session processing module to stop conversation.
9. device according to claim 6, it is characterized in that, described player is preserved the playing programs tabulation with dique, described dique comprises a plurality of nodes, each program is corresponding to a node, utilize pointed current playing program place node, described player reads the program storing path from the described node of described pointed, and reads the content of described program to play from described program storing path.
10. device according to claim 9 is characterized in that, when described player receives described program switching request signal, the pairing next node of the described current playing program of described pointed place node is set.
CN2011100005321A 2011-01-04 2011-01-04 Player program switching method and device based on mobile phone Pending CN102185960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100005321A CN102185960A (en) 2011-01-04 2011-01-04 Player program switching method and device based on mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100005321A CN102185960A (en) 2011-01-04 2011-01-04 Player program switching method and device based on mobile phone

Publications (1)

Publication Number Publication Date
CN102185960A true CN102185960A (en) 2011-09-14

Family

ID=44572028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100005321A Pending CN102185960A (en) 2011-01-04 2011-01-04 Player program switching method and device based on mobile phone

Country Status (1)

Country Link
CN (1) CN102185960A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104330983A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Control method and electronic device
WO2018023422A1 (en) * 2016-08-02 2018-02-08 张阳 Data collecting method for music switching technology, and eyeglasses
WO2018023421A1 (en) * 2016-08-02 2018-02-08 张阳 Method for automatically switching music, and glasses

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6122369A (en) * 1996-05-22 2000-09-19 Samsung Electronics Co., Ltd. Communication process device and method therefor
CN101216731A (en) * 2007-01-05 2008-07-09 联想移动通信科技有限公司 Portable electronic apparatus and its line traffic control accomplishing method
CN201328152Y (en) * 2008-12-11 2009-10-14 中兴通讯股份有限公司 Wire control device for mobile TV

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6122369A (en) * 1996-05-22 2000-09-19 Samsung Electronics Co., Ltd. Communication process device and method therefor
CN101216731A (en) * 2007-01-05 2008-07-09 联想移动通信科技有限公司 Portable electronic apparatus and its line traffic control accomplishing method
CN201328152Y (en) * 2008-12-11 2009-10-14 中兴通讯股份有限公司 Wire control device for mobile TV

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104330983A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Control method and electronic device
WO2018023422A1 (en) * 2016-08-02 2018-02-08 张阳 Data collecting method for music switching technology, and eyeglasses
WO2018023421A1 (en) * 2016-08-02 2018-02-08 张阳 Method for automatically switching music, and glasses

Similar Documents

Publication Publication Date Title
CN104571498B (en) A kind of application program launching method
CN101668080A (en) Method and device for controlling mobile terminal by earphone
CN102833421B (en) Mobile terminal and reminding method
CN201893826U (en) Mobile phone with double-faced answer
US10630826B2 (en) Information processing device
CN103139394B (en) A kind of incoming call sound based on mobile phone or hang up processing method and system
CN101370053B (en) Mobile terminal and method for operating mobile terminal by headphone
CN103747511B (en) information broadcasting method and system
KR20130066880A (en) Detecting system for connecting of earphone and electric device supporting the same
CN103873644A (en) Data processing method and terminal
CN101102337A (en) A method for realizing multimedia line control earphone function on mobile phone
CN202004847U (en) Mobile phone capable of controlling music playing and pausing through earphone key
CN103118191A (en) Using control method and mobile terminal for iPhone wire control earphone
CN103581853A (en) Method and device for voice broadcast of text message on mobile phone
CN104065794A (en) Incoming call processing method and device
CN108024128A (en) Control method, device, terminal device and the storage medium that Bluetooth music plays
CN105677290A (en) Voice application program control method and client side
CN102938819A (en) Mobile terminal music control system and method
CN202565455U (en) Audio signal processing device
CN103249104A (en) Data transmission method and device
CN102932552A (en) Mobile terminal for playing preset events in bright screen mode and control method thereof
WO2018201943A1 (en) Device control method, device and system
CN103209257B (en) Method for controlling voice assistant through earphone
CN102185960A (en) Player program switching method and device based on mobile phone
CN201328152Y (en) Wire control device for mobile TV

Legal Events

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

Application publication date: 20110914