KR100662291B1 - Module program realization method in mobile terminal - Google Patents

Module program realization method in mobile terminal Download PDF

Info

Publication number
KR100662291B1
KR100662291B1 KR1020000085998A KR20000085998A KR100662291B1 KR 100662291 B1 KR100662291 B1 KR 100662291B1 KR 1020000085998 A KR1020000085998 A KR 1020000085998A KR 20000085998 A KR20000085998 A KR 20000085998A KR 100662291 B1 KR100662291 B1 KR 100662291B1
Authority
KR
South Korea
Prior art keywords
module program
program
memory area
module
rom
Prior art date
Application number
KR1020000085998A
Other languages
Korean (ko)
Other versions
KR20020056610A (en
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 KR1020000085998A priority Critical patent/KR100662291B1/en
Publication of KR20020056610A publication Critical patent/KR20020056610A/en
Application granted granted Critical
Publication of KR100662291B1 publication Critical patent/KR100662291B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]

Abstract

본 발명은 휴대장치에서의 모듈 프로그램 구현 방법에 관한 것으로 특히 휴대장치에서 플래쉬 메모리에 프로그램을 수행할 때 램이 아닌 롬에서 프로그램을 수행하기에 적당하도록 한 휴대장치에서의 모듈 프로그램 구현 방법에 관한 것이다. 이와 같은 휴대장치에서의 모듈 프로그램 구현 방법은 컴퓨터에서 서로 다른 롬 번지로 컴파일한 두 파일의 차이 값으로 롬 번지 위치 정보를 포함한 헤더를 갖는 모듈 프로그램 파일을 생성하는 단계, 상기 생성된 모듈 프로그램 파일을 휴대단말의 메모리 영역으로 다운로드할 때, 상기 헤더에 포함된 위치 정보를 이용하여 상기 휴대단말의 롬에서 실행할 수 있는 모듈 프로그램 코드를 생성하여 다운로드 하는 단계, 상기 휴대단말에서 상기 컴퓨터로부터 전송된 상기 모듈 프로그램 파일을 상기 휴대단말의 메모리 영역 중 휘발성 메모리 영역을 초기화한다음 실행하는 단계, 상기 휴대단말에서 상기 휘발성 메모리 영역에서 실행된 상기 모듈 프로그램 파일을 상기 헤더 위치 정보를 참조하여 상기 휴대단말의 메모리 영역중 불휘발성 메모리 영역에 상주한 기존 프로그램 위치 영역 이외의 영역에 업그레이드하는 단계로 이루어진다.The present invention relates to a method for implementing a module program in a portable device, and more particularly, to a method for implementing a module program in a portable device suitable for performing a program in a non-RAM ROM when the program is executed in a flash memory. . The method of implementing a module program in such a portable device may include generating a module program file having a header including ROM location information as a difference value between two files compiled into different ROM addresses on a computer, and generating the generated module program file. When downloading to the memory area of the portable terminal, generating and downloading a module program code that can be executed in the ROM of the portable terminal by using the location information included in the header, the module transmitted from the computer in the portable terminal Initializing a volatile memory area of a memory area of the portable terminal and executing the program file; referring to the header location information, the module program file executed in the volatile memory area of the portable terminal is referred to as a memory area of the portable terminal; Nonvolatile Memory Area It consists of upgrading the existing programs in the area of non-resident areas where steps.

모듈 프로그램Module program

Description

휴대장치에서의 모듈 프로그램 구현 방법{Module program realization method in mobile terminal}Module program realization method in mobile terminal

도 1은 종래 기술에 따른 휴대 장치로의 코드나 데이터 다운로드 방법을 설명하기 위한 휴대장치와 개인용 컴퓨터를 나타낸 블록 구성도1 is a block diagram illustrating a portable device and a personal computer for explaining a method of downloading codes or data to a portable device according to the related art.

도 2는 본 발명에 따른 휴대장치로의 모듈 프로그램 다운로드 방법을 설명하기 위한 휴대장치와 개인용 컴퓨터를 나타낸 블록 구성도2 is a block diagram illustrating a portable device and a personal computer for explaining a method of downloading a module program to the portable device according to the present invention.

도 3은 본 발명에 따른 모듈 프로그램 파일 구조를 나타낸 도면3 illustrates a module program file structure according to the present invention.

도 4는 본 발명에 따른 모듈 프로그램 구현 방법을 설명하기 위한 플로우차트4 is a flowchart illustrating a method of implementing a module program according to the present invention.

*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

30 : 개인용 컴퓨터 40 : 휴대장치30: personal computer 40: portable device

41 : 메인 코드 영역 42,43,44, : 모듈 프로그램 영역41: main code area 42,43,44,: module program area

45 : 데이터 영역 46 : 램(RAM)45: data area 46: RAM

본 발명은 휴대장치에서의 모듈 프로그램 구현 방법에 관한 것으로 특히 휴 대장치에서 플래쉬 메모리에 프로그램을 수행할 때 램이 아닌 롬에서 프로그램을 수행하기에 적당하도록 한 휴대장치에서의 모듈 프로그램 구현 방법에 관한 것이다. The present invention relates to a method for implementing a module program in a portable device, and more particularly, to a method for implementing a module program in a portable device, which is suitable for executing a program in a non-RAM ROM when the program is executed in a flash memory in a portable device. will be.

이동 통신 시스템은 이동국(이하 휴대폰이라 함), 기지국, 기지국 제어기 및 이동 교환국으로 구성되며, 그 중에서 휴대폰은 디지털 셀룰러 네트웍(DCN : Digital Cellular Network), 개인 휴대 통신 서비스(PCS : Personal Communication Service)와 같은 단말기(Mobile Terminal)이고, 기지국은 이동 단말기와 기지국 제어기사이에서의 신호 포맷을 무선 링크와 유선 링크에 적합하도록 바꾸며, 기지국 제어기는 기지국의 각 요소별 기능과 셀 운용자 사이의 접속 수단이 되며, 기지국 운용 관리, 기지국내의 하드웨어와 소프트웨어의 서비스 상태 관리, 호 트래픽에 대한 자원의 할당과 구성, 기지국 운용에 관한 정보수집, 기지국 운용, 감시 및 고정에 관련된 하부장치 등의 감시 기능을 수행한다. 그리고, 이동 교환국은 기지국 제어기 관리 및 이동 통신 네트워크와 일반전화망 혹은 동일 이동 통신 시스템의 이동 교환국간 사용자 트래픽을 위한 접속점을 구성한다.The mobile communication system is composed of a mobile station (hereinafter referred to as a mobile phone), a base station, a base station controller, and a mobile switching center, among which a mobile phone is connected to a digital cellular network (DCN) and a personal communication service (PCS). The same terminal (Mobile Terminal), the base station changes the signal format between the mobile terminal and the base station controller to be suitable for the wireless link and the wired link, the base station controller is the access means between the functions of each element of the base station and the cell operator, It performs monitoring functions such as base station operation management, service status management of hardware and software in base station, resource allocation and configuration for call traffic, collection of information on base station operation, and sub-devices related to base station operation, monitoring and fixing. The mobile switching center then configures an access point for user traffic between the base station controller management and the mobile communication network and the mobile switching center of the general telephone network or the same mobile communication system.

이와 같은 휴대폰은 처음에는 단순히 음성 통신에만 이용하였지만 근래에는 데이터통신에도 이용하고 있으며, 그와 같은 예로써는 휴대폰을 이용한 위치정보 제공 서비스 및 컴퓨터 없이도 인터넷에 접속이 가능하도록 한 인터넷 폰을 이용한 이동중 전자메일 처리와 전자상거래(증권, 항공권, 열차표 예매 등)에도 이용하고 있다.Such mobile phones were initially used only for voice communication, but recently, they are also used for data communication. Examples of such mobile phones are e-mails while using mobile phones. It is also used for processing and electronic commerce (securities, tickets, train tickets, etc.).

이와 같은 휴대폰은 휴대폰 내부에 플래쉬 메모리를 내장시켜 휴대폰 업그레 이드에 이용하고 있다. 즉 휴대폰의 메인 프로그램은 휴대폰의 기본 기능이 통신과 관련이 있는데, 휴대폰의 업그레이드를 위하여 통신 관련 프로그램을 플래쉬 메모리에 내장하고 업그레이드시 사용한다. 이때, 통신 관련 프로그램의 업그레이드시 일반적으로 컴퓨터에서 휴대폰으로 프로그램을 다운로드한다.Such mobile phones use flash memory inside the mobile phones to upgrade the mobile phones. In other words, the main program of the mobile phone is related to the communication of the basic functions of the mobile phone.In order to upgrade the mobile phone, the communication program is embedded in the flash memory and used for the upgrade. In this case, when upgrading a communication related program, a program is generally downloaded from a computer to a mobile phone.

이하 참부된 도면을 참조하여 종래 휴대장치로의 코드나 데이터 다운로드 방법을 설명하기로 한다.Hereinafter, a method of downloading a code or data to a conventional portable device will be described with reference to the accompanying drawings.

도 1은 종래 기술에 따른 휴대장치로의 코드나 데이터 다운로드 방법을 설명하기 위한 도면이다.1 is a view for explaining a code or data download method to a portable device according to the prior art.

도 1에서 휴대장치(20)는 예를 들면 휴대폰을 나타낸 것으로 휴대장치의 플래쉬 메모리 1, 2(21,22)는 각각 코드 영역과 데이터 영역을 나타낸다. 여기서 플래쉬 메모리 1은 휴대장치(20) 내부에 존재하고 프로그램 수행코드를 저장하고, 플래쉬 메모리 2는 휴대장치(20) 내부에 존재하고 프로그램 데이터를 저장할 수 있다. 그리고 램(RAM)(23)은 임시 데이터 영역으로 플래쉬 메모리 1, 2(21,22)와는 달리 전원이 공급되는 동안에만 데이터가 저장되는 휘발성 메모리 영역이다.In FIG. 1, the portable device 20 represents a mobile phone, for example, and flash memories 1 and 2 (21, 22) of the portable device represent a code area and a data area, respectively. Here, the flash memory 1 may exist in the portable apparatus 20 and store program execution codes, and the flash memory 2 may exist in the portable apparatus 20 and store program data. In addition, unlike the flash memories 1 and 2 (21 and 22), the RAM 23 is a volatile memory area in which data is stored only while power is supplied.

그리고 컴퓨터(10)는 휴대장치(20)로 프로그램과 관련된 코드, 데이터 등을 다운로드하기 위하여 사용된다.The computer 10 is used to download code, data, and the like related to the program to the portable device 20.

이와 같은 종래 휴대장치(예를 들면 휴대폰)의 프로그램은 모듈 프로그램 구조가 아닌 한 프로그램이 하나의 휴대장치 프로그램이 되어 있는 구조로써 컴퓨터(10)에서 휴대장치 프로그램을 작성하여 컴파일러로 컴파일을 하면 바이너리 파일이 생성되고, 컴파일하는 파일이 위치하게 될 램(23)과 롬의 어드레스를 지정 해 주어야 한다.Such a program of a conventional portable device (for example, a mobile phone) is a structure in which a program is a portable device program, not a module program structure. When a portable device program is created on a computer 10 and compiled with a compiler, a binary file You need to specify the address of RAM 23 and ROM where the generated and compiled files will be located.

예를 들면, 퀄컴의 MSM3000 칩인 경우 롬은 HEX로 0x0번지이고, 램은 HEX로 0x1000000으로 지정하고 컴파일을 한다.For example, in the case of Qualcomm's MSM3000 chip, ROM is 0x0 as HEX and RAM is compiled as Hx as 0x1000000.

이때 램(23)과 롬의 위치가 정해져 있는 바이너리 파일일 때 다른 위치의 롬 어드레스로 다운로드하면 실행이 불가능하므로 이를 극복하기 위하여 램(23)에서 실행되는 방법을 사용하게 되는데, 램(23)에서 실행되는 어드레스로 컴파일하여 컴퓨터(10)에서 휴대장치(20)의 램(23)에 코드나 데이터 파일을 다운로드하고, 램(23)으로 실행 콘트롤을 넘기면 휴대장치(20)의 램(23)에서 다운로드된 프로그램을 실행하게 된다. In this case, when the binary file having the location of the RAM 23 and the ROM is determined to be downloaded to the ROM address of another location, the execution is impossible. Therefore, a method executed in the RAM 23 is used to overcome this problem. Compile to the address to be executed and download the code or data file from the computer 10 to the RAM 23 of the portable device 20, and transfer the execution control to the RAM 23, the RAM 23 of the portable device 20 Run the downloaded program.

이와 같은 종래 기술에 따른 휴대장치로의 코드나 데이터 다운로드 방법에 있어서는 컴파일시 롬의 어드레스 위치를 정해줌으로써 컴파일되어 있는 바이너리 파일을 다른 위치로 옮겨서 실행시킬 수 없었다. 따라서 램에 프로그램을 다운로드하여 실행하는 방법을 사용하는데 램은 휘발성 메모리로써 전원이 오프되면 다운로드된 프로그램이 사라져 버리고, 전원 온(power on)시마다 프로그램을 다시 다운로드하여야 하고 램의 용량도 커야하는 문제점이 있었다.In the conventional code or data download method to a portable device, the compiled binary file cannot be moved to another location by determining the address location of the ROM at compile time. Therefore, there is a method of downloading and executing a program to RAM. RAM is a volatile memory, and when the power is turned off, the downloaded program disappears, and each time the power is turned on, the program must be downloaded again and the capacity of the RAM must be large. there was.

본 발명의 목적은 상기와 같은 종래 기술의 문제점을 해결하기 위하여 안출한 것으로써, 휴대폰과 같은 휴대장치에서 모듈 프로그램 방법을 통해 불휘발성 메모리에 프로그램을 다운로드시켜 프로그램을 수행시킴으로써 모듈 프로그램이 휴대장치의 불휘발성 메모리의 어느 위치에 있더라도 프로그램 수행이 가능한 휴대장치 에서의 모듈 프로그램 구현 방법을 제공하는데 있다.Disclosure of Invention An object of the present invention is to solve the above-mentioned problems of the prior art, and in a portable device such as a mobile phone, a module program is downloaded to a nonvolatile memory and executed by a module program method. The present invention provides a method for implementing a module program in a portable device capable of executing a program at any location of a nonvolatile memory.

이와 같은 목적을 달성하기 위한 본 발명 휴대장치에서의 모듈 프로그램 구현 방법은 컴퓨터에서 서로 다른 롬 번지로 컴파일한 두 파일의 차이 값으로 롬 번지 위치 정보를 포함한 헤더를 갖는 모듈 프로그램 파일을 생성하는 단계, 상기 생성된 모듈 프로그램 파일을 휴대단말의 메모리 영역으로 다운로드할 때, 상기 헤더에 포함된 위치 정보를 이용하여 상기 휴대단말의 롬에서 실행할 수 있는 모듈 프로그램 코드를 생성하여 다운로드 하는 단계, 상기 휴대단말에서 상기 컴퓨터로부터 전송된 상기 모듈 프로그램 파일을 상기 휴대단말의 메모리 영역 중 휘발성 메모리 영역을 초기화한다음 실행하는 단계, 상기 휴대단말에서 상기 휘발성 메모리 영역에서 실행된 상기 모듈 프로그램 파일을 상기 헤더 위치 정보를 참조하여 상기 휴대단말의 메모리 영역중 불휘발성 메모리 영역에 상주한 기존 프로그램 위치 영역 이외의 영역에 업그레이드하는 단계로 이루어진다.In order to achieve the above object, a method of implementing a module program in a mobile device according to the present invention may include generating a module program file having a header including ROM address location information as a difference value between two files compiled into different ROM addresses on a computer, When downloading the generated module program file to the memory area of the portable terminal, generating and downloading the module program code executable in the ROM of the portable terminal using the location information included in the header, in the portable terminal Initializing the volatile memory area of the memory area of the portable terminal and executing the module program file transmitted from the computer; referring to the header location information of the module program file executed in the volatile memory area of the portable terminal. The memory of the mobile terminal Upgrading to an area other than the existing program location area resident in the nonvolatile memory area of the area is performed.

본 발명의 다른 목적, 특징 및 이점들은 첨부한 도면을 참조한 실시예들의 상세한 설명을 통해 명백해질 것이다.Other objects, features and advantages of the present invention will become apparent from the following detailed description of embodiments taken in conjunction with the accompanying drawings.

이하 본 발명의 바람직한 일 실시 예에 따른 구성 및 작용을 첨부된 도면을 참조하여 설명한다.Hereinafter, a configuration and an operation according to an exemplary embodiment of the present invention will be described with reference to the accompanying drawings.

도 2는 본 발명에 따른 휴대장치로의 모듈 프로그램 다운로드 방법을 설명하기 위한 휴대장치와 개인용 컴퓨터를 나타낸 블록 구성도이다.2 is a block diagram illustrating a portable device and a personal computer for explaining a method of downloading a module program to the portable device according to the present invention.

도 2에서 휴대장치(40)는 예를 들면 휴대폰을 나타낸 것으로 휴대장치의 플 래쉬 메모리 1, 2(21,22)는 각각 코드 영역과 데이터/모듈 프로그램 영역을 나타낸다. 여기서 플래쉬 메모리 1(41)은 휴대장치(20) 내부에 존재하고 프로그램 수행코드를 저장하고 있고, 플래쉬 메모리 2(42) 역시 휴대장치(20) 내부에 존재하고 프로그램 데이터뿐만 아니라 플래쉬 메모리 1(41)의 프로그램 수행코드인 메인 코드와는 별개로 모듈 프로그램을 컴파일하여 다운로드 할 수 있다. 이때, 플래쉬 메모리 2(42)의 다운로드된 프로그램을 선택하면 코드가 수행된다. 그리고 램(RAM)(46)은 임시 데이터 영역으로 플래쉬 메모리 1, 2(21,22)와는 달리 전원이 공급되는 동안에만 데이터가 저장되는 휘발성 메모리 영역으로써 메인 코드 사용영역(43a)과 모듈 프로그램(42a,42b,42c)이 공유하여 사용할 수 있는 모듈 프로그램 공유영역(43b)으로 구성된다.In FIG. 2, the portable device 40 shows a mobile phone, for example, and the flash memories 1, 2 (21, 22) of the portable device represent a code area and a data / module program area, respectively. The flash memory 1 41 is present in the portable apparatus 20 and stores program execution codes. The flash memory 2 42 is also present in the portable apparatus 20 and the flash memory 1 41 is stored in the portable apparatus 20. You can compile and download the module program separately from the main code which is the program execution code of. At this time, when the downloaded program of the flash memory 2 42 is selected, the code is executed. In addition, unlike the flash memories 1 and 2 (21 and 22), the RAM 46 is a volatile memory area in which data is stored only while power is supplied, unlike the flash memories 1 and 2 (21, 22). 42a, 42b, and 42c are composed of a module program sharing area 43b which can be shared and used.

그리고 컴퓨터(30)는 다운로드 프로그램을 사용하여 모듈 프로그램을 휴대장치(40)로 다운로드한다.The computer 30 downloads the module program to the portable device 40 using the download program.

도 3은 본 발명에 따른 모듈 프로그램 파일 구조를 나타낸 도면이고, 도 4는 본 발명에 따른 휴대장치에서의 모듈 프로그램 구현 방법을 설명하기 위한 플로우차트이다.3 is a diagram illustrating a module program file structure according to the present invention, and FIG. 4 is a flowchart for describing a method of implementing a module program in a portable device according to the present invention.

본 발명에 따른 휴대장치에서의 모듈 프로그램 구현 방법은 컴퓨터(30)에서 휴대장치(40)에 필요한 모듈 프로그램을 작성할 때, 작성된 모듈 프로그램은 플래쉬 메모리 1(41)에 들어가는 메인 코드 프로그램과는 별개로 컴파일되면서 메인 코드에 들어있는 기능들과 라이브러리(library)를 사용한다.In the method of implementing a module program in a portable apparatus according to the present invention, when a module program necessary for the portable apparatus 40 is created in the computer 30, the created module program is separate from the main code program that enters the flash memory 1 (41). Compile and use the features and libraries contained in the main code.

모든 프로그램은 도 3에 나타낸 바와 같이 롬 번지 위치 정보인 헤더(header)를 갖고 있어 이 헤더에 롬 번지 위치에 대한 정보를 갖고 있다. All programs have a header which is ROM address location information as shown in Fig. 3, and the header address location information is included in this header.

롬 번지에 대한 정보는 램 0x0 번지로 첫 번째 파일을 한 번 컴파일 할 때 롬 번지를 0x0으로 컴파일하고, 램 0x20 번지로 두 번째 파일을 컴파일 할 때 롬 번지를 0x20으로 컴파일한다(S100, S101). For information on the ROM address, the ROM address is compiled as 0x0 when the first file is compiled once with RAM 0x0, and the ROM address is compiled as 0x20 when compiling the second file with RAM 0x20 (S100, S101). .

이때 두 파일의 차이값을 통해 롬 번지 위치 정보를 얻고, 이 롬 번지 위치정보를 헤더에 기록한다(S102,S103). 예를 들면 0x0과 0x20으로 컴파일한 두 파일을 비교하면 0x20, 0x34, 0x38, 0x158번지에서 서로 다른 값을 가지고 있으면 헤더에서 처음 차이가 나는 곳을 dword로 먼저 기록하고, 두 번째 차이값부터는 한 바이트로 기록해나간다.In this case, the ROM address location information is obtained through the difference between the two files, and the ROM address location information is recorded in the header (S102 and S103). For example, if you compare two files compiled with 0x0 and 0x20, if they have different values at 0x20, 0x34, 0x38, and 0x158, the first difference in the header is recorded as dword, and one byte from the second difference. Record with

만약 차이가 0xff보다 커져서 바이트로 기록할 수 없는 경우에는 dword로 기록하되 앞에서 0x0을 기록해서 확장된 차이값이라는 것을 표시하고 그 다음 자리에 차이값을 기록한다.If the difference is greater than 0xff and cannot be recorded in bytes, record as dword, but record 0x0 earlier to indicate that it is an extended difference value and then record the difference value in the next place.

여기서 0x20, 0x34, 0x38, 0x12038의 차이 값을 헤더에 기록하면0x00000020(차이 시작번지), 0x14(차이 값), 0x4(차이 값), 0x00012000(확장된 차이값)과 같다. 즉 도 3과 같은 구조로 파일을 만든다(S104).Here, if the difference value of 0x20, 0x34, 0x38, and 0x12038 is recorded in the header, it is equal to 0x00000020 (difference start address), 0x14 (difference value), 0x4 (difference value), and 0x00012000 (extended difference value). That is, a file is created with the structure as shown in FIG. 3 (S104).

이어서 컴퓨터와 휴대장치를 서로 연결한다(S105).Subsequently, the computer and the portable apparatus are connected to each other (S105).

그다음 휴대장치에 다운로드할 롬 번지를 휴대장치에서 얻는다(S106). 즉, 컴퓨터에서 작성된 모듈프로그램을 휴대장치의 플래쉬 메모리 2에 다운로드 할 때 다운로드하려는 롬 번지를 휴대장치에서 알아내고(S106), 헤더의 롬 번지 정보를 사용하여 모듈 프로그램을 원하는 롬 번지를 바꾸고(S107), 플래쉬 메모리 2에 다 운로드한다(108)Then, the ROM address to be downloaded to the mobile device is obtained from the mobile device (S106). That is, when downloading a module program created on a computer to the flash memory 2 of the portable device, the ROM address to be downloaded is found on the portable device (S106), and the ROM address desired for the module program is changed using the ROM address information of the header (S107). , Download to flash memory 2 (108)

이때 롬 0x20000번지에 다운로드 하려고 한다면 롬 번지를 계산하는 것은 0x0으로 컴파일한 파일에서 차이가 난 번지에 0x20000 롬 번지를 더하면 원하는 롬 파일이 만들어진다.At this time, if you want to download ROM 0x20000, the ROM address is calculated by adding 0x20000 ROM address to the address that is different from 0x0 compiled file.

컴퓨터에서 다운로드하면 휴대장치의 화면에 바로 메뉴에 기록하고(S109), 휴대장치의 메뉴에서 이 파일을 선택하면(S110), 플래쉬 메모리 2의 모듈 프로그램에 대한 초기화를 수행하고(S111), 휴대장치는 모듈 프로그램의 실행코드를 수행한(S112). 이때 모듈 프로그램은 선택한 경우에만 실행되므로 모듈 프로그램간 램을 공유함으로써 램의 용량을 줄일 수 있다.When downloading from the computer, the menu is directly recorded on the screen of the mobile device (S109). When this file is selected from the menu of the mobile device (S110), the module program of the flash memory 2 is initialized (S111). Performs the execution code of the module program (S112). At this time, since the module program is executed only when selected, the RAM capacity can be reduced by sharing the RAM between the module programs.

이상의 설명에서와 같이 본 발명은 다음과 같은 효과가 있다.As described above, the present invention has the following effects.

첫째, 컴퓨터에서 먼저 프로그램을 작성하여 에뮬레이션 소프트웨어로 에뮬레이션하고 다시 컴파일러를 사용하여 롬 바이너리 파일로 만들어 특별한 변환없이 휴대폰에 바로 넣을 수 있다.First, you can first write a program on your computer, emulate it with emulation software, and then use the compiler to create a ROM binary file that you can put right into your phone without special conversion.

둘째, 플래쉬 메모리 2의 데이터 영역을 코드 영역으로 사용가능하므로 데이터 영역에서도 프로그램 수행하는 영역을 넓혀 사용할 수 있다.Second, since the data area of the flash memory 2 can be used as a code area, the area for executing a program can be widened in the data area.

셋째, 모듈 프로그램들을 한 번에 하나씩 실행시키므로 모듈 프로그램간 램을 공유할 수 있어 램의 메모리 용량을 줄일 수 있다.Third, since the module programs are executed one at a time, RAM between module programs can be shared, thereby reducing the memory capacity of the RAM.

넷째, 모듈 프로그램을 작성하여 메인 코드와 어플리케이션 프로그램 인터페이스(API)를 사용하므로 재사용과 시간을 절약할 수 있다. Fourth, by writing a module program and using the main code and application program interface (API) can be reused and save time.                     

다섯째, API를 이용하여 모듈 프로그램을 개발하도록 하여 사용자 요구에 빨리 대응할 수 있는 효과가 있다. Fifth, it is effective to respond quickly to user demands by developing module programs using API.

이상 설명한 내용을 통해 당업자라면 본 발명의 기술 사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알 수 있을 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit of the present invention.

따라서, 본 발명의 기술적 범위는 실시 예에 기재된 내용으로 한정하는 것이 아니라 특허 청구 범위에 의해서 정해져야 한다.Therefore, the technical scope of the present invention should not be limited to the contents described in the embodiments, but should be defined by the claims.

Claims (2)

컴퓨터에서 서로 다른 롬 번지로 컴파일한 두 파일의 차이 값으로 롬 번지 위치 정보를 포함한 헤더를 갖는 모듈 프로그램 파일을 생성하는 단계;Generating a module program file having a header including ROM address location information as a difference between two files compiled with different ROM addresses on a computer; 상기 생성된 모듈 프로그램 파일을 휴대단말의 메모리 영역으로 다운로드할 때, 상기 헤더에 포함된 위치 정보를 이용하여 상기 휴대단말의 롬에서 실행할 수 있는 모듈 프로그램 코드를 생성하여 다운로드 하는 단계;Generating and downloading the module program code executable in the ROM of the portable terminal by using the location information included in the header when downloading the generated module program file to the memory area of the portable terminal; 상기 휴대단말에서 상기 컴퓨터로부터 전송된 상기 모듈 프로그램 파일을 상기 휴대단말의 메모리 영역 중 휘발성 메모리 영역을 초기화한다음 실행하는 단계;Initializing and executing the volatile memory area of the memory area of the mobile terminal with the module program file transmitted from the computer in the mobile terminal; 상기 휴대단말에서 상기 휘발성 메모리 영역에서 실행된 상기 모듈 프로그램 파일을 상기 헤더 위치 정보를 참조하여 상기 휴대단말의 메모리 영역중 불휘발성 메모리 영역에 상주한 기존 프로그램 위치 영역 이외의 영역에 업그레이드하는 단계로 이루어지는 것을 특징으로 하는 휴대장치에서의 모듈 프로그램 구현 방법.Upgrading the module program file executed in the volatile memory area to an area other than the existing program location area residing in the nonvolatile memory area of the memory area of the mobile terminal with reference to the header location information. Module program implementation method in a portable device, characterized in that. 제 1 항에 있어서, 상기 모듈 프로그램 파일의 헤더에는 상기 서로 다른 롬 번지로 컴파일한 두 파일의 차이 시작번지, 상기 서로 다른 롬 번지의 차이 값 및 확장된 차이 값에 대한 롬 번지 위치 정보를 포함하고, 상기 모듈 프로그램 파일은 상기 헤더와, 상기 초기화 코드 및 모듈 프로그램 실행 코드를 포함하여 이루어진 것을 특징으로 하는 휴대장치에서의 모듈 프로그램 구현 방법.The method of claim 1, wherein the header of the module program file includes ROM address location information of a difference start address of two files compiled into different ROM addresses, a difference value of the different ROM addresses, and an extended difference value. And the module program file comprises the header, the initialization code, and a module program execution code.
KR1020000085998A 2000-12-29 2000-12-29 Module program realization method in mobile terminal KR100662291B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000085998A KR100662291B1 (en) 2000-12-29 2000-12-29 Module program realization method in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000085998A KR100662291B1 (en) 2000-12-29 2000-12-29 Module program realization method in mobile terminal

Publications (2)

Publication Number Publication Date
KR20020056610A KR20020056610A (en) 2002-07-10
KR100662291B1 true KR100662291B1 (en) 2007-01-02

Family

ID=27689105

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000085998A KR100662291B1 (en) 2000-12-29 2000-12-29 Module program realization method in mobile terminal

Country Status (1)

Country Link
KR (1) KR100662291B1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100383240B1 (en) * 2001-04-10 2003-05-12 주식회사 팬택앤큐리텔 Device and method for initializing communication mobile station
KR100703359B1 (en) * 2003-05-27 2007-04-03 삼성전자주식회사 Apparatus and method for providing source codes for a plurality of operating part in mobile telephone
KR100652715B1 (en) * 2005-02-28 2006-12-01 엘지전자 주식회사 Method and apparatus of application program dynamic loading for mobile phone
KR100842577B1 (en) * 2006-11-07 2008-07-01 삼성전자주식회사 Embedded system with a function of software download and management method thereof

Also Published As

Publication number Publication date
KR20020056610A (en) 2002-07-10

Similar Documents

Publication Publication Date Title
US7542758B2 (en) Field downloading of wireless device software
US7159214B2 (en) System and method for compacting field upgradeable wireless communication device software code sections
KR100911604B1 (en) System and method for the management of wireless communications device system software downloads in the field
JP4381980B2 (en) Mobile phone communication device and data management method
US8073883B2 (en) Methods and apparatus for concurrently executing a garbage collection process during execution of a primary application program
US20080117991A1 (en) Partitioning Compression-Based Firmware Over the Air
CN102521031A (en) Management method of preset application programs of mobile terminal and mobile terminal
CN101026826B (en) System and method for providing monolithic image for use in a wireless device
JP2004530201A (en) Methods for loading and running applications in embedded environments
CN111290773A (en) System upgrading method, device and readable storage medium
KR100662291B1 (en) Module program realization method in mobile terminal
CN101884034A (en) Method, apparatus and computer program product for providing improved memory usage
JP4774811B2 (en) IC module for IC card, IC card and IC card program
KR100751016B1 (en) Method for management of file system and data processing apparatus thereof
KR100622816B1 (en) System software update method and system in mobile terminal
KR100627819B1 (en) Method for Controlling Application by Using Functions of WAP Browser
KR100671692B1 (en) Method for garbage collection having individual period for each application program and terminal thereof
KR100678656B1 (en) Method for Updating Database of Mobile Communication Terminal by Using Temporary Area of Memory and Mobile Communication Terminal Therefor
KR100634023B1 (en) Method and system for applying embeded application program in smart phone
KR100575780B1 (en) Method for binary data update module executing by using ota
US20060156301A1 (en) Method for recovering from download failure of program and portable terminal employing the method
KR100703456B1 (en) Mobile communication terminal for execution of application code using Removable disk
RU2390823C2 (en) Compact storage of program code on mobile terminals
KR100556878B1 (en) Initialization method for mobile communication terminal
WO2008054132A1 (en) Terminal having platform library dynamic linking function and method of controlling the same

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121128

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20131122

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20141124

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20151124

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee