Summary of the invention
In view of this, the present invention provides the data communications method between a kind of test terminal combining E-mail mode in automatic testing system for wireless network and testing service device so that the communication between test terminal and testing service device has got around must be to the process of server settings IP address in existing communication mode.
The technical scheme is that and be achieved in that:
A kind of data communications method between test terminal and testing service device, including:
Step A: before carrying out data communication between test terminal and testing service device, generates the mail masterplate at least including the field for distinguishing tests terminal, and all of test terminal is respectively provided with same e-mail address;
Step B: the data of testing service device to be sent to all are carried out editor according to described mail masterplate and generate Email by all test terminals, and are sent to described testing service device based on set same e-mail address;
Step C: all test terminals all receive the Email that described testing service device e-mail address based on described test terminal is replied, and according to the field of the distinguishing tests terminal in received Email, determine whether this Email is the Email being sent to their own, if then this Email being processed, the most do not process this Email.
Further, the Email that the e-mail address based on described test terminal of testing service device described in step C is replied includes:
Step D: described testing service device receives the Email that all test terminals send based on set same e-mail address, and according to the field of the distinguishing tests terminal in received Email, determine the test terminal sending Email, and the data in Email are processed;
Step E: the data of test terminal to be sent to are carried out editor according to described mail masterplate and generate Email by testing service device, and are sent to set same e-mail address.
Further, described mail masterplate also includes:
Initiation, response identification field, be used for distinguishing Email for initiating mail or response mail;
Mutual ID (Identity, identity number) field, for being identified Email;
Time field, for identifying the initiation time of Email.
Further, the described field for distinguishing tests terminal is device numbering field;Described device numbering is the intrinsic coding of test terminal, IMEI code (InternationalMobileEquipmentIdentity, International Mobile Equipment Identity code), MDN code (MobileDirectoryNumber, Mobile Directory Number) or the enterprises coding to described test terminal.
Further, described step B specifically includes:
Step b1: what all test terminals were the most independent carries out data collection task;
Step b2: the data gathered are carried out editor according to the mail masterplate including himself device numbering field and generate Email by test terminal;
Step b3: test terminal, by set same e-mail address, sends the Email generated to testing service device.
Further, described step C includes:
Step c1: all test terminals are based on set same e-mail address and receive the Email that described testing service device sends;
Step c2: according to the device numbering field in received Email, test terminal determines whether this mail is the Email being sent to himself, if then processing this Email content, the most do not process this Email content.
Further, described step D specifically includes:
Step d1: testing service device receives the Email that all test terminals send based on set same e-mail address;
Step d2: testing service device determines the test terminal sending this Email according to the device numbering field in received Email;
Step d3: the data that the test terminal included in this Email is gathered by testing service device process.
Further, described step E specifically includes:
Step e1: the data of test terminal to be sent to are carried out editor according to the mail masterplate including the device numbering field of the test terminal receiving these data and generate Email by testing service device;
Step e2: this Email is sent to set same e-mail address by testing service device.
Further, in described step B, step C, step D and step E: if described Email is for initiating mail, then the initiation of this Email, response identification field are REQUEST (initiation);If described Email is response mail, then the initiation of this Email, response identification field are RESPONSE (response).
Further, in described step C: if the initiation that is sent in the Email of their own of the described testing service device received by described test terminal, response identification field are REQUEST, the response mail that the most described test terminal comprises initiation based on the generation of described mail masterplate, response identification field is RESPONSE, and it is sent to described testing service device based on set same e-mail address.
In described step E: if initiation, response identification field in the Email received by described testing service device are REQUEST, the most described testing service device comprises initiation based on the generation of described mail masterplate, response identification field is response mail identical with the device numbering field contents of received Email with device numbering field contents for RESPONSE, and is sent to described test terminal based on set same e-mail address.
Can be seen that from such scheme, the present invention combines the data communications method between the test terminal of E-mail mode and testing service device in automatic testing system for wireless network, communication between test terminal and testing service device is got around in existing communication mode and to the process of server settings IP address, thus the problem often occurring obtaining the situation of valid ip address during disposing and have influence on this kind of system deployment must be avoided.
In addition; in traditional automatic testing system for wireless network, dispose operator's local side machine room of testing service device, it will usually dispose multiple tracks fire wall; but still because this testing service device can conduct interviews from outside, thus security risk can be brought can to the internal network of operator.And the present invention uses E-mail mode, such testing service device can be deployed in the local side machine room of operator, from without bringing security risk to the internal network of operator;Additionally, E-mail mode in the present invention is the mode of a kind of improvement, the most all of test terminal all uses same e-mail address, and set the E-mail subject with set form containing distinguishing tests terminal or content, it is achieved thereby that the data communication of the many test terminals under single addresses of items of mail, the E-mail subject or the content that use set form ensure that the mail of sender's (test terminal, testing service device) can be delivered to recipient (testing service device, a test terminal) side by correct, it is ensured that the integrity of data.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, develop simultaneously embodiment referring to the drawings, is described in further detail the present invention.
E-mail system is a kind of mode utilizing computer network (the Internet) to carry out information transmission, each user is owned by a unique e-mail address, the mail finished writing is sent to the electronic post office of sender by Mail Clients or WEB (network) client by sender, mail is forwarded to the electronic post office of recipient by the electronic post office of sender, and recipient fetches mail by client or WEB client side.Current mailing system by e-mail address as unique mark, it is achieved that data communication between sole user is also widely used, but current mailing system does not define effective mechanism to ensure that sender's mail can correctly be delivered to recipient one side.Data communications method between test terminal and the testing service device of the present invention, by E-mail mode, is applied to automatic testing system for wireless network, thus got around must be to the process of server settings IP address in existing communication mode.
As shown in Figure 1, automatic testing system for wireless network in the present invention includes testing service device 1 and corresponding therewith and that the information that carries out is mutual multiple test terminals 2, and test terminal 2 includes the first test terminal, the second test terminal, the 3rd test terminal ... N test terminal.In Fig. 1, test terminal is N number of, wherein N >=1, is not used in restriction present invention depending on the quantity of test terminal is according to the needs of automatic testing system for wireless network, shown in Fig. 1 as illustrative purposes only.In Fig. 1, test terminal 2 gathers the data message of part to be tested in tested network, and the data message of collection is sent to testing service device 1, the data message come collected by test terminal 2 is received and Treatment Analysis by testing service device 1, to check the operation conditions of each part of detecting in tested network, and send information to test terminal 2.
The method that the present invention provides is based on E-mail mode, and detailed process is as follows.
Step A: before carrying out data communication between test terminal and testing service device, generates the mail masterplate at least including the field for distinguishing tests terminal, and all of test terminal is respectively provided with same e-mail address.
Wherein, described mail masterplate ensure that between test terminal and testing service device, the Email of contact all has unified form, it is simple to the Email of transmitting-receiving is made a distinction by test terminal and testing service device;Field for distinguishing tests terminal, it is possible to ensure corresponding to the Email that all of test terminal based on same e-mail address can be received and dispatched with himself, and allow testing service device distinguish the transmitting-receiving test terminal of Email.
Step B: all test terminals all by the data of testing service device to be sent to and are sent to described testing service device based on set same e-mail address.
Step C: all test terminals all receive the Email that described testing service device e-mail address based on described test terminal is replied, and according to the field of the distinguishing tests terminal in received Email, determine whether this Email is the Email being sent to their own, if then this Email being processed, the most do not process this Email.
Wherein, step B farther includes:
Step b1: what all test terminals were the most independent carries out data collection task;
Step b2: the data gathered are carried out editor according to the mail masterplate including himself device numbering field and generate Email by test terminal;
Step b3: test terminal, by set same e-mail address, sends the Email generated to testing service device.
Step C farther includes:
Step c1: all test terminals are based on set same e-mail address and receive the Email that described testing service device sends;
Step c2: according to the device numbering field in received Email, test terminal determines whether this mail is the Email being sent to himself, if then processing this Email content, the most do not process this Email content.
The Email that the e-mail address based on described test terminal of testing service device described in step C is replied includes:
Step D: described testing service device receives the Email that all test terminals send based on set same e-mail address, and according to the field of the distinguishing tests terminal in received Email, determine the test terminal sending Email, and the data in Email are processed;
Step E: the data of test terminal to be sent to are carried out editor according to described mail masterplate and generate Email by testing service device, and are sent to set same e-mail address.
Wherein step D farther includes:
Step d1: testing service device receives the Email that all test terminals send based on set same e-mail address;
Step d2: testing service device determines the test terminal sending this Email according to the device numbering field in received Email;
Step d3: the data that the test terminal included in this Email is gathered by testing service device process.
Step E farther includes:
Step e1: the data of test terminal to be sent to are carried out editor according to the mail masterplate including the device numbering field of the test terminal receiving these data and generate Email by testing service device;
Step e2: this Email is sent to set same e-mail address by testing service device.
In conjunction with Fig. 2, the data communications method between above-mentioned test terminal and testing service device is further elaborated.
Before carrying out data communication between test terminal 2 and testing service device 1, to (the first test terminal included such as Fig. 1, all of test terminal 2, second test terminal, 3rd test terminal ... and N test terminal) it is respectively provided with same e-mail address (being groupyyy.com as all of test terminal is respectively provided with e-mail address), and generate and include (i.e. distinguishing the first test terminal for distinguishing each test terminal 2, second test terminal, 3rd test terminal ... N test terminal) the mail masterplate of field, particularly this mail masterplate at least to include the mail masterplate of the field for distinguishing each test terminal 2.Such as, mail masterplate can include [device numbering] field, [initiation, response identification] field, [mutual ID] field, [time] field etc., wherein:
[device numbering] field: for distinguishing the number of each test terminal, test terminal intrinsic coding, IMEI code, MDN code or enterprises to as described in the coding etc. of test terminal, owing to the test terminal in automatic testing system for wireless network can use the mobile terminal devices such as mobile phone, therefore use IMEI code or MDN code more convenient as device numbering;
[initiate, response identification] field: be that to distinguish this Email itself be to initiate mail to be also in response to the coding of mail, such as initiate, response identification is then expressed as initiating mail for " REQUEST (request) ", and initiation, response identification are then expressed as " RESPONSE (response) " responding mail;
[mutual ID] field: the flowline numbering of mail, the flowline numbering for identifying oneself sent mail generated by sender's (terminal or server) when i.e. sending " REQUEST (request) " mail;For identifying the flowline numbering of original " REQUEST (request) " mail that this mail is replied when replying " RESPONES (response) " mail;According to the flowline numbering in its replied mail received, the sender of " REQUEST (request) " mail can determine that the mail oneself sent the most correctly arrives recipient;
[time] field: for identifying the initiation time of Email, i.e. the initiation timestamp of mail.
Mail exemplary format is such as:
[device numbering] [initiation, response identification] [mutual ID] [time]
According to this mail masterplate generate Email such as:
[13800000001][REQUEST][00001][2011-09-07]
Wherein, 13800000001 for identifying the device numbering of certain test terminal, REQUEST represents that this mail is for initiating mail, 00001 is the mutual ID of this mail, this equipment i.e. is the flowline numbering that this envelope mail generates, and when this equipment sends the second envelope mail, its flowline numbering is 00002, the like, 2011-09-07 is the initiation timestamp of this mail, and above-mentioned mail exemplary format can be arranged in theme or the content of mail.
Setting by above-mentioned mail masterplate, multiple test terminals 2 all utilize carry out between same e-mail address (such as groupyyy.com) and testing service device 1 information mutual during, just can distinguish each envelope Email is any communication between testing service device 1 and which test terminal 2 on earth.Such as, the device numbering of the first test terminal in Fig. 1 is 13800000001, the device numbering of the second test terminal is 13800000002, so the device numbering part in the Email of set form is if there is 13800000001 mails being expressed as the first test terminal, 13800000002 mails being expressed as the second test terminal.
In test terminal 2 when testing service device 1 sends data:
See step B, step b1~b3, the data (data as gathered) of testing service device 1 to be sent to all are carried out editor according to mail masterplate and generate Email by all test terminals 2, the device numbering of test terminal self is write in [device numbering] field, and is sent to testing service device 1 based on set same e-mail address;See step D, step d1~d3, testing service device 1 receives the Email that all test terminals 2 send based on set same e-mail address, and according to [device numbering] field in each envelope Email received, determining that the test terminal 2 of Email is often sealed in transmission is the first test terminal, the second test terminal, the 3rd test terminal ... or N test terminal, and the data in Email are processed.
When testing service device 1 sends data to test terminal 2:
See step E, step e1, e2, the data of test terminal 2 to be sent to are edited by testing service device 1 according to mail masterplate, the device numbering of the test terminal 2 of this Email to be received is write in [device numbering] field, and is sent to set same e-mail address (such as groupyyy.com);See step C, step c1, c2, because test terminal 2 (includes the first test terminal, second test terminal, 3rd test terminal ... and N test terminal) in all of N number of test terminal all have employed same e-mail address, so all of N number of test terminal all can receive testing service device 1 and send the Email of coming, in test terminal 2, all in accordance with [device numbering] field in the Email received, all of N number of test terminal determines whether this received Email is the Email being sent to their own, if then this Email content being processed, the most do not process this Email content.
Seeing Fig. 3, test terminal 2 sends the process of data to testing service device 1 and specifically includes following steps:
Step s1: what each test terminal 2 (including the first test terminal, the second test terminal, the 3rd test terminal ... with N test terminal) was the most independent carries out data collection task;
Step s2: the data gathered are generated Email according to mail masterplate by test terminal 2, and the device numbering of himself is write [device numbering] field, mail flowline numbering write [mutual ID] field of generation;
Step s3: test terminal 2, by set same e-mail address, sends the Email generated to testing service device 1;
Step s4: testing service device 1 receives this Email;
Step s5: testing service device 1 determines the test terminal 2 sending this Email according to [device numbering] field in this Email, and the data being gathered the test terminal 2 included in this Email process.
With the device numbering of the first test terminal for 13800000001, as a example by the device numbering of the second test terminal is 13800000002.
In step s1, the first test terminal and the second test terminal independently carry out data collection task;
In step s2, the data gathered are generated Email according to mail masterplate by the first test terminal and the second test terminal respectively, the device numbering of himself write [device numbering] field, wherein
The electronic mail formats that first test terminal generates according to mail masterplate is such as:
[13800000001][REQUEST][00001][2011-09-07]
The electronic mail formats that second test terminal generates according to mail masterplate is such as:
[13800000002][REQUEST][00001][2011-09-07]
In step s3, the first test terminal and the second test terminal all by set same e-mail address (such as groupyyy.com), send the Email generated to testing service device 1;
In step s4, testing service device 1 receives the Email from this e-mail address (such as groupyyy.com), it should be noted that the mail that testing service device 1 is received is two envelopes, be the first test terminal respectively and Email that the second test terminal sends;
In step s5, testing service device 1 determines that according to the Email that form is [13800000001] [REQUEST] [00001] [2011-09-07] test terminal sending this Email is the first test terminal, and the data being gathered the first test terminal included in this Email process, testing service device 1 determines that according to the Email that form is [13800000002] [REQUEST] [00001] [2011-09-07] test terminal sending this Email is the second test terminal, and the data being gathered the test terminal 2 included in this Email process.
Seeing Fig. 4, process when testing service device 1 sends data to test terminal 2 specifically includes following steps:
The data of test terminal 2 (including the first test terminal, the second test terminal, the 3rd test terminal ... with N test terminal) to be issued are generated Email according to mail masterplate by step s1 ': testing service device 1, the device numbering of the test terminal 2 of this Email to be received is write in [device numbering] field, mail flowline numbering write [mutual ID] field of generation;
This Email is sent to set same e-mail address (such as groupyyy.com) by step s2 ': testing service device 1;
Step s3 ': test terminal 2 (including the first test terminal, the second test terminal, the 3rd test terminal ... with N test terminal) receives this Email;
According to [device numbering] field in this Email, step s4 ': test terminal 2 (including the first test terminal, the second test terminal, the 3rd test terminal ... with N test terminal) determines whether this Email is the Email being sent to their own, if then this Email content being processed, the most do not process this Email content.
With the device numbering of the first test terminal for 13800000001, the device numbering of the second test terminal is 13800000002, and testing service device 1 sends data instance to the first test terminal and the second test terminal.
In step s1 ', the data issuing the first test terminal and the second test terminal are generated two envelope Emails according to mail masterplate by testing service device 1 respectively, the device numbering of the first test terminal and the second test terminal is respectively written in [device numbering] field of two envelope Emails, in mail flowline numbering write [mutual ID] field generated, wherein
Issue the electronic mail formats of the first test terminal such as:
[13800000001][REQUEST][00001][2011-09-07]
Issue the electronic mail formats of the second test terminal such as:
[13800000002][REQUEST][00002][2011-09-07]
In step s2 ', testing service device 1 is issued to the Email of the first test terminal and issues the Email of the second test terminal, all sends to set same e-mail address (such as groupyyy.com);
In step s3 ', because test terminal 2 (including the first test terminal, the second test terminal, the 3rd test terminal ... with N test terminal) is provided with same e-mail address, therefore the first test terminal, the second test terminal, the 3rd test terminal ... all receive the Email issuing the first test terminal that testing service device 1 is sent out and the Email issuing the second test terminal with N test terminal;
In step s4 ', according to [13800000001] field information in the Email received, first test terminal determines that this Email is to be sent to the Email of their own and process this Email content, determine that this Email is not destined to the Email of their own according to [13800000002] field information in the Email received, do not process this Email content;According to [13800000001] field information in the Email received, second test terminal determines that this Email is not destined to the Email of their own, do not process this Email content, determine that this Email is to be sent to the Email of their own and process this Email content according to [13800000002] field information in the Email received;All in accordance with [13800000001] field information in the Email received and [13800000002] field information in Email, 3rd test terminal to N test terminal determines that this two envelopes Email is not the most destined to the Email of their own, do not process this two envelopes Email content.
In above-mentioned steps B, step C, step D and step E: if described Email is for initiating mail, then the initiation of this Email, response identification field are REQUEST;If described Email is response mail, then the initiation of this Email, response identification field are RESPONSE.
In described step C: if the initiation that the described testing service device received by described test terminal is sent in the Email of their own, response identification field is REQUEST, the most described test terminal generates based on described mail masterplate and comprises initiation, response identification field is RESPONSE, device numbering field contents is identical with the device numbering field contents of received Email, and the response mail that id field content is identical with the mutual id field content of received Email alternately, and it is sent to described testing service device based on set same e-mail address;
In described step E: if initiation, response identification field in the Email received by described testing service device are REQUEST, the most described testing service device comprises initiation based on the generation of described mail masterplate, response identification field is RESPONSE, device numbering field contents is identical with the device numbering field contents of received Email, and the response mail that id field content is identical with the mutual id field content of received Email alternately, and it is sent to described test terminal based on set same e-mail address.
Specifically, in above-mentioned steps s2
The electronic mail formats that first test terminal generates according to mail masterplate is such as:
[13800000001][REQUEST][00001][2011-09-07]
The electronic mail formats that second test terminal generates according to mail masterplate is such as:
[13800000002][REQUEST][00001][2011-09-07]
And in above-mentioned steps s1 '
Issue the electronic mail formats of the first test terminal such as:
[13800000001][REQUEST][00001][2011-09-07]
Issue the electronic mail formats of the second test terminal such as:
[13800000002][REQUEST][00002][2011-09-07]
Above-mentioned Email is initiation mail.
Playing mail for every seal, the receiving terminal of mail is all replied an envelope response mail and is received with its mail sent of initiator informing mail.Specifically:
For in above-mentioned steps s2
The electronic mail formats that first test terminal generates according to mail masterplate is such as:
[13800000001][REQUEST][00001][2011-09-07]
The electronic mail formats that second test terminal generates according to mail masterplate is such as:
[13800000002][REQUEST][00001][2011-09-07]
After testing service device 1 receives above-mentioned two envelope Emails, generate the response mail of the two following forms of envelope based on described mail masterplate correspondence, and be sent to the same e-mail address (such as groupyyy.com) arranged:
[13800000001][RESPONSE][00001][2011-09-07]
[13800000002][RESPONSE][00001][2011-09-07]
Test terminal 2 uses the process of step s3 ' and step s4 ' to receive this response mail, so that the first test terminal and the second test terminal confirm that the most correct tested server 1 of Email that they are sent is received.
For in above-mentioned steps s1 '
Issue the electronic mail formats of the first test terminal such as:
[13800000001][REQUEST][00001][2011-09-07]
Issue the electronic mail formats of the second test terminal such as:
[13800000002][REQUEST][00002][2011-09-07]
After first test terminal and the second test terminal are respectively received above-mentioned two envelope Emails, it is based on described mail masterplate correspondence and generates the response mail of the two following forms of envelope, and be sent to testing service device 1 based on same e-mail address (such as groupyyy.com):
The response mail of the first test terminal
[13800000001][RESPONSE][00001][2011-09-07]
The response mail of the second test terminal
[13800000002][RESPONSE][00002][2011-09-07]
Testing service device 1 uses the process of step s4 and step s5 to receive this response mail, so that testing service device 1 confirms the most correct being received by the first test terminal and the second test terminal of its Email sent.
Said method, test terminal 2 (is included the first test terminal, second test terminal, 3rd test terminal ... and N test terminal) it is disposed as a unified e-mail address (such as groupyyy.com), and based on this e-mail address and the mail masterplate at least including the field for distinguishing tests terminal of setting, it is in communication with each other with testing service device 1, avoid the problem often occurring obtaining the situation of valid ip address during system deployment and have influence on system deployment, avoid simultaneously and bring security risk to the internal network of operator;The mail of sender's (test terminal, testing service device) can be delivered to recipient (testing service device, a test terminal) side by correct to utilize this mail masterplate ensure that, it is ensured that the integrity of data.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. done, within should be included in the scope of protection of the invention.