Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, there is provided a kind of mobile terminal call based on AT instruction to switch field and survey method and system, be intended to overcome by the present invention the above defect existed in prior art, thus improve the efficiency surveyed mobile terminal calling field.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of mobile terminal call based on AT instruction switches field survey method, wherein, comprises step:
S1, transmit AT instruction by serial line interface to the mobile terminal that is attached thereto, make described mobile terminal start corresponding call operation according to the AT instruction received;
S2, within the booked call time, in real time monitoring mobile terminal switches to the call state of second area from first area, if detect, described call state changes, then judge that the call state of described mobile terminal is as dropped call;
S3, obtain the relevant abnormalities information of the mobile terminal of dropped call of being in, and described relevant abnormalities information is outputted in default Excel form automatically, to realize switching to mobile terminal call the automation record surveyed field.
The described mobile terminal call based on AT instruction switches field survey method, wherein, also comprises before described step S1:
S0, preset a call control information, described call control information comprises: call time and duration of a call time.
The described mobile terminal call based on AT instruction switches field survey method, and wherein, described call time is set as 60 minutes, and the described duration of a call time is set as 30 seconds.
The described mobile terminal call based on AT instruction switches field survey method, and wherein, described step S2 specifically comprises step:
S21, control mobile terminal by AT instruction and start corresponding call operation, and the call state of real-time monitoring mobile terminal;
If S22 detects that mobile terminal cannot be connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as call failure, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation, and return execution step S21;
If S23 detects that mobile terminal is connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as access success, and whether the call state that real-time monitoring mobile terminal switches to second area from first area within 60 minutes call times of presetting changes;
If S24 detects that the call state of mobile terminal changes, then judge that the call state of described mobile terminal is as dropped call, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation, and return execution step S21;
If S25 detects that the call state of mobile terminal does not change, then control mobile terminal and to stop call operation.
The described mobile terminal call based on AT instruction switches field survey method, wherein, described relevant abnormalities information comprises: the time point extremely occurred, call signal quality and intensity and anomalous event type, described anomalous event type comprises: dropped call and call failure.
The described mobile terminal call based on AT instruction switches field survey method, and wherein, described step S3 specifically comprises step:
S31, detect that mobile terminal is in dropped call or call failure state, then obtain real-time system time and call signal quality and intensity by AT instruction, and is set as the described abnormal time point occurred the real-time system time of acquisition;
S32, call a preset function the abnormal time point, call signal quality and the intensity that occur and anomalous event type are outputted in default Excel form, to realize switching to mobile terminal call the automation record surveyed field automatically.
Mobile terminal call based on AT instruction switches a field examining system, wherein, comprising:
Pre-set module, for presetting a call control information, described call control information comprises: call time and duration of a call time;
AT instruction delivery module, for transmitting AT instruction by serial line interface to the mobile terminal be attached thereto, makes described mobile terminal start corresponding call operation according to the AT instruction received;
Call state monitoring module, switch to the call state of second area from first area for monitoring mobile terminal real-time within the booked call time, if detect, described call state changes, then judge that the call state of described mobile terminal is as dropped call;
Logging modle is surveyed in calling field, for obtaining the relevant abnormalities information of the mobile terminal being in dropped call, and automatically outputs in default Excel form by described relevant abnormalities information, to realize switching to mobile terminal call the automation record surveyed field.
The described mobile terminal call based on AT instruction switches field examining system, and wherein, described call time is set as 60 minutes, and the described duration of a call time is set as 30 seconds.
The described mobile terminal call based on AT instruction switches field examining system, and wherein, described call state monitoring module specifically comprises:
Call operation start unit, starts corresponding call operation for controlling mobile terminal by AT instruction, and monitors the call state of mobile terminal in real time;
First judges control unit, if for detecting that mobile terminal cannot be connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as call failure, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation;
Second judges control unit, if for detecting that mobile terminal is connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as access success, and whether the call state that real-time monitoring mobile terminal switches to second area from first area within 60 minutes call times of presetting changes;
3rd judges control unit, if for detecting that the call state of mobile terminal changes, then judge that the call state of described mobile terminal is as dropped call, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation;
4th judges control unit, if for detecting that the call state of mobile terminal does not change, then controls mobile terminal and to stop call operation.
The described mobile terminal call based on AT instruction switches field examining system, wherein, described relevant abnormalities information comprises: the time point extremely occurred, call signal quality and intensity and anomalous event type, and described anomalous event type comprises: dropped call and call failure;
Described calling field is surveyed logging modle and is specifically comprised:
Abnormal state detection unit, for detecting that mobile terminal is in dropped call or call failure state, then obtain real-time system time and call signal quality and intensity by AT instruction, and is set as the described abnormal time point occurred the real-time system time of acquisition;
Abnormal information record cell, for calling a preset function, the time point of abnormal generation, call signal quality and intensity and anomalous event type are outputted in default Excel form automatically, to realize switching to mobile terminal call the automation record surveyed field.
A kind of mobile terminal call based on AT instruction provided by the present invention switches field and surveys method and system, described method specifically comprises: transmit AT instruction by serial line interface to the mobile terminal be attached thereto, and makes described mobile terminal start corresponding call operation according to the AT instruction received; Within the booked call time, monitoring mobile terminal switches to the call state of second area from first area in real time, if detect, described call state changes, then judge that the call state of described mobile terminal is as dropped call; Obtain the relevant abnormalities information being in the mobile terminal of dropped call, and described relevant abnormalities information is outputted in default Excel form automatically, to realize switching to mobile terminal call the automation record surveyed field.The present invention detects the state of mobile terminal in real time by AT instruction, and the operation completing automatic call and automatically hang up, the automatic record move terminal of control Excel form switches to the relevant information of second area bid exception from first area simultaneously, decrease the use of manpower and improve the efficiency that call switches field survey, the Excel form of recording exceptional information facilitates follow-up automatic test analysis and tracking automatically simultaneously.
Embodiment
The invention discloses a kind of mobile terminal call based on AT instruction and switch field survey method and system, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, 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, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of the preferred embodiment of the mobile terminal call switching field survey method that the present invention is based on AT instruction.The mobile terminal call based on AT instruction shown in Fig. 1 switches field survey method, comprising:
Step S101, transmit AT instruction by serial line interface to the mobile terminal that is attached thereto, make described mobile terminal start corresponding call operation according to the AT instruction received.
In the embodiment of the present invention, adopt AT instruction to control mobile terminal and start call operation.AT instruction provides the hardware interface-serial ports of one group of standard.Due to the simplification of hardware designs, newer communication network module nearly all adopts serial ports hardware interface.Therefore, as long as the mobile terminal in the present embodiment is connected the transfer operation can carrying out AT instruction with PC computer with USB line.
Step S102, within the booked call time, in real time monitoring mobile terminal switches to the call state of second area from first area, if detect, described call state changes, then judge that the call state of described mobile terminal is as dropped call.
In the embodiment of the present invention, need to preset a call control information, described call control information comprises: call time and duration of a call time.Preferably, the present invention sets call control information and is: call out 60 minutes, duration of a call 30 seconds.Further, described step S102 specifically comprises step:
S21, control mobile terminal by AT instruction and start corresponding call operation, and the call state of real-time monitoring mobile terminal;
If S22 detects that mobile terminal cannot be connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as call failure, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation, and return execution step S21;
If S23 detects that mobile terminal is connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as access success, and whether the call state that real-time monitoring mobile terminal switches to second area from first area within 60 minutes call times of presetting changes;
If S24 detects that the call state of mobile terminal changes, then judge that the call state of described mobile terminal is as dropped call, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation, and return execution step S21;
If S25 detects that the call state of mobile terminal does not change, then control mobile terminal and to stop call operation.
That is, after controlling mobile terminal startup call operation by AT instruction, detect mobile terminal and whether connected phone in 30 seconds that preset, if access failure (i.e. call failure), then interval starts call operation after 30 seconds again, and repeats above operation; If connect, then detect mobile terminal in 60 minutes of calling further and switch to from first area the situation (as: dropped call) whether second area exists call state generation abnormal change, if dropped call, then interval starts call operation after 30 seconds again, and repeats above operation; If non-dropped call, then terminate this time calling field and survey.
Step S103, obtain the relevant abnormalities information of the mobile terminal of dropped call of being in, and described relevant abnormalities information is outputted in default Excel form automatically, to realize switching to mobile terminal call the automation record surveyed field.
In the embodiment of the present invention, described relevant abnormalities information comprises: the time point extremely occurred, call signal quality and intensity and anomalous event type, described anomalous event type comprises: dropped call and call failure.Further, described step S103 specifically comprises step:
S31, detect that mobile terminal is in dropped call or call failure state, then obtain real-time system time and call signal quality and intensity by AT instruction, and is set as the described abnormal time point occurred the real-time system time of acquisition;
S32, call a preset function the abnormal time point, call signal quality and the intensity that occur and anomalous event type are outputted in default Excel form, to realize switching to mobile terminal call the automation record surveyed field automatically.
Below by by concrete Application Example, the present invention will be further described.Application Example of the present invention adopts USB line to be connected with PC by mobile phone, adopts AT instruction to control handset starting call operation simultaneously.AT command set is the control protocol of being invented in order to control Modem by inventor's Hayes company (Hayes) of dialing modem (MODEM).AT command functions is comparatively complete, by the control of Management Information Base finishing equipment, can complete calling, note, phone directory, data service, fax etc.AT is the abbreviation of Attention, and agreement itself adopts text, and each order is all taken the lead with AT.Such as, instruction ATD is for calling, and instruction ATH is for hanging up the telephone, and instruction ATA is for receiving calls.
Mobile phone field survey be divided into call by call field survey and continuous call field survey, in the application for be continuous call field survey.The handover success rate of main test call is surveyed in continuous call field, so-called switching, refer to when mobile terminal moves to another base station overlay area from a base station overlay area in communication process, or when causing speech quality to decline due to external interference, original voice channel must be changed and be transferred to a new idle speech channel and get on, to continue the process keeping call.The call handover success rate of terminal refers to the ratio of the handover request number of times that handover success number of times and all reasons cause, and switching main object is the continuous of guarantee call, improves speech quality.Before this application embodiment is implemented, need to preset a continuous call control information, described continuous call control information comprises: continuous call time and continuous call interval time.Preferably, setting continuous call control information is: continuous call 60 minutes, 30 seconds, continuous call interval.
Further, please refer to Fig. 2, Fig. 2 is the calling control flow figure of the Application Example of the mobile terminal call switching field survey method that the present invention is based on AT instruction.As shown in Figure 2, step is comprised:
S20, continuous call field are surveyed and are started;
S21, the operation adopting ATD instruction control handset starting to call;
Whether S22, employing AT+CLCC command detection mobile phone connect phone, if access failure, then enter step S23, otherwise enter step S24;
If mobile phone without putting through leads in S23 30 seconds, then judge this call failure, postpones the operation again adopting ATD instruction control handset starting to call after 30 seconds, repeat above step;
If mobile phone is connected in S24 30 seconds, then judge this access success;
Whether S25, further employing AT+CLCC instruction poll 60 minutes, converse when judging that in 60 minutes, mobile phone switches to second area from first area normal, converse extremely (as: dropped call), then enter step S26, otherwise enter step S27 if occur;
If S26 occurred dropped call situation in 60 minutes, then postpone the operation again adopting ATD instruction control handset starting to call after 30 seconds, repeat above step;
If S27 conversed in order in 60 minutes, then adopt ATH instruction release phone, this time calling field is surveyed and is terminated.
Further, please refer to Fig. 3, Fig. 3 is the Call Data Record flow chart of the Application Example of the mobile terminal call switching field survey method that the present invention is based on AT instruction.As shown in Figure 3, step is comprised:
S30, mobile phone generation anomalous event detected, as dropped call or call failure;
The time of S31, employing AT+CLCC instructions query current system, and the time point that output abnormality event occurs, preferably, setting described system time form is MM-DD-YY HH:MM:SS;
S32, employing AT+CSQ instructions query signal level and quality, and quality of output signals and intensity;
S33, obtain the type of current exception event and to go forward side by side line output, described anomalous event type comprises dropped call or call failure;
S34, call time point, signal quality and intensity that the anomalous event of output occurs by Tcom function and anomalous event type is saved in default Excel form, to realize automatic record handset call field being surveyed to data automatically.
Preferably, the present invention can also survey in conjunction with GPS device ticket call field the accurate place that route determines to occur the abnormal problem moment, is convenient to supervise and the solution of abnormal problem.
Therefore, the present invention detects the state of mobile terminal in real time by AT instruction, and the operation completing automatic call and automatically hang up, the relevant information of bid exception when the automatic record move terminal of control Excel form switches to second area from first area simultaneously, decrease the use of manpower and improve the efficiency that call switches field survey, the Excel form of recording exceptional information facilitates follow-up automatic test analysis and tracking automatically simultaneously.
Based on above-described embodiment, the present invention also provides a kind of mobile terminal call based on AT instruction to switch field examining system, as shown in Figure 4, comprising:
Pre-set module 100, for presetting a call control information, described call control information comprises: call time and duration of a call time; As detailed above.
AT instruction delivery module 200, for transmitting AT instruction by serial line interface to the mobile terminal be attached thereto, makes described mobile terminal start corresponding call operation according to the AT instruction received; As detailed above.
Call state monitoring module 300, switch to the call state of second area from first area for monitoring mobile terminal real-time within the booked call time, if detect, described call state changes, then judge that the call state of described mobile terminal is as dropped call; As detailed above.
Logging modle 400 is surveyed in calling field, for obtaining the relevant abnormalities information of the mobile terminal being in dropped call or call failure, and described relevant abnormalities information is outputted in default Excel form automatically, carry out automation record to realize surveying the calling field of mobile terminal; As detailed above.
Further, described call state monitoring module 300 specifically comprises:
Call operation start unit, starts corresponding call operation for controlling mobile terminal by AT instruction, and monitors the call state of mobile terminal in real time;
First judges control unit, if for detecting that mobile terminal cannot be connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as call failure, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation;
Second judges control unit, if for detecting that mobile terminal is connected within the described 30 seconds duration of a call time, then judge that the call state of described mobile terminal is as access success, and whether the call state that real-time monitoring mobile terminal switches to second area from first area within 60 minutes call times of presetting changes;
3rd judges control unit, if for detecting that the call state of mobile terminal changes, then judge that the call state of described mobile terminal is as dropped call, and after the described 30 seconds duration of a call time, again control mobile terminal by AT instruction and start corresponding call operation;
4th judges control unit, if for detecting that the call state of mobile terminal does not change, then controls mobile terminal and to stop call operation.
Further, described relevant abnormalities information comprises: the time point extremely occurred, call signal quality and intensity and anomalous event type, and described anomalous event type comprises: dropped call and call failure; Described calling field is surveyed logging modle 400 and is specifically comprised:
Abnormal state detection unit, for detecting that mobile terminal is in dropped call or call failure state, then obtain real-time system time and call signal quality and intensity by AT instruction, and is set as the described abnormal time point occurred the real-time system time of acquisition; As detailed above.
Abnormal information record cell, for calling a preset function, the time point of abnormal generation, call signal quality and intensity and anomalous event type are outputted in default Excel form automatically, to realize switching to mobile terminal call the automation record surveyed field; As detailed above.
In sum, a kind of mobile terminal call based on AT instruction provided by the present invention switches field and surveys method and system, described method specifically comprises: transmit AT instruction by serial line interface to the mobile terminal be attached thereto, and makes described mobile terminal start corresponding call operation according to the AT instruction received; Within the booked call time, monitoring mobile terminal switches to the call state of second area from first area in real time, if detect, described call state changes, then judge that the call state of described mobile terminal is as dropped call; Obtain the relevant abnormalities information being in the mobile terminal of dropped call, and described relevant abnormalities information is outputted in default Excel form automatically, to realize switching to mobile terminal call the automation record surveyed field.The present invention detects the state of mobile terminal in real time by AT instruction, and the operation completing automatic call and automatically hang up, the relevant information of bid exception when the automatic record move terminal of control Excel form switches to second area from first area simultaneously, decrease the use of manpower and improve the efficiency that call switches field survey, the Excel form of recording exceptional information facilitates follow-up automatic test analysis and tracking automatically simultaneously.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.