摘要 |
The present invention discloses a method and device for bit stuffing for digital communication purposes. A method according to the present invention contains a process related to bit stuffing, comprising the steps of selectin g n bits from a first queue forming a first bit sequence, comparing the first bit sequence with prestored bit stuffing data and performing actions with th e selected bit sequence and first queue according to data comprised in the prestored bit stuffing data. In a bit stuffing process according to the present invention a number of bits are added to a second queue and a number of bits are removed from the first queue, said bit sequences or number of bits are determined from the prestored bit stuffing data. The process of comparin g the selected bit sequence with prestored data is possible to perform in all steps involved with bit stuffing, both in the transmitting process and in th e receiving process, and in the during flag hunting as well as bit stuffing. I n a preferred embodiment the prestored bit stuffing data is in the form of a lookup table. A device according to the invention comprises two storage mean s (138, 144) for the queues, a storage means (142) for the bit stuffing data a nd stuffing means (140) performing the selecting, comparing, adding and removin g steps ofthe method.
|