Invention content
The technical problem to be solved in the present invention is, for the drawbacks described above of the prior art, provides a kind of based on AT instructions
Mobile terminal call switching field survey method and system, it is intended to disadvantages described above in the prior art is overcome by the present invention,
So as to improve the efficiency of mobile terminal calling field survey.
The technical proposal for solving the technical problem of the invention is as follows:
Method is surveyed in a kind of mobile terminal call switching field based on AT instructions, wherein, including step:
S1, AT instructions are transmitted to the mobile terminal being attached thereto by serial line interface, makes the mobile terminal according to reception
AT instructions start corresponding call operation;
S2, the calling shape that mobile terminal switches to second area from first area is monitored in real time within the booked call time
State, if detecting, the call state changes, and the call state for judging the mobile terminal is dropped call;
S3, the relevant abnormalities information for obtaining the mobile terminal in dropped call, and the relevant abnormalities information is automatic
It is output in preset Excel tables, to realize that the automation surveyed to mobile terminal call switching field records.
Method is surveyed in the mobile terminal call switching field based on AT instructions, wherein, it is further included before the step S1:
S0, a call control information is preset, the call control information includes:Call time and duration of a call
Time.
Method is surveyed in the mobile terminal call switching field based on AT instructions, wherein, the call time is set as 60
Minute, the duration of a call time is set as 30 seconds.
Method is surveyed in the mobile terminal call switching field based on AT instructions, wherein, the step S2 specifically includes step
Suddenly:
S21, control mobile terminal is instructed to start corresponding call operation, and monitor the calling of mobile terminal in real time by AT
State;
If S22, detecting that mobile terminal is not turned within the 30 seconds duration of a call time, judge described mobile whole
The call state at end is call failure, and controls movement eventually in the 30 seconds duration of a call time and then secondary instructed by AT
End starts corresponding call operation, and returns and perform step S21;
If S23, detect that mobile terminal is connected within the 30 seconds duration of a call time, judges the mobile terminal
Call state is access success, and monitors mobile terminal in real time within preset 60 minutes call times and switched to from first area
Whether the call state of second area changes;
If S24, detecting that the call state of mobile terminal changes, the call state for judging the mobile terminal is
Dropped call, and mobile terminal startup is controlled to exhale accordingly in the 30 seconds duration of a call time and then secondary instructed by AT
Operation is cried, and returns and performs step S21;
If S25, detecting that the call state of mobile terminal does not change, mobile terminal is controlled to stop call operation.
Method is surveyed in the mobile terminal call switching field based on AT instructions, wherein, the relevant abnormalities information includes:
Extremely time point, call signal quality and the intensity and anomalous event type occurred, the anomalous event type include:It is logical
Words go offline and call failure.
Method is surveyed in the mobile terminal call switching field based on AT instructions, wherein, the step S3 specifically includes step
Suddenly:
S31, it detects that mobile terminal is in dropped call or call failure state, is then instructed by AT and obtain real-time system
Time and call signal quality and intensity, and the real-time system time of acquisition is set as the time point occurred extremely;
S32, a preset function is called by the time point occurred extremely, call signal quality and intensity and anomalous event
Type is output to automatically in preset Excel tables, to realize that the automation surveyed to mobile terminal call switching field records.
A kind of mobile terminal call based on AT instructions switches field examining system, wherein, including:
Module is pre-set, for presetting a call control information, the call control information includes:During calling
Between and the duration of a call time;
AT instructs delivery module, for passing through serial line interface to the mobile terminal transmission AT instructions being attached thereto, makes described
Mobile terminal starts corresponding call operation according to the AT instructions of reception;
Call state monitoring module switches for monitoring mobile terminal in real time within the booked call time from first area
To the call state of second area, if detecting, the call state changes, and judges the calling shape of the mobile terminal
State is dropped call;
It calls field and surveys logging modle, for obtaining the relevant abnormalities information of the mobile terminal in dropped call, and by institute
It states relevant abnormalities information to be output to automatically in preset Excel tables, to realize to the automatic of mobile terminal call switching field survey
Change record.
The mobile terminal call based on AT instructions switches field examining system, wherein, the call time is set as 60 points
Clock, the duration of a call time are set as 30 seconds.
The mobile terminal call based on AT instructions switches field examining system, wherein, the call state monitoring module tool
Body includes:
Call operation start unit, for control mobile terminal being instructed to start corresponding call operation by AT, and in real time
Monitor the call state of mobile terminal;
First judgement control unit, if mobile terminal can not connect within the 30 seconds duration of a call time for detecting
Logical, then the call state for judging the mobile terminal is call failure, and in 30 seconds duration of a call time and then secondary logical
It crosses AT instruction control mobile terminals and starts corresponding call operation;
Second judgement control unit, if mobile terminal is connected within the 30 seconds duration of a call time for detecting,
The call state for judging the mobile terminal is access success, and monitors movement in real time eventually within preset 60 minutes call times
Whether the call state that end switches to second area from first area changes;
Third judges control unit, if for detecting that the call state of mobile terminal changes, judges the shifting
The call state of dynamic terminal is dropped call, and controls shifting in the 30 seconds duration of a call time and then secondary instructed by AT
Dynamic terminal starts corresponding call operation;
4th judgement control unit, if for detecting that the call state of mobile terminal does not change, controls movement
Terminal stops call operation.
The mobile terminal call based on AT instructions switches field examining system, wherein, the relevant abnormalities information includes:It is different
Time point, call signal quality and the intensity and anomalous event type often occurred, the anomalous event type include:Call
It goes offline and call failure;
The calling field is surveyed logging modle and is specifically included:
Abnormal state detection unit for detecting that mobile terminal is in dropped call or call failure state, then passes through
AT instructions obtain real-time system time and call signal quality and intensity, and the real-time system time of acquisition is set as institute
State the time point occurred extremely;
Exception information recording unit, for call a preset function by the time point occurred extremely, call signal quality and
Intensity and anomalous event type are output to automatically in preset Excel tables, and mobile terminal call switching field is surveyed with realizing
Automation record.
Method and system, the method are surveyed in a kind of mobile terminal call switching field based on AT instructions provided by the present invention
It specifically includes:AT instructions are transmitted to the mobile terminal being attached thereto by serial line interface, make the mobile terminal according to reception
AT instructions start corresponding call operation;It monitors mobile terminal in real time within the booked call time and switches to the from first area
The call state in two regions, if detecting, the call state changes, and the call state for judging the mobile terminal is
Dropped call;The relevant abnormalities information of the mobile terminal in dropped call is obtained, and the relevant abnormalities information is automatically defeated
Go out into preset Excel tables, to realize that the automation surveyed to mobile terminal call switching field records.The present invention is referred to by AT
The state of detection mobile terminal in real time is enabled, and completes the automatic operation for calling and hanging up automatically, while control Excel tables
Automatic record mobile terminal switches to the relevant information of second area call exception from first area, reduces making for manpower
With and improve the efficiency surveyed call switching field, while the Excel tables of automatic recording exceptional information facilitate it is subsequent automatic
Change test analysis and tracking.
Specific embodiment
The invention discloses a kind of mobile terminal call switching fields based on AT instructions to survey method and system, to make the present invention
Object, technical solution and advantage it is clearer, clear and definite, the embodiment that develops simultaneously referring to the drawings to the present invention further specifically
It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Fig. 1 is referred to, Fig. 1 is the preferred embodiment that method is surveyed in the mobile terminal call switching field instructed the present invention is based on AT
Flow chart.Method is surveyed in mobile terminal call switching field shown in FIG. 1 based on AT instructions, including:
Step S101, AT instructions are transmitted to the mobile terminal that is attached thereto by serial line interface, make the mobile terminal by
AT instructions according to reception start corresponding call operation.
In the embodiment of the present invention, control mobile terminal is instructed to start call operation using AT.AT instructions provide one group of mark
Accurate hardware interface-serial ports.Due to the simplification of hardware design, newer telecommunication network module is nearly all connect using serial ports hardware
Mouthful.Therefore, as long as the mobile terminal in the present embodiment connects the transfer operation that can carry out AT instructions with USB line with PC computers.
Step S102, it monitors mobile terminal in real time within the booked call time and switches to second area from first area
Call state, if detecting, the call state changes, and the call state for judging the mobile terminal is dropped call.
In the embodiment of the present invention, need to preset a call control information, the call control information includes:During calling
Between and the duration of a call time.Preferably, the present invention set call control information as:Calling 60 minutes, duration of a call 30 seconds.
Further, the step S102 specifically includes step:
S21, control mobile terminal is instructed to start corresponding call operation, and monitor the calling of mobile terminal in real time by AT
State;
If S22, detecting that mobile terminal is not turned within the 30 seconds duration of a call time, judge described mobile whole
The call state at end is call failure, and controls movement eventually in the 30 seconds duration of a call time and then secondary instructed by AT
End starts corresponding call operation, and returns and perform step S21;
If S23, detect that mobile terminal is connected within the 30 seconds duration of a call time, judges the mobile terminal
Call state is access success, and monitors mobile terminal in real time within preset 60 minutes call times and switched to from first area
Whether the call state of second area changes;
If S24, detecting that the call state of mobile terminal changes, the call state for judging the mobile terminal is
Dropped call, and mobile terminal startup is controlled to exhale accordingly in the 30 seconds duration of a call time and then secondary instructed by AT
Operation is cried, and returns and performs step S21;
If S25, detecting that the call state of mobile terminal does not change, mobile terminal is controlled to stop call operation.
That is, after control mobile terminal being instructed to start call operation by AT, detection mobile terminal was in preset 30 seconds
No connection phone, if access failure(That is call failure), then call operation is again started up, and grasp more than repeating after being spaced 30 seconds
Make;If connecting, further detection mobile terminal in 60 minutes of calling switches to whether second area is deposited from first area
The situation of change is abnormal in call state(Such as:Dropped call)If dropped call, interval is again started up calling after 30 seconds
Operation, and operate more than repeating;If non-dropped call, terminate this time to call field survey.
Step S103, the relevant abnormalities information of the mobile terminal in dropped call is obtained, and the relevant abnormalities are believed
Breath is output to automatically in preset Excel tables, to realize that the automation surveyed to mobile terminal call switching field records.
In the embodiment of the present invention, the relevant abnormalities information includes:Extremely time point for occurring, call signal quality and strong
Degree and anomalous event type, the anomalous event type include:Dropped call and call failure.Further, the step
S103 specifically includes step:
S31, it detects that mobile terminal is in dropped call or call failure state, is then instructed by AT and obtain real-time system
Time and call signal quality and intensity, and the real-time system time of acquisition is set as the time point occurred extremely;
S32, a preset function is called by the time point occurred extremely, call signal quality and intensity and anomalous event
Type is output to automatically in preset Excel tables, to realize that the automation surveyed to mobile terminal call switching field records.
It below will the present invention will be further described by specific Application Example.The Application Example of the present invention uses
Mobile phone and PC machine are attached by USB line, while start call operation using AT instruction control mobile phones.AT command set is by dialling
Inventor's Hayes company (Hayes) of modem (MODEM) is for the control protocol that Modem is controlled to invent.AT order work(
Can be relatively complete, the control of equipment can be completed by Management Information Base, completes calling, short message, phone directory, data service, fax etc..AT
It is the abbreviation of Attention, agreement in itself using text, with AT taken the lead by each order.For example, instruction ATD is to make a phone call,
Instruction ATH is hangs up the telephone, and instruction ATA is receives calls.
Mobile phone field, which is surveyed, is divided into the survey of call by call field and the survey of continuous call field, and the survey of continuous call field is directed in the application.Continuous call field is surveyed main
The handover success rate of test call, so-called switching refer to move from a base station overlay area in communication process when mobile terminal
When causing the speech quality to decline to another base station overlay area or due to external interference, it is necessary to change original voice letter
Road and be transferred to a new idle speech channel up, with continue keep call process.The call handover success rate of terminal
Refer to switch successfully the ratio of number and handover request number caused by all reasons, it is to ensure call to switch main purpose
Continuously, speech quality is improved.Before this application embodiment is implemented, need to preset continuous call control information, the continuous call control
Information processed includes:Continuous call time and continuous call interval time.Preferably, set continuous call control information as:Continuous call 60 minutes, it is long
Exhale interval 30 seconds.
Further, Fig. 2 is please referred to, Fig. 2 is that the mobile terminal call instructed the present invention is based on AT switches field survey method
The calling control flow figure of Application Example.As shown in Fig. 2, including step:
S20, continuous call field, which are surveyed, to be started;
S21, the operation that control mobile phone startup is instructed to make a phone call using ATD;
S22, whether phone is connected using AT+CLCC command detections mobile phone, if access failure, enters step S23, otherwise into
Enter step S24;
If S23, mobile phone without putting through leads in 30 seconds, this call failure is judged, delay is controlled after 30 seconds using ATD instructions again
The operation that mobile phone startup processed is made a phone call, repeats above step;
If S24, mobile phone has been turned in 30 seconds, this access success is judged;
S25, poll is further instructed 60 minutes using AT+CLCC, mobile phone is switched to from first area in judgement 60 minutes
Whether call is normal during second area, if it is abnormal call occur(Such as:Dropped call), then S26 is entered step, is otherwise entered step
S27;
If S26, occurring dropped call situation in 60 minutes, delay is opened after 30 seconds using ATD instruction control mobile phones again
The dynamic operation made a phone call, repeats above step;
If S27, conversing in 60 minutes in order, release phone is instructed using ATH, field is this time called and surveys and terminate.
Further, Fig. 3 is please referred to, Fig. 3 is that the mobile terminal call instructed the present invention is based on AT switches field survey method
The Call Data Record flow chart of Application Example.As shown in figure 3, including step:
S30, detect that mobile phone is abnormal event, such as dropped call or call failure;
S31, the time using AT+CLCC instructions query current systems, and the time point that output abnormality event occurs, preferably
Ground sets the system time form as MM-DD-YY HH:MM:SS;
S32, using AT+CSQ instructions queries signal level and quality, and quality of output signals and intensity;
S33, obtain current exception event type simultaneously exported, the anomalous event type include dropped call or
Call failure;
S34, time point, signal quality and the intensity and exception for calling Tcom functions that the anomalous event of output occurs
Event type is automatically saved in preset Excel tables, to realize the automatic record to handset call field measured data.
Preferably, the present invention can be combined with GPS device ticket call field survey route determination and be abnormal the problem moment
Accurate place, convenient for abnormal problem follow-up tracking and solve.
Therefore the present invention instructs the state of detection mobile terminal in real time by AT, and completes automatic calling and automatic
The operation hung up, while Excel tables is controlled to record automatically when mobile terminal switches to second area from first area and are sent out
The relevant information of raw call exception reduces the use of manpower and improves the efficiency that call switching field is surveyed, while automatic record
The Excel tables of exception information facilitate subsequent automatic test analysis and tracking.
Based on above-described embodiment, the present invention also provides a kind of mobile terminal calls based on AT instructions to switch field examining system,
As shown in figure 4, including:
Module 100 is pre-set, for presetting a call control information, the call control information includes:Calling
Time and duration of a call time;As detailed above.
AT instructs delivery module 200, for passing through serial line interface to the mobile terminal transmission AT instructions being attached thereto, makes institute
It states mobile terminal and starts corresponding call operation according to the AT instructions of reception;As detailed above.
Call state monitoring module 300, for monitoring mobile terminal in real time within the booked call time from first area
The call state of second area is switched to, the call state changes if detecting, judges exhaling for the mobile terminal
It is dropped call to be state;As detailed above.
It calls field and surveys logging modle 400, it is different for obtaining the correlation of the mobile terminal in dropped call or call failure
Normal information, and the relevant abnormalities information is output to automatically in preset Excel tables, to realize the calling to mobile terminal
Field is surveyed and carries out automation record;As detailed above.
Further, the call state monitoring module 300 specifically includes:
Call operation start unit, for control mobile terminal being instructed to start corresponding call operation by AT, and in real time
Monitor the call state of mobile terminal;
First judgement control unit, if mobile terminal can not connect within the 30 seconds duration of a call time for detecting
Logical, then the call state for judging the mobile terminal is call failure, and in 30 seconds duration of a call time and then secondary logical
It crosses AT instruction control mobile terminals and starts corresponding call operation;
Second judgement control unit, if mobile terminal is connected within the 30 seconds duration of a call time for detecting,
The call state for judging the mobile terminal is access success, and monitors movement in real time eventually within preset 60 minutes call times
Whether the call state that end switches to second area from first area changes;
Third judges control unit, if for detecting that the call state of mobile terminal changes, judges the shifting
The call state of dynamic terminal is dropped call, and controls shifting in the 30 seconds duration of a call time and then secondary instructed by AT
Dynamic terminal starts corresponding call operation;
4th judgement control unit, if for detecting that the call state of mobile terminal does not change, controls movement
Terminal stops call operation.
Further, the relevant abnormalities information includes:Extremely the time point, call signal quality and the intensity that occur, with
And anomalous event type, the anomalous event type include:Dropped call and call failure;Logging modle is surveyed in the calling field
400 specifically include:
Abnormal state detection unit for detecting that mobile terminal is in dropped call or call failure state, then passes through
AT instructions obtain real-time system time and call signal quality and intensity, and the real-time system time of acquisition is set as institute
State the time point occurred extremely;As detailed above.
Exception information recording unit, for call a preset function by the time point occurred extremely, call signal quality and
Intensity and anomalous event type are output to automatically in preset Excel tables, and mobile terminal call switching field is surveyed with realizing
Automation record;As detailed above.
In conclusion a kind of mobile terminal call switching field based on AT instructions provided by the present invention surveys method and is
System, the method specifically include:AT instructions are transmitted to the mobile terminal being attached thereto by serial line interface, make the mobile terminal
Start corresponding call operation according to the AT instructions of reception;Mobile terminal is monitored in real time within the booked call time from the firstth area
Domain switches to the call state of second area, if detecting, the call state changes, and judges the mobile terminal
Call state is dropped call;The relevant abnormalities information of the mobile terminal in dropped call is obtained, and by the relevant abnormalities
Information is output to automatically in preset Excel tables, to realize that the automation surveyed to mobile terminal call switching field records.This hair
It is bright that the state of detection mobile terminal in real time is instructed by AT, and complete the automatic operation for calling and hanging up automatically, same to time control
Excel tables processed record the relevant information of call exception when mobile terminal switches to second area from first area automatically,
Reduce the use of manpower and improve the efficiency that call switching field is surveyed, while the Excel table sides of automatic recording exceptional information
The analysis of subsequent automatic test and tracking.
It should be understood that the application of the present invention is not limited to the above, it for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect range.