A kind of multistage relay synchronization implementation method based on TDMA
Technical field
The present invention relates to TDMA technical field, relate in particular to the synchronization realizing method of a kind of TDMA (Time Division Multiple Access, time division multiple access) system.
Background technology
TDMA technology is conventional basic multiple access technology in a kind of communication, it becomes periodic frame time division, each frame is divided into several time slots again to base station transmitted signal, under regularly satisfied and synchronous condition, base station can receive respectively the signal of each mobile terminal and not mix and disturb in each time slot.Meanwhile, the signal that base station is sent to multiple mobile terminals is all arranged in order in specific time slot and transmits, and each mobile terminal as long as receive in the time slot of specifying, and in the signal on Jiu Nenghe road, handle is issued its signal distinguishing and receives.In the time that application tdma system carries out networking, the time system that GPS (Global Positioning System, global positioning system) can be passed through in each base station in networking realizes synchronous mutually; Other relayings in network or terminal equipment also need to keep synchronous with base station, if trunking also needs to keep synchronous with base station, otherwise can cause interference to base station around; If terminal equipment only has synchronous ability later and base station or relaying to keep normal communication.
But often occur because gps antenna installation site is improper, or strong jamming existence, cause GPS step-out, gps clock is not exported, cause the network equipment not use.
Tdma system also can run into the problem of coverage hole, because in signals transmission, often can run into obstacle, at the back side of obstacle and the inside of various underground structures, produces blind area because signal can not cover.Blind zone problem can solve by setting up base station, but it is too high to set up base station cost, so selecting of trunking is just significant.Because trunking need to be carrying out blind area covering after the amplification of the signal of base station, again the terminal signaling of former blind area is amplified and is sent to base station, whole process is subject to TDMA sequencing control, so trunking must keep synchronous with the sequential of base station, the proper communication of guarantee base station and terminal.But in the environment that need to use trunking more complicated often, GPS can frequent step-out, cause relaying and the base station can not be synchronous, so adopt the synchronous method of wireless signal to have great importance.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, and a kind of multistage relay synchronization implementation method based on TDMA is provided, and relaying, terminal that the method utilizes wireless signal to realize in tdma system are synchronizeed with base station.
The object of the invention is to be achieved through the following technical solutions: a kind of multistage relay synchronization implementation method based on TDMA, comprises the following steps:
1) each time frame is divided into multiple control slots and data slot;
2) base station sends the wireless signal that comprises synchronizing information distributing to local control slot;
3) relaying or terminal are entered link synchronization tracing and are produced local time slot according to the synchronizing signal receiving.
The step 2 of the method) further comprising the steps:
2.1) initialization after base station resets;
2.2) base station is according to the local time slot of exterior arrangement parameter generating;
2.3) base station sends the wireless signal that comprises synchronizing information distributing to local control slot.
The step 3 of the method) further comprising the steps:
3.1) initialization (entering INI state) after relaying or terminal reset;
3.2) waiting signal arrives (signal_detect being detected), if detect, signal_detect effectively enters VERIFICATION state;
3.3) wait for external sync confirmation (ARM_verified), start timing and verify that whether the packet receiving is correct and whether legal;
3.4), if this packet is incorrect or illegal, returns to step c2(and get back to INI state), otherwise, step c5 entered;
3.5) enter VERI_PROCESS state, determine current time slots position according to the information in synchronization packets and timing situation up to now;
3.6) enter IN_SLOT state, produce local time slot, send control according to the parameter of configuration.
The method further comprises: each base station, relaying or terminal equipment are known the time span of each control slot or data slot in advance, the parameter that also needs to receive exterior arrangement, comprising: total number of time slot, control slot number, the data slot number of each time frame and distribute to local time slot label.The local setting of parameter of base station, the parameter of relaying and terminal is extracted in the synchronizing information bag receiving by outside.
The key of the inventive method is: first relaying or terminal are carried out initialization and searched for synchronizing signal, receiving after synchronizing signal, start timing and wait for the outside checking to signal, in wait end time point, watch confirmation signal and whether arrive, just enter synchronous tracking mode if confirmation signal arrives, according to exterior arrangement parameter, produce local time slot, complete slot synchronization.
The invention has the beneficial effects as follows, the present invention utilizes wireless signal to realize the synchronous of relaying, terminal and central station, can avoid the puzzlement of gps signal step-out, covers the condition of providing convenience for realizing under complicated installation environment with the blind area of regions with complex terrain.
Accompanying drawing explanation
The schematic diagram of frame structure when Fig. 1 is;
Fig. 2 is the flow chart of relaying or terminal equipment slot synchronization;
Fig. 3 is the schematic diagram of timer value and state corresponding relation;
Fig. 4 is the flow chart of IN_SLOT state control;
Fig. 5 is the schematic diagram of terminal synchronizes process instance.
Embodiment
Further illustrate the present invention below in conjunction with accompanying drawing, it is more obvious that object of the present invention and effect will become.
The invention provides a kind of relay synchronization implementation method that is applicable to tdma system, first the method utilizes the design feature of TDMA that each time frame is divided into several control slots and data slot, as shown in Figure 1, base station takies a control slot, each trunking or terminal equipment also distribute a control slot, base station automatically produces local time slot and sends the wireless signal that comprises synchronizing information distributing to local control slot, and relaying or terminal equipment carry out slot synchronization by the synchronizing information in the wireless signal receiving.
The multistage relay synchronization implementation method that the present invention is based on TDMA, comprises the following steps:
1, each time frame is divided into multiple control slots and data slot.
2, base station sends the wireless signal that comprises synchronizing information distributing to local control slot.
The workflow of BS (Base Station, base station) comprises following steps:
2.1, initialization (entering INI state) after reset.
2.2, produce local time slot according to exterior arrangement parameter (total number of time slot of each time frame, control slot number, data slot number).
2.3, base station sends the wireless signal that comprises sync packet information according to the parameter (distributing to local time slot label) of configuration distributing to local control slot.
3, relaying or terminal synchronously produce local time slot according to the synchronizing signal receiving, and send control.
As shown in Figure 2, it comprises following steps to the workflow of SS (Subscriber Station, relaying or terminal):
3.1, init state is INI;
3.2, search signal, by the wireless signal receiving is detected, if a string known sync packet information detected, just reaches mark signal_detect signal and is set to effectively;
If 3.3 detect that signal_detect effectively enters VERIFICATION state, timer starts timing, and the outside proof mark ARM_verified to synchronizing information bag of wait, suppose that current demand signal is sync packet, produce synchronization slot with this signal, be called imaginary time slot, because signal arrives the generation that detects mark, basic definite with respect to signal location, so can obtain a roughly fixing position, timer is determined initial value T=cnt_get_signal with this, and timer value and each state corresponding relation are as shown in Figure 3;
3.4, confirmation is resolved to the packets of information receiving in outside, if needed sync packet, just feed back effective ARM_verified signal, and configuration is from receiving the configuration parameter that extracts packet (total number of time slot, control slot number, the data slot number of each time frame and distribute to local time slot label).
3.5, waiting for end time point (waiting for that the end time is the longest consuming time of external feedback confirmation signal), whether effectively detect ARM_verified, if ARM_verified is effective, enter step (6), otherwise return to step (1);
3.6, enter synchronous tracking mode (VERI_PROCESS), determine current time slots position according to the information in synchronization packets and timing situation up to now;
3.7, enter IN_SLOT state, produce local time slot, the generation of time slot mainly relies on timer sum counter to realize, and its workflow as shown in Figure 4;
3.8, send control according to configuration parameter.
Fig. 5 is the example of one-level relay point and base station synchronization, in the drawings, relay point is received two wireless signals continuously, but first wireless signal is within the synchronous stand-by period, outside does not provide confirmation of synchronization signal, thus relay point fail synchronously, second wireless signal, outside has provided confirmation of synchronization signal, and relay point and base station have completed synchronously.In the time realizing multistage relaying synchronous, in the time receiving the sync packet information of upper level relay point, just provide confirmation of synchronization signal as long as outside, just can guarantee relaying energy at the corresponding levels and upper level relaying accurate synchronization.
The present invention utilizes wireless signal to realize the synchronous of relaying, terminal and central station, can avoid the puzzlement of gps signal step-out, covers the condition of providing convenience for realizing under complicated installation environment with the blind area of regions with complex terrain.