KR20070076340A - Method for updating a program in a pda - Google Patents

Method for updating a program in a pda Download PDF

Info

Publication number
KR20070076340A
KR20070076340A KR1020060005582A KR20060005582A KR20070076340A KR 20070076340 A KR20070076340 A KR 20070076340A KR 1020060005582 A KR1020060005582 A KR 1020060005582A KR 20060005582 A KR20060005582 A KR 20060005582A KR 20070076340 A KR20070076340 A KR 20070076340A
Authority
KR
South Korea
Prior art keywords
storage unit
program data
memory
stored
program
Prior art date
Application number
KR1020060005582A
Other languages
Korean (ko)
Inventor
장택수
Original Assignee
엘지전자 주식회사
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020060005582A priority Critical patent/KR20070076340A/en
Publication of KR20070076340A publication Critical patent/KR20070076340A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

A method for updating a program in a PDA is provided to reduce time required for updating a program of the PDA and efficiently use a storage space required for updating the program by starting to update program before program data is completely downloaded from a host. The program data received from the host is stored to the first memory(S31). It is determined whether the program data stored in the first storing part reaches a predetermined size(S32). When the program data stored in the first storing part reaches the predetermined size, the program data of the predetermined size is written to the second storing part(S33). The program data is transmitted to the PDA from the host in an interrupt mode by USB(Universal Serial Bus) communication. The predetermined size is the size of one memory block of the second storing part and the second storing part is a NOR flash memory.

Description

개인정보단말기의 프로그램 갱신 방법{METHOD FOR UPDATING A PROGRAM IN A PDA}Program update method of personal information terminal {METHOD FOR UPDATING A PROGRAM IN A PDA}

도 1은 통상적인 개인정보단말기의 프로그램 갱신을 위한 블록 설명도.1 is a block diagram for program update of a conventional personal information terminal.

도 2는 종래 기술에 따른 개인정보단말기의 프로그램 갱신 흐름도.2 is a flowchart of a program update of a personal information terminal according to the prior art.

도 3은 본 발명의 일실시예에 따른 개인정보단말기의 프로그램 갱신 흐름도.3 is a program update flowchart of a personal information terminal according to an embodiment of the present invention.

도 4는 본 발명의 다른 실시예에 따른 개인정보단말기의 프로그램 갱신 흐름도.4 is a flowchart of a program update of a personal information terminal according to another embodiment of the present invention.

본 발명은 개인정보단말기의 프로그램 갱신 방법에 관한 것으로서, 특히 호스트와 같은 외부 장치에 저장된 프로그램 데이터를 개인정보단말기에 저장하고 저장된 프로그램 데이터를 이용하여 개인정보단말기에 기저장된 프로그램을 갱신하는 방법에 관한 것이다.The present invention relates to a method of updating a program of a personal information terminal, and more particularly, to a method of storing program data stored in an external device such as a host in a personal information terminal and updating a program previously stored in the personal information terminal using the stored program data. will be.

일반적으로, 개인정보단말기는 휴대폰, 무선 팩스, 전자 수첩 등의 복합 기능을 갖추고 컴퓨터와 같은 외부 장치와도 데이터 통신을 할 수 있는 휴대용 전자 기기를 말한다.In general, a personal information terminal refers to a portable electronic device having a complex function such as a mobile phone, a wireless fax, an electronic notebook, and also capable of data communication with an external device such as a computer.

이러한 개인정보단말기는 휴대의 편의성을 위해 가능한 작은 크기로 제작되어야 하기 때문에 운영 프로그램이나 데이터베이스를 저장하기 위한 메모리의 용량이 제한될 수밖에 없다. 여기에서 상기 메모리는 롬(ROM, Read Only Memory), EPROM, Programmable Read Only Memory), 램(RAM, Random Access Memory) 등일 수 있다.Since the personal information terminal should be made as small as possible for convenience of portability, the capacity of the memory for storing an operating program or database is inevitably limited. The memory may be a read only memory (ROM), an programmable read only memory (EPROM), a random access memory (RAM), or the like.

도 1은 통상적인 개인정보단말기의 프로그램 갱신을 위한 블록 설명도인데, 이에 도시된 바와 같이 갱신할 프로그램 데이터를 전송하는 호스트(100), 상기 호스트(100)로부터 상기 프로그램 데이터를 수신하고 이를 이용하여 기저장된 프로그램 데이터를 갱신하는 개인정보단말기(110)를 포함한다. 1 is a block diagram for updating a program of a conventional personal information terminal. As shown in FIG. 1, a host 100 transmitting program data to be updated and receiving the program data from the host 100 and using the same It includes a personal information terminal 110 for updating previously stored program data.

구체적으로, 상기 개인정보단말기(110)는 상기 호스트(100)와 통신하여 프로그램 데이터를 수신하는 통신부(111)와, 상기 통신부(11)를 통해 입력된 프로그램 데이터를 저장하는 제 1 저장부(112)와, 기저장된 프로그램 데이터를 상기 제 1 저장부에 저장된 프로그램 데이터로써 대체하는 제 2 저장부(113)와, 상기 각각의 수신 동작, 저장 동작, 대체 동작을 제어하는 제어부(114)를 포함한다.In detail, the personal information terminal 110 may communicate with the host 100 to receive program data, and a first storage unit 112 to store program data input through the communication unit 11. ), A second storage unit 113 for replacing previously stored program data with program data stored in the first storage unit, and a controller 114 for controlling the respective receiving operation, storage operation, and replacement operation. .

일반적으로, 상기 제 1 저장부(112)는 램과 같은 휘발성 메모리이고, 상기 제 2 저장부(113)는 롬과 같은 비휘발성 메모리이며, 특히 상기 제 2 저장부(113)는 전력 공급이 안된 상태에서도 데이터를 보존하고 데이터 갱신이 가능한 NOR(Not-Or) 플래시 메모리가 주로 사용된다. 또한, 상기 호스트(100)와 통신부(111) 사이의 통신은 USB(universal serial bus) 통신과 같은 범용 인터페이스 통 신을 통해 이루어질 수 있다.In general, the first storage unit 112 is a volatile memory such as RAM, the second storage unit 113 is a nonvolatile memory such as ROM, and in particular, the second storage unit 113 is not supplied with power. The NOR (Not-Or) flash memory that can preserve data and update data even in the state is mainly used. In addition, the communication between the host 100 and the communication unit 111 may be made through a universal interface communication such as universal serial bus (USB) communication.

기본적으로, 종래 기술에 따른 개인정보단말기의 프로그램 갱신 방법은 상기 호스트(100)로부터 상기 제 1 저장부(112)의 용량이 채워질(FULL) 때까지 프로그램 데이터를 다운로드하고, 상기 제 1 저장부(112)의 용량이 다 차면 상기 제 1 저장부(112)에 저장된 프로그램 데이터를 상기 제 2 저장부(113)에 저장한다.Basically, in the program updating method of the personal information terminal according to the prior art, the program data is downloaded from the host 100 until the capacity of the first storage unit 112 is full (FULL), and the first storage unit ( When the capacity of 112 is full, the program data stored in the first storage unit 112 is stored in the second storage unit 113.

도 2는 종래 기술에 따른 개인정보단말기의 프로그램 갱신 흐름도인데, 이에 도시된 바와 같이, 호스트로부터 제 1 저장부에 프로그램 데이터를 저장하는 단계(S21)와, 상기 제 1 저장부의 용량만큼 프로그램 데이터가 저장되었는지를 판단하는 단계(S22)와, 상기 제 1 저장부로부터 제 2 저장부에 상기 제 1 저장부에 저장된 프로그램 데이터를 기록하는 단계(S23)와, 기록 동작의 완료를 확인하는 단계(S24)를 포함한다.FIG. 2 is a flowchart of updating a program of a personal information terminal according to the prior art. As shown in FIG. 2, program data is stored in a first storage unit from a host (S21), and program data is stored as much as the capacity of the first storage unit. Determining whether it is stored (S22), recording the program data stored in the first storage unit from the first storage unit to the second storage unit (S23), and confirming completion of the recording operation (S24). ).

도 2를 참조하면, 종래 기술에 따른 개인정보단말기의 프로그램 갱신 방법은, 호스트로부터 제 1 저장부로의 프로그램 데이터의 저장 단계(S21)와 제 1 저장부로부터 제 2 저장부로의 프로그램 데이터의 기록 단계(S23)가 병렬적으로 수행되지 못하고 순차적으로 수행된다. 즉, 종래 기술에 따른 개인정보단말기의 프로그램 갱신 방법은 호스트로부터 제 1 저장부로의 프로그램 데이터 저장 동작의 완료를 기다린 후 제 1 저장부로부터 제 2 저장부로의 프로그램 데이터 기록 동작을 시작한다.Referring to FIG. 2, in the program updating method of the personal information terminal according to the related art, a storage step S21 of program data from a host to a first storage unit and a recording step of program data from a first storage unit to a second storage unit are described. S23 is not performed in parallel but is performed sequentially. That is, the program updating method of the personal information terminal according to the prior art starts the program data recording operation from the first storage to the second storage after waiting for the completion of the program data storage operation from the host to the first storage.

이와 같이 종래 기술에서 제 1 저장부로의 프로그램 데이터의 저장과 제 2 저장부로의 프로그램 데이터의 기록을 이원화하는 이유는, OS의 기능이 없는 부트 로더(Bootloader)는 전술한 저장 동작과 기록 동작을 동시에 수행(multitasking)하지 못하기 때문이다.As such, the reason for dualizing the storage of program data to the first storage unit and the recording of program data to the second storage unit in the related art is that a bootloader having no OS function simultaneously performs the above-described storage operation and recording operation. This is because they are not multitasking.

구체적으로, 일반적인 개인정보단말기는 부트로더만 구동시킨 상태에서 프로그램 데이터의 갱신 동작을 수행하는데 상기 부트로더는 멀티태스킹 동작을 지원하지 못하기 때문에, 전술한 동작 동작과 기록 동작을 동시에 수행하지 못한다.Specifically, a general personal information terminal performs an update operation of program data in a state in which only a boot loader is driven. However, the boot loader does not support a multitasking operation, and thus, the above-described operation operation and recording operation cannot be performed simultaneously.

이와 같이, 종래 기술에 따른 개인정보단말기의 프로그램 갱신 방법은 프로그램 갱신이 소요되는 시간이 너무 많은 문제점이 있다.As described above, the program update method of the personal information terminal according to the prior art has a problem that the time required for program update is too long.

특히, 개인정보단말기의 프로그램 데이터 저장 수단으로서 통상적으로 이용되는 NOR 플래시 메모리에 저장된 프로그램 데이터를 갱신하는 경우, 램과 같은 제 1 저장부로의 저장 시간보다 NOR 플래시 메모리로의 기록 시간이 훨씬 더 오래 걸리기 때문에, NOR 플래시 메모리로의 기록 시작 시간을 앞당길 필요가 있다.In particular, when updating the program data stored in the NOR flash memory which is commonly used as the program data storage means of the personal information terminal, the writing time to the NOR flash memory takes much longer than the storage time to the first storage unit such as RAM. Therefore, it is necessary to advance the recording start time to the NOR flash memory.

따라서, 본 발명은 개인정보단말기의 프로그램 갱신에 소요되는 시간을 단축시키는 것을 목적으로 한다.Therefore, an object of the present invention is to shorten the time required for program update of a personal information terminal.

또한, 본 발명은 개인정보단말기의 프로그램 갱신에 소요되는 저장 공간을 효율적으로 이용하는 것을 목적으로 한다. In addition, an object of the present invention is to efficiently use the storage space required for the program update of the personal information terminal.

상기와 같은 목적을 달성하기 위한 본 발명의 개인정보단말기의 프로그램 갱신 방법은, 호스트로부터 전송된 프로그램 데이터를 제 1 메모리에 저장하는 단계와, 상기 제 1 저장부에 저장된 프로그램 데이터가 미리 결정된 크기인지를 판단하 는 단계와, 상기 제 1 저장부에 저장된 프로그램 데이터가 미리 결정된 크기가 될 때, 상기 미리 결정된 크기의 프로그램 데이터를 제 2 저장부에 기록하는 단계를 포함하는 것을 특징으로 한다.The program update method of the personal information terminal of the present invention for achieving the above object comprises the steps of storing the program data transmitted from the host in a first memory, and whether the program data stored in the first storage unit is a predetermined size; And determining, when the program data stored in the first storage unit has a predetermined size, recording the program data having the predetermined size into the second storage unit.

또한, 본 발명의 본 발명의 개인정보단말기의 프로그램 갱신 방법은, 호스트로부터 미리 결정된 크기 단위로 전송된 프로그램 데이터를 제 1 저장부에 저장하는 단계로서, 상기 제 1 저장부는 상기 미리 결정된 크기와 동일한 메모리 용량을 갖는 다수의 메모리로 이루어지고, 상기 프로그램 데이터는 상기 각각의 메모리에 상기 미리 결정된 크기 단위로 저장되는 단계와, 상기 제 1 저장부의 각 메모리에 저장된 프로그램 데이터의 내용을 판단하는 단계와, 상기 판단된 프로그램 데이터의 내용에 따라 제 2 저장부에 기저장된 프로그램 데이터의 갱신 동작을 수행하는 단계를 포함하는 것을 특징으로 한다.In addition, the program update method of the personal information terminal of the present invention, the step of storing the program data transmitted in a predetermined size unit from the host in the first storage unit, wherein the first storage unit is equal to the predetermined size Comprising a plurality of memories having a memory capacity, the program data is stored in each of the predetermined size unit in the memory, determining the contents of the program data stored in each memory of the first storage unit; And updating the program data pre-stored in the second storage unit according to the determined content of the program data.

이하, 본 발명에 따른 실시 예를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 3은 본 발명의 일실시예에 따른 개인정보단말기의 프로그램 갱신 흐름도인데, 이에 도시된 바와 같이, 호스트로부터 제 1 저장부에 프로그램 데이터를 저장하는 단계(S31)와, 상기 제 1 저장부에 저장된 프로그램 데이터가 미리 결정된 크기만큼 저장되었는지를 판단하는 단계(S32)와, 제 1 저장부로부터 제 2 저장부에 미리 결정된 크기의 프로그램 데이터를 기록하는 단계(S33)와, 프로그램 데이터의 기록 완료를 확인하는 단계(S34)를 포함한다.3 is a flowchart of updating a program of a personal information terminal according to an embodiment of the present invention. As shown in FIG. 3, program data is stored in a first storage unit from a host (S31), and the first storage unit is illustrated in FIG. Determining whether the stored program data has been stored in a predetermined size (S32), recording the program data having a predetermined size from the first storage to the second storage (S33), and completing the recording of the program data. Confirming step (S34).

여기에서, 상기 제 1 저장부는 램이나 링버퍼(Ring Buffer)와 같은 휘발성 메모리일 수 있고, 상기 제 2 저장부는 NOR 플래시 메모리와 같은 비휘발성 메모리일 수 있다. 통상적으로 상기 NOR 플래시 메모리는 예를 들어 256KB와 같은 미리 결정된 크기의 메모리 블록들로 이루어진다.The first storage unit may be a volatile memory such as a RAM or a ring buffer, and the second storage unit may be a nonvolatile memory such as a NOR flash memory. Typically the NOR flash memory consists of memory blocks of a predetermined size, for example 256 KB.

또한, 상기 호스트로부터 상기 제 1 저장부로의 프로그램 데이터의 저장은 USB 통신과 같은 범용 인터페이스 통신을 통해 인터럽트 방식으로 이루어질 수 있다. 이 경우, 개인정보단말기의 제어부(예를 들어, 도 1의 114)는 주기적 또는 비주기적으로 수신되는 USB 인터럽트 신호에 따라 호스트로부터 제 1 저장부로의 프로그램 데이터의 저장을 제어한다.In addition, storage of program data from the host to the first storage unit may be performed in an interrupt manner through a universal interface communication such as USB communication. In this case, the controller (for example, 114 of FIG. 1) of the personal information terminal controls the storage of program data from the host to the first storage unit according to the USB interrupt signal received periodically or aperiodically.

본 발명은 이와 같이 호스트로부터 제 1 저장부로의 프로그램 데이터의 저장이 불연속적인 것에 착안하여 제 1 저장부로의 프로그램 데이터 저장 동작 사이마다 제 2 저장부로의 프로그램 데이터의 기록 동작을 수행하는 방법을 제안한다.The present invention proposes a method of performing a recording operation of program data to a second storage unit between program data storage operations to the first storage unit in view of the discontinuity of program data storage from the host to the first storage unit. .

도 3을 참조하면, 호스트로부터 제 1 저장부에 프로그램 데이터를 저장하면, 개인정보단말기의 제어부(예를 들어, 도 1의 114)는 상기 제 1 저장부를 감시하고, 상기 제 1 저장부에 미리 설정된 크기의 프로그램 데이터가 저장되면, 즉시 상기 제 1 저장부에 저장된 프로그램 데이터를 제 2 저장부로 기록하기 시작한다.Referring to FIG. 3, when program data is stored in a first storage unit from a host, a controller (for example, 114 of FIG. 1) of the personal information terminal monitors the first storage unit, and previously stores the first storage unit. If program data of a set size is stored, immediately starting to record the program data stored in the first storage to the second storage.

바람직하게는 상기 미리 결정된 크기는 상기 제 2 저장부의 하나의 메모리 블록 크기와 동일할 수 있다. 이에 따라, 상기 호스트로부터 상기 제 1 저장부에 제 2 저장부(예를 들어 NOR 플래시 메모리)의 1블록 만큼의 프로그램 데이터가 저장되면, 즉시 제 1 저장부로부터 제 2 저장부로의 프로그램 데이터의 기록을 시작할 수 있다.Preferably, the predetermined size may be equal to the size of one memory block of the second storage unit. Accordingly, if one block of program data of a second storage unit (for example, NOR flash memory) is stored in the first storage unit from the host, the program data is immediately recorded from the first storage unit to the second storage unit. You can start

이와 같이, 도 3에 따른 본 발명에 실시예는 제 1 저장부로부터 제 2 저장부로의 프로그램 데이터의 기록을 종래 기술보다 일찍 시작하도록 하여 프로그램 데이터의 갱신 시간을 단축시키는 효과가 있다.As described above, the embodiment of the present invention according to FIG. 3 has the effect of shortening the update time of the program data by starting the recording of the program data from the first storage to the second storage earlier than in the prior art.

도 4는 본 발명의 다른 실시예에 따른 개인정보단말기의 프로그램 갱신 흐름도인데, 이에 도시된 바와 같이, 호스트로부터 제 1 저장부에 미리 결정된 크기 단위의 프로그램 데이터를 전송하는 단계(S41)와, 제 1 저장부의 각 메모리에 미리 결정된 크기 단위로 프로그램 데이터를 저장하는 단계(S42)와, 제 1 저장부의 일 메모리에 미리 결정된 크기 단위로 저장된 프로그램 데이터의 내용을 판단하고 판단된 프로그램 데이터의 내용에 따라 개인정보단말기의 프로그램을 갱신하는 단계(S43 내지 S49), 프로그램 데이터의 기록 완료를 확인하는 단계(S50)를 포함한다.FIG. 4 is a flowchart of updating a program of a personal information terminal according to another embodiment of the present invention. As shown in FIG. 4, step S41 of transmitting program data of a predetermined size unit from a host to a first storage unit; Storing program data in a predetermined size unit in each memory of the first storage unit (S42), determining contents of the program data stored in a predetermined size unit in one memory of the first storage unit, and determining the program data according to the determined program data. Updating the program of the personal information terminal (S43 to S49), and confirming the completion of recording of the program data (S50).

구체적으로, 상기 제 1 저장부의 일 메모리에 미리 결정된 크기 단위로 저장된 프로그램 데이터의 내용을 판단하고 판단된 프로그램 데이터의 내용에 따라 개인정보단말기의 프로그램을 갱신하는 단계(S43 내지 S49)는, 제 1 저장부의 일 메모리의 프로그램 데이터가 제 2 저장부의 미리 지정된 메모리 블록의 프로그램 데이터와 비교하는 단계(S43)와, 양 프로그램 데이터가 일치하는 경우 상기 제 1 저장부의 일 메모리를 소거하는 단계(S44)와, 상기 단계(S43)에서 양 프로그램 데이터가 일치하지 않는 경우 다시 제 1 저장부의 일 메모리의 프로그램 데이터와 제 1 저장부의 이전 메모리의 프로그램 데이터가 일치하는지 확인하는 단계(S45)와, 상기 단계(S45)에서 양 프로그램 데이터가 일치하면 이전 메모리의 프로그램 데이터를 제 2 저장부에 기록하고 상기 제 1 저장부의 일 메모리를 소거하는 단계(S46) 와, 상기 단계(S45)에서 양 프로그램 데이터가 일치하지 않는 경우 제 1 저장부의 일 메모리의 프로그램 데이터가 동일 패턴을 반복하는 데이터인지를 판단하는 단계(S47)와, 상기 단계(S47)에서 프로그램 데이터가 동일 패턴 반복 데이터인 경우 동일 패턴을 이루는 1 바이트 데이터를 제 3 저장부에 저장하고 이를 이용하여 프로그램 데이터를 제 2 저장부에 기록하고 제 1 저장부의 일 메모리를 소거하는 단계(S48)와, 상기 단계(S47)에서 동일 패턴 반복 데이터가 아닌 경우 제 1 저장부의 일 메모리의 프로그램 데이터를 제 2 저장부에 기록하는 단계(S49)로 이루어진다.Specifically, in operation S43 to S49, determining the contents of the program data stored in one memory of the first storage unit in a predetermined size unit and updating the programs of the personal information terminal according to the determined contents of the program data, the first Comparing program data of one memory of a storage unit with program data of a predetermined memory block of a second storage unit; erasing one memory of the first storage unit when both program data match; If the program data do not match in step S43, the step S45 checks whether the program data of the one memory of the first storage unit and the program data of the previous memory of the first storage unit match again (S45), and the step (S45). If both program data matches, the program data of the previous memory is written to the second storage unit and the first (S46) erasing one memory of the first storage unit, and determining whether program data of one memory of the first storage unit repeats the same pattern when both program data do not coincide in step S45 ( S47), and when the program data is the same pattern repetition data in step S47, the one-byte data constituting the same pattern is stored in the third storage unit, and the program data is recorded in the second storage unit by using the same. The process of erasing the negative one memory (S48) and writing the program data of the one memory of the first storage unit to the second storage unit (S49) when the same pattern is not repeated in the step S47.

먼저, 호스트는 제 1 저장부에 미리 결정된 크기 단위로 프로그램 데이터를 전송하고 상기 제 1 저장부는 미리 결정된 크기 단위로 프로그램 데이터를 저장한다(S41, S42). 여기에서, 상기 제 1 저장부는 상기 미리 결정된 크기 단위와 동일한 메모리 용량을 갖는 다수의 메모리를 포함할 수 있고 상기 미리 결정된 크기 단위의 프로그램 데이터는 상기 각각의 메모리에 저장될 수 있다.First, the host transmits program data in a predetermined size unit to the first storage unit, and the first storage unit stores program data in a predetermined size unit (S41 and S42). Here, the first storage unit may include a plurality of memories having the same memory capacity as the predetermined size unit and the program data of the predetermined size unit may be stored in each of the memories.

바람직하게는, 상기 미리 결정된 크기는 예를 들어 NOR 플래시 메모리인 제 2 저장부의 메모리 블록 크기와 동일할 수 있고, 상기 프로그램 데이터는 USB 통신에 의해 인터럽트 방식으로 호스트로부터 전송될 수 있다.Advantageously, said predetermined size may be equal to the memory block size of the second storage portion, for example a NOR flash memory, and said program data may be transmitted from the host in an interrupt manner by USB communication.

다음, 제 1 저장부의 각 메모리에 저장된 프로그램 데이터의 내용을 분석한다(S43, S45, S47). 이는 후술하는 바와 같이 상기 각 메모리에 저장된 프로그램 데이터의 내용에 따라 상이한 방식으로 제 2 저장부의 프로그램을 갱신하기 위함이다(S44, S46, S48, S49).Next, the contents of the program data stored in each memory of the first storage unit are analyzed (S43, S45, S47). This is to update the program of the second storage unit in a different manner according to the contents of the program data stored in the respective memories as described later (S44, S46, S48, S49).

구체적으로, 상기 제 1 저장부의 일 메모리에 저장된 프로그램 데이터가 제 2 저장부의 미리 지정된 메모리 블록에 기저장된 프로그램 데이터와 동일하면 상기 제 1 저장부의 일 메모리는 소거된다(S43, S44). 즉, 상기 제 1 저장부의 일 메모리에 저장된 프로그램 데이터가 제 2 저장부의 미리 지정된 메모리 블록에 기저장된 프로그램 데이터와 동일한 경우, 상기 제 1 저장부의 일 메모리에 저장된 프로그램 데이터는 제 2 저장부에 기록될 필요가 없기 때문에 즉시 소거된다.Specifically, when the program data stored in one memory of the first storage unit is the same as the program data previously stored in a predetermined memory block of the second storage unit, one memory of the first storage unit is erased (S43 and S44). That is, when the program data stored in one memory of the first storage unit is the same as the program data previously stored in a predetermined memory block of the second storage unit, the program data stored in one memory of the first storage unit may be recorded in the second storage unit. It is erased immediately because there is no need.

이 경우, 전체 프로그램 데이터 중에서 기저장된 프로그램 데이터와 상이한 프로그램 데이터에 대해서만 기록 동작을 수행하기 때문에, 프로그램 갱신 시간이 단축된다.In this case, since the recording operation is performed only on the program data different from the previously stored program data among all the program data, the program update time is shortened.

또한, 상기 제 1 저장부의 일 메모리에 저장된 프로그램 데이터가 제 1 저장부의 이전 메모리에 저장된 프로그램 데이터와 동일한 경우, 이전 메모리에 저장된 프로그램 데이터를 이용하여 제 2 저장부에 기록하고 상기 제 1 저장부의 일 메모리는 소거된다(S45, S46). 즉, 호스트로부터 제 1 저장부에 동일한 프로그램 데이터를 2 메모리 블록 이상 전송한 경우, 제 1 저장부의 하나의 메모리에 저장된 프로그램 데이터를 반복하여 제 2 저장부에 기록하면 되기 때문에 제 1 저장부의 나머지 메모리는 소거된다.In addition, when the program data stored in one memory of the first storage unit is the same as the program data stored in the previous memory of the first storage unit, the program data stored in the previous memory is recorded in the second storage unit and the one of the first storage unit is used. The memory is erased (S45, S46). In other words, when the same program data is transferred from the host to the first storage unit by two or more memory blocks, the remaining memory of the first storage unit may be repeatedly recorded in the second storage unit by repeating program data stored in one memory of the first storage unit. Is erased.

이 경우, 동일한 내용의 프로그램 데이터에 대해 하나의 메모리만을 사용하기 때문에 메모리 사용의 효율성이 높아진다.In this case, since only one memory is used for the program data having the same content, the memory use efficiency is increased.

나아가, 상기 제 1 저장부의 일 메모리에 저장된 프로그램 데이터가 동일 패턴의 반복 데이터인 경우, 동일 패턴을 이루는 1 바이트의 데이터만을 제 3 저장부에 저장하고 제 2 저장부로의 기록 동작시 상기 1 바이트의 데이터를 반복시킨다 (S47, S48). 즉, 제 1 저장부의 일 메모리에 저장된 프로그램 데이터가 동일한 비트 값의 반복인 경우, 상기 동일한 비트 값을 지시하는 1 바이트의 데이터만을 별도의 제 2 저장부에 저장하고 제 1 저장부의 일 메모리를 소거하고, 상기 저장된 1 바이트의 데이터를 이용하여 제 2 저장부로의 1 메모리 블록 크기의 프로그램 데이터 기록 동작을 수행한다.Further, when the program data stored in one memory of the first storage unit is repetitive data of the same pattern, only one byte of data forming the same pattern is stored in the third storage unit and the first byte of the first storage unit is stored in the second storage unit. The data is repeated (S47, S48). That is, when the program data stored in one memory of the first storage unit is a repetition of the same bit value, only one byte of data indicating the same bit value is stored in a separate second storage unit and the one memory of the first storage unit is erased. A program data write operation of one memory block size to the second storage unit is performed by using the stored one byte data.

이 경우, 제 1 저장부의 메모리를 전혀 사용하지 않아도 되기 때문에 메모리 사용의 효율성이 높아진다.In this case, since the memory of the first storage unit does not have to be used at all, the efficiency of memory use is increased.

실제적으로, 전술한 단계(S43 내지 S49)는 다음과 같이 정의된 데이터 블록 지시어(descriptor)를 사용하여 구현될 수 있다.In practice, the above-described steps S43 to S49 may be implemented using a data block descriptor defined as follows.

Figure 112006003849318-PAT00001
Figure 112006003849318-PAT00001

본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따 라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.Those skilled in the art will appreciate that various modifications and variations can be made without departing from the essential features of the present invention. Accordingly, the embodiments disclosed in the present invention are not intended to limit the technical spirit of the present invention but to describe the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The protection scope of the present invention should be interpreted by the following claims, and all technical ideas within the equivalent scope should be interpreted as being included in the scope of the present invention.

이상에서 상세히 설명한 바와 같이, 본 발명은 호스트로부터의 프로그램 데이터의 다운로드를 완료하기 이전에 프로그램 갱신 동작을 시작하도록 함으로써, 개인정보단말기의 프로그램 갱신에 소요되는 시간을 단축시키고, 개인정보단말기의 프로그램 갱신에 소요되는 저장 공간을 효율적으로 이용하는 개인정보단말기의 프로그램 갱신 방법을 제공하는 효과가 있다.As described in detail above, the present invention starts the program update operation before completing the download of the program data from the host, thereby reducing the time required for the program update of the personal information terminal, the program update of the personal information terminal There is an effect of providing a program update method of a personal information terminal that efficiently uses the storage space required for.

Claims (8)

호스트로부터 전송된 프로그램 데이터를 제 1 메모리에 저장하는 단계와;Storing program data transmitted from the host in a first memory; 상기 제 1 저장부에 저장된 프로그램 데이터가 미리 결정된 크기인지를 판단하는 단계와;Determining whether the program data stored in the first storage unit is of a predetermined size; 상기 제 1 저장부에 저장된 프로그램 데이터가 미리 결정된 크기가 될 때, 상기 미리 결정된 크기의 프로그램 데이터를 제 2 저장부에 기록하는 단계를 포함하는 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.And when the program data stored in the first storage unit has a predetermined size, recording the program data having the predetermined size into a second storage unit. 호스트로부터 미리 결정된 크기 단위로 전송된 프로그램 데이터를 제 1 저장부에 저장하는 단계로서, 상기 제 1 저장부는 상기 미리 결정된 크기와 동일한 메모리 용량을 갖는 다수의 메모리로 이루어지고, 상기 프로그램 데이터는 상기 각각의 메모리에 상기 미리 결정된 크기 단위로 저장되는 단계와;Storing program data transmitted in a predetermined size unit from a host in a first storage unit, wherein the first storage unit comprises a plurality of memories having a memory capacity equal to the predetermined size, wherein the program data is respectively formed in the first storage unit; Storing the memory in the predetermined size unit; 상기 제 1 저장부의 각 메모리에 저장된 프로그램 데이터의 내용을 판단하는 단계와;Determining contents of program data stored in each memory of the first storage unit; 상기 판단된 프로그램 데이터의 내용에 따라 제 2 저장부에 기저장된 프로그램 데이터의 갱신 동작을 수행하는 단계를 포함하는 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.And updating the program data pre-stored in the second storage unit according to the determined contents of the program data. 제 2항에 있어서,The method of claim 2, 상기 제 1 저장부의 어느 하나의 메모리에 저장된 프로그램 데이터가 상기 제 2 저장부의 미리 지정된 메모리 블록에 기저장된 프로그램 데이터와 동일한 경우, 상기 제 1 저장부의 어느 하나의 메모리에 저장된 프로그램 데이터를 상기 제 2 저장부에 기록하지 않고 상기 제 1 저장부의 어느 하나의 메모리를 소거하는 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.When the program data stored in any one memory of the first storage unit is the same as the program data previously stored in a predetermined memory block of the second storage unit, the program data stored in any one memory of the first storage unit is stored in the second storage unit. And erasing any one of the memories of the first storage unit without writing to the data storage unit. 제 2항에 있어서,The method of claim 2, 상기 제 1 저장부의 어느 하나의 메모리에 저장된 프로그램 데이터가 상기 제 1 저장부의 이전 메모리에 저장된 프로그램 데이터와 동일한 경우, 상기 제 1 저장부의 이전 메모리에 저장된 프로그램 데이터를 상기 제 2 저장부에 기록하고 상기 제 1 저장부의 어느 하나의 메모리를 소거하는 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.If the program data stored in any one memory of the first storage unit is the same as the program data stored in the previous memory of the first storage unit, the program data stored in the previous memory of the first storage unit is recorded in the second storage unit and the The program updating method of the personal information terminal, characterized in that for erasing any one of the memory of the first storage unit. 제 2항에 있어서,The method of claim 2, 상기 제 1 저장부의 어느 하나의 메모리에 저장된 프로그램 데이터가 동일한 패턴이 반복되는 데이터인 경우, 상기 동일한 패턴을 이루는 1 바이트의 프로그램 데이터를 별도의 제 3 저장부에 저장하고 상기 제 1 저장부의 어느 하나의 메모리를 소거하고, 상기 저장된 1 바이트의 프로그램 데이터를 이용하여 상기 제 1 저장부의 어느 하나의 메모리에 저장된 프로그램 데이터를 상기 제 2 저장부에 기록하는 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.When the program data stored in any one memory of the first storage unit is data in which the same pattern is repeated, the program data of one byte constituting the same pattern is stored in a separate third storage unit and any one of the first storage units is used. And erasing the memory of the memory device, and writing the program data stored in any one memory of the first storage unit to the second storage unit by using the stored one-byte program data. 제 1항 또는 제 2항에 있어서,The method according to claim 1 or 2, 상기 프로그램 데이터는 USB 통신에 의해 인터럽트 방식으로 호스트로부터 전송되는 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.And the program data is transmitted from a host in an interrupt manner by USB communication. 제 1항 또는 제 2항에 있어서,The method according to claim 1 or 2, 상기 미리 결정된 크기는 상기 제 2 저장부의 하나의 메모리 블록 크기인 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.And the predetermined size is one memory block size of the second storage unit. 제 1항 또는 제 2항에 있어서,The method according to claim 1 or 2, 상기 제 2 저장부는 NOR 플래시 메모리인 것을 특징으로 하는 개인정보단말기의 프로그램 갱신 방법.And the second storage unit is a NOR flash memory.
KR1020060005582A 2006-01-18 2006-01-18 Method for updating a program in a pda KR20070076340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060005582A KR20070076340A (en) 2006-01-18 2006-01-18 Method for updating a program in a pda

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060005582A KR20070076340A (en) 2006-01-18 2006-01-18 Method for updating a program in a pda

Publications (1)

Publication Number Publication Date
KR20070076340A true KR20070076340A (en) 2007-07-24

Family

ID=38501299

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060005582A KR20070076340A (en) 2006-01-18 2006-01-18 Method for updating a program in a pda

Country Status (1)

Country Link
KR (1) KR20070076340A (en)

Similar Documents

Publication Publication Date Title
KR100816761B1 (en) Memory card system including nand flash memory and sram/nor flash memory and data storage method thereof
CN106598479B (en) Method and apparatus for fail-safe erasure of flash memory
US8601464B2 (en) Memory online update system and method
JP6070360B2 (en) Information processing apparatus and processing method thereof
JPH113224A (en) Program updating method for portable information terminal equipment
KR20100088210A (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN101025711B (en) Apparatus and method for controlling flash memory
KR20030073824A (en) A method and apparatus for upgrading a system firmware by using an universal serial bus
US8225028B2 (en) Memory devices and methods for programming flash memory utilizing spare blocks
CN114610230B (en) Flash memory data exchange method and terminal based on single chip microcomputer
JP4749766B2 (en) Information storage device and information storage method
US8209475B2 (en) Write timeout control methods for flash memory and memory devices using the same
KR20070076340A (en) Method for updating a program in a pda
US20110082995A1 (en) Information processing apparatus
JP5197800B2 (en) Information processing apparatus and data recording method thereof
JP4910402B2 (en) Nonvolatile memory rewriting device and rewriting method
JP2006004177A (en) Method for downloading program
JP2001092713A (en) Device and method for writing data
JP2008293426A (en) Information processor and its data recording method
JP4309122B2 (en) User data protection method, PC and program when rewriting software on mobile phone
JP2005174468A (en) Access control method of flash memory
KR20090103214A (en) Method of partial upgrade of handheld terminal software with partial patch and handheld terminal performing the same
JP4072504B2 (en) Program rewriting method and system
JP5981477B2 (en) Flash memory control device, flash memory built-in device, flash memory control method, and program therefor
CN115373719A (en) Method and device for updating power transmission program, electronic device and storage medium

Legal Events

Date Code Title Description
WITN Application deemed withdrawn, e.g. because no request for examination was filed or no examination fee was paid