Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of based on the wireless system and method for alarm clock on cell phone start by set date FM.The present invention in advance FM broadcast receiver is set to the quarter-bell of alarm clock, and alarm time arrives, and starts FM broadcast receiver.The present invention, by alarm clock function, reaches the radio station of start by set date corresponding frequencies, avoids cellphone subscriber to miss excellent program of radio station, greatly facilitates cellphone subscriber.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Based on the wireless method of alarm clock on cell phone start by set date FM, wherein, comprising:
A, in advance frequency the storage that starts the time of alarm clock and set the program of radio station that need listen on FM broadcast receiver be set on mobile phone;
The prompt tone that B, reception user's operational order selects FM broadcast receiver to arrive as alarm time;
C, arrive when alarm time, by alarm clock, start and control FM broadcast receiver and listen to the program of radio station setting.
Described based on the wireless method of alarm clock on cell phone start by set date FM, wherein, before described steps A, also comprise:
S, the data structure of alarm clock on cell phone setting is expanded, increased by two fields for preserving alarm clock prompting type and FM frequency information, be respectively alert_type and FM_frequency, wherein alert_type value is 0, is normal alarm clock calling; Value is 1 and plays FM broadcast receiver for starting.
Described based on the wireless method of alarm clock on cell phone start by set date FM, wherein, after described step C, also comprise:
S1, when function of radio receiver starts, whether detect needs to do FM radio antenna with earphone, when need with earphone as FM radio antenna, judge whether earphone is plugged, if so, carry out S2, or not do not carry out S3
S2, ejection prompting interface, show that user mobile phone meets the condition of carrying out next step setting;
S3, ejection interface reminding user plug in the earphone.
Described based on the wireless method of alarm clock on cell phone start by set date FM, wherein, described steps A specifically comprises:
A1, the operational order that receives user enter alarm clock interface are set, and set the quarter-bell time of alarm clock according to program of radio station broadcast time;
A2, reception user's operational order enters the setting that FM broadcast receiver carries out frequency of radio station, the frequency of radio station that need listen to is set, or in station list, selects a frequency;
Alarm clock and the wireless frequency of radio station of FM that A3, preservation set.
Described based on the wireless method of alarm clock on cell phone start by set date FM, wherein, described step B also comprises: when receiving user's operational order and select prompt tone that FM broadcast receiver arrives as alarm time, the data structure alert_type value of alarm clock on cell phone setting is set to 1.
Described based on the wireless method of alarm clock on cell phone start by set date FM, wherein, described step C also comprises:
C1, arrive when alarm time, start and set in advance, start alarm clock, and whether the data structure alert_type value of detection of handset alarm clock setting is 1;
C2, when the data structure alert_type value of detection of handset alarm clock setting is for 1 time, by alarm clock, recall the FM broadcast receiver on mobile phone, listen to the program of radio station that sets in advance frequency.
Based on the wireless system of alarm clock on cell phone start by set date FM, wherein, comprising:
Module is set: for frequency the storage that starts the time of alarm clock and set the program of radio station that need listen on FM broadcast receiver is set in advance on mobile phone;
Receiving processing module, the prompt tone of selecting FM broadcast receiver to arrive as alarm time for receiving user's operational order;
Start module: for arriving when alarm time, by alarm clock, start control FM broadcast receiver and listen to the program of radio station setting.
Described based on the wireless system of alarm clock on cell phone start by set date FM, wherein, it also comprises:
Data structure arranges module, for the data structure of alarm clock on cell phone setting is expanded, increase by two fields for preserving alarm clock prompting type and FM frequency information, be respectively alert_type and FM_frequency, wherein alert_type value is 0, is normal alarm clock calling; Value is 1 and plays FM broadcast receiver for starting.
Described based on the wireless system of alarm clock on cell phone start by set date FM, wherein, the described module that arranges also comprises:
The first setting unit: enter alarm clock interface is set for receiving user's operational order, set the quarter-bell time of alarm clock according to program of radio station broadcast time;
The second setting unit: enter for receiving user's operational order the setting that FM broadcast receiver carries out frequency of radio station, the frequency of radio station that need listen to is set, or select a frequency in station list.
Described based on alarm clock on cell phone start by set date FM broadcast receiver system, wherein, described receiving processing module also comprises: data structure processing unit, for when receiving the prompt tone that user's operational order selection FM broadcast receiver arrives as alarm time, the data structure alert_type value of alarm clock on cell phone setting is set to 1;
Described startup module comprises:
Start and detecting unit, for arriving when alarm time, start and set in advance, start alarm clock, and whether the data structure alert_type value of detection of handset alarm clock setting is 1;
Broadcast receiver starts control unit, for the data structure alert_type value when the setting of detection of handset alarm clock, is for 1 time, by alarm clock, recalls the FM broadcast receiver on mobile phone, listens to the program of radio station that sets in advance frequency.
The invention discloses a kind of based on the wireless system and method for alarm clock on cell phone start by set date FM, by: the frequency the storage that start the time of alarm clock and on FM broadcast receiver, set the program of radio station that need listen to are set in advance on mobile phone; The prompt tone that reception user's operational order selects FM broadcast receiver to arrive as alarm time; When alarm time arrives, by alarm clock, start control FM broadcast receiver and listen to the program of radio station setting, to mobile phone, increased new function: realized and passed through alarm clock function, come the radio station of start by set date corresponding frequencies, thereby prevent that cellphone subscriber is because remembering the time that inaccurate program is play or having forgotten that Pgmtime has missed interested program of radio station, greatly facilitates cellphone subscriber.
Embodiment
For making object of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart that the present invention is based on the preferred embodiment of alarm clock on cell phone start by set date FM broadcast receiver method.
As shown in Figure 1, describedly based on the wireless method of alarm clock on cell phone start by set date FM, comprise:
S100, in advance the time that starts alarm clock and the frequency that sets the program of radio station that need listen on FM broadcast receiver be set on mobile phone.
In the present embodiment, specifically can arrange by following steps:
A1, the operational order that receives user enter alarm clock interface are set, and set the quarter-bell time of alarm clock according to program of radio station broadcast time;
A2, enter the setting that FM broadcast receiver carries out frequency of radio station, the frequency of radio station that need listen to is set, or in station list, selects a frequency;
Alarm clock and the wireless frequency of radio station of FM that A3, preservation set.
Be setting up procedure in step of the present invention: enter alarm clock interface is set, according to program of radio station broadcast time, set the quarter-bell time of alarm clock, then entering the tinkle of bells selects interface to select FM broadcast receiver as the tinkle of bells, next carry out the setting of frequency of radio station, can adopt the mode of manual input or enter the wireless station list of FM and select one, kept alarm clock setting and started quarter-bell.
Further, in one day, cellphone subscriber may listen to several program of radio station of liking, and in better embodiment, can on user mobile phone, create in advance bivariate table and store program of radio station Time And Frequency corresponding relation, for example:
For example, the 12:30 time arrives, and FM broadcast receiver is listened to the radio station of 100 frequencies, and then mobile phone upgrades alarm clock setting, and alarm time is updated to 13:40, and the frequency that FM broadcast receiver is listened to is 70.User needn't again manually arrange again alarm clock after having listened to a program like this, in one day, user not only can listen to all programs of oneself liking, and do not worry, because forgetting that time or the time of misremembering missed the program of liking, greatly facilitating user.
The prompt tone that S200, reception user's operational order selects FM broadcast receiver to arrive as alarm time.
Wherein, particularly, in alarm clock setting, while selecting alarm clock prompting music, be not that relevant song is looked in music libraries the inside, but select broadcast receiver as alarm time to play sound, by FM broadcast receiver is realized to prompt tone as alarm time.
S300, arrive when alarm time, by alarm clock, start and control FM broadcast receiver and listen to the program of radio station setting.Work as alarm time then, by alarm clock, start control FM broadcast receiver and listen to the program of radio station setting.
In preferred embodiment, after carrying out step S300, when FM function of radio receiver starts, can also comprise the following steps:
S1, when FM function of radio receiver starts, whether detect needs to do FM radio antenna with earphone, when need with earphone as FM radio antenna, judge whether earphone is plugged, if so, carry out S2, or not do not carry out S3;
S2, ejection prompting interface, show that user mobile phone meets the condition of carrying out next step setting;
S3, ejection interface reminding user plug in the earphone.
Therefore, the invention provides a kind ofly based on the wireless method of alarm clock on cell phone start by set date FM, by arranging on mobile phone in advance, start the time of alarm clock and the channel of wanting to listen to program of radio station is set on FM broadcast receiver; The prompt tone that reception user's operational order selects FM broadcast receiver to arrive as alarm time; When alarm time arrives, by alarm clock, start FM broadcast receiver and listen to program of radio station, realized and passed through alarm clock function, come the radio station of start by set date corresponding frequencies, thereby prevent that cellphone subscriber is because remembering the time that inaccurate program is play or having forgotten that Pgmtime has missed interested program of radio station, greatly facilitates cellphone subscriber.
In order better to understand the present invention, at this, in conjunction with Fig. 2, further technical solution of the present invention is described, should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 2 is the flow chart that the present invention is based on the concrete Application Example of alarm clock on cell phone start by set date FM broadcast receiver system, comprises the following steps:
First to carry out alarm clock setting: the data structure to alarm clock on cell phone setting is expanded, increase by two fields and be used for preserving alarm clock prompting type and FM frequency information, be respectively alert_type and FM_frequency, wherein alert_type value is 0, is normal alarm clock calling; Value is 1 and plays FM broadcast receiver for starting.
Then enter alarm clock calling judgement, shown in figure 2:
S10, alarm time arrive, and enter step S20.
Set in advance for starting the time of alarm clock.
S20, read alarm clock setting, and enter step S30.
Reading alarm clock setting comprises: while reading the startup alarm clock that cellphone subscriber sets in advance, the program frequencies that FM broadcast receiver is play and cellphone subscriber are stored in several program frequencies and the corresponding timetable in mobile phone in advance, specifically as above described in S100.
S30, judge that alarm clock arranges member alert_type(alarm types in structure) whether value be 1, enters step S40 when being, enters step S41 when no.
Described alert_type(alarm types) refer to a kind of redirect condition, when the value of described alert_type is 1, carry out S40, when the value of described alert_type is 0, carry out normal alarm clock calling flow process.
Described alert_type works as alarm time then for difference, mobile phone is start FM broadcast receiver or normally start alarm clock calling, by described alert_type value, in conjunction with software, reach mobile phone and can automatically identify above-mentioned two situations, prevention occurs that the situation of wrong report occurs.
Wherein, when the described normal alarm clock calling time, listen to the program of radio station time when identical with described FM broadcast receiver, the value that is alert_type is 1 and 0 simultaneously, this will cause conflict, the confusion that occurs cell-phone function, or occur that mobile phone crashes or automatic shutdown situation, in preferred embodiment, described, set up a time delay module on based on the wireless system of alarm clock on cell phone start by set date FM, for listening to the program of radio station time when identical when the normal alarm clock calling time with described FM broadcast receiver, one of them time delays 1 second or 2 seconds, concrete delay time is in this no limit.That is, normal alarm clock calling time and described FM broadcast receiver are listened to the program of radio station time when identical, and mobile phone can first start normal alarm clock calling, and time delay, after 1 second or 2 seconds, is restarted FM broadcast receiver and listened to program of radio station.Both are rear mutually sequentially can change, in this no limit.
Further, because cellphone subscriber has on earphone a whole day to go to wait for that handset starting FM broadcast receiver listens to program, for example, in time leisurely, it's not time yet for program of radio station, user selects to see a joint storytelling, add that some mobile phones take earphone as FM radio antenna, when plugged earphone, the outer sound of mobile phone does not just play effect, once the program of radio station time arrives, owing to having plugged earphone, the sound that broadcast by earphone in radio station may be not enough to cause user's attention, likely can cause user to miss the program of radio station of liking.In better specific embodiment, described based on setting up a shock module in the wireless system of alarm clock on cell phone start by set date FM, described shock module combines with the vibration function on mobile phone, for when the radio station time then, start the vibration function on mobile phone, in advance user.
S40, judge that FM_frequency value whether in default frequency range, enters step S50 when being, when no, enter step S41.
Described FM_frequency value refers to the frequency values in radio station.
Particularly, near the program of radio station that FM broadcast receiver can be identical a frequency values, so, in preferred embodiment, can set in advance a frequency values scope, as long as described FM_frequency value is within the scope of this frequency values, all carry out S50.
Otherwise enter step S41,
Step S41, enters normal alarm clock calling flow process.
S50, do not show alarm clock calling interface and upgrade alarm clock setting, and entering step S60.
Described renewal alarm clock arranges, specifically as above described in S100.
S60, for earphone as the mobile phone of FM antenna, judge whether that earphone plugs, when being, enter step S70, when no, enter step S61.
If earphone is plugged, carry out S70, otherwise enter S61 ejection interface reminding user, plug in the earphone.
S70, call the function of playing FM and play the radio station of FM_frequency value, and enter step S80.
S80, end.
Therefore, in the present invention when the quarter-bell time to be treated to: notifications alarm time arrives, read the setting that alarm clock is preserved, according to alert_type field, judge whether it is the wireless setting of FM, if, by the value of FM_frequency field, as FM frequency and call the function that starts FM and play, and there will not be the interface of alarm clock calling; If not, walk the prompting flow process of normal alarm clock.
Based on above-described embodiment, it is a kind of based on the wireless system of alarm clock on cell phone start by set date FM that the present invention also provides, and as shown in Figure 3, described system comprises:
Module 410 is set: for frequency the storage that starts the time of alarm clock and set the program of radio station that need listen on FM broadcast receiver is set in advance on mobile phone;
Receiving processing module 420, the prompt tone of selecting FM broadcast receiver to arrive as alarm time for receiving user's operational order; Specifically as described in above-mentioned steps.
Start module 430: for arriving when alarm time, by alarm clock, start control FM broadcast receiver and listen to the program of radio station setting; Specifically as described in above-mentioned steps.
Further, described based on the wireless system of alarm clock on cell phone start by set date FM, wherein, it also comprises:
Data structure arranges module, for the data structure of alarm clock on cell phone setting is expanded, increase by two fields for preserving alarm clock prompting type and FM frequency information, be respectively alert_type and FM_frequency, wherein alert_type value is 0, is normal alarm clock calling; Value is 1 and plays FM broadcast receiver for starting; Specifically as described in above-mentioned steps.
Described based on the wireless system of alarm clock on cell phone start by set date FM, wherein, the described module that arranges also comprises:
The first setting unit: enter alarm clock interface is set for receiving user's operational order, set the quarter-bell time of alarm clock according to program of radio station broadcast time; Specifically as described in above-mentioned steps.
The second setting unit: enter for receiving user's operational order the setting that FM broadcast receiver carries out frequency of radio station, the frequency of radio station that need listen to is set, or select a frequency in station list, specifically as described in above-mentioned steps.
Described based on alarm clock on cell phone start by set date FM broadcast receiver system, wherein, described receiving processing module also comprises: data structure processing unit, for when receiving the prompt tone that user's operational order selection FM broadcast receiver arrives as alarm time, the data structure alert_type value of alarm clock on cell phone setting is set to 1; Specifically as described in above-mentioned steps.
Described startup module comprises:
Start and detecting unit, for arriving when alarm time, start and set in advance, start alarm clock, and whether the data structure alert_type value of detection of handset alarm clock setting is 1; Specifically as described in above-mentioned steps.
Broadcast receiver starts control unit, for the data structure alert_type value when the setting of detection of handset alarm clock, is for 1 time, by alarm clock, recalls the FM broadcast receiver on mobile phone, listens to the program of radio station that sets in advance frequency, specifically as described in above-mentioned steps.
In sum, the present invention is based on the wireless system and method for alarm clock on cell phone start by set date FM, by arranging on mobile phone in advance, start the time of alarm clock and the channel of wanting to listen to program of radio station is set on FM broadcast receiver; The prompt tone that reception user's operational order selects FM broadcast receiver to arrive as alarm time; When alarm time arrives, by alarm clock, start FM broadcast receiver and listen to program of radio station, FM broadcast receiver is set to the object that alarm time then starts, and on FM broadcast receiver, sets the frequency of wanting to listen to program of radio station in advance.When the alarm time setting in advance then, mobile phone automatically recalls FM broadcast receiver and plays associated station program, realized and passed through alarm clock function, come the radio station of start by set date corresponding frequencies, thereby prevent that cellphone subscriber is because remembering the time that inaccurate program is play or having forgotten that Pgmtime has missed interested program of radio station, greatly facilitates cellphone subscriber.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.