Synchronisation in communication systems
A method and a communication bus are provided having nodes. Each of the nodes includes a transmitting element to transmit data to another node on the bus, and a receiving element to receive information from another node on the bus. A communication channel is between the transmitting and receiving elements within each node, a transmitter state machine logic controls the synchronisation of the transmitting element, and a receiving state machine logic to control the synchronisation of the receiving element. A storage area maintains the status of synchronisation of the bus. Communication data is synchronised via a bus connecting first and second nodes. A plurality of encoded bytes, each encoded byte represented as a 10 bit code, is transmitted from the first node. The second node receives and decodes the bytes, where any decoding errors in a byte are detected. A synchronised status is indicated.
Latest Patents:
This application is a divisional application of U.S. patent application Ser. No. 10/378,653 filed on Mar. 5, 2003, which claims priority to British Patent Application Serial No. 0205142.3 filed Mar. 5, 2002 in Great Britain. The subject matter of the earlier filed applications is hereby incorporated by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention is concerned with synchronisation of baseband communications in a wireless communications network.
2. Description of the Related Art
Within a base transceiver station of a wireless communications network, a bus protocol is used to communicate between different nodes. The present invention is concerned particularly but not exclusively with communication between baseband (BB) and radio frequency (RF) nodes in the base transceiver station. Nodes are implemented in a plurality of different ways, and in the following description it is understood that the term “node” implies any appropriate hardware unit, for example an ASIC, processor or FPGA, etc.
The bus protocol used between the different nodes of the base transceiver station is used to transfer digitised transmitter (TX) and receiver (RX) samples as well as other information.
The present invention addresses the problem of synchronising a bus, in particular a high speed bus operating a bus protocol used for communication between different nodes in a base transceiver station.
It is a further aim of the present invention is to provide a frame format used in conjunction with synchronisation methods for synchronising communications on a multi-mode communications bus, which does not require complex circuitry.
SUMMARY OF THE INVENTIONIn general terms, the invention relates to bus synchronisation using idle codes, with the possibility of detecting 8bl10b decoding status. In the described embodiment initial synchronisation and synchronisation at run time is discussed. The position in a frame and value of the idle code is utilised.
According to one aspect of the present invention Is a provided a method of transmitting data at a line rate from a wireless interface to a bus operating at a bus rate, the method comprising transmitting the data in a packet format consisting of a plurality of frames each having a plurality of time slots, each time slot having successive message groups, wherein each message group comprises a plurality of data messages containing said data and an idle code containing no said data; wherein the number of idle codes in each frame is selected so that the bus rate matches the line rate.
According to a further aspect of the present invention there is provided a method of transmitting data at a line rate from a wireless interface to a bus operating at a bus rate, the method comprising transmitting the data in a packet format consisting of a plurality of frames each having a plurality of time slots, each time slot having successive message groups, wherein each message group comprises a plurality of data messages containing said data and an idle code containing no said data; wherein the number of idle codes in each frame is selected so that the bus rate matches the line rate.
According to yet another aspect of the present invention there is provided a communication bus operable at a bus rate and having at least a first node and a second node that are linked by communication channels for transmitting at said bus rate data generated at a line rate, said first node having a transmitting element and said second node having a receiving element, wherein the transmitting element of said first node is operable to transmit data in a packet format consisting of a plurality of frames each having a plurality of time slots, each time slot having successive message groups, wherein each message group comprises a plurality of data messages containing said data and an idle code containing no said data; wherein said number of idle codes in each frame is selected so that the bus rate matches the line rate and wherein the receiving element of the second node is arranged to detect said idle codes for synchronisation purposes.
According to a still further aspect there is provided a method of synchronising a data communication over a bus in a packet format, said data having been generated at a line rate over a wireless interface consisting of a plurality of frames each having a plurality of time slots, each time slot having successive message groups, wherein each message group comprises a predetermined number of data messages containing said data and an idle code containing no said data, the method comprising detecting at a bus node said idle codes until a predetermined number of said idle codes have been detected indicating successful synchronisation.
According to a still further aspect there is provided a method of synchronising data communication via a bus connecting first and second nodes comprising: transmitting from the first node a plurality of bytes, each byte representing a 10 bit sequence as an 8 bit code; receiving and decoding said bytes at the second node, whereby any 8b10b encoding errors in a byte are detected; and indicating a synchronised status for the bus based on the detection of received bytes which do not contain 8b10b decoding errors.
According to a still further aspect there is provided a method of synchronising data communication via a bus connecting first and second nodes comprising: transmitting from the first node a plurality of bytes, each byte representing a 10 bit sequence as an 8 bit code; receiving and decoding said bytes at the second node, whereby any 8b10b encoding errors in a byte are detected; and indicating an unsynchronised status for the bus based on the detection of received bytes containing 8b10b decoding errors.
For a better understanding of the present invention and to show how the same may be carried into effect, reference will now be made by way of example to the accompanying drawings in which:
Packetised data may be sent over the baseband bus. As can be seen from
The baseband bus uses a three-layer protocol with fixed length messages. Any information to be sent over the baseband bus is packed into messages of known type. The three layers are shown in
In CDMA applications, data at the application layer is continuous, but for transfer over the bus, the continuous data of the application layer is time sliced into short messages that are transferred over the high-speed physical layer. At the receiving node a continuous stream is recovered.
A preferred embodiment of the message structure 76 is shown in
When there is no data message to transmit, that is, no message has been received from the transport layer for a given time slot, then the physical layer 60 transmits an empty message, which can be implemented by transmitting “1” bits for the entire message. The physical layer at the receiving node will detect the existence of an empty message and rejects such messages, thereby making these messages invisible to the upper protocol layers 62,64.
In the embodiment shown in
In the present embodiment, the bus speed is chosen to be 768 Mbps. A derivative of the BTS reference system clock is used as a clock for the baseband bus and the physical layer 60 of the bus protocol is synchronised to the BTS system clock. However, application layers of the bus protocol can operate asynchronously with respect to the timing of the physical layer, which is especially useful for GSM or EDGE application where data is not continuous but instead is transmitted in bursts and is inherently asynchronous.
For the present embodiment, consider the situation of a WCDMA uplink. Consider a signal described in terms of its in-phase component (I) and its quadrature component (Q) where the I and Q values are each 8 bits.
At a sample rate of 7.68 Msps (Mega samples per second), this gives a payload rate of 7.68M*(8*2)=122.88 Mbps (Mega bits per second). Since the packet has a 3 byte header and 16 byte payload, the packet rate is 122.88*(19/16)=145.92 Mbps. After an 8b10 coding scheme is used, the line rate is 145.92M*(10/8)=182.4 Mbps.
However, a bus speed of 768 Mbps has been chosen. Therefore an extra 768−766.08=1.92 Mbps is needed in order to match the line rate to the bus speed. 1-0 achieve this, taking into account the 8bl Ob coding, 1.92M*(8/10)=1.536 Mbps of “plain” data needs to be inserted, which is 1.536 Mbps/8=192000 “plain” bytes per second. Each frame has a time period of 10 ms, therefore 192000/100=1920 IDLE bytes per frame are inserted. Each frame has 15 time slots resulting in 1920/15=128 IDLE bytes per time slot. There are 2560 data messages per time slot, which means 128/2560=1 byte per 20 messages should be an IDLE byte in order to match the tine rate to the bus speed.
Therefore, by insertion of IDLE bytes it becomes possible to match the line rate to be an integer multiple of the system clock rate and alleviates the need for additional complex circuitry needed to account for a mismatch between the line rate and the bus speed.
It can also been seen that each of the transmitting 40, 48 and receiving elements 44, 52 have their own respective state machine logic 42, 46, 50, 54.
Table 1 below provides a definition of the signals used in the state machine for synchronisation.
It should be noted that the IDLE code 80 inserted at the end of each message group 74 is referred to herein as the “K28.5” IDLE byte, whereas the special IDLE code 82 inserted at the end of each frame 70 is referred to herein “K28.7” IDLE byte.
These codes (and other data bytes) are transmitted as 10 bits using an 8b10b encoding scheme, for example as described in “A DC-Balanced, Partitioned-Block, 8B/10B Transmission Code”, by Widmer and Franaszek, IBM J. Res. Develop. Vol. 27 No. 5, September 1983. The transmitter has means for encoding the 8b bytes into 10b codes and the receiver has means for decoding the codes and for error checking.
Table 2 below defines the state transitions and triggers required for these transitions for the state machine logic 46, 54 of the receiving elements 44, 52.
Table 3 below defines the state transitions and triggers required for these transitions for the state machine logic 42, 50 of the transmitting elements 40, 48.
Broadly speaking, there are two synchronisation algorithms which are applied, i.e. initial synchronisation and frame synchronisation. Initial synchronisation allows an initial check on the link quality of the bus, whereas frame synchronisation allows continuous monitoring of the link quality when the bus is in run time mode. The synchronisation algorithms can report link status information of the bus to upper layers of the protocol stack.
Initial synchronisation is performed when a bus node is booting up. The purpose of the initial synchronisation is to determine the status of each bus interface. That is, checking the status of a node's transmitting and receiving elements. Synchronisation may be unsuccessful due to a missing neighbouring node or a failure of the link.
In the present embodiment, the sequence of steps for initial synchronisation is the following:
-
- Set state to UNSYNCHRONIZED.
- Reset the message group counter to zero.
- Start transmitting a constant stream of IDLE bytes from the transmitting element of any node, e.g. 20.
- Start reading the IDLE bytes at the receiving element of any node, e.g. 22.
- A message group is considered to be valid when all the IDLE bytes are properly received and there are no 8b10b decoding errors. Otherwise, a message group is considered to be invalid. It should be appreciated that there are (21 messages*19 bytes per message)+1 IDLE byte=400 bytes in a message group.
When in the state UNSYNCHRONIZED and a value of SYNC T consecutive valid message groups have been received, the state of the state machine then is set to the SYNCHRONISED state.
When in the state SYNCHRONIZED and a value of UNSYNC T consecutive invalid message groups have been received, the state of the state machine then is set to the UNSYNCHRONISED state. Also, the message group counter is set to zero.
When in the state UNSYNCHRONIZED and a value of DISABLE T message groups have been received, the state of the state machine then is set to the DISABLE state. The value of DISABLE T is larger or equal to the value of UNSYNC T. When either of the transmitting or receiving elements of a node enter the DISABLE state, the application layer 64 is informed by an interrupt which then can restart the synchronization procedure.
The above synchronization algorithm can be generalized by considering validity of consecutive received bytes instead of message groups. Furthermore, synchronization can be based on any transmitted data and the success or failure of 8b10b decoding; not just transmission and reception of IDLE bytes.
The physical layer 60 contains a status register 45 for each transmitting and receiving element of each node of the bus indicating the synchronisation status. For example, DISABLE (000001), UNSYNCHRONISED (000010), SYNCHRONISED (000100). Other state encodings may be used. Regarding the operation of the transmitter during initial synchronization, IDLE bytes are sent in UNSYNCHRONIZED and SYNCHRONIZED states. Note that during initial synchronisation, only IDLE bytes are transmitted to the bus. This is not the case in run-time operation when data is transferred over the bus.
After the physical layer 60 has been configured into a run-time mode by the application layer (parameter SET_RUN-TIME_MODE is set equal to 1), frame synchronisation can be performed. In run-time mode, messages (e.g. data, control or even empty) are transferred over the bus. In run-time mode, receiver synchronization of a transceiver is started immediately. When the value of parameter SET_RUN-TIME_MODE is changed from 1 to 0, state of the transceiver Is changed to FRAME_DISABLE.
In frame synchronisation, each transmitting element 40, 48 synchronises the frame timing with the baseband bus frame clock Furthermore, the status of the frame synchronisation in each receiving element 44, 52 is constantly monitored. The end of each frame is identified from the unique IDLE byte K28.7. This unique IDLE byte allows one to calculate the received frame offset as well as monitoring of frame synchronization status.
In the present embodiment, frame synchronisation is applied to all the transmitting and receiving elements of the bus nodes when entering the run time mode and the sequence of steps for frame synchronisation is the following:
-
- Set the state of the state machine to FRAME UNSYNCHRONIZED.
- Reset the message group counter to zero.
- Start transmitting empty or other valid messages from the transmitting element 40, 48.
- With reference to the baseband bus frame clock, read the IDLE byte of each message group from the received byte stream using the receiving element 44, 52. The IDLE byte must be the last byte of the message group and any other IDLE bytes are considered to be errors.
- When the IDLE byte of a message group has been properly received and no 8b10b decoding errors are present, consider that message group to be valid. Otherwise, the received message group is invalid.
- When in the state FRAME UNSYNCHRONIZED and FRAME SYNC T consecutive valid message groups have been received, set the state to FRAME SYNCHRONISED.
- When in the state FRAME SYNCHRONIZED and FRAME UNSYNC T consecutive invalid Message Groups have been received, set the state to FRAME UNSYNCHRONISED and reset the message group counter to zero.
When in the state FRAME UNSYNCHRONIZED and FRAME DISABLE T message groups have been received, set the state to FRAME DISABLE.
The value of FRAME DISABLE T is always larger or equal to the value of FRAME UNSYNC T. The status register 45 maintains an indication of the status of the frame where the status FRAME DISABLE, FRAME UNSYNCHRONIZED, and FRAME_SYNCHRONIZED correspond to the states 001000, 010000, and 100000 respectively. Other state encodings may also be used. When the transmitting or receiving elements enter the FRAME_DISABLE state, the application layer is informed by an interrupt, which can then restart the synchronization procedure. Regarding the operation of the transmitting elements during frame synchronization, valid messages are sent in the FRAME SYNCHRONIZED state, whereas empty messages are sent in the FRAME UNSYNCHRONIZED and FRAME DISABLE states.
The synchronisation operation is now described for each respective state.
UNSYNCHRONISED
-
- Restart the message group counter.
- The transmitting element starts sending IDLE bytes.
- The LOS is set to ‘1 ’.
- The receiving element waits to receive data.
- Valid bytes are beginning to be passed.
- Initial byte synchronization is performed using the consecutive K28.5 idle code
- The receiving element will start counting valid message groups. If SYNC T consecutive valid message groups are received, then the state machine transitions to the SYNCHRONIZED state.
- If DISABLE T message groups are received (with 400 bytes in each), then the state machine transitions to the DISABLE state and the Receiver and Transmitters are disabled.
- If ENABLE BUS TRANSCEIVER=O is received, then the state machine transitions to the DISABLE state.
- If SET RUN TIME MODE=1, then the state machine transitions to the FRAME UNSYNCHRONISED state.
SYNCHRONISED
-
- Reset the message group counter.
- Set the LOS to ‘0’
- If UNSYNC_T consecutive invalid message groups are received, then the state machine transitions to the UNSYNCHRONISED state.
- If SET RUN TIME MODE=1, then the state machine transitions to the FRAME UNSYNCHRONISED state.
- If ENABLEBUS_TRANSCEIVER=O, then the state machine transitions to the DISABLE state.
DISABLE
-
- Stop all counters.
- Set the LOS to
- In this state, the state machine of the receiving element can only transfer to the UNSYNCHRONISED state when RESTART FROM DISABLE=1.
FRAME SYNC
-
- Set the LOS to ‘0’.
- Restart the message group counter.
- Constantly check the frame synchronization using the K28.7 IDLE byte.
- If FRAME UNSYNC T consecutive invalid message groups are received, then the state machine transitions to the FRAME UNSYNCHRONISED state.
- If ENABLE BUS TRANSCEIVER=0 or SET RUN TIMEMODE=0, then the state machine transitions to the FRAME DISABLE state.
- In the FRAME SYNC state, a valid message group exists when a K28.5 or K28.7 IDLE byte code is at byte 399 and there are no invalid IDLE codes in bytes 0 to 398 and no 8bl Ob decoding errors are present.
FRAME UNSYNC
-
- Set the LOS to ‘1’.
- Restart the message group counter.
- If FRAME_SYNC_T consecutive valid message groups are received, then the state machine transitions to the FRAME SYNCHRONIZED state.
- If FRAME DISABLE T invalid message groups are received, then the state machine transitions to the FRAME DISABLE state.
- In the FRAME_UNSYNC state, a valid message group exists when a K28.5 or K28.7 IDLE byte code is at byte 399 and there are no invalid
- IDLE codes in bytes 0 to 398 and no 8b106 decoding errors are present.
- If ENABLE_BUSTRANSCEIVER=O or SET RUN TIME MODE=O, then the state machine transitions to the FRAME DISABLE state.
FRAME DISABLE
-
- Stop all counters.
- Set the LOS to ‘1’.
In summary, the idle bytes inserted into the frames at the physical layer level are to synchronise the line rate of data transmission to the bus rate set up by the system clock. Also, synchronisation algorithms using these idle bytes to perform different types of synchronisation algorithms. For initial synchronisation, before run time mode, the quality of the communication links between the nodes are tested by transmitting message groups that consist purely of idle codes instead of data messages. The receiving elements then check the received idle codes and if all idle codes (i.e. 400 idle bytes in this embodiment) have been received correctly, then that message group is said to be valid. If SYNC_T consecutive valid message groups are received then initial synchronisation has been achieved, For frame synchronisation, the first algorithm is when the bus is in run time mode but the frames are unsynchronised. Data messages and an idle message now make up the message groups that are transmitted. However, now a message group is considered to be valid when an idle code exists (either K28.5 or K28.7) at the last byte of the message group (i.e. byte 399) and there are no invalid IDLE codes in the remainder of the message group (i.e. bytes 0 to 398) and no 8b10b decoding errors are present in the message group. Frame synchronisation is once FRAME_SYNC_T valid consecutive message groups have been received. Also, once frame synchronisation has been achieved it is important to maintain synchronisation. This is accomplished by using the unique idle byte (K28.7) at the end of each frame, which allows one to calculate the received frame offset.
It should be appreciated that each transmitting or receiving element of each node of the bus can independently assume any of the states described herein.
It should also be appreciated that
It should be appreciated that the frame structure shown in
It should be appreciated that the implementation of the nodes of the communications bus, shown in
Claims
1. A communication bus having nodes that are linked by communications channels, wherein a first set of said channels transfers information in one direction while a second set of channels transfers information in the opposite direction, each of said nodes comprising:
- a transmitting element for transmitting data to another node on said bus;
- a receiving element for receiving information from another node on said bus;
- a communication channel between said transmitting and receiving elements within each node;
- transmitter state machine logic for controlling the synchronisation of said transmitting element;
- receiving state machine logic for controlling the synchronisation of said receiving element; and
- a storage area for maintaining the status of synchronisation of said bus.
2. A communication bus according to claim 1, wherein the transmitter and receiving state machine logic are configured to report the link status of the communication bus.
3. A method of synchronising data communication over a communication bus, the communication bus having nodes that are linked by communication channels, wherein a first set of channels transfers information in one direction while a second set of channels transfers information in the opposite direction the method comprising:
- transmitting data from a first node on the communication bus over a communication channel;
- receiving data at a second node in the communication bus;
- controlling synchronising transmitting the data with transmitter state machine logic;
- controlling synchronising receiving the data with receiving state machine logic;
- maintaining the status of synchronisation of the communication bus;
4. A method of synchronising data communication according to claim 3 wherein the method further comprises reporting link status of the communication bus.
Type: Application
Filed: Dec 4, 2007
Publication Date: Jul 31, 2008
Applicant:
Inventors: Tim Addy (Winchester), Markku Vainikka (Kiviniemi), Timo Viero (Espoo), William Brockington (Paignton), Markku Vahataini (Maksniemi)
Application Number: 11/987,760
International Classification: H04J 3/06 (20060101);