KR20010036929A - time/date updating method of PC - Google Patents
time/date updating method of PC Download PDFInfo
- Publication number
- KR20010036929A KR20010036929A KR1019990044133A KR19990044133A KR20010036929A KR 20010036929 A KR20010036929 A KR 20010036929A KR 1019990044133 A KR1019990044133 A KR 1019990044133A KR 19990044133 A KR19990044133 A KR 19990044133A KR 20010036929 A KR20010036929 A KR 20010036929A
- Authority
- KR
- South Korea
- Prior art keywords
- time
- date
- power saving
- saving mode
- dos
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000012544 monitoring process Methods 0.000 claims abstract description 3
- 238000013523 data management Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
본 발명은 도스 시간을 업데이트하여 절전모드 해제후 정확한 시간과 날짜를 업데이트하는 피씨의 시간/날짜 업데이트 방법에 관한 것이다. 이를 위해 본 발명은 상기 목적을 달성하기 위한 본 발명에 따른 피씨의 시간/날짜 업데이트 방법은 시간/날짜를 계속적으로 업데이트하는 알티시와, 절전모드 진입시 일정 영역에 절전모드 상태값을 라이트하는 단계와, 상기 영역의 저장값을 주기적으로 감시하는 단계와, 상기 영역의 저장값에 기초하여 절전모드 해제가 감지된 경우, 상기 알티시의 시간/날짜 정보를 읽는 단계와, 상기 시간/날짜 정보를 도스 함수를 이용하여 도스의 시간/날짜를 업데이트하는 단계를 포함하여 구성된다. 따라서, 컴퓨터가 도스모드상에서 절전모드 진입/탈출시 정확한 시간과 날짜를 업데이트함으로써 시간관리 프로그램을 정확하게 처리할 수 있는 이점이 있다.The present invention relates to a PC time / date update method of updating the DOS time to update the correct time and date after the wake-up mode. To this end, the present invention provides a method of updating the time / date of the PC according to the present invention for achieving the above object, the step of continuously updating the time / date, and writing a power saving mode state value in a predetermined area when entering the power saving mode; Periodically monitoring the stored value of the area, reading the time / date information of the ALTIC when the power saving mode release is detected based on the stored value of the area, and DOS the time / date information. Updating the time / date of DOS using a function. Therefore, there is an advantage that the computer can correctly process the time management program by updating the correct time and date when entering / exiting the power saving mode in the DOS mode.
Description
본 발명은 퍼스널 컴퓨터의 시간/날짜 업데이트방법에 관한 것으로, 더욱 상세하게는 절전모드 수행 이후에도 정확한 시간과 날짜를 업데이트하는 피씨의 시간/날짜 업데이트 방법에 관한 것이다.The present invention relates to a time / date update method of a personal computer, and more particularly, to a time / date update method of a PC for updating an accurate time and date even after performing a power saving mode.
이하 첨부한 도면을 참조하여 종래 피씨의 시간/날짜 업데이트 방법에 대해 설명한다.Hereinafter, a time / date update method of a conventional PC will be described with reference to the accompanying drawings.
다음 도 1은 종래 피씨의 시간/날짜 업데이트 방법에 대한 동작 흐름도이다.1 is an operation flowchart of a conventional PC time / date update method.
사용자가 윈도우 환경이 아닌 도스상에서 작업을 하는 경우, 일정시간 이상 작업을 중지하면, 컴퓨터는 절전모드가 된다(제 10 단계). 절전모드라는 것은 컴퓨터의 전력소비를 줄이기 위한 것으로, 이때 중앙처리장치는 동작하지 않고 컴퓨터내 일부 시스템의 전원은 차단된다. 컴퓨터가 절전모드에 진입하는 시간은 시모스 혹은 바이오스 셋업(CMOS or BIOS setup)상의 전력관리(power management) 시간을 지정함으로써 설정된다.When the user works on DOS other than the Windows environment, if the user stops working for a predetermined time, the computer enters a power saving mode (step 10). The power saving mode is to reduce power consumption of the computer. At this time, the central processing unit is not operated and power of some systems in the computer is turned off. The time the computer enters sleep mode is set by specifying the power management time in the CMOS or BIOS setup.
사용자가 도스상에서 작업을 하는 경우, 도스의 시간과 날짜는 INT 08h라는 소프트웨어적인 시간 업데이트수단에 의해 계속적으로 업데이트된다. 그리고, 상술된 바와 같이 절전모드인 경우 중앙처리장치가 동작하지 않으므로, 이에 의해 상기 INT 08h는 시간을 업데이트하지 않는다(제 20 단계). 그러므로, 절전모드가 되면 도스의 시간과 날짜가 업데이트되지 않으므로 절전모드 진입시의 시간과 날짜를 유지하게 된다.When the user works on DOS, the time and date of the DOS are continuously updated by a software time update means called INT 08h. As described above, since the central processing unit does not operate in the power saving mode, the INT 08h does not update the time (step 20). Therefore, when the power saving mode, the time and date of the DOS is not updated, so the time and date when entering the power saving mode are maintained.
컴퓨터는 하드웨어적으로 계속적으로 시간을 업데이트하기 위해 시간 체크수단이 존재하는데 이것은 알티시(real time clock : RTC)에 의해 수행된다. 그리고, 일반적으로 컴퓨터가 부팅되면 바이오스는 상기 알티시의 시간을 읽고, 상기 시간을 운영 시스템(OS)에 전송하므로써 도스의 시간을 체크하게 된다. 상기 알티시는 절전모드와 무관하게 계속적으로 동작하므로 컴퓨터가 절전모드인 경우에 있어서도 현재의 시간정보를 가진다(제 30 단계).The computer has a time check means to continuously update the time in hardware, which is performed by a real time clock (RTC). In general, when the computer is booted, the BIOS reads the time of the ALTI and checks the time of DOS by transmitting the time to the operating system (OS). Since the ALTIC continues to operate irrespective of the power saving mode, the computer has the current time information even when the computer is in the power saving mode (step 30).
한편, 상기 절전모드에서 컴퓨터에 임의의 값이 입력되면, 절전모드는 해제되고, 이후 중앙처리장치는 정상적으로 동작한다. 그리고, 이때 도스의 시간과 날짜는 절전모드 진입시점의 시간에서부터 다시 업데이트된다(제 40 단계).On the other hand, if a random value is input to the computer in the power saving mode, the power saving mode is released, after which the central processing unit operates normally. At this time, the time and date of the DOS is updated again from the time of entering the power saving mode (step 40).
예를 들어 사용자가 절전모드에 들어가는 시간을 3분으로 설정하고, 9시 부터 컴퓨터를 사용하지 않는다면, 컴퓨터는 9시 3분에 절전모드상태에 들어간다. 그리고, 이후 절전모드가 해제되면, 상기 도스의 시간은 9시 3분부터 업데이트된다.For example, if you set the power saving mode to 3 minutes, and you do not use the computer from 9 o'clock, the computer enters the power saving mode at 9: 3. Then, when the power saving mode is released, the time of the dose is updated from 9: 3.
이렇게 절전모드가 해제된 후 사용자가 작업중인 데이터를 저장하는 경우, 상기 데이터의 저장시간은 9시 3분으로 처리된다. 또한, 상기 컴퓨터가 9월 5일에 절전모드에 진입하여 9월 6일 해제된 경우 데이터의 저장날짜는 9월 5일이 된다.When the user saves the working data after the power saving mode is released, the storage time of the data is processed as 9: 3. In addition, when the computer enters the power saving mode on September 5 and is released on September 6, the storage date of the data becomes September 5.
상기한 바와 같이 종래 컴퓨터는 절전모드 해제후 도스의 시간/날짜는 현재의 시간/날짜로 업데이트되지 않으므로 시간정보를 중시하는 시스템에 있어서 오류가 발생하는 문제가 있었다. 일예로, 컴퓨터로 알람을 설정한 경우 컴퓨터가 절전모드에 들어가면 상기 절전모드에 있던 시간을 인식하지 못하므로 설정된 시간에 알람이 울리지 않게 된다.As described above, since the time / date of the DOS is not updated with the current time / date after the power saving mode is released, an error occurs in a system that emphasizes time information. For example, when the alarm is set by the computer, when the computer enters the power saving mode, the alarm does not sound at the set time because the computer does not recognize the time in the power saving mode.
특히, 데이터베이스를 구축하는 프로그램에 있어서, 데이터의 저장시간 및 날짜는 데이터 관리에 있어 매우 중요한 역할을 한다. 그러나 종래에는 상기와 같이 정확하게 시간을 업데이트하지 못하므로 상기 프로그램 수행시 많은 오류가 발생될 수 있는 문제점이 있었다.In particular, in a database building program, the storage time and date of data play a very important role in data management. However, in the related art, since the time is not updated correctly as described above, many errors may occur when the program is executed.
따라서, 본 발명의 목적은 컴퓨터가 도스모드에서 동작하는 경우 절전모드 수행 이후에도 정확한 시간과 날짜를 업데이트할 수 있는 피씨의 시간/날짜 업데이트 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a time / date update method of PC which can update the correct time and date even after the power saving mode is performed when the computer operates in the DOS mode.
도 1은 종래 피씨의 시간/날짜 업데이트 방법에 대한 동작흐름도,1 is a flowchart illustrating a method of updating a time / date of a conventional PC;
도 2는 본 발명에 따른 피씨의 시간/날짜 업데이트 방법에 대한 동작흐름도.Figure 2 is a flow chart for the time / date update method of the PC according to the present invention.
상기 목적을 달성하기 위한 본 발명에 따른 피씨의 시간/날짜 업데이트 방법은 시간/날짜를 계속적으로 업데이트하는 알티시와, 절전모드 진입시 일정 영역에 절전모드 상태값을 라이트하는 단계와, 상기 영역의 저장값을 주기적으로 감시하는 단계와, 상기 영역의 저장값에 기초하여 절전모드 해제가 감지된 경우, 상기 알티시의 시간/날짜 정보를 읽는 단계와, 상기 시간/날짜 정보를 도스 함수를 이용하여 도스의 시간/날짜를 업데이트하는 단계를 포함하여 구성된다.According to an embodiment of the present invention, a time / date update method of a PC according to the present invention comprises the steps of: writing an ALTIC that continuously updates the time / date, writing a power saving mode state value in a predetermined area when entering a power saving mode, and storing the area. Monitoring the value periodically, reading the time / date information of the ALTIC when a power saving mode release is detected based on the stored value of the area, and using the DOS function to DOS the time / date information. Is configured to update the time / date of the.
본 발명에서는 상기 절전모드 상태값을 저장하기 위해 시모스(CMOS)의 40:72 영역을 이용한다. 상기 영역은 일반적으로 컴퓨터에서 거의 사용되지 않는 메모리 영역이므로, 초기상태에서는 0값이 저장되어 있다. 그러므로, 상기 영역에 0이외의 값을 라이트함으로써 절전모드 상태임을 표시하는 것이 가능하다. 그러나 상기 영역이 다른 목적으로 사용중인 경우 시모스(CMOS)의 메모리 영역중 사용되고 있지 않는 영역을 이용하여 절전모드 상태임을 표시하는 값을 저장하는 것도 가능하다.In the present invention, the 40:72 region of the CMOS is used to store the power saving mode state value. Since the area is generally a memory area that is rarely used in a computer, a value of 0 is stored in the initial state. Therefore, it is possible to indicate the power saving mode state by writing a value other than 0 in the area. However, when the area is used for other purposes, it is also possible to store a value indicating that the power saving mode is in use by using an unused area of the memory area of the CMOS.
바이오스는 자체적으로 날짜를 업데이트하는 루틴이 존재하지 않는다. 그러므로, 도스의 날짜를 업데이트하기 위해서는 별도의 응용 프로그램이 요구된다. 이를 위해 본 발명은 상주 종료형(TSR) 프로그램을 사용하여 도스의 날짜를 업데이트한다.BIOS doesn't have a routine to update itself. Therefore, a separate application is required to update the date of DOS. To this end, the present invention uses a resident termination type (TSR) program to update the date of DOS.
상주 종료형(TSR) 프로그램은 한 번 실행된 이후에 계속 주기억장치에 저장되어 종료되지 않는 프로그램이다. 본 발명에 있어서, 상주 종료형(TSR) 프로그램은 컴퓨터가 도스에서 동작중인 경우, 바이오스의 일정 메모리 영역에 저장된 값을 읽으므로써 컴퓨터의 절전모드 진입/해제 상태를 감시한다.A resident termination type (TSR) program is a program that is stored in main memory and never terminates after being executed once. In the present invention, a resident termination type (TSR) program monitors the computer's power saving mode entry / release state by reading a value stored in a certain memory area of the BIOS when the computer is running in DOS.
다시 말하면, 상기 상주 종료형(TSR) 프로그램을 사용하여 상기 영역의 저장상태를 주기적으로 감지하고, 초기값이 감지되면 즉, 절전모드 해제가 감지되면 도스 함수(function)를 이용하여 실제시간을 업데이트 한다. 따라서, 절전모드에서 깨어난 이후 도스의 시간/날짜는 현재의 시간/날짜로 업데이트된다.In other words, the resident termination type (TSR) program is used to periodically detect the storage state of the region, and when an initial value is detected, that is, when the power saving mode is detected, the real time is updated using a DOS function. do. Thus, after waking from sleep mode, the time / date of DOS is updated to the current time / date.
그러면, 이하 첨부한 도면을 참조하여 본 발명에 따른 피씨의 시간/날짜 업데이트 방법에 대해 설명한다.Next, a method of updating a time / date of a PC according to the present invention will be described with reference to the accompanying drawings.
도 2 본 발명에 따른 피씨의 시간/날짜 업데이트 방법에 대한 동작흐름도이다.2 is a flowchart illustrating a method of updating a time / date of a PC according to the present invention.
컴퓨터에 전원이 인가되면, 알티시에 의해 계속적으로 시간이 업데이트된다. 그리고, 이때 바이오스는 상기 알티시의 시간을 읽고, 상기 시간을 운영 시스템에 전송하므로써 도스의 시간을 체크하게 된다. 그리고, 이후 상기 도스의 시간은 바이오스(BIOS)에 의해 업데이트된다(제 110 단계).When the computer is powered up, the time is continuously updated by Altish. In this case, the BIOS reads the time of the ALTIC and checks the time of the DOS by transmitting the time to the operating system. Then, the time of the dose is updated by the BIOS (step 110).
이때, 사용자가 일정시간 동안 컴퓨터를 사용하지 않으면, 이후 컴퓨터는 절전모드에 진입하게 된다. 이렇게 컴퓨터가 절전모드에 진입하면 중앙처리장치는 구동되지 않고, 이로써 도스의 시간은 정지된다.At this time, if the user does not use the computer for a certain time, the computer enters a power saving mode. When the computer enters the power saving mode, the central processing unit is not driven, thereby stopping the DOS time.
이렇게 컴퓨터가 절전모드에 진입하면 바이오스는 메모리의 일정영역에 절전모드 상태값을 라이트(write)한다(제 120 단계). 본 발명에서는 상기 메모리 영역으로 시모스(CMOS)의 40:72 영역을 이용한다. 상기 영역은 일반적으로 거의 사용되지 않는 메모리 영역이다.When the computer enters the power saving mode as described above, the BIOS writes the power saving mode state value to a predetermined area of the memory (step 120). In the present invention, a 40:72 region of CMOS is used as the memory region. This area is typically a memory area that is rarely used.
따라서, 상기 40:72 영역은 초기상태에서 0값이 저장되어 있다. 그러므로, 절전모드 상태값으로 0이 아닌 예를 들어 1이나 2를 사용한다. 이렇게 하여 상주 종료형(TSR) 프로그램이 상기 영역의 저장상태를 주기적으로 감시하고, 상기 절전모드 상태값(1 또는 2)을 감지하면 절전모드로 판단한다.Therefore, in the 40:72 area, 0 value is stored in the initial state. Therefore, use the non-zero value of 1 or 2 as the power saving mode state value. In this way, the resident termination type (TSR) program periodically monitors the storage state of the area, and if it detects the power saving mode state value (1 or 2), determines that it is the power saving mode.
컴퓨터가 절전모드 상태인 경우, 사용자가 마우스를 조작하거나 임의의 키값을 입력하면, 이에 의해 컴퓨터는 절전모드에서 해제된다. 그리고, 이때 상기 40:72 영역의 저장상태는 초기화상태로 복귀된다. 즉, 상기 영역에는 0값이 라이트된다.When the computer is in the power saving mode, when the user operates the mouse or inputs any key value, the computer is thereby released from the power saving mode. At this time, the storage state of the 40:72 area is returned to the initialization state. That is, 0 value is written to the area.
상주 종료형(TSR) 프로그램이 0값을 감지하면, INT 08h를 이용하여 알티시(RTC)의 시간/날짜를 읽어온다(제 140 단계). 상기 알티시(RTC)는 하드웨어적인 시간 업데이트수단으로 절전모드와 관계없이 정확하게 시간을 업데이트하므로 현재의 시간정보를 가진다. 그러므로 상기 알티시의 시간정보를 읽으므로써 현재의 시간/날짜를 업데이트 할 수 있게 된다.When the TSR program detects a value of 0, the time / date of the RTC is read using INT 08h (step 140). The RTC is a hardware time update means, and updates the time accurately regardless of the power saving mode and thus has current time information. Therefore, the current time / date can be updated by reading the time information of the ALTIC.
상기 알티시(RTC)로부터 읽은 시간과 날짜는 도스 함수인 INT 21h에 의해 도스의 시간과 날짜를 업데이트하는데 이용된다(제 150 단계). 이렇게 하여 본 발명은 현재의 시간과 날짜를 업데이트하게 된다.The time and date read from the ALTIC (RTC) are used to update the time and date of the DOS by the DOS function INT 21h (step 150). In this way, the present invention updates the current time and date.
상기한 바와 같이 본 발명은 변경된 시간/날짜를 업데이트하기 위해서 상주 종료형(TSR) 프로그램을 이용하여 주기적으로 상기 40:72 영역에 저장된 값을 감시한다. 이렇게 하여 상주 종료형(TSR) 프로그램이 초기값을 감지하면, INT 08h를 이용하여 알티시(RTC)의 시간/날짜를 읽는다. 이렇게 읽은 시간/날짜를 도스 함수를 이용하여 업데이트하고, 이에 의해 시간/날짜가 정확하게 업데이트된다.As described above, the present invention periodically monitors the values stored in the 40:72 area using a resident termination type (TSR) program to update the changed time / date. In this way, when the TSR program detects an initial value, the time / date of the RTC is read using INT 08h. The read time / date is then updated using the DOS function, which updates the time / date correctly.
상기와 같이 구성된 본 발명에 따른 도스의 시간/날짜 업테이트 방법은 상주 종료형(TSR) 프로그램을 이용하므로써 도스에서 컴퓨터가 절전모드에 있다 깨어날 때 현재의 시간과 날짜를 업데이트할 수 있도록 한다. 이렇게 하여 도스의 시간/날짜는 정확한 시간과 날짜로 업데이트된다.The DOS time / date update method according to the present invention configured as described above enables the DOS to update the current time and date when the computer wakes up from the power saving mode by using the resident termination type (TSR) program. This updates DOS's time / date with the correct time and date.
이렇게 하여 특히, 시간과 날짜가 매우 중요한 비중을 차지하는 데이터베이스 프로그램의 경우 컴퓨터 시스템이 항상 정확한 시간/날짜 정보를 가지므로 데이터들을 정확하게 관리할 수 있는 이점이 있다.In this way, especially in the case of a database program in which time and date are very important, the computer system always has accurate time / date information, which has the advantage of accurately managing data.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990044133A KR20010036929A (en) | 1999-10-12 | 1999-10-12 | time/date updating method of PC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990044133A KR20010036929A (en) | 1999-10-12 | 1999-10-12 | time/date updating method of PC |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20010036929A true KR20010036929A (en) | 2001-05-07 |
Family
ID=19615052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019990044133A Withdrawn KR20010036929A (en) | 1999-10-12 | 1999-10-12 | time/date updating method of PC |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20010036929A (en) |
-
1999
- 1999-10-12 KR KR1019990044133A patent/KR20010036929A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100471056B1 (en) | Computer system and Control method of Waiting mode for Computer system | |
US6732280B1 (en) | Computer system performing machine specific tasks before going to a low power state | |
US9122480B2 (en) | Sleep wake event logging | |
US7437575B2 (en) | Low power mode for device power management | |
US6336161B1 (en) | Computer configuration system and method with state and restoration from non-volatile semiconductor memory | |
US6874094B2 (en) | Method for locking user input elements for a small computer device by ignoring input signals if a locking signal is generated by a calendar-type application program | |
US6065121A (en) | Control of computer system wake/sleep transitions | |
CN110069280B (en) | Electronic device and firmware updating method thereof | |
CN109739563B (en) | Terminal control method, device, system and storage medium | |
US20100106886A1 (en) | Transparent Self-Hibernation of Non-Volatile Memory System | |
US6405320B1 (en) | Computer system performing machine specific tasks before going to a low power state | |
EP0973086B1 (en) | Computer remote power on | |
US6725384B1 (en) | Method and apparatus for enabling a wake-up event by modifying a second register to enable a second wake-up event responsive to detecting entry of data in a first register | |
US20080065845A1 (en) | Reducing Wake Latency Time For Power Conserving State Transition | |
CN101634884B (en) | Power management controller and method | |
TW201333677A (en) | Fast platform hibernation and resumption of computing systems | |
JP2009516244A (en) | Direct computing experience | |
US20190004818A1 (en) | Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof | |
CN111225434B (en) | Application response method, system, storage medium and communication module | |
US8886974B2 (en) | Controller | |
US20060069931A1 (en) | Method and apparatus for managing power in portable information device | |
US20060271798A1 (en) | Configurable interrupt scheme for waking up a system from sleep mode | |
US6567931B1 (en) | Preventing false remote system wake events following AC power loss | |
US7447928B2 (en) | Method for booting computer multimedia systems with a hot key standby state | |
KR101978323B1 (en) | An apparatus and method for managing a efficient power supply by using GPIO ports |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PA0109 | Patent application |
Patent event code: PA01091R01D Comment text: Patent Application Patent event date: 19991012 |
|
PG1501 | Laying open of application | ||
N231 | Notification of change of applicant | ||
PN2301 | Change of applicant |
Patent event date: 20020813 Comment text: Notification of Change of Applicant Patent event code: PN23011R01D |
|
PC1203 | Withdrawal of no request for examination | ||
WITN | Application deemed withdrawn, e.g. because no request for examination was filed or no examination fee was paid |