CN107508999A - State monitoring signal method and apparatus - Google Patents

State monitoring signal method and apparatus Download PDF

Info

Publication number
CN107508999A
CN107508999A CN201610415554.7A CN201610415554A CN107508999A CN 107508999 A CN107508999 A CN 107508999A CN 201610415554 A CN201610415554 A CN 201610415554A CN 107508999 A CN107508999 A CN 107508999A
Authority
CN
China
Prior art keywords
call
conversation
preparatory condition
incoming call
terminal
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
CN201610415554.7A
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.)
China Mobile Group Hubei Co Ltd
Original Assignee
China Mobile Group Hubei 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 China Mobile Group Hubei Co Ltd filed Critical China Mobile Group Hubei Co Ltd
Priority to CN201610415554.7A priority Critical patent/CN107508999A/en
Publication of CN107508999A publication Critical patent/CN107508999A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2218Call detail recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2254Arrangements for supervision, monitoring or testing in networks
    • H04M3/2263Network management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2272Subscriber line supervision circuits, e.g. call detection circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42221Conversation recording systems

Abstract

The embodiment of the invention discloses a kind of state monitoring signal method, this method includes:Obtain terminal call business information;Whether the call direction that the terminal is determined according to the talk business information is incoming call, and judge incoming call call whether connect, send a telegram here whether end of conversation and send a telegram here end of conversation the reason for;Or determine whether the call direction of the terminal is electricity according to the talk business information, and judge electric the reason for whether terminating and removing electric end of conversation of conversing gone.The embodiment of the present invention also provides a kind of state monitoring signal device simultaneously.

Description

State monitoring signal method and apparatus
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of state monitoring signal method and apparatus.
Background technology
User is often occurred dropped call, call by call, can not transferred to when being conversed using mobile terminal The failures such as phone, during Web vector graphic, often occur that off-grid, no signal, signal are weak or can not connect Connect the failures such as network.
When handling these failures, user is solved generally by modes such as complaint and feedbacks, but is passed through This mode typically takes up call resource, and feedack is also not necessarily comprehensive, in addition, there is part to use Family does not carry out timely complaint and feedback to fault message, in this case, due to lacking real-time monitoring equipment System, operator can not know the specific fault message of user, thus the problems such as cause failture evacuation to lag, and And for the various faults type in call and network, prior art is also without a kind of general, specific point Analysis is with determining method.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of state monitoring signal method and dress Put, on the premise of user's normal use is not influenceed, the failure problems that are run into monitoring use process.
The technical proposal of the invention is realized in this way:
A kind of state monitoring signal method, including:
Obtain terminal call business information;
Whether the call direction that the terminal is determined according to the talk business information is incoming call, and judges to come Electricity call whether connect, send a telegram here whether end of conversation and send a telegram here end of conversation the reason for;Or
Whether the call direction that the terminal is determined according to the talk business information is electricity, and judges to go The reason for whether electricity call terminates and removes electric end of conversation.
Method as described above, according to the talk business information determine the terminal call direction whether be Incoming call, and judge incoming call call whether connect, send a telegram here whether end of conversation and incoming call end of conversation original Because specifically including:
Whether the call direction that terminal is judged according to the first preparatory condition is incoming call;
Judge whether incoming call is connected according to the second preparatory condition;
If being unsatisfactory for the second preparatory condition, according to the 3rd preparatory condition judge incoming call whether end of conversation;
After incoming call end of conversation, according to the 4th preparatory condition, system journal keyword message and current talking Connection Time judges the reason for incoming call end of conversation;
Whether the call direction that the terminal is determined according to the talk business information is electricity, and judges to go Whether electricity call terminates and is specifically included the reason for removing electric end of conversation:
Whether the call direction that terminal is judged according to the 7th preparatory condition is electricity;
According to the 8th preparatory condition judge go electricity whether end of conversation;
The reason for judging to remove electric end of conversation according to database dialog context table and system journal keyword message.
A kind of state monitoring signal method, including:
Obtain signal strength indicator value;
Judging that current network is 4G networks and the signal strength indicator value is less than thresholding W1 or current Non- 4G networks of network and when the signal strength indicator value is less than thresholding W2, sentence according to the 9th preparatory condition Whether disconnected is weak signal;
Judge whether to stop monitoring, if then stopping monitoring, if otherwise continuing executing with the acquisition signal intensity The operation of desired value.
A kind of state monitoring signal method, including:
Start timer, obtain data online direction and be added in array datalist;
When the timer expiry, determined whether that network, online can not be connected according to the tenth preparatory condition Hang;
When being judged as connecting network, online being hung, continue to determine whether to stop monitoring, if so, then Stop monitoring, if otherwise emptying the array datalist, and perform the acquisition data online direction again and add The operation being added in array datalist.
A kind of state monitoring signal device, including:First receiving module and first processing module, described first Receiving module, for obtaining terminal call business information;
The first processing module, for determining the call direction of the terminal according to the talk business information Whether be incoming call, and judge incoming call call whether connect, send a telegram here whether end of conversation and incoming call call tie The reason for beam;Or determine whether the call direction of the terminal is electricity according to the talk business information, And the reason for judging to go electricity call whether to terminate and remove electric end of conversation.
System as described above, the first processing module are specifically used for:
Whether the call direction that terminal is judged according to the first preparatory condition is incoming call;
Judge whether incoming call is connected according to the second preparatory condition;
If being unsatisfactory for the second preparatory condition, according to the 3rd preparatory condition judge incoming call whether end of conversation;
After incoming call end of conversation, according to the 4th preparatory condition, system journal keyword message and current talking Connection Time judges the reason for incoming call end of conversation;
The first processing module is specifically additionally operable to:
Whether the call direction that terminal is judged according to the 7th preparatory condition is electricity;
According to the 8th preparatory condition judge go electricity whether end of conversation;
The reason for judging to remove electric end of conversation according to database dialog context table and system journal keyword message.
A kind of state monitoring signal device, including:First acquisition module and Second processing module,
First acquisition module is used to obtain signal strength indicator value;
The Second processing module is used to judge that current network is 4G networks and the signal strength indicator value When being less than thresholding W2 less than thresholding W1 or the non-4G networks of current network and the signal strength indicator value, Weak signal is determined whether according to the 9th preparatory condition;
The Second processing module is additionally operable to judge whether to stop monitoring, if then stopping monitoring, if otherwise after It is continuous to perform the operation for obtaining signal strength indicator value.
A kind of state monitoring signal device, including:First setup module and the 3rd processing module,
First setup module is used to start timer, obtains data online direction and is added to array datalist In;
3rd processing module is used for when the timer expiry, is judged whether according to the tenth preparatory condition For that can not connect network, online is hung;3rd processing module be additionally operable to be judged as connecting network, When online is hung, judge whether to stop monitoring;If so, then stop monitoring, if otherwise emptying the array datalist, And the operation that the acquisition data online direction is added in array datalist is performed again.
State monitoring signal method and apparatus provided in an embodiment of the present invention, obtain terminal call business information; Whether the call direction that the terminal is determined according to the talk business information is incoming call, and judges that incoming call is logical Words whether connect, send a telegram here whether end of conversation and send a telegram here end of conversation the reason for;Or according to described logical Call business information determines whether the call direction of the terminal is electricity, and judges to go whether electricity call terminates And the reason for removing electric end of conversation;So realize on the premise of user's normal use is not influenceed, to making Monitored in real time with process, and when running into failure problems, record current fault message.
Brief description of the drawings
Fig. 1 is the flow chart one of state monitoring signal method provided in an embodiment of the present invention;
Fig. 2 be it is provided in an embodiment of the present invention according to talk business information determine terminal call direction whether be Incoming call, and judge incoming call call whether connect, send a telegram here whether end of conversation and incoming call end of conversation original The flow chart of cause;
Fig. 3 is the flow chart provided in an embodiment of the present invention for judging incoming call end of conversation reason;
Fig. 4 is whether the call provided in an embodiment of the present invention that terminal is determined according to talk business information is electricity, And the flow chart for the reason for judging to go electricity call whether to connect and remove electric end of conversation;
Fig. 5 is the flow chart provided in an embodiment of the present invention for judging to go electric end of conversation reason;
Fig. 6 is the flowchart 2 of state monitoring signal method provided in an embodiment of the present invention;
Fig. 7 is the flow chart 3 of state monitoring signal method provided in an embodiment of the present invention;
Fig. 8 is the structural representation one of state monitoring signal device provided in an embodiment of the present invention;
Fig. 9 is the structural representation two of state monitoring signal device provided in an embodiment of the present invention;
Figure 10 is the structural representation three of state monitoring signal device provided in an embodiment of the present invention.
Embodiment
In embodiments of the invention, equipment is only limitted to the Android system that data network can be used and can converse, can To be the equipment such as mobile phone or flat board, the operating system of the equipment typically can be that application program opens some interfaces, Required information is obtained from system for application program.Therefore in embodiments of the present invention, in order to realize failure The monitoring of problem, one section of application program or one section of code can be run in systems, believe for collecting device Breath.
Sensitivity parameter thresholding concrete numerical value in the embodiment of the present invention be only used for explain the present invention, and not as Limitation of the present invention.Table 1 is sensitivity parameter thresholding explanation, each Parameters threshold such as table 1 in the present embodiment It is shown:
Table 1
Parameters threshold Explanation
S1 Signal intensity invalid value, such as -1
C1 Cell ID invalid values, such as -1
dbT1 The starting point of inquiry mobile phone database call token records
dbT2 The end point of inquiry mobile phone database call token records
T1 The time interval (second) conversed twice of call by call
T2 The duration of call (second) of call by call
D1 Postpone the time (second) of execution task
W1 4G networks, the signal intensity threshold values of weak signal, such as -105
W2 Non- 4G networks, the signal intensity threshold values of weak signal, such as -95
T3 The weak signal duration (second)
T4 The time threshold (second) of data online
Embodiment one
The embodiment of the present invention provides a kind of state monitoring signal method, and Fig. 1 is letter provided in an embodiment of the present invention The flow chart one of number state monitoring method.As shown in figure 1, methods described can include step S10 and S11:
S10, obtain terminal call business information.
Call is categorized as two kinds of call types, is respectively last call and current talking.Both calls Type talk business information includes:Converse the time started, the Connection Time, the end time, call direction (bag Include incoming call and remove electricity), conversation number, upper one talking state when adjusting back, current talking state, wherein upper one The original state of talking state and current talking state during readjustment is idle condition.In Android system with The related application programming interfaces of call are onCallStateChanged (int state, String IncomingNumber), wherein, parameter state be system adjust back when present terminal talking state, parameter Counterpart telephone number when incomingNumber is incoming call jingle bell.Whenever the talking state of terminal changes When, the interface will be adjusted back.When terminal current talking state changes, the call of current talking is set State is equal to present terminal talking state when system is adjusted back.
Whether S11, the call direction for determining according to the talk business information terminal are incoming call, and sentence Whether disconnected incoming call call connect, send a telegram here whether end of conversation and send a telegram here end of conversation the reason for;Or root Whether the call direction that the terminal is determined according to the talk business information is electricity, and judges to go electric call The reason for whether terminating and removing electric end of conversation.
Specifically, Fig. 2 is the correspondent provided in an embodiment of the present invention that terminal is determined according to talk business information To whether being incoming call, and judge whether incoming call call connects, send a telegram here whether end of conversation and incoming call are conversed The flow chart of the reason for end.As shown in Fig. 2 the flow includes step S101 to step S10:
Whether S101, the call direction for judging according to the first preparatory condition terminal are incoming call.
Here talking state when the first preparatory condition is a upper readjustment for current talking is idle, and currently The talking state of call is RINGING state.
Whether the talking state for judging current talking is idle condition.If the talking state of current talking is not empty Not busy state, then start recording system output journal, then judges call shape during a upper readjustment for current talking Whether state is idle, and whether the talking state of current talking is RINGING state.
If the talking state of current talking is idle condition, directly judge when upper the one of current talking adjusts back Whether talking state is idle, and whether the talking state of current talking is RINGING state.
That is, if call meets the first preparatory condition, then the call is incoming call.Set current logical The call direction of words is incoming call, and the setting current talking time started is present system time, sets current talking Conversation number be caller ID.
Then talking state during a upper readjustment for current talking is set to be equal to the current talking state of current talking, Judge whether to stop monitoring, if then stopping monitoring, if otherwise not stopping monitoring, continue executing with above-mentioned steps 10。
S102, judge to send a telegram here according to the second preparatory condition and whether connect.
Talking state when second preparatory condition is adjusted back for upper the one of current talking is RINGING state, and currently The talking state of call is off-hook.
If meet the second preparatory condition, then it represents that to electrically connect.The Connection Time for setting current talking is to work as Preceding system time.Talking state is equal to the current logical of current talking when then setting a upper readjustment for current talking Speech phase, judge whether to stop monitoring, if then stopping monitoring, if otherwise not stopping monitoring, continue executing with Above-mentioned steps 10.
If S103, being unsatisfactory for the second preparatory condition, judge whether incoming call is conversed according to the 3rd preparatory condition Terminate.
3rd preparatory condition is incoming call for the call direction of current talking, and during a upper readjustment for current talking Talking state is off-hook, and the talking state of current talking is idle.
If meet the 3rd preparatory condition, then it represents that current call end of conversation.The end of current talking is set Time is present system time, and records the signal intensity and cell ID of current system, is then set current logical Talking state is equal to the current talking state of current talking during a upper readjustment for words, judges whether to stop monitoring, If then stopping monitoring, if otherwise not stopping monitoring, above-mentioned steps 10 are continued executing with.Simultaneously according to delay door Parameter D1 is limited, judges end of conversation reason of sending a telegram here, delay threshold parameter D1 represents delay execution task here Time, it is 10s that can generally set D1 values, and the present embodiment is not specifically limited to this.
After S104, incoming call end of conversation, according to the 4th preparatory condition, system journal keyword message and current The Connection Time of call judges the reason for incoming call end of conversation.
The reason for incoming call end of conversation, includes:Send a telegram here dropped call, incoming call establishes failure, missed call, short Exhale.
Fig. 3 is the flow chart provided in an embodiment of the present invention for judging incoming call end of conversation reason.As shown in Figure 3 Step S104 includes S1041 to S104:
S1041, according to the 4th preparatory condition and system journal keyword message judge that incoming call end of conversation reason is No is incoming call dropped call.
Send a telegram here after end of conversation, close record system output journal.
4th preparatory condition is less than thresholding S1 for the signal intensity of current system and cell ID is less than thresholding C1. Here thresholding S1 represents signal intensity invalid value, is set to -1 herein;Thresholding C1 represents cell ID invalid values, - 1 is set to herein.
If meeting the 4th preparatory condition, it is judged as dropped call of sending a telegram here.If being unsatisfactory for the 4th preparatory condition, The keyword message for including dropped call is then checked whether from the system journal recorded.
If system journal includes the keyword message of dropped call, it is judged as dropped call of sending a telegram here.If system Daily record does not include the keyword message of dropped call, then needs to determine whether the Connection Time of current talking It is whether effective.
S1042, according to the Connection Time Effective judgement of current talking incoming call whether establish failure.
If the Connection Time of current talking is effective, illustrate that call is normal, if the Connection Time of current talking is invalid, Illustrate that incoming call establishes failure.
If incoming call establishes failure, need to judge whether to meet call by call condition, therefore perform step S1043:
S1043, according to the 5th preparatory condition judge incoming call whether be call by call.
5th preparatory condition is that last call is not number that empty and current talking number is equal to last call Code, and at the beginning of current talking between subtract end time of last call and be less than threshold parameter T1, door Limit parameter T1 and represent call by call air time interval twice, value is 30s herein.
If meet the 5th preparatory condition, it is determined that send a telegram here as call by call.
If call by call, continue to judge whether current talking is to subtract end time of normal condition and current talking Going whether the Connection Time of current talking is less than threshold parameter T2, threshold parameter T2 represents the call by call duration of call, Value is 10s herein.
If the Connection Time that current talking subtracts current talking for the end time of normal condition and current talking is small In threshold parameter T2, set last call to be equal to current talking, otherwise, put last call as sky.
S1044, according to the 6th preparatory condition judge whether it is missed call.
Talking state when 6th preparatory condition is adjusted back for upper the one of current talking is not off-hook, and is currently led to The current talking state of words is not idle.
It when meeting six preparatory conditions, can determine whether to be missed call, close record system output journal. Talking state is equal to the current talking state of current talking when then setting a upper readjustment for current talking, judges Whether stopping monitors, if then stopping monitoring, if otherwise not stopping monitoring, continues executing with above-mentioned steps 10.
There is also the need to perform step S1043 to judge whether to meet call by call condition in addition,.If it is unsatisfactory for call by call bar Part, then determine whether the call of terminal is electricity according to talk business information, and judge whether go electricity call The reason for connecting and removing electric end of conversation, Fig. 4 are provided in an embodiment of the present invention true according to talk business information Whether the call for determining terminal is electricity, and judges electric the reason for whether connecting and removing electric end of conversation of conversing gone Flow chart.As shown in figure 4, the flow includes step S105 to step S107:
Whether S105, the call direction for judging according to the 7th preparatory condition terminal are electricity.
Talking state is idle and current talking works as when 7th preparatory condition is a upper readjustment for current talking Preceding talking state is off hook state.
If meet the 7th preparatory condition, it is determined that to remove electricity, the call direction for setting current talking is for the call Electricity is removed, is present system time between putting at the beginning of current talking, then a upper readjustment for current talking is set When talking state be equal to current talking current talking state, judge whether stop monitoring, if then stop prison Survey, if otherwise not stopping monitoring, continue executing with above-mentioned steps 10.
S106, according to the 8th preparatory condition judge go electricity whether end of conversation.
8th preparatory condition be judge current talking call direction be electricity and current talking it is upper one readjustment When talking state be that the talking state of off-hook and current talking is idle.
If meeting the 8th preparatory condition, expression goes electric communication process to terminate, and sets the end time of current talking For present system time, and the signal intensity and cell ID of current system are recorded, then current talking is set Talking state is equal to the current talking state of current talking during a upper readjustment, judges whether to stop monitoring, if Then stop monitoring, if otherwise not stopping monitoring, continue executing with above-mentioned steps 10.Joined simultaneously according to delay threshold Electric end of conversation reason is gone in number D1, judgement, and it is 10s equally to set D1 values here.
S107, judged according to database dialog context table and system journal keyword message to remove electric end of conversation Reason.
The reason for removing electric end of conversation includes:Can not Outgoing Number, go electric dropped call, go the vertical failure of electric construction, Call by call.Fig. 5 is the flow chart provided in an embodiment of the present invention for judging to go electric end of conversation reason.Such as Fig. 5 institutes Show that step S107 includes S1071 to S1073:
S1071, electric call gone according to the Connection Time Effective judgement of database dialog context table and current talking The reason for end whether be can not Outgoing Number.
Record is inquired about from database dialog context table, between inquiring about time of record at the beginning of the current talking Threshold parameter dbT1 (being herein 2s) beginnings are subtracted, threshold parameter dbT2 is added (herein to current time For 10s) terminate.Here threshold parameter dbT1 represents inquiry database call token record starting points, thresholding ginseng Number dbT2 represents inquiry database call token record end points.Travel through, obtained from record field value logical one by one Number, end of conversation time, the duration of call are talked about, and calculates the Connection Time, the Connection Time is call knot here The beam time subtracts the duration of call.
Record system output journal is closed, if signal intensity is less than thresholding S1 (being set to -1 herein) and cell ID Less than thresholding C1 (being set to -1 herein), then determine whether the Connection Time of current talking is effective.If The Connection Time of current talking is invalid, then being judged as can not Outgoing Number.
S1072, judged whether according to signal intensity and cell ID value and system journal keyword message be Electric dropped call.
If signal intensity is less than thresholding S1 (being set to -1 herein) and cell ID (is set to herein less than thresholding C1 - 1), then no matter whether the Connection Time of current talking is effective, is judged as electric dropped call.
If signal intensity is not less than thresholding C1 not less than thresholding S1 and cell ID, from the system day recorded The keyword message for including dropped call is checked whether in will, if including the key of dropped call in system journal Word information, then it is judged as electric dropped call.If not including the keyword message of dropped call in system journal, Then judge whether the Connection Time of current talking is effective, if the Connection Time of current talking is effective, illustrate logical Words are normal.
S1073, the vertical failure of electric construction whether is gone according to the Effective judgement of current talking Connection Time.
If the Connection Time of current talking is invalid, illustrate the vertical failure of electric construction.
It should be noted that can be with by further judging whether signal intensity is less than thresholding W1 or W2 Judge can not Outgoing Number situation.Here W1 represents the weak signal strength threshold value of 4G networks, and value is -105; W2 represents the weak signal strength threshold value of non-4G networks, and value is -95.If signal intensity is less than thresholding W1 Or W2, then being judged as can not Outgoing Number.
It should be noted that can not Outgoing Number be divided into two kinds of situations:It is a kind of be described above can not dial The techniqueflow for going out number is that user starts to call when having signal, and current phone talking state can change, System can call onCallStateChanged interfaces, when signal weaker or without when, and other side's access failure, by Cause to hang up in signal fault.
It is another then be that user (does not service) in complete no signal and called, current phone call shape State will not change, and system will not call onCallStateChanged interfaces, it is therefore desirable to by monitoring users The broadcast Intent.ACTION_NEW_OUTGOING_CALL sent during dialing, re-defines variable Whether callEnableMark (true represents have invoked, and false represents never call) have invoked to distinguish OnCallStateChanged interfaces, if listening to dialing broadcast and non-offline mode and callEnableMark are False, then it can be determined that as can not Outgoing Number.
When can not Outgoing Number, go electric dropped call and remove electric construction vertical this several end of conversation of failure the reason for it is complete Portion judges and then judges whether to meet call by call condition.Judge the specific steps reference step S1043 of call by call, Here repeat no more.
The state monitoring signal method that the present embodiment provides is by obtaining terminal call business information;Judge call Whether it is to send a telegram here or remove electricity, if incoming call then continues to judge whether incoming call is connected, knot of whether conversing of sending a telegram here The reason for beam and incoming call end of conversation, if going electricity then to continue judgement goes whether electricity call terminates and go The reason for electric end of conversation, so realize on the premise of user's normal use is not influenceed, to using process Implementing monitoring is carried out, and when running into failure problems, records current fault message.
Embodiment two
The embodiment of the present invention provides a kind of state monitoring signal method, and Fig. 6 is letter provided in an embodiment of the present invention The flowchart 2 of number state monitoring method.As shown in fig. 6, methods described can include step S20 to S22:
S20:Obtain signal strength indicator value.
The application programming interfaces related to signal intensity have in Android system OnSignalStrengthsChanged (SignalStrength signalStrength), wherein, parameter SignalStrength is current signal strength object.
It should be noted that before step S20, in addition to self-defined signal strength recorder class Record, Wherein member variable should include current signal strength value and current time;When program performs, Record is stated Object is record, the content for tracer signal intensity.
Specifically, when system adjusts back onSignalStrengthsChanged interfaces, i.e. current signal strength pair As changing, then the signal strength indicator value of current signal strength object is obtained.
S21:Judging that current network is 4G networks and signal strength indicator value is less than thresholding W1 or current Non- 4G networks of network and when signal strength indicator value is less than thresholding W2, judged according to the 9th preparatory condition be No is weak signal.
9th preparatory condition is that record is not empty and present system time subtracts record current time and is more than Thresholding T3 (being herein 5s).
Specifically, if current network is 4G networks and signal strength indicator value be less than thresholding W1 (herein for - 105), or the non-4G networks of current network and signal strength indicator value are less than thresholding W2 (being herein -95), Then judge whether record is empty, if being unsatisfactory for above-mentioned two situations, put record as sky.If sentence Disconnected record is sky, then creates record and that record current signal strength object is set into current demand signal is strong Angle value, record current time are set to present system time, if it is determined that record is not sky, then basis 9th preparatory condition determines whether weak signal.
S22:Judge whether to stop monitoring, if then stopping monitoring, if otherwise continuing executing with the acquisition signal The operation of intensity index value.
The state monitoring signal method that the present embodiment provides is by obtaining signal strength indicator value;Judging currently Network be 4G networks and the signal strength indicator value be less than thresholding W1 or the non-4G networks of current network and When the signal strength indicator value is less than thresholding W2, weak signal is determined whether according to the 9th preparatory condition; Judge whether to stop monitoring, if then stopping monitoring, if otherwise continuing executing with the acquisition signal strength indicator The operation of value, realize on the premise of user's normal use is not influenceed, the monitoring to weak signal failure.
Further, when mobile phone opens offline mode or no signal, i.e., without service in the case of, all System readjustment onServiceStateChanged (ServiceState serviceState) interface, parameter can be triggered ServiceState represents current phone service state, and serviceState shares 4 class states, wherein ServiceState.STATE_OUT_OF_SERVICE represents not service, i.e., when mobile phone callback interface returns During the state, just it is judged as no signal.Should mistake but open callback operation that offline mode is triggered Filter, you can with the broadcast by monitoring offline mode Intent.ACTION_AIRPLANE_MODE_CHANGED is distinguished.
Embodiment three
The embodiment of the present invention provides a kind of state monitoring signal method, and Fig. 7 is letter provided in an embodiment of the present invention The flow chart 3 of number state monitoring method, as shown in fig. 7, methods described can include step S30 to S32:
S30, start timer, obtain data online direction and be added in array datalist.
Application programming interfaces with data online directional correlation in Android system have onDataActivity (int direction);Parameter direction is current data online direction, and its state has 5 kinds, wherein TelephonyManager.DATA_ACTIVITY_IN expressions downlink data, TelephonyManager.DATA_ACTIVITY_OUT expressions upstream data, TelephonyManager.DATA_ACTIVITY_INOUT represents the data for having up-downgoing simultaneously.This reality Apply example and only record these three states.
Specifically, before step S30, in addition to an array datalist for being used for record data direction is defined, The timer that a cycle is threshold parameter T4 seconds (being herein 120s) is set, when data network enlivens, OnDataActivity (int direction) interface can be then called, the data online direction obtained now is added to number In group datalist.
S31, when the timer expiry, according to the tenth preparatory condition determine whether to connect network, Online is hung.
Tenth preparatory condition is that current network is data network, and array datalist do not include up-downgoing data or Upstream data and downlink data are included during person's difference.
Specifically, when the timer expiry, judge whether current network is data network, if not Data network, then array datalist is emptied, and perform the acquisition data online direction again and be added to array Operation in datalist;If data network, then judge array datalist whether comprising up-downgoing data or Person includes upstream data and downlink data simultaneously, if it is, emptying array datalist, and performs institute again State and obtain the operation that data online direction is added in array datalist;If not being then judged as connecting Network, online are hung.
S32, when being judged as connecting network, online being hung, continue to determine whether to stop monitoring, if so, Then stop monitoring, if otherwise emptying the array datalist, and perform the acquisition data online direction again The operation being added in array datalist.
The state monitoring signal method that the present embodiment provides obtains data online direction and added by starting timer It is added in array datalist;When the timer expiry, being determined whether according to the tenth preparatory condition can not Connection network, online are hung;When being judged as connecting network, online being hung, continue to determine whether to stop Only monitor, if so, then stopping monitoring, if otherwise emptying the array datalist, and obtained again described in execution Access is added to the operation in array datalist according to online direction, and realizing is not influenceing user's normal use Under the premise of, to that can not connect network, the monitoring of failure is hung in online.
Fig. 8 is the structural representation one of state monitoring signal device provided in an embodiment of the present invention.Such as Fig. 8 institutes Show, the state monitoring signal device that the present embodiment provides includes the first receiving module 40 and first processing module 41。
Wherein, the first receiving module 40, for obtaining terminal call business information;First processing module 41, For determining whether the call direction of terminal is incoming call according to talk business information, and judge that incoming call call is It is no connect, incoming call whether end of conversation and incoming call end of conversation the reason for;Or believed according to talk business Breath determines whether the call direction of terminal is electricity, and judges to go whether electricity call terminates and go electric call The reason for end.
Further, first processing module is specifically used for:
Whether the call direction that terminal is judged according to the first preparatory condition is incoming call;
Judge whether incoming call is connected according to the second preparatory condition;
If being unsatisfactory for the second preparatory condition, according to the 3rd preparatory condition judge incoming call whether end of conversation;
After incoming call end of conversation, according to the 4th preparatory condition, system journal keyword message and current talking Connection Time judges the reason for incoming call end of conversation;
First processing module is specifically additionally operable to:
Whether the call direction that terminal is judged according to the 7th preparatory condition is electricity;
According to the 8th preparatory condition judge go electricity whether end of conversation;
The reason for judging to remove electric end of conversation according to database dialog context table and system journal keyword message.
The state monitoring signal device that the present embodiment provides can be used for the technical side for performing above method embodiment one Case, its implementing principle and technical effect is similar, and here is omitted.
Fig. 9 is the structural representation two of state monitoring signal device provided in an embodiment of the present invention.Such as Fig. 9 institutes Show, the state monitoring signal device that the present embodiment provides includes the first acquisition module 50 and Second processing module 51。
Wherein, the first acquisition module 50 is used to obtain signal strength indicator value;Second processing module 51 is used for Judging that current network is 4G networks and signal strength indicator value is less than the thresholding W1 or non-4G of current network Network and when signal strength indicator value is less than thresholding W2, determines whether weak signal according to the 9th preparatory condition; Second processing module 51 is additionally operable to judge whether to stop monitoring, if then stopping monitoring, if otherwise continuing executing with Obtain the operation of signal strength indicator value.
The state monitoring signal device that the present embodiment provides can be used for the technical side for performing above method embodiment two Case, its implementing principle and technical effect is similar, and here is omitted.
Figure 10 is the structural representation three of state monitoring signal device provided in an embodiment of the present invention.Such as Figure 10 Shown, the state monitoring signal device that the present embodiment provides includes:First setup module 60 and the 3rd processing mould Block 61.
Wherein, the first setup module 60 is used to start timer, obtains data online direction and is added to array In datalist;3rd processing module 61 is used for when the timer expires, is according to the judgement of the tenth preparatory condition No is that can not connect network, surf the Net and hang;3rd processing module 61 be additionally operable to be judged as connecting network, When online is hung, judge whether to stop monitoring;If so, then stop monitoring, if otherwise emptying array datalist, And perform obtain the operation that data online direction is added in array datalist again.
The state monitoring signal device that the present embodiment provides, the technical scheme of above method embodiment three is can perform, Its implementing principle and technical effect is similar, and here is omitted.
In actual applications, first receiving module 40, the acquisition module of first processing module 41 and first 50 and Second processing module 51, the first setup module 60 and the 3rd processing module 61 can be by positioned at signal shapes Central processing unit (Central Processing Unit, CPU), microprocessor (Micro in state monitoring device Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or existing Field programmable gate array (Field Programmable Gate Array, FPGA) etc. is realized.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.Moreover, the present invention can use wherein includes calculating in one or more The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage and optical storage Device etc.) on the form of computer program product implemented.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program product Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions implementation process figure and/or side Each flow and/or square frame in block diagram and flow and/or the knot of square frame in flow chart and/or block diagram Close.Can provide these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing devices is to produce a machine so that by computer or other can The instruction of the computing device of programming data processing equipment is produced for realizing in one flow or multiple of flow chart The device for the function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices In the computer-readable memory to work in a specific way so that be stored in the computer-readable memory Instruction produces the manufacture for including command device, and the command device is realized in one flow of flow chart or multiple streams The function of being specified in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps performed on computer or other programmable devices to produce computer implemented processing, So as to which the instruction performed on computer or other programmable devices is provided for realizing in one flow of flow chart Or specified in one square frame of multiple flows and/or block diagram or multiple square frames function the step of.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the protection model of the present invention Enclose.

Claims (8)

  1. A kind of 1. state monitoring signal method, it is characterised in that methods described includes:
    Obtain terminal call business information;
    Whether the call direction that the terminal is determined according to the talk business information is incoming call, and judges to come Electricity call whether connect, send a telegram here whether end of conversation and send a telegram here end of conversation the reason for;Or
    Whether the call direction that the terminal is determined according to the talk business information is electricity, and judges to go The reason for whether electricity call terminates and removes electric end of conversation.
  2. 2. according to the method for claim 1, it is characterised in that
    Whether the call direction that the terminal is determined according to the talk business information is incoming call, and judges to come Electricity call whether connect, send a telegram here whether end of conversation and send a telegram here end of conversation the reason for specifically include:
    Whether the call direction that terminal is judged according to the first preparatory condition is incoming call;
    Judge whether incoming call is connected according to the second preparatory condition;
    If being unsatisfactory for the second preparatory condition, according to the 3rd preparatory condition judge incoming call whether end of conversation;
    After incoming call end of conversation, according to the 4th preparatory condition, system journal keyword message and current talking Connection Time judges the reason for incoming call end of conversation;
    Whether the call direction that the terminal is determined according to the talk business information is electricity, and judges to go Whether electricity call terminates and is specifically included the reason for removing electric end of conversation:
    Whether the call direction that terminal is judged according to the 7th preparatory condition is electricity;
    According to the 8th preparatory condition judge go electricity whether end of conversation;
    The reason for judging to remove electric end of conversation according to database dialog context table and system journal keyword message.
  3. A kind of 3. state monitoring signal method, it is characterised in that methods described includes:
    Obtain signal strength indicator value;
    Judging that current network is 4G networks and the signal strength indicator value is less than thresholding W1 or current Non- 4G networks of network and when the signal strength indicator value is less than thresholding W2, sentence according to the 9th preparatory condition Whether disconnected is weak signal;
    Judge whether to stop monitoring, if then stopping monitoring, if otherwise continuing executing with the acquisition signal intensity The operation of desired value.
  4. A kind of 4. state monitoring signal method, it is characterised in that methods described includes:
    Start timer, obtain data online direction and be added in array datalist;
    When the timer expiry, determined whether that network, online can not be connected according to the tenth preparatory condition Hang;
    When being judged as connecting network, online being hung, continue to determine whether to stop monitoring, if so, then Stop monitoring, if otherwise emptying the array datalist, and perform the acquisition data online direction again and add The operation being added in array datalist.
  5. 5. a kind of state monitoring signal device, it is characterised in that described device includes:First receiving module and First processing module,
    First receiving module, for obtaining terminal call business information;
    The first processing module, for determining the call direction of the terminal according to the talk business information Whether be incoming call, and judge incoming call call whether connect, send a telegram here whether end of conversation and incoming call call tie The reason for beam;Or determine whether the call direction of the terminal is electricity according to the talk business information, And the reason for judging to go electricity call whether to terminate and remove electric end of conversation.
  6. 6. device according to claim 5, it is characterised in that the first processing module is specifically used for:
    Whether the call direction that terminal is judged according to the first preparatory condition is incoming call;
    Judge whether incoming call is connected according to the second preparatory condition;
    If being unsatisfactory for the second preparatory condition, according to the 3rd preparatory condition judge incoming call whether end of conversation;
    After incoming call end of conversation, according to the 4th preparatory condition, system journal keyword message and current talking Connection Time judges the reason for incoming call end of conversation;
    The first processing module is specifically additionally operable to:
    Whether the call direction that terminal is judged according to the 7th preparatory condition is electricity;
    According to the 8th preparatory condition judge go electricity whether end of conversation;
    The reason for judging to remove electric end of conversation according to database dialog context table and system journal keyword message.
  7. 7. a kind of state monitoring signal device, it is characterised in that described device includes:First acquisition module and Second processing module,
    First acquisition module is used to obtain signal strength indicator value;
    The Second processing module is used to judge that current network is 4G networks and the signal strength indicator value When being less than thresholding W2 less than thresholding W1 or the non-4G networks of current network and the signal strength indicator value, Weak signal is determined whether according to the 9th preparatory condition;
    The Second processing module is additionally operable to judge whether to stop monitoring, if then stopping monitoring, if otherwise after It is continuous to perform the operation for obtaining signal strength indicator value.
  8. 8. a kind of state monitoring signal device, it is characterised in that described device includes:First setup module and 3rd processing module,
    First setup module is used to start timer, obtains data online direction and is added to array datalist In;
    3rd processing module is used for when the timer expiry, is judged whether according to the tenth preparatory condition For that can not connect network, online is hung;3rd processing module be additionally operable to be judged as connecting network, When online is hung, judge whether to stop monitoring;If so, then stop monitoring, if otherwise emptying the array datalist, And the operation that the acquisition data online direction is added in array datalist is performed again.
CN201610415554.7A 2016-06-14 2016-06-14 State monitoring signal method and apparatus Pending CN107508999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610415554.7A CN107508999A (en) 2016-06-14 2016-06-14 State monitoring signal method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610415554.7A CN107508999A (en) 2016-06-14 2016-06-14 State monitoring signal method and apparatus

Publications (1)

Publication Number Publication Date
CN107508999A true CN107508999A (en) 2017-12-22

Family

ID=60678466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610415554.7A Pending CN107508999A (en) 2016-06-14 2016-06-14 State monitoring signal method and apparatus

Country Status (1)

Country Link
CN (1) CN107508999A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188840A (en) * 2007-12-25 2008-05-28 中兴通讯股份有限公司 Voice switching system and method based on dual-mode/multi-mode system
CN101237361A (en) * 2007-01-31 2008-08-06 中兴通讯股份有限公司 A suspending death method for wireless network controller and B node communication context
CN101272163A (en) * 2008-03-21 2008-09-24 中兴通讯股份有限公司 Method and system for recovering ACL link between Bluetooth telephone gateway and extension set
US20080299967A1 (en) * 2007-05-29 2008-12-04 Cingular Wireless Ii, Llc Optimized camel triggering for prepaid calling
CN102131213A (en) * 2011-03-15 2011-07-20 宇龙计算机通信科技(深圳)有限公司 Method and system for prompting signal intensity
CN103458445A (en) * 2012-05-31 2013-12-18 北京鼹鼠科技发展有限公司 Android-based communication terminal testing method and device
CN103684928A (en) * 2013-12-26 2014-03-26 广州华多网络科技有限公司 VoIP (Voice over Internet Protocol) call quality monitoring method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237361A (en) * 2007-01-31 2008-08-06 中兴通讯股份有限公司 A suspending death method for wireless network controller and B node communication context
US20080299967A1 (en) * 2007-05-29 2008-12-04 Cingular Wireless Ii, Llc Optimized camel triggering for prepaid calling
CN101188840A (en) * 2007-12-25 2008-05-28 中兴通讯股份有限公司 Voice switching system and method based on dual-mode/multi-mode system
CN101272163A (en) * 2008-03-21 2008-09-24 中兴通讯股份有限公司 Method and system for recovering ACL link between Bluetooth telephone gateway and extension set
CN102131213A (en) * 2011-03-15 2011-07-20 宇龙计算机通信科技(深圳)有限公司 Method and system for prompting signal intensity
CN103458445A (en) * 2012-05-31 2013-12-18 北京鼹鼠科技发展有限公司 Android-based communication terminal testing method and device
CN103684928A (en) * 2013-12-26 2014-03-26 广州华多网络科技有限公司 VoIP (Voice over Internet Protocol) call quality monitoring method and device

Similar Documents

Publication Publication Date Title
CN102333163B (en) External auxiliary testing apparatus, and testing system thereof and method thereof
CN103369455B (en) Method for transmitting position information and mobile terminal
CN106804049A (en) A kind of different-system switching method and device
CN101079920B (en) Narrow user board with testing function and automatic testing method of user line
CN109005107A (en) The means of communication, intelligent terminal and the device with store function
CN107872503B (en) Firewall session number monitoring method and device
CN105007364B (en) Audio communication method and voice call device
CN104618593B (en) A kind of operating method when mobile terminal and its third party's incoming call
CN102694668A (en) Method and apparatus for voice quality monitoring
CN103401768A (en) Quick detection method for home gateway equipment interface
CN104935763B (en) A kind of processing method of videoconference, hosting side's telephone terminal and TeleConference Bridge
CN107846520A (en) single-pass detection method and device
CN107508999A (en) State monitoring signal method and apparatus
CN101222538B (en) Large scale call testing device and method
CN105657149B (en) A kind of voice communication method, system and communication terminal
CN105430145B (en) Merge the intelligent telephone set and the means of communication of 4G, PSTN and VOIP
CN102624585A (en) Analog conversation method based on gateway terminal equipment and voice device detection device
CN105100364B (en) A kind of method and apparatus carrying out call blocking on communication apparatus
CN101834954A (en) Line detection apparatus and method for fixed phone
CN107968731B (en) The aobvious number method for detecting abnormality of one kind and server
CN201893842U (en) Test system for detecting voice over internet phone (VOIP) device
CN104980556A (en) Gateway and delayed ringing method thereof
JP3715604B2 (en) Traffic control device, traffic control program, program recording medium, and traffic control method
CN102984395B (en) A kind of networking telephone automatic speech test structure
CN107450969A (en) The method and apparatus that a kind of Application Status is set

Legal Events

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

Application publication date: 20171222