This application is related to and claims the benefit of priority from United Kingdom Patent Application No. 0605790.5, filed on Mar. 22, 2006, the entirety of which are incorporated herein by reference.
The present invention relates to a method for accurate time setting of communication devices over the air, and to a corresponding communication device.
For some communication devices which have to transmit real time data or at least data in correspondence with a given time, it is necessary to provide an accurate real time clock. This can be done remotely by sending over the air information for setting an accurate real time clock.
It is the case for instance in the domain of utility electricity meters, in which different regulations and demands for accuracy of the real time clock exist in different countries. In Sweden, where there is a strong demand for communicating meters, it is a legal requirement for some types of meters to be programmed within ten seconds of the actual date and time. Some customers even demand a higher accuracy than this, and require that the real time clock is programmed within seven second of the actual date and time when their clock is set remotely. In many communication systems, there are predictable delays between sending data to a remote device and the device receiving the data, allowing the time and date to be set on the device by a communication system reliably. However, in other communication systems of the type using GPRS or SMS bearers over a radio communication network, this is not the case. More generally, when data are transmitted over a radio communication network through communication packet data, it is not possible to rely on the delivery time for data.
An aim of the invention is to remedy the above drawback by proposing a solution enabling the remote setting over the air of an accurate real time clock in a communication packet data system.
To this aim, an aspect of the present invention is a method for accurate time setting of a communication device, characterized in that it comprises the following steps:
Said received current time may be disregarded when said measured elapsed time is greater than said first configuration parameter.
Alternatively, a new request for time synchronization may be sent as long as the total number of requests is not equal to a second predetermined configuration parameter and said measured elapsed time is greater than or equal to said first configuration parameter.
Request and response can be sent using protocols such as GPRS or SMS.
A second aspect of the invention is a communication device, characterized in that it comprises:
In one possible embodiment, said means for sending a request and for receiving a response comprise a GPRS/SMS interface.
Said communication device may be used as utility meter or as utility meter interface unit linked to several utility meters. Indeed, a further aspect of the invention provides a utility meter comprising the communication device of the previous aspect.
Features and advantages of the invention will become apparent from the following description of the invention given by way of non-limiting examples only and with reference to the accompanying drawings, in which:
Communication device may be a utility meter device 2 with a built-in GPRS/SMS interface 2a for enabling GPRS/SMS communication.
Alternatively, communication device may be a utility meter interface unit 3 with a built-in GPRS/SMS interface 3a, which is linked to one or more slave utility meter devices 4a to 4d.
Each communication device 2, 3 has an internal time reference 2b, 3b which keeps track of the current date and time with an electronic real time clock.
Exchanges of data between central communication unit 1 and communication devices 2 or 3 are performed over the air through a cellular telephone network 5. Between cellular telephone network 5 and communication devices 2, 3, communications are performed via wireless links. Between central communication unit 1 and cellular telephone network 5, communications are performed over public internet 6 via TCP/IP links 7a,7b either through a mobile communication operator 5a of cellular network 5 in case of GPRS, or through both said operator 5b and a SMS gateway 5b in case of SMS communication.
The method for accurate time setting of utility meter device 2 or utility meter interface unit 3 according to the invention will now be described in reference with
In first step A0, utility meter device 2 or utility meter interface unit 3 first initiate a communication over either GPRS or SMS by sending a request for time synchronization to central utility meter communications unit 1.
In the case of GPRS communications, meter device 2 or interface unit 3 will send said request for time synchronization using TCP/IP protocols. This will be routed over GPRS from GPRS/SMS interface 2a or 3a through cellular telephone network 5. Mobile communications operator 5a provides a TCP/IP connection 7b from cellular telephone network 5 through to public internet 6. Utility meter communications unit 1 is connected to public internet through a public internet service provider, providing direct TCP/IP access 7a.
In the case of SMS communications, request for time synchronization is sent inside one or more SMS messages directed to a utility's SMS account hosted by mobile communications operator 5a. This will be routed over SMS from GPRS/SMS interface 2a or 3a through cellular telephone network 5. Mobile communications operator 5 provides a TCP/IP connection 7b from SMS Gateway 5b through to public internet 6, and public internet service provider provides direct TCP/IP access 7a to central utility meter communications unit 1.
In both cases however, access to GPRS or SMS within the cellular telephone network 5 depends on base station availability, and so the time taken to forward data is variable and cannot be reliably determined. The same problem of delay may occur for the response to be received.
To overcome this, the method according to invention requires utility meter device 2 or utility meter interface unit 3 to validate that the time and date received in the response sent by central unit 1 is received in a time period which guaranties the required accuracy. More precisely, meter device 2 or interface unit 3, after having sent the request for the date and time from an accurate time source, times how long it takes to receive a response. This corresponds on
In a subsequent step A2, device 2 or interface unit 3 compares said measured elapsed time T with a first predetermined configuration parameter “TRIP”, which has been stored inside a memory (not shown) of device 2 or interface unit 3, and which corresponds to the maximum communication round trip time which guaranties an accurate time and date synchronization.
If the response arrives within the maximum communication round trip time “<Trip>”, then device 2 or unit 3 will update, in a step A3, its own date and time reference 2b or 3b with the time and date sent by the system, adjusted by subtracting half the actual round trip time. Meter interface unit 3 is then able to update any slave meters 4a-4d that support time synchronization at any time based on its own time reference 3b.
If, on the contrary, the response is not received within said configurable time period, then the time and date data received in the response are disregarded. In this case, device 2 or unit 3 may automatically retry by sending a new request for time synchronization. In order to minimize the communication bandwidth requirements in a preferred embodiment of the invention, a second configuration parameter “RETRY” is stored in unit 3 or device 2, in order to give the maximum number of times a request for time synchronization can be sent. If after all retries, device 2 or unit 3 still hasn't received a response within “<Trip>”, then it will continue to operate with its internal time and date. This preferred solution is referred to step A4 on
Thanks to the invention, it is possible to synchronize a GSM/SMS-enabled device's clock at the same time as sending data, with very little communication overhead. This technique can be applied to any system where accurate time and date programming is required, and data delivery time is unpredictable.
Number | Date | Country | Kind |
---|---|---|---|
0605790.5 | Mar 2006 | GB | national |
Number | Name | Date | Kind |
---|---|---|---|
7164662 | Preston et al. | Jan 2007 | B2 |
20030101329 | Lahti et al. | May 2003 | A1 |
20040103174 | Balducci et al. | May 2004 | A1 |
20040109436 | Vargas et al. | Jun 2004 | A1 |
20040116119 | Lewis et al. | Jun 2004 | A1 |
20050094618 | Colban et al. | May 2005 | A1 |
20070263709 | Kasslin et al. | Nov 2007 | A1 |
Number | Date | Country |
---|---|---|
2840500 | Dec 2003 | FR |
2325589 | Nov 1998 | GB |
WO0163890 | Feb 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20070238456 A1 | Oct 2007 | US |