Summary of the invention
The technical problem that the present invention will solve is, to the too professional defective that causes domestic consumer to use thus of existing communication parameter setting up procedure, a kind of messaging parameter calibration steps and device is provided.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of messaging parameter calibration steps is used for a plurality of messaging parameters are calibrated, and said method comprises:
Confirm communication distance based on initial distance; So that with this communication distance as distance parameter and definite response timeout duration satisfies the unicast communication condition; Wherein, Said unicast communication condition comprises, originate in the unicast packet delivery time, length is successfully to receive the response data packet to this unicast packet in the response duration of said response timeout duration;
Confirm communication delay based on said communication distance;
Based on said communication delay said a plurality of messaging parameters are adjusted.
Preferably, saidly confirm that based on initial distance communication distance further comprises:
With said initial distance as said distance parameter and definite response timeout duration when satisfying the unicast communication condition, said communication distance is set to said initial distance.
Preferably, saidly confirm that based on initial distance communication distance further comprises:
Based on said initial distance and definite response timeout duration when not satisfying the unicast communication condition; Progressively adjust said initial distance with preset apart from step-length, up to the adjustment result as said distance parameter and definite response timeout duration satisfies the unicast communication condition;
Said communication distance is set to said adjustment result.
Preferably, said method further comprises, confirms said response timeout duration based on following formula:
Response timeout duration=(2 * distance parameter/light velocity)+preset initial duration.
Preferably, said a plurality of messaging parameter comprises following parameters:
The response timeout duration;
Slot time;
The overtime duration of CTS.
A kind of messaging parameter calibrating installation is used for a plurality of messaging parameters are calibrated, and said device comprises:
The communication distance determination module; Be used for confirming communication distance based on initial distance; So that with this communication distance as distance parameter and definite response timeout duration satisfies the unicast communication condition; Wherein, said unicast communication condition comprises, originate in the unicast packet delivery time, length is successfully to receive the response data packet to this unicast packet in the response duration of said response timeout duration;
The communication delay determination module is used for confirming communication delay based on said communication distance;
The messaging parameter adjusting module is used for based on said communication delay said a plurality of messaging parameters being adjusted.
Preferably, said communication distance determination module is further used for:
With said initial distance as said distance parameter and definite response timeout duration when satisfying the unicast communication condition, said communication distance is set to said initial distance.
Preferably, said communication distance determination module is further used for:
Based on said initial distance and definite response timeout duration when not satisfying the unicast communication condition; Progressively adjust said initial distance with preset apart from step-length, up to the adjustment result as said distance parameter and definite response timeout duration satisfies the unicast communication condition;
Said communication distance is set to said adjustment result.
Preferably, said communication distance determination module is further used for, and confirms said response timeout duration based on following formula:
Response timeout duration=(2 * distance parameter/light velocity)+preset initial duration.
Preferably, said a plurality of messaging parameter comprises following parameters:
The response timeout duration;
Slot time;
The overtime duration of CTS.
The technical scheme of embodiment of the present invention; Have following beneficial effect: messaging parameter calibration steps provided by the invention and device are set up in the process transmission response mechanism based on unicast packet and are confirmed communication distance communicating by letter; And confirm the propagation delay time of signal on this basis, in view of the above messaging parameter is calibrated.Therefore, technical scheme provided by the invention can effectively be expanded the applications distances (for example 802.11g expands to 50 kms from 4.2 kms) of 802.11 wireless protocols.Technical scheme provided by the invention can realize the calibration of messaging parameter automatically, and whole process need not the user and participates in, and therefore uses very convenient.In addition, technical scheme provided by the invention need not communication equipment is improved significantly, therefore is easy to promote the use of.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The invention provides a kind of messaging parameter calibration steps and device, can set up in the process transmission response mechanism in communication and confirm communication distance, and confirm the propagation delay time of signal on this basis, in view of the above messaging parameter is calibrated based on unicast packet.Technical scheme provided by the invention is the calibration of time limit messaging parameter automatically, and whole process need not the user and participates in, and therefore uses very convenient.In addition, technical scheme provided by the invention need not communication equipment is improved significantly, therefore is easy to promote the use of.Just combine accompanying drawing and specific embodiment to come technical scheme provided by the invention is described in detail below.
Fig. 2 is the flow chart according to the messaging parameter calibration steps 200 of the present invention's one preferred embodiment.As shown in Figure 2, method 200 starts from step 202.
Subsequently; At next step 204; Confirm communication distance based on initial distance so that with this communication distance as distance parameter and definite response timeout duration satisfies the unicast communication condition, wherein; The unicast communication condition comprises, originate in the unicast packet delivery time, length is successfully to receive the response data packet to this unicast packet in the response duration of said response timeout duration.
In view of the particularity of wireless transmission medium, the wireless signal of convey data packets is interfered in process of transmitting easily, causes occurring wrong bag or packet loss.Be head it off, in 802.11 wireless communication protocols, stipulated replying and retransmission mechanism of unicast packet, to reduce the influence that possibly cause because of disturbing.Fig. 3 is the schematic diagram that unicast packet is replied retransmission mechanism.As shown in Figure 3, this is replied and the retransmission mechanism regulation, and transmit leg whenever sends out a unicast packet, just picks up counting to wait for recipient's response.The recipient receives the proper data bag, can return a response data packet immediately and give transmit leg, successfully receives with the packet of notifying its transmission of transmit leg.If transmit leg is not received the response data packet from the recipient in response timeout duration (ACK Timeout), then think and send failure, need resend packet.
Can be seen from the foregoing, can confirm the communication delay that causes because of communication distance by above-mentioned replying with retransmission mechanism, above-mentioned unicast communication condition is replying of corresponding above-mentioned unicast packet and retransmission mechanism.
In concrete implementation procedure, above-mentioned messaging parameter can comprise following parameters:
Response timeout duration (Ack Timeout);
Slot time (Slot Time);
The overtime duration of CTS (Clear To Send Timeout).
In concrete implementation procedure, above-mentionedly confirm that based on initial distance communication distance further comprises:
With said initial distance as said distance parameter and definite response timeout duration when satisfying the unicast communication condition, said communication distance is set to said initial distance; And based on said initial distance and definite response timeout duration when not satisfying the unicast communication condition; Progressively adjust said initial distance with preset apart from step-length, up to the adjustment result as said distance parameter and definite response timeout duration satisfies the unicast communication condition; Said communication distance is set to said adjustment result.
In concrete implementation procedure, above-mentioned initial distance can be set to 0 km, and above-mentionedly can be set to 1 km apart from step-length.
In addition, in concrete implementation procedure, above-mentioned response timeout duration can calculate according to formula:
Response timeout duration=(2 * distance parameter/light velocity)+preset initial duration
Subsequently, at next step 206, confirm communication delay based on said communication distance.
In concrete implementation procedure, above-mentioned communication delay can calculate according to formula:
Communication delay=communication distance/the light velocity
Subsequently, at next step 208, said a plurality of messaging parameters are adjusted based on said communication delay.
At last, method 200 ends at step 210.
For further describing the implementation method of messaging parameter calibration steps of the present invention, it is further described below in conjunction with Fig. 3.
Fig. 4 is the flow chart according to the messaging parameter calibration steps 400 of the present invention's one preferred embodiment.As shown in Figure 4, method 400 starts from step 402.
Subsequently, at next step 404, the initial distance that communication distance is set to preset.In concrete implementation procedure, initial distance can be set to 0 km.
Subsequently,, the response timeout duration is set, particularly, can said response timeout duration be set according to formula based on communication distance and preset initial duration at next step 406:
Response timeout duration=(2 * distance parameter/light velocity)+preset initial duration
Subsequently, at next step 408, send unicast packet;
Subsequently, at next step 410, judge whether in said response timeout duration, to receive this unicast packet corresponding response packet, if then forward step 412 to, otherwise forward step 414 to;
As indicated above; If in said response timeout duration, receive this unicast packet corresponding response packet in step 410 judgement; Then forward step 412 to, based on this communication distance said a plurality of messaging parameters are calibrated, particularly; Comprise based on said communication distance and confirm communication delay, based on said communication delay said a plurality of messaging parameters are adjusted again.
In concrete implementation procedure, above-mentioned communication delay can calculate according to formula:
Communication delay=communication distance/the light velocity
In concrete implementation procedure, above-mentioned messaging parameter comprises following parameters:
The response timeout duration;
Slot time
The overtime duration of CTS.
Subsequently, method 400 forwards step 416 to.
As indicated above, if in said response timeout duration, do not receive this unicast packet corresponding response packet, then forward step 414 in step 410 judgement, what use was preset adjusts communication distance apart from step-length, gets back to step 406 then.In concrete implementation procedure, above-mentionedly can be set to 1 km apart from step-length.
At last, method 400 ends at step 416.
In concrete implementation procedure, above-mentioned messaging parameter method of adjustment can be accomplished in wireless communication terminal connects the process of WAP.In fact, in concrete implementation procedure, wireless communication terminal begins above-mentioned calibration process based on the response timeout duration in the time of can after startup, sending first unicast packet.The process that wireless communication terminal connects WAP can be divided into scanning, authentication, related three phases.Wherein sweep phase can be divided into active scan and drive sweep.Active scan realizes that through initiatively initiating the probe requests thereby packet drive sweep is then realized through receiving beacon (beacon) frame.Two kinds of scan modes are carried out simultaneously, when wireless communication terminal scan will be related WAP the time, promptly begin authentication phase.Active scan can be sent the probe requests thereby packet of clean culture, and the authentication data packet that authentication phase is sent also is a unicast packet, and therefore communications parameter method of adjustment provided by the invention all can be carried out in active scan and authentication phase.
The present invention also provides a kind of messaging parameter calibrating installation, just combines Fig. 5 to be described in greater detail below.
Fig. 5 is the logical construction sketch map according to the messaging parameter calibrating installation 500 of the present invention's one preferred embodiment.As shown in Figure 5, messaging parameter calibrating installation 500 comprises communication distance determination module 502, communication delay determination module 504 and messaging parameter adjusting module 506.
Communication distance determination module 502 is used for confirming communication distance based on initial distance; So that with this communication distance as distance parameter and definite response timeout duration satisfies the unicast communication condition; Wherein, Said unicast communication condition comprises, originate in the unicast packet delivery time, length is successfully to receive the response data packet to this unicast packet in the response duration of said response timeout duration.
Specifically, communication distance determination module 502 is further used for:
With said initial distance as said distance parameter and definite response timeout duration when satisfying the unicast communication condition, said communication distance is set to said initial distance.
Based on said initial distance and definite response timeout duration when not satisfying the unicast communication condition; Progressively adjust said initial distance with preset apart from step-length, up to the adjustment result as said distance parameter and definite response timeout duration satisfies the unicast communication condition; Said again communication distance is set to said adjustment result.
In concrete implementation procedure, communication distance determination module 502 is further used for, and confirms said response timeout duration based on following formula:
Response timeout duration=(2 * distance parameter/light velocity)+preset initial duration.
Communication delay determination module 504 is used for confirming communication delay based on said communication distance.
In concrete implementation procedure, communication delay determination module 504 can be confirmed communication delay based on formula:
Communication delay=communication distance/the light velocity
Messaging parameter adjusting module 506 is used for based on said communication delay said a plurality of messaging parameters being adjusted.
In concrete implementation procedure, above-mentioned messaging parameter comprises following parameters:
The response timeout duration;
Slot time;
The overtime duration of CTS.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.