TECHNICAL FIELD
[0001] The disclosure relates to the field of communications, and in particular to a method
and an apparatus for realizing summer time in a Code Division Multiple Address (CDMA)
system.
BACKGROUND
[0002] In Code Division Multiple Address (CDMA) system synchronization information, a Daylight
field indicates whether summer time is started. After receiving the system synchronization
information, a mobile phone performs corresponding processing for the time displayed
by the mobile phone according to a mark indicating whether the summer time is started.
However, in a practical application, mobile phones manufactured by some manufacturers
do not respond to the mark, so it is necessary to seek for a new method to realize
summer time when the CDMA system is used in some countries in which a summer time
adjustment is needed, so as to ensure that all the mobile phones can re-adjust the
time displayed by the mobile phone after the summer time is started.
[0003] Different from a mobile phone of other systems, the time displayed by a CDMA mobile
phone is obtained through receiving system synchronization information, and is specifically
calculated out according to "system time" and "time zone offset" in the synchronization
information. The "system time" is actually the Global Positioning System (GPS) time,
namely satellite standard clock time, which is represented by systime in the synchronization
information. The "time zone offset" is generated due to the fact that the earth is
divided into different time zones according to different longitudes of various places,
which is represented by LocalTimeOffset in the synchronization information. The value
ranges from -24 to 26, and the unit is 30 minutes, which is determined by the time
zone where the base station system is situated; the positive value range represents
the eastern hemisphere, and the negative value range represents the western hemisphere,
for example, the Beijing time corresponds to the "Eastern Eight Zone", so the parameter
is set as 16 by base station systems used in China.
[0004] The time displayed by a mobile phone is the time of the place where the mobile phone
is situated, obtained according to the GPS time and a time zone offset. In the past,
the parameter is adjusted manually to realize the summer time, thus the summer time
can only be displayed on the mobile phone, while all the other time in the base station
system are non-summer time, for example, information reporting time points in all
the background maintenance tools are non-summer time, and when the user (maintenance
personnel) uses the background maintenance tools, all the tool time is non-summer
time. This shows that the summer time realizing mechanism in the prior art is an "illusion"
only displayed by a mobile phone, and the summer time function is not completely realized.
SUMMARY
[0005] The disclosure provides a method for realizing summer time in a Code Division Multiple
Address (CDMA) system, which not only can realize summer time of the whole system
from a base station to a terminal, but also can improve the reliability of summer
time realization.
[0006] The disclosure provides a method for realizing summer time in a CDMA system, which
includes:
detecting, by a base station, a summer time state of the current system;
configuring, by the base station according to a detected summer time state of the
system, a time zone offset in system synchronization information as a summation of
or difference between a standard time zone offset and a summer time offset time, or
maintaining as the standard time zone offset, and then sending the system synchronization
information to a terminal.
[0007] The base station detecting the summer time state of the current system may include:
the base station determines the summer time state of the system through detecting
a summer time mark; if the detected summer time mark jumps from stopped to started,
the base station determines that the system comes to a summer time entering state;
if the detected summer time mark jumps from started to stopped, the base station determines
that the system comes to a summer time leaving state; if the detected summer time
mark has no jumping and indicates started, the base station determines that the system
is in a summer time maintaining state; and if the detected summer time mark has no
jumping and indicates stopped, the base station determines that the system is in a
non-summer time state.
[0008] According to the detected summer time state of the system, the base station configuring
the time zone offset in the system synchronization information as the summation of
or difference between a standard time zone offset and the summer time offset time,
or maintaining as the standard time zone offset may include:
if the summer time state of the system detected by the base station is summer time
entering, the base station configures the time zone offset in the system synchronization
information as the summation of the standard time zone offset and the summer time
offset time;
if the summer time state of the system detected by the base station is summer time
maintaining, the base station configures the time zone offset in the system synchronization
information as the summation of the standard time zone offset and a new summer time
offset time when the summer time offset time changes; and maintains as the standard
time zone offset if the summer time offset time does not change;
if the summer time state of the system detected by the base station is summer time
leaving, the base station configures the time zone offset in the system synchronization
information as the difference between the standard time zone offset and the summer
time offset time;
if the summer time state detected by the base station is a non-summer time state,
the base station directly terminates the adjustment to the time zone offset.
[0009] The method may further include: after receiving the system synchronization information,
calculating, by the terminal, a current time to realize the summer time; wherein the
terminal calculating the current time includes: obtaining the summation of a system
time and the time zone offset as the current time, wherein the system time is a Global
Positioning System (GPS) time.
[0010] The method may further include: receiving, by the base station, a summer time effective
time period and a summer time offset time configured through a network manager; after
receiving the system summer time effective time period, automatically detecting, by
the base station, a starting and stopping time of the summer time, and configuring
a summer time mark as started if the system detects that a current time is within
the summer time effective time period, and configuring the summer time mark as stopped
if the system detects that the current time is not within the summer time effective
time period.
[0011] The base station may detect the summer time state of the system in a periodical detection
way.
[0012] The method may further include: storing, by the base station, a current summer time
mark and the summer time offset time before the base station sends the system synchronization
information to the terminal.
[0013] The disclosure further discloses an apparatus for realizing summer time in a CDMA
system, which includes a terminal and a summer time adjusting module arranged on a
base station, wherein
the summer time adjusting module is configured for detecting a summer time state of
the current system, and according to a detected summer time state of the system, configuring
a time zone offset in system synchronization information as a summation of or difference
between a standard time zone offset and a summer time offset time, or maintaining
as the standard time zone offset, and then sending the system synchronization information
to the terminal.
[0014] The summer time adjusting module detecting the summer time state of the current system
may include: the summer time adjusting module determines the summer time state of
the system through detecting a summer time mark; if the detected summer time mark
jumps from stopped to started, the summer time adjusting module determines that the
system comes to a summer time entering state; if the detected summer time mark jumps
from started to stopped, the summer time adjusting module determines that the system
comes to a summer time leaving state; if the detected summer time mark has no jumping
and indicates started, the summer time adjusting module determines that the system
is in a summer time maintaining state; and if the detected summer time mark has no
jumping and indicates stopped, the summer time adjusting module determines that the
system is in a non-summer time state.
[0015] According to the detected summer time state of the system, the summer time adjusting
module configuring the time zone offset in the system synchronization information
as the summation of or difference between the standard time zone offset and the summer
time offset time, or maintaining as the standard time zone offset may include:
if the summer time state of the system detected by the summer time adjusting module
is summer time entering, the summer time adjusting module configures the time zone
offset in the system synchronization information as the summation of the standard
time zone offset and the summer time offset time;
if the summer time state of the system detected by the summer time adjusting module
is summer time maintaining, the summer time adjusting module configures the time zone
offset in the system synchronization information as the summation of the standard
time zone offset and a new summer time offset time when the summer time offset time
changes;
if the summer time state of the system detected by the summer time adjusting module
is summer time leaving, the summer time adjusting module configures the time zone
offset in the system synchronization information as the difference between the standard
time zone offset and the summer time offset time;
if the summer time state detected by the summer time adjusting module is a non-summer
time state, the summer time adjusting module directly terminates the adjustment to
the time zone offset.
[0016] The terminal may be further configured for, after receiving the system synchronization
information, calculating a current time to realize the summer time; wherein the terminal
calculating the current time includes: obtaining the summation of a system time and
the time zone offset as the current time, wherein the system time is a GPS time.
[0017] The base station may further include a network manager parameter receiving unit,
which is configured for receiving a summer time effective time period and a summer
time offset time configured through a network manager, for automatically detecting
a starting and stopping time of the summer time according to the received system summer
time effective time period, and for configuring a summer time mark as started if the
system detects that a current time is within the summer time effective time period,
and configuring the summer time mark as stopped if the system detects that the current
time is not within the summer time effective time period.
[0018] The summer time adjusting module may detect the summer time state of the system in
a periodical detection way.
[0019] The base station may further include a storage module, which is configured for storing
a current summer time mark and the summer time offset time before the system synchronization
information is send to the terminal.
[0020] Compared with the prior art, the beneficial effects of the disclosure lie in that:
in the disclosure, a base station detects a summer time state of the system, and according
to the detected summer time state, configures a time zone offset in system synchronization
information as the summation of or difference between a standard time zone offset
and a summer time offset time, or maintains as the standard time zone offset, and
then sends the system synchronization information to a terminal. By adopting such
a design, on one hand, the reliability of the summer time configuration is improved,
because it is performed by means of the time zone offset field of the system synchronization
information, and on the other hand, it is the complete realization of summer time
because the summer time configuration is performed for the whole system from the base
station to the terminal.
BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Fig. 1 shows a flowchart of realizing summer time according to the disclosure.
DETAILED DESCRIPTION
[0022] The specific embodiments of the disclosure are described below in detail with reference
to the accompanying drawing.
[0023] A method for realizing summer time in a Code Division Multiple Address (CDMA) system
according to an embodiment of the disclosure can be performed according to the following
processing steps:
- (1) a base station detects a summer time state of the current system; and
- (2) according to the detected summer time state of the system, the base station configures
a time zone offset in system synchronization information as the summation of or the
difference between a standard time zone offset and a summer time offset time, or maintains
as the standard time zone offset, and then sends the system synchronization information
to a terminal.
[0024] As shown in Fig. 1, a base station receives a summer time offset time and a summer
time effective time period configured by a network manager. In the network manager,
a user can modify the summer time offset time and the summer time effective time period
at any time, and after each modification, the network manager sends the latest summer
time offset time and summer time effective time period to the base station. The summer
time offset time and the summer time effective time period are configured by the user
itself according to the requirements, so the flexibility of the system is improved.
[0025] The base station detects the summer time state of the current system in a periodical
detection way; if the detection period is not met, it directly terminates the adjustment
to the summer time, and if the detection period is met, it firstly detects whether
the current time is within the configured summer time effective time period.
[0026] After receiving the system summer time effective time period, the base station automatically
detects a starting and stopping time of the summer time, if the system detects that
the current time is not within the summer time effective time period, configures a
summer time mark as stopped, and reads a current summer time offset time; and if the
system detects that the current time is within the summer time effective time period,
configures the summer time mark as started, and reads the current summer time offset
time. The summer time mark is used for determining a summer time state of the system.
In order to facilitate determining the summer time state of the system, when the system
runs for the first time, the summer time mark is configured as stop. The user presets
the summer time effective time period, thus increasing the ease of use of the system.
[0027] The base station determines the summer time state of the current system through detecting
the summer time mark, and then compares the current summer time mark with the last
stored summer time mark; if the detected summer time mark jumps from stopped to started,
the base station determines that the system comes to a summer time entering state;
if the detected summer time mark jumps from started to stopped, the base station determines
that the system comes to a summer time leaving state; if the detected summer time
mark has no jumping and indicates started, the base station determines that the system
is in a summer time maintaining state; and if the detected summer time mark has no
jumping and indicates stopped, the base station determines that the system is in a
non-summer time state. It is simple and easy to determine the summer time state of
the system by using the summer time mark, and the system resources are saved.
[0028] As shown in Fig. 1, if the system summer time state detected by the base station
is summer time entering, the base station configures the time zone offset in the system
synchronization information as the summation of the standard time zone offset and
the summer time offset time; if the system summer time state detected by the base
station is summer time maintaining, the base station configures the time zone offset
in the system synchronization information as the summation of the standard time zone
offset and a new summer time offset time when the summer time offset time changes,
and maintains as the standard time zone offset if the summer time offset time does
not change; if the system summer time state detected by the base station is summer
time leaving, the base station configures the time zone offset in the system synchronization
information as the difference between the standard time zone offset and the summer
time offset time; if the summer time state detected by the base station is a non-summer
time state, the base station directly terminates the adjustment to the time zone offset.
[0029] After terminating the adjustment to the time zone offset, the system stores the current
summer time mark and the summer time offset time, and sends the system synchronization
information including the summer time information to the terminal. The stored current
summer time mark and the summer time offset time are used for summer time state determination
and summer time adjustment in the next detection period.
[0030] After receiving the system synchronization information, the terminal calculates a
current time to realize the summer time; the method for calculating the current time
by the terminal is: system time + time zone offset, wherein the system time is the
Global Positioning System (GPS) time; and the time zone offset consists of a standard
time zone offset and a summer time offset time, wherein the standard time zone offset
is a time parameter configured according to different time zones where the base station
is situated, its value ranging from -24 to 26, with a minimum unit of 30 minutes,
the positive value range representing the eastern hemisphere and the negative value
range representing the western hemisphere, and, the summer time offset time can be
a negative value, of which the unit is 30 minutes. The terminal calculates the current
summer time state according to the system synchronization information, so the reliability
of summer time configuration is improved. The system synchronization information including
the summer time adjusting information is sent by the base station to the terminal,
so that the summer time is realized for both the base station and the terminal.
[0031] The disclosure also provides an apparatus for realizing summer time in a CDMA system,
comprising a terminal and a summer time adjusting module arranged on a base station,
wherein:
the summer time adjusting module is configured for detecting a summer time state of
the current system, and according to the detected summer time state of the system,
configuring a time zone offset in system synchronization information as the summation
of or the difference between a standard time zone offset and a summer time offset
time, or maintaining as the standard time zone offset, and then sending the system
synchronization information to the terminal.
[0032] The summer time adjusting module detecting the summer time state of the current system
comprises: the summer time adjusting module determines the summer time state of the
system through detecting a summer time mark; if the detected summer time mark jumps
from stopped to started, the summer time adjusting module determines that the system
comes to a summer time entering state; if the detected summer time mark jumps from
started to stopped, the summer time adjusting module determines that the system comes
to a summer time leaving state; if the detected summer time mark has no jumping and
indicates started, the summer time adjusting module determines that the system is
in a summer time maintaining state; and if the detected summer time mark has no jumping
and indicates stopped, the summer time adjusting module determines that the system
is in a non-summer time state.
[0033] According to the detected system summer time state, the summer time adjusting module
configuring the time zone offset in the system synchronization information as the
summation of or the difference between the standard time zone offset and the summer
time offset time, or maintaining as the standard time zone offset comprises:
if the summer time state of the system detected by the summer time adjusting module
is summer time entering, the summer time adjusting module configures the time zone
offset in the system synchronization information as the summation of the standard
time zone offset and the summer time offset time;
if the summer time state of the system detected by the summer time adjusting module
is summer time maintaining, the summer time adjusting module configures the time zone
offset in the system synchronization information as the summation of the standard
time zone offset and a new summer time offset time when the summer time offset time
changes;
if the summer time state of the system detected by the summer time adjusting module
is summer time leaving, the summer time adjusting module configures the time zone
offset in the system synchronization information as the difference between the standard
time zone offset and the summer time offset time;
if the summer time state detected by the summer time adjusting module is a non-summer
time state, the summer time adjusting module directly terminates the adjustment to
the time zone offset.
[0034] The terminal is further configured for, after receiving the system synchronization
information, calculating a current time to realize the summer time; the terminal calculating
the current time comprises: obtaining the summation of a system time and the time
zone offset as the current time, wherein the system time is a GPS time.
[0035] The base station further comprises a network manager parameter receiving unit, which
is configured for receiving a summer time effective time period and summer time offset
time configured through a network manager, and for automatically detecting the starting
and stopping time of the summer time according to the received system summer time
effective time period; and, for configuring a summer time mark as started if the system
detects that the current time is within the summer time effective time period, and
configuring the summer time mark as stopped if the system detects that the current
time is not within the summer time effective time period.
[0036] The summer time adjusting module detects the summer time state of the system in a
periodical detection way.
[0037] The base station further comprises a storage module, which is configured for storing
a current summer time mark and the summer time offset time before the system synchronization
information is send to the terminal.
[0038] Aiming at the defect that some terminals cannot respond to a summer time start mark
to realize summer time, the method and apparatus for realizing summer time in a CDMA
system of this disclosure realize the summer time in a way of a base station receiving
a summer time offset time and a summer time effective time period configured through
a network manager, then determining a summer time state of the system and, modifying
a time zone offset and sending it to the terminal according to different summer time
states. The summer time realization is effective for all the terminals, thus the reliability
of summer time is enhanced, and meanwhile the base station system time, background
maintenance tool time and terminal display time are exactly the same, and the summer
time function is realized simultaneously.
[0039] The above is the further detailed description of the disclosure with reference to
the specific preferred embodiments, which are just the examples given for facilitating
understanding, but implementation of the disclosure should not be considered to limit
to the description. To those skilled in the art, various possible and equivalent modifications
or replacements can be made without departing from the concept of the disclosure,
and these modifications or replacements shall fall within the scope of protection
of the disclosure.
1. A method for realizing summer time in a Code Division Multiple Address (CDMA) system,
comprising:
detecting, by a base station, a summer time state of the current system;
configuring, by the base station according to a detected summer time state of the
system, a time zone offset in system synchronization information as a summation of
or difference between a standard time zone offset and a summer time offset time, or
maintains as the standard time zone offset, and then sending the system synchronization
information to a terminal.
2. The method for realizing summer time in a CDMA system according to claim 1, wherein
the base station detecting the summer time state of the current system comprises:
determining, by the base station, the summer time state of the system through detecting
a summer time mark; if the detected summer time mark jumps from stopped to started,
determining that the system comes to a summer time entering state; if the detected
summer time mark jumps from started to stopped, determining that the system comes
to a summer time leaving state; if the detected summer time mark has no jumping and
indicates started, determining that the system is in a summer time maintaining state;
and if the detected summer time mark has no jumping and indicates stopped, determining
that the system is in a non-summer time state.
3. The method for realizing summer time in a CDMA system according to claim 2, wherein
according to the detected summer time state of the system, the base station configuring
the time zone offset in the system synchronization information as the summation of
or difference between a standard time zone offset and the summer time offset time,
or maintaining as the standard time zone offset comprises:
if the summer time state of the system detected by the base station is summer time
entering, the base station configures the time zone offset in the system synchronization
information as the summation of the standard time zone offset and the summer time
offset time;
if the summer time state of the system detected by the base station is summer time
maintaining, the base station configures the time zone offset in the system synchronization
information as the summation of the standard time zone offset and a new summer time
offset time when the summer time offset time changes; and maintains as the standard
time zone offset if the summer time offset time does not change;
if the summer time state of the system detected by the base station is summer time
leaving, the base station configures the time zone offset in the system synchronization
information as the difference between the standard time zone offset and the summer
time offset time;
if the summer time state detected by the base station is a non-summer time state,
the base station directly terminates the adjustment to the time zone offset.
4. The method for realizing summer time in a CDMA system according to claim 1, further
comprising: after receiving the system synchronization information, calculating, by
the terminal, a current time to realize the summer time; wherein the terminal calculating
the current time comprises: obtaining the summation of a system time and the time
zone offset as the current time, wherein the system time is a Global Positioning System
(GPS) time.
5. The method for realizing summer time in a CDMA system according to claim 1, further
comprising: receiving, by the base station, a summer time effective time period and
a summer time offset time configured through a network manager; after receiving the
system summer time effective time period, automatically detecting, by the base station,
a starting and stopping time of the summer time, and configuring a summer time mark
as started if the system detects that a current time is within the summer time effective
time period, and configuring the summer time mark as stopped if the system detects
that the current time is not within the summer time effective time period.
6. The method for realizing summer time in a CDMA system according to claim 1, wherein
the base station detects the summer time state of the system in a periodical detection
way.
7. The method for realizing summer time in a CDMA system according to claim 1, further
comprising: storing, by the base station, a current summer time mark and the summer
time offset time before the base station sends the system synchronization information
to the terminal.
8. An apparatus for realizing summer time in a Code Division Multiple Address (CDMA)
system, comprising a terminal and a summer time adjusting module arranged on a base
station, wherein
the summer time adjusting module is configured for detecting a summer time state of
the current system, and according to a detected summer time state of the system, configuring
a time zone offset in system synchronization information as a summation of or difference
between a standard time zone offset and a summer time offset time, or maintaining
as the standard time zone offset, and then sending the system synchronization information
to the terminal.
9. The apparatus for realizing summer time in a CDMA system according to claim 8, wherein
the summer time adjusting module detecting the summer time state of the current system
comprises: the summer time adjusting module determines the summer time state of the
system through detecting a summer time mark; if the detected summer time mark jumps
from stopped to started, the summer time adjusting module determines that the system
comes to a summer time entering state; if the detected summer time mark jumps from
started to stopped, the summer time adjusting module determines that the system comes
to a summer time leaving state; if the detected summer time mark has no jumping and
indicates started, the summer time adjusting module determines that the system is
in a summer time maintaining state; and if the detected summer time mark has no jumping
and indicates stopped, the summer time adjusting module determines that the system
is in a non-summer time state.
10. The apparatus for realizing summer time in a CDMA system according to claim 9, wherein
according to the detected summer time state of the system, the summer time adjusting
module configuring the time zone offset in the system synchronization information
as the summation of or difference between the standard time zone offset and the summer
time offset time, or maintaining as the standard time zone offset comprises:
if the summer time state of the system detected by the summer time adjusting module
is summer time entering, the summer time adjusting module configures the time zone
offset in the system synchronization information as the summation of the standard
time zone offset and the summer time offset time;
if the summer time state of the system detected by the summer time adjusting module
is summer time maintaining, the summer time adjusting module configures the time zone
offset in the system synchronization information as the summation of the standard
time zone offset and a new summer time offset time when the summer time offset time
changes;
if the summer time state of the system detected by the summer time adjusting module
is summer time leaving, the summer time adjusting module configures the time zone
offset in the system synchronization information as difference between the standard
time zone offset and the summer time offset time;
if the summer time state detected by the summer time adjusting module is a non-summer
time state, the summer time adjusting module directly terminates the adjustment to
the time zone offset.
11. The apparatus for realizing summer time in a CDMA system according to claim 8, wherein
the terminal is further configured for, after receiving the system synchronization
information, calculating a current time to realize the summer time; wherein the terminal
calculating the current time comprises: obtaining the summation of system time and
the time zone offset as the current time, wherein the system time is a Global Positioning
System (GPS) time.
12. The apparatus for realizing summer time in a CDMA system according to claim 8, wherein
the base station further comprises a network manager parameter receiving unit, which
is configured for receiving a summer time effective time period and a summer time
offset time configured through a network manager, for automatically detecting a starting
and stopping time of the summer time according to the received system summer time
effective time period, and for configuring a summer time mark as started if the system
detects that a current time is within the summer time effective time period, and configuring
the summer time mark as stopped if the system detects that current time is not within
the summer time effective time period.
13. The apparatus for realizing summer time in a CDMA system according to claim 8, wherein
the summer time adjusting module detects the summer time state of the system in a
periodical detection way.
14. The apparatus for realizing summer time in a CDMA system according to claim 8, wherein
the base station further comprises a storage module, which is configured for storing
a current summer time mark and the summer time offset time before the system synchronization
information is send to the terminal.