A method of pre-processing a packed message with at least two elements, received by a receiver
Field of the invention
This invention relates to wireless receivers for receiving packed or compressed digital messages that are transmitted from a base station. The base station serves a plurality of receivers in its geographical area of coverage called a cell. Messages are paging messages or dedicated messages that are addressed to a particular receiver among a plurality of receivers served by the same transmitter. The receivers thus share the dedicated channel.
Technical background of the invention In wireless systems for mobile communication such as the GPRS (General Packet Radio
Services) and the UMTS (Universal Mobile Telecommunications System) there will typically be many active mobile stations in each cell. Each message from the base station is addressed for a particular receiver and is broadcast over the entire cell or a subdivision of the cell, and each active mobile station in the cell will thus receive all messages that are broadcast from the base station including in particular messages addressed to other mobile stations in the cell.
Each mobile station must examine at least the address of each received message and determine whether the message is addressed for the mobile station it self or for another receiver or mobile station. Messages addressed for other mobile stations will be ignored or discarded, and only messages addressed for the particular mobile station will be executed.
In the GPRS and UMTS communications systems messages are compressed or packed prior to transmission as discrete packets in order to increase the transmission capacity, and received packets are then unpacked in the receivers. In GPRS the language CSN.1 (Concrete Syntax Notation One) is used for compression or packing, and in UMTS the language ASN.1 (Abstract Syntax Notation One) is used. Packets, which are received by a mobile station, are first unpacked and then checked for their destination address. If the packet is addressed for another mobile station, the message will be discarded or ignored, and processor power has been spent on unpacking an irrelevant message. The procedure of unpacking each received
message is power consuming, and with the existing compilers for the CSN.1 and ASN.1 it is not possible to rationalise and improve the unpacking procedure.
Object of the invention
It is the object of the invention to improve and rationalise the unpacking procedure in order to save processor power, whereby the processor power can be used for other purposes. Furthermore, also battery power can be saved.
Summary of the invention
This object is achieved by applying the method of the invention. According to the invention, for each received packed message, the received message is unpacked element by element, and each unpacked element is checked for syntax match with the expected syntax. If a syntax match is determined, it is checked whether the unpacked element is an address element, and only if the addressed matches with the identity of the receiver, is the rest of the received packet unpacked.
By the method of the invention it can in most cases be determined already at an early stage during unpacking, and without having to unpack each received message completely, whether or not the received message is addressed for the receiver, and if it is determined that the received message cannot possibly be addressed to the receiver, then the received message is ignored without unpacking the rest of the message, whereby processor resources and battery power is saved. In traffic mode the transmitting base station will often transmit packed messages to several mobile stations or other receivers in the cell, and each receiver should only process the messages addressed to it. In stand-by or sleep mode it is necessary for the mobile receiver to be alert and to react to all messages addressed to the receiver. In any case, messages not addressed to the individual receiver are irrelevant to the receiver and should be ignored.
With the invention received packed messages are unpacked element by element, each new element that is unpacked, is immediately checked for a possible match with the identity of the receiver, and as soon as a possible mismatch is found, which means that the received message
cannot possibly be addressed for the receiver, the message is ignored without further unpacking and processing of the message.
Brief description of the drawings
Figure 1 shows schematically a base station and mobile stations served by the base station,
Figure 2 shows schematically possible data structures of received packets, and
Figure 3 shows a flow chart of the unpacking method of the invention.
Detailed description of the invention In figure 1 is shown a base station BS and two portable communications devices such as mobile stations MSI and MS2 in the cell served by the base station BS. In practice there can be a large number of mobile stations served by the same base station.
In figure 2 is shown three packets PI, P2 and P3 transmitted by the base station and received by the active mobile stations in the cell served by the base station. Each packet is shown with one or more address elements AE and a message block. The address elements AE can be in a header portion of the packets as in the packet PI or within the packet as in the packets P2 and P3, and there can be more than one address element as in the packet P3. The packets are packed or compressed using eg the CSN.1 or the ASN.1 languages or other suitable language using a grammatical structure. In practice the different parts of the packets will be packed in a more complex way depending on the type of packet.
Figure 3 is a flow chart that schematically shows how packed messages received by a mobile station are pre-processed according to the method of the invention. Having been started the mobile station enters a loop (not shown) waiting to receive a message. When a message has been received, a first element of the received message is unpacked according to a proper unpacking algorithm in order to restore the element. After unpacking the element it is checked whether the unpacking was syntactically correct. If not, unpacking of the received packet is discontinued, and the unpacking process enters a ready mode. If the unpacking was syntactically correct, it is checked whether the unpacked element is an address element, and if
not, a further element is unpacked. If the element is an address element, it is checked whether the address is in accordance with the syntax used, and if not, unpacking of the received packet is discontinued, and the unpacking process enters the ready mode. If the address is in accordance with the syntax used, it is checked whether the address element matches with the identity of the receiver as stored eg in the SIM (Subscriber Identity Module), ie whether the packet is addressed for the receiver, and if not, unpacking of the received packet is discontinued, and the unpacking process enters the ready mode. If the packet is addressed for the receiver, it is checked whether there are more elements in the packet, and of not, the unpacking process enters the ready mode. If there are more elements in the packet, the next element is unpacked etc. In the ready mode the unpacking process is ready to receive a new packet. When a packet that is addressed for the receiver, is unpacked as described here, the receiver processes the message.
With the above-described method the unpacking is discontinued as soon as it has been determined that an unpacked element does not have the correct or expected syntax, or that an unpacked address element indicates that the packet is not addressed for the receiver and thus irrelevant. Received packets that are irrelevant to the receiver are thereby not unpacked, and processor resources can be used for relevant purposes.
The method of the invention is not limited to certain address types but can be used for unpacking packed messages with a variety of address types such as BVISI, TLMSI, PTEVISI, TLLI, TFI and TQI, which are used depending on the actual state of communication. Eg the TQWI (Temporary Queue Identifier) is used when the channel is occupied, in which case the mobile station will receive a TQI. When the channel is no longer occupied and is ready to serve the mobile station, another TQI is transmitted to the mobile station. The addresses are used dynamically, and each mobile station can have several types of addresses that change dynamically over time according to the actual conditions.