Arranging session between server and client device
A method of starting a session in a synchronization system. The maximum size of a message that is to be sent from a synchronization server to a mobile station for the request, and coding instructions, by which at least one of the identifiers can be coded into a bit sequence requiring substantially fewer bits than its ASCII presentation, are determined in the synchronization server. Decoding instructions, by means of which the original identifier is obtained from the bit sequence, are determined in the mobile station. When the purpose is to transmit a request indicating the need for starting a session to at least one mobile station, a message is formed, is shorter or as long as said maximum size and comprises the pre-selected identifiers, at least one of which is presented as a bit sequence defined according to the coding instructions. The mobile station forms a session initialization message on the basis of the information included in the message received from the server, at least part of information being defined from the received bit sequence according to said decoding instructions.
The invention relates to arranging a session between a synchronization server and a client device and particularly to starting a session on the initiative of a synchronization server.
Data of portable terminals, such as mobile phones, can be synchronized with network applications, desktop computer applications or other databases of the telecommunication system. In particular, data of calendar and e-mail applications are typically synchronized. Previously, synchronization has been based on the use of different manufacturer-specific protocols which are incompatible. This limits the use of terminals or data types to be used and often causes difficulty to the user. In mobile communication, in particular, it is important that data can be retrieved and updated regardless of the terminal and application used. To improve synchronization of application data, a SyncML (Synchronization Markup Language), which is based on the XML language (Extensible Markup Language), has been developed. By using a SyncML synchronization protocol, which employs SyncML messages, data of any application can be synchronized between networked terminals of any kind.
Other types of data can also be synchronized by means of the SyncML, whereby a new setting relating to synchronization, for instance, can be synchronized to the client device. Generally, device management refers to procedures, by which third parties can change the configuration of a device, e.g. change settings or even a protocol used by the device. Besides settings relating only to the device, it is also possible to send user-specific data, such as user profiles, logos, ringing tones and menus, by means of which the user can personalize the settings of the device or the adaptations are made automatically in the device management. Features which have been defined in the SyncML standard can be utilized in connection with the device management concept. A synchronization server can act as a device management server and a client device as a device to be managed (Device Management Client).
According to the SyncML protocol, a client device typically starts a synchronization session. However, particularly in the context of device management there are cases in which the server has the need to start the synchronization. For this case, the SyncML specification “SyncML Sync Protocol, version 1.0.1”, May 2001, chapter 8 (pages 49 to 50) describes a synchronization session initialization caused by a server (Server Alerted Sync): the server may send a (Sync Alert) request message, in which it requests the client device to start a SyncML session. After this, the client device starts the initialization of the SyncML session by transmitting a conventional (Client Initialization Package) packet. When the client device is a mobile station, problems arise due to the facts that the client device cannot be reached when the mobile station is switched off or that there is no continuous data transmission connection between the terminal and the server. This is why it is advantageous to use a service which stores the message when the request is transmitted. One of such services is SMS (Short Message Service), which stores a text message in a text message center and sends it when the mobile station is attached to the network and can be reached. Like other SyncML messages, a request for starting a session is in XML format and comprises a header field, which is determined in a [SyncHdr] element, and a body part, which is determined in a [SyncBody] element:
The request is relatively large and requires much greater capacity than 140 octets provided by the text message (which is sufficient for coding 160 ASCII characters of 7 bits). The request can be divided into several text messages, but it is possible that one of the text messages disappears, the messages arrive in wrong order or that the client device cannot process concatenated text messages. If a transport layer service is provided by WAP (Wireless Application Protocol), for instance, SyncML messages can be coded into binary WBXML format (Wireless Binary XML), and less data transmission capacity is required. Even though WBXML were used, the request still requires several text messages.
BRIEF DESCRIPTION OF THE INVENTIONIt is thus an object of the invention to provide a method and an apparatus implementing the method such that the above-mentioned problems can be avoided. The objects of the invention are achieved by a method, a synchronization system, a synchronization server, an electronic device and computer programs, which are characterized in what is said in the independent claims. The preferred embodiments of the invention are disclosed in the dependent claims.
The invention is based on selecting only the most essential information which is further coded in such a manner that less space is required, compared to the situation in which the information would be transmitted in cleartext. The method comprises configuring a synchronization server to determine, for a request indicating the need for starting a session and to be transmitted to the mobile station, the identifier of the synchronization server, the identifier of a synchronization protocol version supported by the synchronization server and the identifier of the requested synchronization session. The maximum size of the message that is to be sent from the synchronization server to the mobile station for the request, and coding instructions, by which at least one of the identifiers can be coded into a bit sequence requiring substantially fewer bits than its ASCII presentation, are determined in the synchronization server. Decoding instructions, by means of which the original identifier is obtained from the bit sequence, are determined in the mobile station. When the purpose is to transmit to at least one mobile station a request indicating the need for starting a session, a message is formed, which message is shorter or as long as said maximum size and comprises at least said identifiers, at least one of which is presented as a bit sequence defined according to the coding instructions. The message is transmitted to the mobile station by using a message transmission service. The mobile station forms a session initialization message on the basis of the information included in the received message, at least part of information being defined from the received bit sequence according to said decoding instructions. The session initialization message is transmitted from the mobile station to the synchronization server. The coding utilizes the information concerning the different values the different fields can obtain. The correspondence between these values and the different bit patterns is stored in the coding instructions and decoding instructions to be used by the server and the client.
Neither a session nor its initialization is restricted to the functions defined in the SyncML, but is to be understood broadly to refer to a session to be established between any client device and synchronization server and to messages needed to establish the session. In a synchronization system, a session between a client device and a synchronization server can be established in order to synchronize user data or to manage the device.
The solution according to the invention provides the advantage that on the request of the server, a session can also be started in devices that do not support the reception of concatenated messages. When a message transport service, such as SMS, provided by the mobile network can be used, a message can always be delivered to its destination (when the device is switched on) also in devices which do not allow push services activated by the network. The solution of the invention also helps to avoid problems which result from the packet-switched network possibly delivering messages to the client in an order differing from the order in which the server has transmitted them, or some messages possibly even getting lost. In addition, as the transmission of a request requires less space, data transmission resources can also be saved and as a result, there are fewer costs. This saving can be very significant in cases where the server has to transmit a request to a large number of client devices.
BRIEF DESCRIPTION OF THE FIGURESThe invention will now be described in greater detail in connection with the preferred embodiments, with reference to the attached drawings, in which:
In the following, a preferred embodiment of the invention is described in a system supporting the SyncML standard, it is to be noted, however, that the invention can be applied in any synchronization system.
If the MNW is a GSM network, the block MB providing a message service comprises at least a short message service center SMSC. An important transport layer service in several mobile networks is WAP, which comprises a WSP layer (Wireless Session Protocol), which can be used for providing a transport service for the synchronization application layer in the client device MS and in the server S. The WAP supports several lower level transmission technologies, such as a SMS-based transmission. Also HTTP or OBEX standards, for instance, and lower layer transmission technologies supported by them can be used. The server S itself may comprise a database it has synchronized, or the database synchronized by it can be located in another device, in
As illustrated in
The client device MS comprises a client agent CA, which is responsible for session-related functions in the client device. The server S comprises a server agent SA managing the session and a synchronization engine SE. The CA is preferably implemented by the CPU executing a computer program code stored in the memory MEM, and the SA, SE are implemented by the SCPU executing a computer program code stored in the memory SMEM. These means can also be arranged to implement a device management session or the device management session can be managed by separate entities, which are not shown in
When a request indicating the need for starting a session needs to be transmitted 403 from a server to at least one client device, the server S defines 404, according to the coding instructions, at least one bit sequence for at least part of information required in the message. The message requires at least the identifiers mentioned below, but typically it also includes other information. The information to be transmitted is formed 405 into one message. The server S also controls 405 that the message does not exceed the defined maximum size. If the message seems to exceed the maximum size, the server S may delete less important fields from it and/or, by using the coding instructions, code more information into a form which requires less space. The message is transmitted 406 from the server S to the client device MS by using the message transmission service of the network MNW. According to an embodiment, an SMS service known to a person skilled in the art can be used for transmitting the message. In the client device MS, the information according to the bit sequences in the received message is defined 407 for the initialization message by using the coding instructions stored in the client device. Based on at least one identifier obtained in this way and other information included in the message, the MS forms 408 a session initialization message and transmits 409 it to the synchronization server S.
The session can be used for device management functions, whereby the operation of the synchronization application (CA) of the client device MS can be adapted on the network's initiative. For instance, if the address of the synchronization server (URI identifier) has changed, it is important to make this known to every device that synchronizes with this server. In the SyncML, this request transmitted by the server in order to start a device management session can be called [Package #0: Management Alert to Client], because the initialization packet to be transmitted for the initialization on the basis of the request is [Package #1: Client Initialization]. It is also possible to use the session for the personalization performed by the user himself. The user may adapt the settings through a WWW interface, for instance, and on the initiative of the synchronization server S these changes can be transferred to the client device MS during the session.
In the following, fields that can be used in the message are described.
Version (VER). Contains the message version to be used and thus also the protocol version so that the client device can check whether the server S supports the same version. The version identifier may alternatively indicate only the message version or the protocol version. The client device need not start (408, 409) the session if it supports a different version. The version identifier can be coded according to the coding instructions set in the server S into a shorter bit sequence, for instance such that the first 10 bits after the WSP header field are used: the last number refers to the smallest version numbers, the second last refers to ones, the third last refers to tens and the fourth last refers to hundreds, in which case the largest possible version is ‘102.3’ and the version ‘1.0’ is coded into a bit sequence ‘0000001010’. As stated earlier, the MS comprises decoding instructions for determining (407) the original identifier from the bit sequence.
These coding instructions can be implemented in the device as a correspondence table illustrating which bit sequence corresponds to which version number. Alternatively, this table can be set to the device algorithmically so that its elements can be produced programmatically without needing to store the entire table in the device's memory. The correspondence table can be coded, for instance, like this:
Session Identifier (SID). This field determines the session identifier, so that the same session is not performed more than once. For this identifier, 16 bits after the version identifier, for instance, can be used. For instance, if the client device is switched off, the server S may send several messages, by means of which the server attempts to establish one specific management session. On the basis of the SID identifier, the client device can conclude that it should start only one connection and not set up a connection according to every obtained message. The server S may also prioritize device management sessions by means of the SID field, for instance by defining a specific SID identifier to less important device management operations. When the client device sets up a connection to establish a session, the server S can prevent the session from being established, if it has more urgent client devices to serve. This can be arranged such that the server S stores in its memory the information that the session corresponding to the transmitted SID identifier is less important. This can be arranged alternatively so that SID identifiers selected from a specific group, for instance, are less important, which makes it possible to avoid the storage of information.
User Interaction Mode (UI). By this identifier, the server may recommend whether the session should be carried out in the background or whether the user should be informed of the session. This field can be coded by two bits according to the following correspondence table, for instance:
Initiative of the Management Action (Init). By this identifier, the server S may communicate to the client device, whether it itself has caused the management session or whether the client device (its user) has caused it. This information may form a basis for the billing, and so the user of the client device can also be billed for the request transmitted by the server, if the user has caused, i.e. ordered it. The information can be coded by two bits according to the following correspondence table, for instance:
Future Use of the Device Management (Fut). In this field, possible information which is to be defined later can be transferred from the server S to the client device MS for the management session. For instance, 30 bits of space can be reserved. One possible example of information to be transferred in this field is a moment at which the client device should establish a session to the synchronization server S. The MS can transmit the initialization message (409) at the time set by the server, and the server S may, for instance, balance its load by setting the different client devices to set up a connection at different times.
Length of the Trigger Authentication Shared Secret (Tlen). This field indicates the length of the TASS field (Trigger Authentication Shared Secret).
Length of the Source (Ulen). This field indicates the length of the identifier (URI) of the server S. By using this field and the Tlen field, the largest possible space can be arranged for the URI field. If only fields of specific lengths were used, there would often be unused space at the end of the TASS field.
Trigger Authentication Shared Secret (TASS). The TASS field contains a shared secret, by which DoS attacks (Denial of Service) are prevented. This field can also be used to determine the server identifier.
Source URI of the Management Server (Source URI). The field contains the URI identifier of the server, e.g. ‘http://www.syncml.org/mgmt-serve’. In certain cases, this field can also be shortened by leaving out the protocol identifier, for instance, or, instead of the server address, transmitting only the shorter identifier in the field. Alternatively, the TASS field can be used for transmitting the server identifier.
Vendor (Vendor). This field is optional and may include manufacturer-specific information as much as the message can take after the preceding fields.
In the above-mentioned fields the payload is planned so that as little space as possible would be needed. If all fields were transmitted as text in XML format, about 400 characters, i.e. thousands of bits, would be needed. One field takes up at least a few characters, i.e. dozens of bits. When at least some of the fields utilize the above-mentioned coding methods, each of which is derived from the knowledge concerning the different values each field can take, it is possible to save space significantly and make (by further deleting less important fields, if necessary) the information fit into one SMS message. Appendix 1, which is a part of the specification, shows another example of message fields, as far as only the SyncML payload is concerned.
The session can be used to synchronize conventional user data, e.g. to update calendar markings of the mobile station and the calendar application of the network. In this case, an initiative to start the synchronization (403) can take place, for instance, when a new important calendar marking, which needs to be delivered in the mobile station as soon as possible, is added to the network calendar. Like the message formed for the device management session and illustrated in
It is also possible that said message is formed 405 somewhere else than in the server S which transmits the request. A situation like this may occur, for instance, when a client device communicates with a WAP gateway by means of a WAP stack, and an HTTP protocol is used between the WAP gateway and the server S. The WAP gateway, for instance, can then condense the request transmitted by the server in a manner described above (by using coding instructions) so that it can be transmitted in one message to the client device MS.
It is obvious to a person skilled in the art that as technology develops, the basic idea of the invention can be implemented in a variety of ways. It is also to be noted that messages are not restricted to messages of the SMS service, but other types of message transmission services, such as an MMS service (Multimedia Messaging Service), can also be used. The invention and the embodiments thereof are thus not restricted to the examples described above, but may be modified within the scope of the claims. Appendix 1. Example of information included in a message
Claims
1-14. (canceled)
15. A method of starting a session in a system which comprises at least one electronic device acting as a client device and comprising communication means, at least one server and a communication network providing a message transmission service,
- wherein coding instructions, by which at least some information for forming an initialization message can be coded into a bit sequence requiring fewer bits than its ASCII presentation, are determined in the server and decoding instructions, by means of which the original identifier is obtained from the bit sequence, are determined in the client device, the method comprising the steps of:
- in response to the need of transmitting the request indicating the need for starting a session to at least one client device, forming a message, which message comprises information for forming an initialization message, at least some of the information being presented as a bit sequence defined according to the coding instructions,
- transmitting the message to the client device by using said message transmission service,
- forming a session initialization message on the basis of the information included in the received message, at least part of said information being defined from the received bit sequence by means of said decoding instructions, and
- transmitting the session initialization message from the client device to the server.
16. A method as claimed in claim 15, wherein the server is configured to determine for a request, indicating the need for starting a session and to be transmitted to the client device, the identifier of the server, a version identifier and the identifier of the requested session, and the message comprises at least said identifiers.
17. A method as claimed in claim 15, wherein the maximum size for a message that is to be sent from the server to the client device is determined in the server for the request, and the message is formed such that the message is shorter or as long as said maximum size.
18. A method as claimed in claim 15, wherein a transport layer service in the system is configured by using a WAP protocol, whereby the message further comprises WSP header fields (Wireless Session Protocol).
19. A method as claimed in claim 15, wherein the message transmission service is SMS.
20. A system comprising at least one electronic device acting as a client device and comprising communication means, at least one server and a communication network providing a message transmission service, in which system
- coding instructions, by which at least some information for forming an initialization message can be coded into a bit sequence requiring fewer bits than its ASCII presentation, are determined in the server and decoding instructions, by means of which the original identifier is obtained from the bit sequence, are determined in the client device,
- in response to the need of transmitting the request indicating the need for starting a session to at least one client device, the server is configured to form a message, which message comprises information for forming an initialization message, at least some of the information being presented as a bit sequence defined according to the coding instructions,
- the server is configured to transmit the message to the client device by utilizing the message transmission service,
- the client device is configured to form a session initialization message on the basis of the information included in the received message, at least part of information being defined from the received bit sequence by means of said decoding instructions, and
- the client device is configured to transmit the session initialization message to the server.
21. A server, wherein the server is configured to determine coding instructions, by which at least some information for forming an initialization message can be coded into a bit sequence requiring fewer bits than its ASCII presentation, are determined, wherein
- the server, in response to the need of transmitting the request indicating the need for starting a session to at least one client device, is configured to form a message, which message comprises information for forming an initialization message, at least some of the information being presented as a bit sequence defined according to the coding instructions, and
- the server is configured to transmit the message to at least one client device by utilizing the message transmission service.
22. A server according to claim 21, wherein the server is configured to determine for a request, indicating the need for starting a session and to be transmitted to at least one client device, the identifier of the server, a version identifier and the identifier of the requested session, and
- the server is configured to form the message such that the message comprises at least said identifiers.
23. A server according to claim 21, wherein the server is configured to determine the maximum size for a message that is to be sent from the server to the client device for the request.
24. A server according to claim 21, wherein a transport layer service is configured by using a WAP protocol, whereby the message further comprises WSP header fields (Wireless Session Protocol).
25. A server according to claim 21, wherein the message also denotes an application to which the content of the message should be directed, the server being configured to define the denotion by setting the information on the application to a predetermined location as from the beginning of the message or after a predetermined character.
26. A server according to claim 21, wherein the message transmission service is SMS.
27. A server as claimed in claim 21, wherein the server is configured to determine the identifier of the server in the field containing a shared secret.
28. A server according to claim 21, wherein the server is also configured to determine a bit sequence in the message, indicating whether the client or the server has caused the message.
29. A server according to claim 21, wherein the coding instructions comprise one or more correspondence tables.
30. A server according to claim 21, wherein the server is configured to initialize the session for synchronizing a data set included in the client device and at least one database.
31. A server according to claim 21, wherein the server is configured to transmit a request for starting a device management session, and
- the server is configured to initialize the management session between the server and the client device.
32. An electronic device comprising:
- means for receiving and transmitting messages,
- means for communicating with a server, for which server the electronic device acts as a client device,
- means for storing decoding instructions, by means of which decoding instructions the original information is obtainable from the bit sequence coded by the server,
- means for converting at least one bit sequence included in the message received from the server into the original information on the basis of the decoding instructions,
- means for forming an initialization message for a session between the server and the electronic device on the basis of the information indicated by the message received from the server, at least part of information being defined from the received bit sequence by means of said decoding instructions, and
- means for sending the initialization message for the session to the server.
33. An electronic device according to claim 32, wherein the device comprises means for altering the configuration of the electronic device according to commands received from the server during the session.
34. An electronic device according to claim 32, wherein a transport layer service is configured by using a WAP protocol, whereby the message further comprises WSP header fields (Wireless Session Protocol).
35. An electronic device according to claim 32, wherein the message also denotes an application to which the content of the message should be directed, the denotion being defined by information on the application in a predetermined location as from the beginning of the message or after a predetermined character, and
- the electronic device is configured to direct the content of the message to the application denoted by the message.
36. An electronic device according to claim 32, wherein the electronic device is configured to communicate with the server by SMS.
37. An electronic device according to claim 32, wherein the electronic device is configured to determine the identifier of the server from the field containing a shared secret.
38. An electronic device according to claim 32, wherein the decoding instructions comprise one or more correspondence tables.
39. An electronic device according to claim 32, wherein the server is a device management server and the session is a device management session.
40. An electronic device according to claim 32, wherein the server is a server and the session is a session.
41. A computer program loadable to the memory of a server, said program product comprising a computer program code, which, when being executed in the processor of the server, causes the server to:
- set coding instructions, by which at least some information for forming an initialization message can be coded into a bit sequence requiring fewer bits than its ASCII presentation,
- in response to the need of transmitting the request, indicating the need for starting a session to at least one client device, form one message, which message comprises information for forming an initialization message, at least some of the information being presented as a bit sequence defined according to the coding instructions, and
- transmit the message to at least one client device by utilizing the message transmission service.
42. A computer program loadable to the memory of an electronic device, said computer program comprising a program code, which, when being executed in the processor of the electronic device, causes the electronic device to:
- set decoding instructions, by means of which decoding instructions the original identifier is obtainable from the bit sequence coded by a server,
- convert at least one bit sequence included in the message received from the server into the original information on the basis of the decoding instructions,
- form an initialization message for a session between the server and the electronic device on the basis of the information indicated by the message received from the server, at least part of information being defined from the received bit sequence by means of said decoding instructions, and
- send the initialization message for the session to the server.
Type: Application
Filed: Aug 18, 2005
Publication Date: Jan 5, 2006
Inventors: Jerry Lahti (Vantaa), Mikko Sahinoja (Tampere), Gaurav Mittal (San Diego, CA)
Application Number: 11/206,612
International Classification: G06F 15/16 (20060101);