Summary of the invention
The object of the present invention is to provide a kind of method managing wireless connections in mobile communications, the user being intended to the mobile terminal solving non-power-off in prior art may not know that the mobile terminal of power-off disconnects call because electricity is not enough, can worry that the other user meets accident for this reason, if the mobile terminal of power-off does not simultaneously have reserve battery or quick charge to arrange, also cannot inform the other user, all cause unnecessary troublesome problem therefore so may to both sides.
In order to realize goal of the invention, the method managing wireless connections in mobile communications comprises:
When server receives the low electricity warning of mobile terminal transmission, carry out the storage of corresponding low electricity caution sign;
When meet impose a condition time, server to send other mobile terminals that the low electricity mobile terminal of warn carries out conversing and send information, to point out partner, because low electricity causes shutdown, disconnection is conversed.
Preferably, described imposing a condition is that the mobile terminal sending the warning of low electricity is connected with the improper disconnection of wireless of other mobile terminals carrying out conversing, and does not cancel to server transmission radio connection request and corresponding low electricity caution sign in Preset Time.
Preferably, also comprise: server cancels corresponding low electricity caution sign after sending information to other mobile terminals.
Preferably, also comprise: after server carries out corresponding low electricity caution sign storage, when the information of the low electricity warning of the elimination that the mobile terminal that server receives the warning of transmission low electricity sends further, cancel low electricity caution sign.
Preferably, the mobile terminal sending the warning of low electricity sends the information eliminating the warning of low electricity further and is specially:
Mobile terminal period ground detects the dump energy of its battery;
When dump energy is more than or equal to default threshold value, mobile terminal sends the information eliminating the warning of low electricity further to server.
Preferably, mobile terminal send low electricity warning be specially:
Mobile terminal period ground detects the dump energy of its battery;
When dump energy is lower than the threshold value preset, mobile terminal sends the warning of low electricity to server.
In order to realize goal of the invention better, additionally provide a kind of mobile communication system, it is comprised server and is carried out at least two mobile terminals conversing by described server, described server is used for when receiving the low electricity warning that mobile terminal sends, carry out the storage of corresponding low electricity caution sign, when satisfied imposing a condition, to with send other mobile terminals that the low electricity mobile terminal of warn carries out conversing and send information, to point out partner, because low electricity causes shutdown, disconnection is conversed.
Preferably, impose a condition described in is that the mobile terminal sending the warning of low electricity connects to the improper disconnection of wireless of other mobile terminals carrying out conversing and in Preset Time, do not send radio connection request to server and corresponding low electricity caution sign is not cancelled.
Preferably, server also for after other mobile terminals transmission information, cancels corresponding low electricity caution sign; Or, when the information of the low electricity warning of the elimination that the mobile terminal receiving the warning of transmission low electricity sends further, cancel low electricity caution sign.
Preferably, described mobile terminal comprises: detection module, for periodically detecting the dump energy of the battery of mobile terminal; Sending module, for when dump energy is lower than the threshold value preset, sends the warning of low electricity to server, when dump energy is more than or equal to default threshold value, sends the information eliminating the warning of low electricity to server further.
Implement the method and the mobile communication system that manage wireless connections in mobile communications of the present invention, there is following beneficial effect: the inventive method relates to each side's mobile terminal and server that carry out conversing, mobile terminal periodically detects the dump energy of its battery in communication process, when low electricity to the low electricity warning of server, and server carries out the storage of low electricity caution sign, and when detecting that mobile terminal surprisingly disconnects because electricity exhausts, the counterpart mobile terminal initiatively feeding the words that work sends prompting, the other side is made to know because low electricity causes shutdown and disconnect call, reduce unnecessary worry.In addition, although store low electricity caution sign, not sending prompting to counterpart mobile terminal when there is not unexpected disconnection, as this reduced, the unnecessary of other mobile terminal being bothered, decrease the number of times sending prompting, saving resource.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the structured flowchart of mobile communication system of the present invention.This mobile communication system is comprised server 1 and is carried out at least two mobile terminals 2 of conversing by server 1, for call type, can be various types of calls such as the immediate communication between mobile terminal 2, voice-frequency telephony, video calling, not limit at this thus.Have n mobile terminal 2 as shown in Figure 1, this n mobile terminal 2 and server 1 carry out wireless connections by mobile communications network 3.The annexation that it should be noted that between each equipment shown in Fig. 1 of the present invention is the needs in order to its information interaction of clear explaination and control procedure, therefore should be considered as annexation in logic, and should not be only limitted to physical connection.Understandable; mobile terminal 3 can be the various terminal equipment that can carry out mobile communication; typically can be personal digital assistant (PersonalDigitalAssistant; PDA), mobile phone (MobilePhone; MP), Intelligent flat etc., therefore protection scope of the present invention should not be defined as the mobile terminal of certain particular type.In addition, this mobile communications network 3 can be 2G or 3G mobile communications network, such as GSM, CDMA2000, CDMA-EVDO, CDMA2000-1X, WCDMA, TD-SCDMA or WIMAX.
In actual use, server 1 can be two mobile terminals 2 provides double-talk or provides MPTY for plural mobile terminal 2.As shown in Figure 1, in communication process, when server 1 receives the low electricity warning of mobile terminal 2 transmission, carry out the storage of corresponding low electricity caution sign, not enough to indicate this mobile terminal 2 dump energy.Then in follow-up communication process, when the improper disconnection of wireless of mobile terminal 2 sending the warning of low electricity connects and Preset Time (such as 60 seconds, understandable, this Preset Time can be arranged as required flexibly) in do not send radio connection request to server 1 and (namely corresponding low electricity caution sign is not cancelled, server 1 indicates this mobile terminal 2 all the time and is in low state of charge, and mobile terminal 2 does not carry out charging with supplementary electricity yet) time, server 1 to send other mobile terminals that the low electricity mobile terminal 2 of warning carries out conversing (such as, can be the opposing party of double-talk or other each side of MPTY) send information (such as, " your good friend is disconnected call because mobile terminal electricity is not enough, please not worry "), call is disconnected because low electricity causes shutdown to point out the other side.In addition, server 1 completes this laggard row Refresh Data of conversing, and server 1, after sending information to other mobile terminals 2, is cancelled corresponding low electricity caution sign, namely carried out the elimination of data.
Further, after after server 1 carries out corresponding low electricity caution sign storage, corresponding mobile terminal 2 is charged to its battery by charger again, when server 1 receives the information of the low electricity warning of the further elimination sent of the mobile terminal 2 sending the warning of low electricity, cancel low electricity caution sign, namely represent that this mobile terminal is no longer in low state of charge.
In a preferred embodiment, the concrete operations that mobile terminal 2 sends the warning of low electricity to server 1 are: mobile terminal 2 periodically detects the dump energy of its battery, namely the electricity quantity inquiring interface that provided by system of mobile terminal 2, inquires about the dump energy of its battery; When dump energy lower than preset threshold value (10% of such as battery capacity, understandable, this predetermined threshold value can be arranged as required flexibly) time, mobile terminal 2 to server 1 send low electricity warning.In addition, the mobile terminal 2 sending the warning of low electricity sends the concrete operations eliminating the information that low electricity is warned further and is: mobile terminal 2 periodically detects the dump energy of its battery; When dump energy is more than or equal to default threshold value, mobile terminal 2 sends the information eliminating the warning of low electricity further to server 1.
When two mobile terminals carry out double-talk, after mobile terminal A and mobile terminal B is connected by server 1, the residual capacity measurement mechanism of this mobile terminal A and mobile terminal B difference initiated to periodically; Such as, when the detection module of mobile terminal A detects that the dump energy of its battery is lower than threshold value, 10% of battery capacity, the system that mobile terminal A runs will send low electricity by backstage sending module and warn to server 1; Server 1 will after receiving the warning of low electricity, setting and the storage of low electricity caution sign will be carried out, this low electricity caution sign will indicate specifically which mobile terminal and be in low electricity alarm condition, specifically which mobile terminal is conversed, can be indicated by other Data Labelses.If in communication process subsequently, mobile terminal A due to battery electric quantity not enough, automatic shutdown, abnormal ending of namely conversing on one's own initiative; Server 1 will start timer when conversing and disconnecting, if do not receive the radio connection request that mobile terminal A sends in Preset Time such as 60 seconds, server 1 automatically can send information to the mobile terminal B carrying out conversing with mobile terminal A, with prompting mobile terminal B: your good friend A is not enough due to the dump energy of battery, disconnects call.
Fig. 2 shows the flow process managing the method for wireless connections in mobile communications of first embodiment of the invention, and the method flow process is based on the system configuration shown in Fig. 1, and detailed process is as follows:
S210: two mobile terminals 2 carry out double-talk by server 1 or plural mobile terminal 2 carries out MPTY by server 1, carrying out in the process conversed, when server 1 receives the low electricity warning of one of them mobile terminal 2 transmission, server 1 will carry out the storage of corresponding low electricity caution sign; Wherein, mobile terminal will periodically detect the dump energy of its battery; When dump energy is lower than the threshold value preset, mobile terminal sends the warning of low electricity to server.
S211: then in communication process subsequently, when satisfied imposing a condition, server 1 to send other mobile terminals that the low electricity mobile terminal of warning carries out conversing (such as, one or more mobile terminal, the quantity of the mobile terminal notified needed for this determines according to both sides or MPTY) send information, disconnect call to point out the other side because low electricity causes shutdown.
In one embodiment, this imposes a condition can be that the improper disconnection of wireless of mobile terminal 2 sending the warning of low electricity connects (i.e. abnormal ending call on one's own initiative) and do not cancel (namely not eliminating for the low electricity warning of this mobile terminal 2 in the server 1) to server transmission radio connection request and corresponding low electricity caution sign in Preset Time (in such as 60 seconds).In addition, understandable, this impose a condition also can be lower than during set point or fast power-off time, inform that distant terminal partner electricity is fast not enough in advance.
Fig. 3 shows the flow process managing the method for wireless connections in mobile communications of second embodiment of the invention, and the method flow process is based on the system configuration shown in Fig. 1, and detailed process is as follows:
S310: two mobile terminals 2 carry out double-talk by server 1 or plural mobile terminal 2 carries out MPTY by server 1, carrying out in the process conversed, when server 1 receives the low electricity warning of one of them mobile terminal 2 transmission, server 1 will carry out the storage of corresponding low electricity caution sign; Wherein, mobile terminal will periodically detect the dump energy of its battery; When dump energy is lower than the threshold value preset, mobile terminal sends the warning of low electricity to server.
S311: then in communication process subsequently, when the improper disconnection of wireless of mobile terminal 2 sending the warning of low electricity connects (i.e. abnormal ending call on one's own initiative) and do not cancel (namely not eliminating for the low electricity warning of this mobile terminal 2 in the server 1) to server transmission radio connection request and corresponding low electricity caution sign in Preset Time (in such as 60 seconds), server 1 to send other mobile terminals that the low electricity mobile terminal of warning carries out conversing (such as, one or more mobile terminal, the quantity of the mobile terminal notified needed for this determines according to both sides or MPTY) send information, call is disconnected because low electricity causes shutdown to point out the other side.
S312: after the mobile terminal transmission information that server 1 connects to non-disconnection of wireless, due to the disconnection of side's mobile terminal 2, now call will terminate, server 1 is in order to complete this laggard row Refresh Data of conversing, server 1 will cancel corresponding low electricity caution sign, namely carry out the elimination of data.
Fig. 4 shows the flow process managing the method for wireless connections in mobile communications of third embodiment of the invention, and the method flow process is based on the system configuration shown in Fig. 1, and detailed process is as follows:
S410: two mobile terminals 2 carry out double-talk by server 1 or plural mobile terminal 2 carries out MPTY by server 1, carrying out in the process conversed, when server 1 receives the low electricity warning of one of them mobile terminal 2 transmission, server 1 will carry out the storage of corresponding low electricity caution sign; Wherein, mobile terminal will periodically detect the dump energy of its battery; When dump energy is lower than the threshold value preset, mobile terminal sends the warning of low electricity to server.
S411: then in communication process subsequently, when the improper disconnection of wireless of mobile terminal 2 sending the warning of low electricity connects (i.e. abnormal ending call on one's own initiative) and do not cancel (namely not eliminating for the low electricity warning of this mobile terminal 2 in the server 1) to server transmission radio connection request and corresponding low electricity caution sign in Preset Time (in such as 60 seconds), server 1 to send other mobile terminals that the low electricity mobile terminal of warning carries out conversing (such as, one or more mobile terminal, the quantity of the mobile terminal notified needed for this determines according to both sides or MPTY) send information, call is disconnected because low electricity causes shutdown to point out the other side.
S412: in addition, if send the mobile terminal 2 of low electricity warning after server 1 stores corresponding low electricity caution sign, by charger, its battery is charged online, namely call is carried out while charge, if after charging after a while, this mobile terminal period ground detects the dump energy of its battery, and after finding that the electricity of its battery exceedes threshold value, the system that mobile terminal runs will send the information of the low electricity warning of elimination to server 1 by backstage; Server 1, by after receiving the information eliminating the warning of low electricity, is cancelled the low electricity caution sign stored, is represented that this mobile terminal is no longer in low state of charge.
As can be seen here, eliminate low electricity caution sign after the mobile terminal 2 sending the warning of low electricity is recharged in step S412, and when performing step S411, low electricity caution sign is needed not cancel as prerequisite, therefore step S411 and step S412 is mutual exclusion, that is can only perform step S411 and step S412 one of them.
Fig. 5 shows the flow process managing the method for wireless connections in mobile communications of fourth embodiment of the invention, and the method flow process is based on the system configuration shown in Fig. 1, and detailed process is as follows:
S510: two or more mobile terminal 2 sets up call by server 1, and namely mobile terminal 2 puts through phone each other;
S511: the mobile terminal of all participation calls all periodically detects the dump energy of himself battery;
S512: mobile terminal judges the threshold value of the dump energy of its battery lower than setting? if so, step S515 is entered, otherwise, enter step S513;
S513: after judging, mobile terminal detects that the dump energy of its battery is the threshold value being greater than setting, now need to judge whether store low electricity caution sign for this mobile terminal in server 1 more further, that is whether this mobile terminal due to electricity too low after again make its electricity be more than or equal to threshold value after charging, or is its electricity lower than threshold value? if so, step S514 is entered; Otherwise enter step S511;
S514: perform this step and show that the battery electric quantity of mobile terminal is just more than or equal to threshold value again afterwards owing to recharging, now need to cancel the low electricity caution sign for this mobile terminal in server 1;
S515: now show the threshold value of the dump energy of battery of mobile terminal lower than setting, mobile terminal sends the warning of low electricity to server 1 for this reason, and then server 1 arranges low electricity caution sign for this mobile terminal;
S516: in the call that mobile terminal is follow-up, will server 1 judge that the call of the mobile terminal sending the warning of low electricity disconnects? if so, step S517 is entered; Otherwise enter step S511, in showing that call proceeds, mobile terminal will continue the dump energy periodically detecting its battery;
S517: server 1 judges whether that this mobile terminal initiatively disconnects call, if so, enters step S519 more further, showing to converse is that reason because of this mobile terminal disconnects; Otherwise enter step S518, showing to converse is not that reason because of this mobile terminal disconnects;
S518: in this step, because call disconnects, server 1 in order to carry out the refreshing storing data after terminating call, need the low electricity caution sign judged whether for this mobile terminal? if, enter step S524, terminate again after cancelling the low electricity caution sign for this mobile terminal; Otherwise directly terminate;
S519: in this step because judgement before disconnects call due to the reason of this mobile terminal, therefore need to judge whether abnormal disconnection further, namely shut down because electricity exhausts? if enter step S521; Otherwise enter step S520;
S520: owing to judging that call is not shut down because mobile terminal electricity exhausts before entering this step, but because normal shutdown, such as, after end of conversation, the initiatively on-hook of this mobile terminal; Now, need in this step to judge whether the low electricity caution sign for this mobile terminal, to determine that server 1 performs cancelling operation? if so, enter step S524, terminate again after cancelling the low electricity caution sign for this mobile terminal; Otherwise directly terminate;
S521: owing to judging that call is shut down because mobile terminal electricity exhausts before entering this step, i.e. abnormal disconnection; Now, need in this step to judge that this mobile terminal again sets up wireless connections to server request in Preset Time? if so, enter step S511, show that call continues again again, mobile terminal carries out periodicity electric power detection again; Otherwise enter step S522;
S522: in this step by judging there is the low electricity caution sign stored for this mobile terminal in server further? if so, step S523 is entered; Otherwise directly terminate;
S523: now, in this step server 1 to send other mobile terminals that the low electricity mobile terminal of warning carries out conversing (such as, one or more mobile terminal, the quantity of the mobile terminal notified needed for this determines according to both sides or MPTY) send information, disconnect call to point out the other side because low electricity causes shutdown;
S524: server 1 is in order to complete this laggard row Refresh Data of conversing, and server 1 will cancel corresponding low electricity caution sign, namely carry out the elimination of data, then terminate.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.