The content of the invention
The technical problem to be solved in the present invention is that the drawbacks described above for prior art is whole based on movement there is provided one kind
The duplexer control method and system at end, it is intended to overcome the defect that there is time delay in the prior art by the present invention, improve and move
The speech quality of dynamic terminal.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of duplexer control method based on mobile terminal, wherein, including step:
A, the duplexer of control mobile terminal shift to an earlier date the first preset time than current transmission time slot and are connected with emitter,
The transmission time slot is the time interval that antenna is connected with emitter and launches information by antenna;
B, control the on-off ratio of mobile terminal currently to receive time slot and shift to an earlier date the second preset time with receiver to be connected, it is described
It is that antenna is connected with receiver and by the time interval of antenna receive information to receive time slot.
The described duplexer control method based on mobile terminal, wherein, the step A is specifically included:
A1, when detecting antenna and being connected with emitter, record system current time, and labeled as T11;
A2, when detecting emitter and launching information by antenna, record system current time, and being labeled as
T12;
A3, the difference for calculating T11 and T12, and labeled as current transmission time interval;
A4, the arithmetic mean of instantaneous value for calculating the current transmission time interval and last transmission time interval, are set described
Arithmetic mean of instantaneous value is the first preset time, and is marked as T13;
A5, controlling switch shift to an earlier date T13 than current transmission time slot and are connected with emitter.
The described duplexer control method based on mobile terminal, wherein, the step A2 is specifically included:
A21, the current power value for reading emitter;
If A22, the performance number for detecting Current transmitters judge the emitter by information more than a pre-set threshold value
Launched by antenna, and record system current time.
The described duplexer control method based on mobile terminal, wherein, the step B is specifically included:
B1, when detecting antenna and being connected with receiver, record system current time, and labeled as T21;
B2, when detecting receiver by antenna receive information, record system current time, and labeled as T22;
B3, the difference for calculating T21 and T22, and receive time interval labeled as current;
B4, the calculating current arithmetic mean of instantaneous value for receiving time interval and last reception time interval, setting are described
Arithmetic mean of instantaneous value is the second preset time, and is marked as T23;
B5, controlling switch shift to an earlier date T23 than current reception time slot and are connected with receiver.
The described duplexer control method based on mobile terminal, wherein, the step B2 is specifically included:
B21, the current signal strength value for reading receiver;
If B22, the signal strength values for detecting present receiving machine judge that the receiver has led to more than a pre-set threshold value
Cross antenna and receive signal, and record system current time.
A kind of duplexer control system based on mobile terminal, wherein, including:
Emitter control module, for control the duplexer of mobile terminal than current transmission time slot shift to an earlier date first it is default when
Between be connected with emitter, the transmission time slot be antenna be connected with emitter and by information by antenna launch when
Between be spaced;
Receiver control module, the on-off ratio for controlling mobile terminal currently receive time slot shift to an earlier date the second preset time with
Receiver is connected, and the reception time slot is that antenna is connected with receiver and by the time interval of antenna receive information.
The duplexer control system based on mobile terminal, wherein, the emitter control module is specifically included:
Launch Connection Time recording unit, for when detecting antenna and being connected with emitter, when record system is current
Between, and labeled as T11;
Launch time recording unit, for when detecting emitter and launching information by antenna, record system
Current time, and labeled as T12;
Transmission time interval computing unit, the difference for calculating T11 and T12, and labeled as current transmission time interval;
First preset time setting unit, for calculating the current transmission time interval and last transmission time interval
Arithmetic mean of instantaneous value, it is the first preset time to set the arithmetic mean of instantaneous value, and is marked as T13;
Launch Connection Time modification unit, shift to an earlier date T13 than current transmission time slot for controlling switch and be connected with emitter.
The duplexer control system based on mobile terminal, wherein, the launch time recording unit is specifically included:
Transmission power reads subelement, the current power value for reading emitter;
Information transmitting detection judges subelement, if for detecting the performance numbers of Current transmitters more than a pre-set threshold value,
Then judge that the emitter is launched information by antenna, and record system current time.
The duplexer control system based on mobile terminal, wherein, the receiver control module includes:
Connection Time recording unit is received, when detecting antenna and being connected with receiver, record system current time, and
Labeled as T21;
Reception time recording unit, when detecting receiver by antenna receive information, record system current time, and
Labeled as T22;
Time interval computing unit is received, T21 and T22 difference is calculated, and time interval is received labeled as current;
Second preset time setting unit, calculates the current calculation for receiving time interval and last reception time interval
Art average value, it is the second preset time to set the arithmetic mean of instantaneous value, and is marked as T23;
Connection Time modification unit is received, controlling switch shifts to an earlier date T23 than current reception time slot and is connected with receiver.
The duplexer control system based on mobile terminal, wherein, the reception time recording unit is specifically included:
Received signal strength reads subelement, reads the current signal strength value of receiver;
Information receives detection and judges subelement, if detecting the signal strength values of present receiving machine more than a pre-set threshold value,
Then judge that the receiver receives signal, and record system current time by antenna.
A kind of duplexer control method and system based on mobile terminal provided by the present invention, methods described are specifically wrapped
Include:The duplexer of control mobile terminal shifts to an earlier date the first preset time than current transmission time slot and is connected with emitter, the hair
It is the time interval that antenna is connected with emitter and launches information by antenna to penetrate time slot;Control opening for mobile terminal
Pass shifts to an earlier date the second preset time than current reception time slot and is connected with receiver, and the reception time slot is connected for antenna with receiver
Connect and by the time interval of antenna receive information.Instant invention overcomes mobile terminal antenna to receiver(Or emitter)Company
The defect for raw time delay of practicing midwifery, further increases the speech quality of mobile terminal.
Embodiment
The invention discloses a kind of duplexer control method and system based on mobile terminal, to make the mesh of the present invention
, technical scheme and advantage it is clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.
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. 3 is referred to, Fig. 3 is the first preferred embodiment of the duplexer control method of the invention based on mobile terminal
Flow chart.The duplexer control method based on mobile terminal shown in Fig. 3, including:
Step S101, the duplexer of control mobile terminal shift to an earlier date the first preset time and emitter than current transmission time slot
It is connected, the transmission time slot is the time interval that antenna is connected with emitter and launches information by antenna.
On the opportunity being connected for the duplexer for controlling mobile terminal with emitter, prior art is arrived in transmission time slot
Controlling switch is beaten to emitter side when coming, and the embodiment of the present invention is just to have beaten switch to hair before transmission time slot arrival
Penetrate machine side;Specifically how long switch is beaten in advance to emitter side again when transmission time slot arrives, this point is to closing again
Will:If beating to uprise power consumption too early, beat that time delay will be added too late.Therefore, it is described in the embodiment of the present invention
The first preset time in advance in step S101 specifically includes step:
A1, when detecting antenna and being connected with emitter, record system current time, and labeled as T11;
A2, when detecting emitter and launching information by antenna, record system current time, and being labeled as
T12;
A3, the difference for calculating T11 and T12, and labeled as current transmission time interval;
A4, the arithmetic mean of instantaneous value for calculating the current transmission time interval and last transmission time interval, are set described
Arithmetic mean of instantaneous value is the first preset time, and is marked as T13;
A5, controlling switch shift to an earlier date T13 than current transmission time slot and are connected with emitter.
Further, the step A2 is specifically included:
A21, the current power value for reading emitter;
If A22, the performance number for detecting Current transmitters judge the emitter by information more than a pre-set threshold value
Launched by antenna, and record system current time.
Step S102, control the on-off ratio of mobile terminal currently to receive time slot and shift to an earlier date the second preset time with receiver to be connected
Connect, the reception time slot is that antenna is connected with receiver and by the time interval of antenna receive information.
Similarly, for controlling opportunity for being connected with receiver of duplexer of mobile terminal, be in the prior art
Controlling switch when time slot arrives is received to beat to receiver side, and the embodiment of the present invention just will before time slot arrival is received
Switch is beaten to receiver side;It is specific how long to be beaten switch to receiver side in advance again when receiving time slot arrival, this
It is a little most important:If beating to uprise power consumption too early, beat that time delay will be added too late.Therefore, the present invention is real
Apply in example, the second preset time in advance in the step S102 specifically includes step:
B1, when detecting antenna and being connected with receiver, record system current time, and labeled as T21;
B2, when detecting receiver by antenna receive information, record system current time, and labeled as T22;
B3, the difference for calculating T21 and T22, and receive time interval labeled as current;
B4, the calculating current arithmetic mean of instantaneous value for receiving time interval and last reception time interval, setting are described
Arithmetic mean of instantaneous value is the second preset time, and is marked as T23;
B5, controlling switch shift to an earlier date T23 than current reception time slot and are connected with receiver.
The step B2 is specifically included:
B21, the current signal strength value for reading receiver;
If B22, the signal strength values for detecting present receiving machine judge that the receiver has led to more than a pre-set threshold value
Cross antenna and receive signal, and record system current time.
Below will the present invention will be further described by specific Application Example.Fig. 4 is the present invention based on mobile whole
The transmitter terminal Application Example flow chart of the duplexer control method at end.As shown in figure 4, including step:
S10, switch is got to SWA ends by time TA1 ahead of time before transmission time slot arrival(That is transmitter terminal).
S11, record current time TIMEA1.
S12, have started to launch signal by antenna when detecting emitter, then record current time TIMEA2.
Specifically, detect that the step of emitter has started to launch signal by antenna is:Read the work(of emitter
Rate value, if the power of emitter exceedes default thresholding and illustrates that the path for sending out shooting machine to antenna is ready, emitter is
Start to hit signal by antenna transmitting.
S13, TIMEA1 and TIMEA2 difference obtain a time interval, and by the time interval and the time obtained before
Interval obtains TA1 as arithmetic average, and TA1 is as switch is got to SWA by time TA1 ahead of time before the arrival of transmission time slot next time
End.
Further, Fig. 5 is refer to, Fig. 5 is the receiver of the duplexer control method of the invention based on mobile terminal
Hold Application Example flow chart.As shown in figure 5, including step:
S20, switch is got to SWB ends by time TB1 ahead of time receiving before time slot arrives.
S21, record current time TIMEB1.
S22, have started to receive signal, record current time TIMEB2 by antenna when detecting receiver.
Specifically, detect that the step of receiver has started to and receives signal by antenna is:Read receiving for receiver
Signal intensity, if the signal intensity received of receiver exceedes default thresholding and illustrates path from receiver to antenna
Ready, then receiver has started to that signal will be received by antenna.
S23, TIMEB1 and TIMEB2 difference obtain a time interval, and by the time interval and the time obtained before
Interval obtains TB1 as arithmetic average, and TB1 is as switch is got to SWB by time TB1 ahead of time before time slot arrival is received next time
End.
As can be seen here, the present invention is improved to prior art, by controlling the duplexer of mobile terminal between transmission
Just it is connected before gap and reception gap with emitter machine/receiver, overcomes mobile terminal antenna to receiver/emitter
Connection produces the defect of time delay, further increases the speech quality of mobile terminal.
Based on above-described embodiment, the present invention also provides a kind of duplexer control system based on mobile terminal, such as Fig. 6 institutes
Show, including:
Emitter control module 100, shifts to an earlier date first for controlling the duplexer of mobile terminal than current transmission time slot pre-
If the time is connected with emitter, the transmission time slot is that antenna is connected with emitter and launches information by antenna
Time interval;As detailed above.
Receiver control module 200, the on-off ratio for controlling mobile terminal currently receive time slot shift to an earlier date second it is default when
Between be connected with receiver, it is described reception time slot be antenna be connected with receiver and between the time by antenna receive information
Every;As detailed above.
Further, the emitter control module 100 is specifically included:
Launch Connection Time recording unit, for when detecting antenna and being connected with emitter, when record system is current
Between, and labeled as T11;As detailed above.
Launch time recording unit, for when detecting emitter and launching information by antenna, record system
Current time, and labeled as T12;As detailed above.
Transmission time interval computing unit, the difference for calculating T11 and T12, and labeled as current transmission time interval;
As detailed above.
First preset time setting unit, for calculating the current transmission time interval and last transmission time interval
Arithmetic mean of instantaneous value, it is the first preset time to set the arithmetic mean of instantaneous value, and is marked as T13;As detailed above.
Launch Connection Time modification unit, shift to an earlier date T13 than current transmission time slot for controlling switch and be connected with emitter;
As detailed above.
Further, the launch time recording unit is specifically included:
Transmission power reads subelement, the current power value for reading emitter;As detailed above.
Information transmitting detection judges subelement, if for detecting the performance numbers of Current transmitters more than a pre-set threshold value,
Then judge that the emitter is launched information by antenna, and record system current time;As detailed above.
Further, the receiver control module 200 includes:
Connection Time recording unit is received, when detecting antenna and being connected with receiver, record system current time, and
Labeled as T21;As detailed above.
Reception time recording unit, when detecting receiver by antenna receive information, record system current time, and
Labeled as T22;As detailed above.
Time interval computing unit is received, T21 and T22 difference is calculated, and time interval is received labeled as current;Specifically
As described above.
Second preset time setting unit, calculates the current calculation for receiving time interval and last reception time interval
Art average value, it is the second preset time to set the arithmetic mean of instantaneous value, and is marked as T23;As detailed above.
Connection Time modification unit is received, controlling switch shifts to an earlier date T23 than current reception time slot and is connected with receiver;Specifically
As described above.
Further, the reception time recording unit is specifically included:
Received signal strength reads subelement, reads the current signal strength value of receiver;As detailed above.
Information receives detection and judges subelement, if detecting the signal strength values of present receiving machine more than a pre-set threshold value,
Then judge that the receiver receives signal, and record system current time by antenna;As detailed above.
In summary, a kind of duplexer control method and system based on mobile terminal provided by the present invention, described
Method is specifically included:The duplexer of control mobile terminal shifts to an earlier date the first preset time than current transmission time slot and is connected with emitter
Connect, the transmission time slot is the time interval that antenna is connected with emitter and launches information by antenna;Control is moved
The on-off ratio of dynamic terminal, which currently receives time slot, to shift to an earlier date the second preset time and is connected with receiver, the reception time slot be antenna and
Receiver is connected and by the time interval of antenna receive information.Instant invention overcomes mobile terminal antenna to receiver(Or
Emitter)Connection produce time delay defect, further increase the speech quality of mobile terminal.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, 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 scope.