A kind of multistage relay synchronization implementation method based on TDMA
Technical field
The present invention relates to the TDMA technical field, relate in particular to the synchronous implementation method of a kind of TDMA (Time Division Multiple Access, time division multiple access) system.
Background technology
The TDMA technology is a basic multiple access technology commonly used in a kind of communication; It is divided into periodic frame to the time; Each frame is divided into several slots again to base station transmit signals; Under regularly satisfied and synchronous condition, the base station can receive the signal of each portable terminal respectively and not mix and disturb in each time slot.Simultaneously, the base station is sent out signal to a plurality of portable terminals and all is arranged in order in the specific time slot and transmits, and each portable terminal just can be issued its signal distinguishing and receive by handle in close the signal on road as long as in the time slot of appointment, receive.When the application tdma system carried out networking, the time system that GPS (Global Positioning System, global positioning system) can be passed through in each base station in the networking realized mutually synchronously; Other relayings in the network or terminal equipment also need to keep synchronously with the base station, if trunking also needs to keep synchronous with the base station, otherwise can cause interference to base station on every side; If terminal equipment has only synchronous ability later on and base station or relaying to keep normal communication.
But often occur because the gps antenna installation site is improper, perhaps strong jamming exists, and causes the GPS step-out, makes not output of gps clock to cause the network equipment not use.
Tdma system also can run into the problem of coverage hole, because in signals transmission, runs into obstacle through regular meeting, at the back side of obstacle and the inside of various underground structures, produces the blind area owing to signal can not cover.Blind zone problem can solve through setting up the base station, but it is too high to set up the base station cost, so selecting for use of trunking is just significant.Because carrying out the blind area after trunking need amplify signal of base station covers; Amplify the terminal signaling of former blind area again and be sent to the base station; Whole process receives the TDMA SECO, so trunking must keep with the sequential of base station could guaranteeing the proper communication at base station and terminal synchronously.But the environment that uses trunking at needs is more complicated often, and GPS can frequent step-out, causes relaying and the base station can not be synchronous, so the synchronous method of employing wireless signal has great importance.
Summary of the invention
The object of the invention is the deficiency to prior art, and a kind of multistage relay synchronization implementation method based on TDMA is provided, and this method utilizes wireless signal to realize relaying, terminal and base station synchronous in the tdma system.
The objective of the invention is to realize through following technical scheme: a kind of multistage relay synchronization implementation method based on TDMA may further comprise the steps:
1) each time frame is divided into a plurality of control time slots and data slot;
2) wireless signal that local control time slot transmission comprises synchronizing information is being distributed in the base station;
3) local time slot is followed the tracks of and produced in relaying or terminal synchronously according to the synchronizing signal that receives.
The step 2 of this method) further may further comprise the steps:
2.1) initialization after the 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 time slot.
The step 3) of this method further may further comprise the steps:
3.1) the back initialization (getting into the INI state) that resets of relaying or terminal;
3.2) waiting signal arrival (detecting signal_detect), effectively get into the VERIFICATION state if detect signal_detect;
3.3) wait for that external sync confirms (ARM_verified), pick up counting and verify whether the packet that receives is correct and whether legal;
3.4) if this packet is incorrect or illegal, then return step c2 (getting back to the INI state), otherwise, step c5 got into;
3.5) get into the VERI_PROCESS state, confirm the current time slots position according to information in the synchronization packets and timing situation up to now;
3.6) get into the IN_SLOT state, produce local time slot, send control according to the parameter of configuration.
This method further comprises: each base station, relaying or terminal equipment are all known the time span of each control time slot or data slot in advance; Also need receive the parameter of exterior arrangement, comprise: total number of time slot of each time frame, control number of time slot, data slot number and the time slot label of distributing to this locality.The parameter of base station is local to be provided with, and the parameter at relaying and terminal is extracted in the synchronizing information bag that receives by the outside.
The key of the inventive method is: relaying or terminal are at first carried out initialization and are searched for synchronizing signal, after receiving synchronizing signal, pick up counting and wait for outside checking to signal; Waiting in the concluding time point; Watch confirmation signal and whether arrive, just get into synchronous tracking mode if confirmation signal arrives, according to the exterior arrangement parameter; Produce local time slot, accomplish slot synchronization.
The invention has the beneficial effects as follows, the present invention utilize wireless signal realize relaying, terminal and central station synchronously, can avoid the puzzlement of gps signal step-out, for realizing complicated installation environment under and the blind area of the regions with complex terrain covering condition of providing convenience.
Description of drawings
The sketch map of frame structure when Fig. 1 is;
Fig. 2 is the flow chart of relaying or terminal equipment slot synchronization;
Fig. 3 is the sketch map of timer value and state corresponding relation;
Fig. 4 is the flow chart of IN_SLOT State Control;
Fig. 5 is the sketch map of terminal synchronizes process instance.
Embodiment
Further specify the present invention below in conjunction with accompanying drawing, it is more obvious that the object of the invention and effect will become.
The invention provides a kind of relay synchronization implementation method that is applicable to tdma system; This method at first utilizes the design feature of TDMA to be divided into several control time slot and data slots to each time frame; As shown in Figure 1; The base station takies a control time slot; Each trunking or terminal equipment also distribute a control time slot, and the base station produces local time slot automatically and distributing to the wireless signal that local control time slot transmission comprises synchronizing information, and relaying or terminal equipment carry out slot synchronization through the synchronizing information in the wireless signal that receives.
The present invention is based on the multistage relay synchronization implementation method of TDMA, may further comprise the steps:
1, each time frame is divided into a plurality of control time slots and data slot.
2, the wireless signal that local control time slot transmission comprises synchronizing information is being distributed in the base station.
The workflow of BS (Base Station, base station) comprises following steps:
2.1, back initialization (get into INI state) resets.
2.2, produce local time slot according to exterior arrangement parameter (total number of time slot of each time frame, control number of time slot, data slot number).
2.3, the base station sends the wireless signal that comprises sync packet information according to the parameter (distribute to local time slot label) of configuration distributing to local control time slot.
3, relaying or terminal produce local time slot according to the synchronized that receives, and send control.
The workflow of SS (Subscriber Station, relaying or terminal) is as shown in Figure 2, and it comprises following steps:
3.1, init state is INI;
3.2, search signal, through the wireless signal that receives is detected, if detect a string known sync packet information, just signal reach the sign signal_detect be changed to effectively;
3.3, if detect signal_detect and effectively get into the VERIFICATION state, timer picks up counting, and waits for outside proof mark ARM_verified to the synchronizing information bag; Suppose that current demand signal is a sync packet; Produce synchronization slot with this signal, be called imaginary time slot, because signal arrives the generation that detects sign; With respect to signal location is basic definite; So can obtain the position of an almost fixed, timer is confirmed initial value T=cnt_get_signal with this, and timer value is as shown in Figure 3 with each state corresponding relation;
3.4, outside the packets of information that receives is resolved affirmation; If needed sync packet; Just feed back effective ARM_verified signal, and dispose the configuration parameter (total number of time slot of each time frame, control number of time slot, data slot number and the time slot label of distributing to this locality) that from receive packet, extracts.
3.5, waiting for concluding time point (waiting for that the concluding time is the longest consuming time of external feedback confirmation signal), whether effective, if ARM_verified is effective, then get into step (6), otherwise return step (1) if detecting ARM_verified;
3.6, get into synchronous tracking mode (VERI_PROCESS), confirm the current time slots position according to information in the synchronization packets and timing situation up to now;
3.7, get into the IN_SLOT state, produce local time slot, the generation of time slot mainly relies on the timer sum counter to realize that its workflow is as shown in Figure 4;
3.8, send control according to configuration parameter.
Fig. 5 is the instance of one-level relay point and base station synchronization, and in the drawings, relay point is received two wireless signals continuously; But first wireless signal is in the stand-by period synchronously; The outside does not provide the confirmation of synchronization signal, so relay point is failed synchronously second wireless signal; The outside has provided the confirmation of synchronization signal, and has accomplished synchronously relay point and base station.When realizing multistage relaying synchronous, as long as the outside confirmation of synchronization signal that when receiving the sync packet information of upper level relay point, just provides just can guarantee relaying ability at the corresponding levels and upper level relaying accurate synchronization.
The present invention utilize wireless signal realize relaying, terminal and central station synchronously, can avoid the puzzlement of gps signal step-out, for realizing complicated installation environment under and the blind area of the regions with complex terrain covering condition of providing convenience.