Technical Field
This invention concerns a device which, with an externally generated data signal, produces the automatic synchronisation of the timebase generated internally by a cordless terminal in order to permit communications with a base station by means of time division multiple access techniques.
This invention is of particular application in those cordless receivers which, with a minimum power consumption, have to lock on to the timebase generated in the base station with which they are communicating so that, in this way, they are in condition to send and receive bursts at any moment without losing the bursts and without causing collisions with bursts coming from other terminals or from the base station itself.
Background of the Invention
In many modern cordless communications systems, use is made of time division multiple access techniques, TDMA, in which both the base station and the cordless terminal have to send and receive bursts of information in a perfectly defined time slot so that they are able to communicate with each other without loss of bursts and without interfering with other channels located in different time slots.
For this reason both parts must have a common timebase that makes this possible.
The manner in which this common timebase is normally achieved is that the base station generates a timebase, termed master timebase, while the cordless terminal has a timebase, termed slave timebase, that has to lock on to that of the base station. This locking is necessary because drifting between the two timebases occurs as a result of using different oscillators to generate them.
To produce the necessary synchronisation between the timebases of the base station and of the cordless terminal, the latter has to "listen" continuously the base station and to continuously compensate for any small shifts that occur in its own timebase, so that when it has to receive or send a burst, the timebases of both parts are already synchronised and communication can take place between the two parts without problems resulting from a lack of burst synchronisation.
The fact that there are some periods of time during which the cordless terminal is not receiving bursts generated in the base station is not important if these are not long enough such that the drift between the two timebases when bursts from the base station are received once again, makes correct resynchronisation impossible.
It is therefore necessary for the cordless terminal to be permanently "listening" the base station, resulting in an unnecessary current consumption that has a major impact on the duration of the terminal batteries. This is particularly important for the so-called pocket terminals, the batteries of which must have considerable autonomy.
This problem becomes especially significant when the terminal is used infrequently, and it can occur that the batteries become discharged after a certain number of hours even without the user having actively employed the terminal.
Technical Problem to Be Overcome
As a consequence of the state of the art described above, the technical problem to be overcome lies in maintaining synchronism between the timebases generated in the base station and in each of the cordless terminals in a wireless communications system, with a power consumption so low that it is possible to achieve a terminal autonomy of long duration.
Summary of the Invention
The device according to the invention compensates internal timebase drift in a cordless terminal with respect to an external reference. This internal timebase is generated by a counter that maintains a count of the bit considered by this timebase within each time slot that constitutes the frame and by a control circuit that carries out the control of the timebase in question.
This device is characterised in that it receives, in periodic form and for only a short interval of time, a data signal which prompts it to produce a burst reception signal with which it has to synchronise its own internal timebase.
In order to perform this process, the device includes a storage register that stores the output signal from the counter at the moment when the burst reception signal is received with an active level. It also incorporates a first adder which subtracts the content of the storage register from a reference value that indicates the bit, within each time slot, when the burst reception signal is active. The output of this adder, indicates the shift, expressed as a number of bits, between the external reference timebase and the internal timebase of the device.
It also has a second adder which, by means of a sum or a difference between a maximum value corresponding to the number of bits of the time slots and the output value of the first adder, obtains the value to be reached by the counter that forms part of the timebase so that, for the next burst, both timebases, the internal and the external reference, are synchronised.
The function is a sum or a difference, depending on whether the internal timebase was faster or slower than the external reference timebase, this being detected by the control circuit, whereby, in some later time slot, its duration is increased or shortened in order to bring it into synchonisation with the external reference. For this, use is made of a comparator which compares the output from the second adder with that of the counter which forms part of the internal timebase. The output of this comparator is sent to the control circuit to inform it when the counter has reached the value of the second adder in order to proceed to initialise the counting process in the latter and thereby lengthening or shortening the normal count value for synchronising the internal timebase with the external reference generated in the corresponding base station.
For a low current consumption, this device permits synchronisation between the timebases in cordless terminals and base stations in systems with time division multiple access, TDMA; thereby making communications between the two parts possible.
Brief Description of the Figures
A fuller explanation is given in the description of the invention, based on the figures attached, in which:
FIG. 1 shows a cordless communications system in which this invention is applied,
FIG. 2 shows timing diagrams which show how synchronisation is acquired in the timebases produced by means of the invention, and
FIG. 3 shows the block diagram of a data burst synchronisation device according to the invention.
Best Mode for Carrying Out the Invention
This invention was specially developed for a cordless communications system as shown in FIG. 1 which makes use of time division multiple access, TDMA, techniques. In this system, base stations BS1, BS2 permit a set of cordless terminals T1, T2 to have access to a communications network.
Both parts, the base stations BS1, BS2 and the cordless terminals T1, T2 have to maintain a common timebase, at least for each assembly formed by a base station and its associated cordless terminals, so that each one knows when it has to prepare to receive information and when it has to transmit it without producing overlapping of bursts coming from different sources.
For this reason, each piece of equipment (each base station and each cordless terminal) generates a timebase in such a way that the timebase generated by each base station is considered to be the master or reference, and the terminals associated with this station must be synchronised with it.
In simplified terms, the timebases are constituted by a cyclic counter 3 that counts the bits of each time slot, and a control circuit 6 that monitors which is the pertinent slot in the frame.
As has been mentioned when discussing the state of the art, the normal situation is that the cordless terminals are continuously "listening" to the base station, thereby permitting the terminals to keep their timebases locked on continuously, considering that in the half-frame during which the base stations are not transmitting (corresponding to the terminals), drifting is very slight and the terminals can immediately lock in once again.
This solution requires a constant power consumption from the batteries of the mobile terminals, even in the event that the terminal is never used to establish a communication. This is why in the terminals, in accordance with the invention, the receiver is kept off for the greater part of the time while the internal timebase of the corresponding cordless terminal runs freely and, consequently, because of inherent drift, the terminal timebase gradually shifts with respect to that of the base station to which it belongs, as can be seen from FIG. 2.
In this figure, frame 21 is equivalent to the timebase generated by the base station considered to be the master. Signal 22 corresponds to the burst reception signal A that is active in the bit following the reception of the burst header and, consequently, the active level is shifted by a certain number of bits with respect to the first bit.
Signals 23 and 25 respectively show the situations in which the internal timebase of the cordless terminals is faster or slower than the external reference produced by the base station.
Periodically, and in order to restrict the amount of drift, the receiver of the terminal in question comes on for a few moments, sufficient in duration to resynchronise its internal timebase with the base station timebase, by means of the device according to the invention.
For this, the control circuit 6, shown in FIG. 3, that receives the data signal DAT coming from the receiver, generates a burst reception signal A, which has an active level when the burst header is detected in a time window that is sufficiently wide to allow for the maximum drifts produced from the last time that synchronisation took place. This burst reception signal is logically produced, at the earliest, in the last bit of the header of the bursts.
The burst synchronisation device, therefore, stores in a storage register 1 the value of the counter 3 of the timebase and subtracts it, in a first adder 2, from a reference value REF which is the bit in which the burst reception signal A is generated. This first adder 2 produces an output DELTA that is the shift, expressed as a number of bits, between the two timebases, the internal one of the cordless terminal and the external reference coming from the base station.
It also has a second adder 4 that can perform the addition or subtraction, depending on an add control signal SUM, of a maximum value MAX which is the number of bits that comprises each complete burst and the output signal DELTA from the first adder 2. This add control signal SUM indicates addition if the internal timebase is delayed with respect to the external reference, or subtraction in the opposite case.
The output of the second adder 4 therefore indicates the number of bits that a burst must have to produce synchronisation. This information is sent to the control circuit 6 via the output T of a comparator 5 that compares this output of the second adder 4 with that of the counter 3.
The control circuit 6 also generates a first initialisation signal RES.sub.-- I that is applied to the counter 3 so that it reinitialises counting when a maximum value MAX is reached which is the value of the number of bits in each burst in the event that the internal timebase is already synchronised, or a different value indicated by the second adder in the event that synchronisation is in process. In this second case, the duration of the time slot is lengthened or shortened in order to obtain synchronisation as is indicated in FIG. 2, with the signals 24 and 26.
It also generates a second initialisation signal RES.sub.-- 2 that suppresses the content of the storage register 1 when the synchronisation process has already been completed.