KR20040038271A - Method for compress and uncompress of file - Google Patents

Method for compress and uncompress of file Download PDF

Info

Publication number
KR20040038271A
KR20040038271A KR1020020067160A KR20020067160A KR20040038271A KR 20040038271 A KR20040038271 A KR 20040038271A KR 1020020067160 A KR1020020067160 A KR 1020020067160A KR 20020067160 A KR20020067160 A KR 20020067160A KR 20040038271 A KR20040038271 A KR 20040038271A
Authority
KR
South Korea
Prior art keywords
file
compressed
error message
displaying
compression
Prior art date
Application number
KR1020020067160A
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 KR1020020067160A priority Critical patent/KR20040038271A/en
Publication of KR20040038271A publication Critical patent/KR20040038271A/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/00007Time or data compression or expansion
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/60General implementation details not specific to a particular type of compression
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1833Error detection or correction; Testing, e.g. of drop-outs by adding special lists or symbols to the coded information
    • G11B2020/1843Error detection or correction; Testing, e.g. of drop-outs by adding special lists or symbols to the coded information using a cyclic redundancy check [CRC]

Abstract

PURPOSE: A method for compressing/decompressing a file is provided to reduce a size of software minimally by compressing all files to be downloaded, and perform the service initiation more fast by effectively using a limited communication path resource and shortening a loading time. CONSTITUTION: After reading a data file, the compression of the read data file is checked(ST12). In case of the compressed file, an error message is displayed and the data file is compressed if not(ST14). After compressing the data file, the user header information is additionally inputted to the generated file(ST18). A header is connected/registered. A header file and the compressed file are merged(ST21).

Description

파일 압축 및 해제 방법{Method for compress and uncompress of file}Method for compress and uncompress of file}

본 발명은 기존의 파일 압축, 해제시 RT-OS(Real Time OS) 내에서 제공해주는 기본 압축, 해제 알고리즘에 어플리케이션이 사용할 수 있는 부가 정보들을 압축된 파일 내에 헤더(header) 형태로 연결 등록(attach)함으로써, 다운로딩 받은 압축 파일의 압축, 해제를 어플리케이션 레벨에서 가능하도록 한 파일 압축 및 해제 방법에 관한 것으로, 특히 다운로딩시 사용되는 파일을 RT-OS(VxWorks) 레벨(level)에서 제공되어지는 압축 알고리즘을 사용하여 압축을 수행하고, 상기 기본적인 압축을 통해 생성된 압축된 파일 내에 새로운 부가 정보들(header)을 연결 등록시켜, 압축 해제시 상기 헤더 정보를 이용해서 특정 메모리 영역에 압축을 해제한 후, 정해진 영역에 압축이 해제된 어플리케이션을 적재하여 사용토록 함으로써, OS 레벨이 아닌 어플리케이션 레벨에서 파일 압축 및 해제를 가능하도록 하고, 다운로딩 되어지는 모든 어플리케이션에 대한 압축 로딩이 가능하도록 한 파일 압축 및 해제 방법에 관한 것이다.The present invention connects and registers additional information that an application can use in a basic compression and decompression algorithm provided in a real-time OS (RT-OS) when compressing and decompressing a file in the form of a header in a compressed file. The present invention relates to a method of compressing and decompressing a downloaded compressed file at an application level. In particular, a file used for downloading is provided at an RT-OS (VxWorks) level. Compression is performed using a compression algorithm, and new additional information headers are registered in the compressed file generated through the basic compression, and decompression is performed in a specific memory area by using the header information when decompression. After that, the uncompressed application is loaded and used in a predetermined area, thereby compressing the file at the application level instead of the OS level. The present invention relates to a method of compressing and decompressing a file to enable axis and decompression, and to enable compression loading of all downloaded applications.

일반적으로, 종래 기술에 따른 압축 로딩은 RT-OS(VxWorks) 상에서 제공되는 압축 툴(compress tool)로 파일을 압축하여 그 파일을 다운로딩 받았으며, 상기 다운로딩 받은 압축된 파일을 OS 레벨에서 해제한 후 이를 메모리내에 적재하여 사용하였다.In general, compression loading according to the prior art compresses a file with a compression tool provided on an RT-OS (VxWorks) to download the file, and releases the downloaded compressed file at an OS level. Then it was used in the memory.

여기서, 종래의 기술에서 상기 압축 파일의 해제는 OS 레벨에서만 가능하여서 압축 받는 로딩 파일의 범위가 제한적이었다.Here, in the prior art, the release of the compressed file is possible only at the OS level, and thus the range of the compressed loading file is limited.

따라서, 압축 로딩을 받는 어플리케이션보다 압축하지 못하는 어플리케이션이 더 많이 존재하였으며, 이로 인해 결국 로딩 시간을 최소한으로 축소시키는데 한계를 가졌다.Therefore, there are more applications that cannot compress than applications that receive compression loading, which in turn limits the loading time to a minimum.

또한, 기존 방법을 이용한 압축 파일을 OS가 아닌 어플리케이션 블럭에서 해제할 경우, 상기 압축 파일에 대한 정보가 압축이 해제될 시작 번지(Starting Address)에 대한 정보가 유일함으로, 메모리 할당시 일정 수준 이상의 큰 영역을 할당하였다.In addition, when releasing a compressed file using an existing method from an application block other than an OS, the information on the starting address at which the compressed file is to be decompressed is unique. Area was allocated.

따라서, 비효율적인 메모리 점유로 인해 메모리의 낭비가 발생하게 되었으며, 이에 따라 리소스(resource) 활용이 어려워져 각 해당 보드의 성능 저하를 유발하는 문제점이 있었다.Therefore, inefficient memory occupancy has caused a waste of memory, thereby making it difficult to utilize resources, causing performance degradation of the respective boards.

특히, CCP(Call Control Processor)와 같이 어플리케이션이 많이 다운로딩 되는 프로세서와 같은 경우에는 메모리의 낭비가 더욱 심하게 일어나는 문제점이 있었다.In particular, in the case of a processor in which many applications are downloaded, such as a Call Control Processor (CCP), there is a problem in that memory waste occurs more severely.

이에 본 발명은 상기와 같은 종래 기술의 제반 문제점을 해결하기 위해서 제안된 것으로서,Accordingly, the present invention is proposed to solve the above problems of the prior art,

본 발명의 목적은 RT-OS(VxWorks)와 같이 특정 부분 내에서만 가능하던 파일 압축, 해제를 압축 파일을 인코딩 및 디코딩(Encoding & Decoding)을 통해서 어플리케이션 레벨에서 가능하게 함으로써, 모든 다운로딩 되어질 파일을 압축하여 소프트웨어의 크기를 최소한으로 줄일 수 있도록 하고, 이를 통해 제한된 통신 경로 자원을 보다 더 효율적으로 이용하고, 로딩 시간을 단축함으로서 서비스 개시를 더욱더 빨리 수행할 수 있도록 한 파일 압축 및 해제 방법을 제공하는 데 있다.An object of the present invention is to enable the compression and decompression of a file, which was only possible within a specific part such as RT-OS (VxWorks), at the application level through encoding and decoding (Encoding & Decoding). It provides a method of compressing and decompressing files to reduce the size of the software by minimizing the size of the software, and to use the limited communication path resources more efficiently and to reduce the loading time so that the service can be started faster. There is.

상기와 같은 목적을 달성하기 위한 본 발명에 의한 파일 압축 방법은,File compression method according to the present invention for achieving the above object,

데이터 파일을 읽어들인 후, 상기 읽어들인 데이터 파일의 압축 여부를 확인하는 단계와,After reading the data file, checking whether the read data file is compressed;

상기 확인결과 압축된 파일인 경우, 에러 메시지를 디스플레이하고, 상기 확인결과 압축된 파일이 아니면 파일 압축을 수행하는 단계와,If the file is a compressed file as a result of the checking, displaying an error message and performing file compression if the file is not a compressed file as a result of the checking;

상기 파일 압축 후, 그 압축 수행이 성공적으로 완료되었는지 확인하여 비정상적인 경우에는 에러 메시지를 디스플레이하고, 파일 압축이 정상적인 경우에는 상기 생성된 파일에 추가로 사용자 헤더 정보를 입력하는 단계와,After compressing the file, checking whether the compression is successfully completed, displaying an error message in case of abnormality, and inputting user header information to the generated file if the file compression is normal;

상기 헤더 정보 입력 후, 상기 정보 입력이 정상적으로 수행되었는지 체크하여, 입력이 비정상적인 경우에는 에러 메시지를 디스플레이하고, 상기 입력이 정상적인 경우에는 헤더를 연결 등록시키는 단계와,Checking whether the information input is normally performed after inputting the header information, displaying an error message if the input is abnormal, and registering the header if the input is normal;

상기 헤더 연결 등록 후, 상기 연결 등록이 정상적으로 완료되었는지 확인하여, 연결 등록이 비정상적인 경우에는 에러 메시지를 디스플레이하고, 상기 연결 등록이 정상적인 경우에는 상기 헤더 파일과 압축 파일을 병합하는 단계와,After the header connection registration, checking whether the connection registration is completed normally, displaying an error message when the connection registration is abnormal, and merging the header file and the compressed file when the connection registration is normal;

상기 파일 병합 수행 후, 상기 병합이 성공적으로 완료되었는지 체크하고, 그 결과 파일 병합이 실패한 경우 에러 메시지를 디스플레이하고, 상기 파일 병합이 성공한 경우 파일 압축 과정을 종료하는 단계로 구성됨을 그 방법적 구성상의 특징으로 한다.After performing the file merging, it is checked whether the merging is completed successfully, and as a result, an error message is displayed when the file merging fails, and the file compression process is terminated when the file merging is successful. It features.

또한, 상기와 같은 목적을 달성하기 위한 본 발명에 의한 파일 압축 해제 방법은,In addition, the file decompression method according to the present invention for achieving the above object,

압축 데이터 파일을 읽어들인 후, 상기 읽어들인 데이터 파일이 압축된 파일인지 판별하는 단계와,After reading the compressed data file, determining whether the read data file is a compressed file;

상기 판별결과 압축된 파일이 아니면 에러 메시지를 디스플레이하고, 상기 판별결과 압축된 파일이면 CRC(Cyclic Redundancy Check)가 수행되었는지 체크하는 단계와,Displaying an error message if the file is not a compressed file as a result of the determination, and checking whether a cyclic redundancy check (CRC) is performed if the file is compressed as a result of the determination;

상기 체크결과 CRC가 이루어지지 않은 경우 에러 메시지를 디스플레이하고, 상기 체크결과 CRC가 이루어진 파일이면 헤더 파일을 연결 해제한 후, 그 성공 여부를 확인하는 단계와,Displaying an error message if the CRC is not checked and disconnecting the header file if the CRC is the checked file, and confirming success;

상기 확인결과 연결 해제가 실패한 경우 에러 메시지를 디스플레이하고, 상기 확인결과 연결 해제가 성공하면 파일의 압축을 해제하는 단계와,Displaying an error message when the disconnection of the confirmation result is unsuccessful, and decompressing the file if the disconnection of the confirmation result is successful;

상기 파일 압축 해제 후, 압축 해제가 성공적으로 완료되었는지 확인하여, 압축 해제가 실패한 경우에는 에러 메시지를 디스플레이하고, 상기 압축 해제가 성공한 경우에는 메모리로부터 파일을 로딩하는 단계와,After decompressing the file, checking whether decompression is completed successfully, displaying an error message if decompression fails, and loading a file from memory if decompression is successful;

상기 파일 로딩 후 로딩 성공 여부를 체크하고, 그 결과 로딩이 실패한 경우에는 에러 메시지를 디스플레이하고, 상기 로딩이 성공한 경우에는 파일 압축 해제 과정을 종료하는 단계로 구성됨을 그 방법적 구성상의 특징으로 한다.The method may include checking whether the file is loaded successfully after loading the file, displaying an error message if the file fails to be loaded, and terminating the file decompression process if the file is loaded successfully.

도 1은 본 발명을 설명하기 위한 헤더 파일의 구성도를 나타낸 도면이고,1 is a view showing the configuration of a header file for explaining the present invention,

도 2는 본 발명에 의한 파일 압축 및 해제 과정을 블럭 구성도로 나타낸 도면이고,2 is a block diagram illustrating a file compression and decompression process according to the present invention;

도 3은 본 발명에 의한 파일 압축 순서를 상세하게 나타낸 흐름도이고,3 is a flowchart showing in detail a file compression sequence according to the present invention;

도 4는 본 발명에 의한 파일 해제 순서를 상세하게 나타낸 흐름도이다.4 is a flowchart illustrating a file release procedure according to the present invention in detail.

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

100 ..... BSM(Base Station Manager)100 ..... Base Station Manager

200 ..... 타겟 보드(Target Board)200 ..... Target Board

이하, 상기와 같은 기술적 사상에 따른 본 발명의 「파일 압축 및 해제 방법」의 바람직한 실시 예를 첨부된 도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, a preferred embodiment of the "file compression and decompression method" of the present invention according to the above technical concept will be described in detail with reference to the accompanying drawings.

도 1은 본 발명을 설명하기 위한 헤더 파일의 구성도를 나타낸 도면이다.1 is a diagram showing the configuration of a header file for explaining the present invention.

먼저, 본 발명은 다운로딩시 사용되는 파일을 RT-OS(Real Time OS)가 제공하는 압축 알고리즘을 통해 압축을 하고 기본적인 압축을 통해 생성된 파일에 추가로 사용자 헤더(header) 정보를 입력하여 압축 해제시 상기 헤더 정보를 이용해서 특정 메모리 영역에 압축을 해제한 후, 정해진 영역에 압축이 해제된 어플리케이션을 적재하여 사용하게 된다.First of all, the present invention compresses a file used for downloading through a compression algorithm provided by RT-OS (Real Time OS) and inputs user header information to a file generated through basic compression. When decompressing, the decompression is performed in a specific memory area using the header information, and then the decompressed application is loaded and used in a predetermined area.

이때, 압축된 파일에 헤더로 연결 등록(attach)되는 내용들은 첨부한 도면 도 1에 도시된 헤더 파일의 구성도와 같이, 원본 파일 크기(Original File Size), 버전(Version), 파일 형태(File Type), 압축된 파일의 CRC(Compressed File CRC), 압축된 파일의 크기(Compressed File Size) 등으로 구성된다.In this case, the contents attached to the compressed file as headers are attached to the original file size, version, and file type as shown in the configuration of the header file shown in FIG. 1. ), Compressed File CRC of Compressed File, Compressed File Size, etc.

이를 통해 압축된 파일이 하위 보드에서 다운로딩을 받은 후, 다운로딩된 압축 파일이 정상적으로 압축된 파일인지 여부와 상기 다운로딩중 패킷(packet)이 깨어지지 않고 정상적으로 로딩되었는지 여부, 또한 다운로딩된 파일을 메모리 내에 얼마만큼의 공간을 할당해서 압축을 해제 할 것인가의 여부를 결정하게 되는 것이다.Through this, after the compressed file is downloaded from the lower board, whether the downloaded compressed file is a normal compressed file, whether the packet is normally loaded without breaking during downloading, and the downloaded file Determines how much space to decompress and allocate in memory.

여기서, 상기 CRC(Cyclic Redundancy Check)라 함은 데이터 전송시 집단 오류 검출을 위해 사용되는 오류 검출 방식의 일종으로서, 데이터를 표현하기 위하여 필요한 최소한의 비트 외에 오류 검출을 위한 다항식 부호를 사용하여 오류를 검사하는 방식이다.Here, the cyclic redundancy check (CRC) is a type of error detection method used for group error detection during data transmission, and the error is detected by using a polynomial code for error detection in addition to the minimum bits necessary to represent data. This is how you check.

도 2는 본 발명에 의한 파일 압축 및 해제 과정을 블럭 구성도로 나타낸 도면이다.2 is a block diagram illustrating a file compression and decompression process according to the present invention.

이에 도시된 바와 같이, 파일의 압축은 BSM(Base Station Manager)(100)에서 압축되지 않은 원본 파일을 RT-OS가 제공하는 압축 툴(tool)을 통해 압축을 수행하고, 상기 기본적인 압축을 통해 생성된 파일에 추가로 사용자 헤더(header)를 연결 등록(attach)시켜 40바이트 헤더에 RT-OS 툴을 이용하여 헤더를 추가시킨 압축 파일을 생성한다.As shown in the figure, compression of a file is performed through a compression tool provided by the RT-OS, and generated through the basic compression of an uncompressed original file in the BSM (Base Station Manager) 100. In addition to the file, the user header is attached to create a compressed file with the header added to the 40-byte header using the RT-OS tool.

한편, 파일 다운로딩 후 타겟 보드(Target Board)(200)에서의 파일 압축 해제는 상기 40바이트 헤더를 연결 해제(detach) 시켜 특정 메모리 영역에 압축을 해제한 후, 정해진 영역에 압축이 해제된 어플리케이션을 적재하여 사용한다.On the other hand, after file download, file decompression on the target board 200 decompresses the 40-byte header to decompress the specific memory area, and then decompresses the predetermined area. Load it and use it.

즉, 상기한 바와 같은 본 발명을 통해 BSM(Base Station Manager)으로부터 하위 보드로 다운로딩 받게 되는 모든 파일에 대한 압축, 해제가 가능하여 로딩을 수행할 때 로딩 패킷의 수를 감소시킴으로 통신 경로 자원의 효율적 이용과 불필요한 자원 점유를 막을 수 있으며, 또한 로딩 시간을 최소한으로 단축시킴으로서, 시스템 서비스 개시 시간을 최대한 빨리 앞당길 수 있는 것이다.That is, through the present invention as described above, all files to be downloaded from the base station manager (BSM) can be compressed and decompressed, thereby reducing the number of loading packets when loading to reduce communication path resource. Efficient use and unnecessary resource occupancy can be prevented, and the loading time can be reduced to a minimum, thereby speeding up system service start time as soon as possible.

도 3은 본 발명에 의한 파일 압축 순서를 상세하게 나타낸 흐름도이다.Figure 3 is a flow chart showing in detail the file compression sequence according to the present invention.

이에 도시된 바와 같이, 데이터 파일을 읽어오는 단계(ST11)와, 상기 읽어 온 데이터 파일이 압축된 파일인지 체크하는 단계(ST12)와. 상기 체크결과 압축된 파일이면 에러 메시지를 디스플레이하는 단계(ST13)와, 상기 체크결과 압축된 파일이 아니면 파일을 압축하는 단계(ST14)와, 상기 파일 압축 후, 그 압축이 정상적으로 완료되었는지 확인하는 단계(ST15)와, 상기 확인결과 파일 압축이 비정상적인경우 에러 메시지를 디스플레이(ST13)하고, 상기 확인결과 파일 압축이 정상적인 경우 상기 생성된 파일에 추가로 사용자 헤더 정보를 입력하는 단계(ST16)와, 상기 헤더 정보 입력 후, 상기 정보 입력이 정상적으로 수행되었는지 체크하는 단계(ST17)와, 상기 체크결과 입력이 비정상적인 경우 에러 메시지를 디스플레이(ST13)하고, 상기 체크결과 입력이 정상적인 경우 헤더를 연결 등록시키는 단계(ST18)와, 상기 헤더 연결 등록 후, 상기 연결 등록이 정상적으로 완료되었는지 확인하는 단계(ST19)와, 상기 확인결과 연결 등록이 비정상적인 경우 에러 메시지를 디스플레이(ST13)하고, 상기 확인결 과 연결 등록이 정상적인 경우 상기 헤더 파일과 압축 파일을 병합하는 단계(ST20)와, 상기 병합이 성공적으로 완료되었는지 체크하는 단계(ST21)와, 상기 체크결과 파일 병합이 실패한 경우 에러 메시지를 디스플레이(ST13)하고, 상기 체크결과 성공한 경우 파일 압축 과정을 종료하는 단계로 이루어진다.As shown therein, reading the data file (ST11), checking whether the read data file is a compressed file (ST12); Displaying an error message if the file is compressed as a result of the check (ST13); compressing the file if the file is not a result of the check (ST14); and checking whether the compression is normally completed after the file is compressed. (ST15), and if the file compression is abnormal as the result of the verification, display an error message (ST13), and if the file compression is normal as the result of the verification, inputting user header information to the generated file (ST16); After inputting header information, checking whether the information input is normally performed (ST17); displaying an error message when the check result input is abnormal (ST13), and registering and registering a header when the check result input is normal ( ST18), and after the header connection registration, checking whether the connection registration is normally completed (ST19); If the connection registration is abnormal as a result of the confirmation, an error message is displayed (ST13). If the connection result is OK, the merging of the header file and the compressed file is performed (ST20), and the merge is completed successfully. In step ST21, if the check result file merge fails, an error message is displayed (ST13), and if the check result succeeds, the file compression process is terminated.

도 4는 본 발명에 의한 파일 해제 순서를 상세하게 나타낸 흐름도이다.4 is a flowchart illustrating a file release procedure according to the present invention in detail.

이에 도시된 바와 같이, 압축 데이터 파일을 읽어오는 단계(ST31)와, 상기 읽은 데이터 파일이 압축되었는지 체크하는 단계(ST32)와, 상기 체크결과 압축된 파일이 아니면 에러 메시지를 디스플레이(ST33)하고, 상기 체크결과 압축된 파일이면 CRC(Cyclic Redundancy Check)가 수행되었는지 체크하는 단계(ST34)와, 상기 체크결과 CRC가 이루어지지 않은 경우 에러 메시지를 디스플레이(ST33)하고, 상기 체크결과 CRC가 이루어진 파일이면 헤더 파일을 연결 해제하는 단계(ST35)와, 상기 연결 해제 후, 연결 해제가 성공적으로 완료되었는지 확인하는 단계(ST36)와, 상기확인결과 실패한 경우, 에러 메시지를 디스플레이(ST33)하고, 상기 확인결과 연결 해제가 성공하면 파일의 압축을 해제하는 단계(ST37)와, 상기 파일 압축 해제 후, 압축 해제가 성공적으로 완료되었는지 확인하는 단계(ST38)와, 상기 확인결과 압축 해제가 실패한 경우, 에러 메시지를 디스플레이(ST33)하고, 상기 확인결과 압축 해제가 성공한 경우, 메모리로부터 파일을 로딩하는 단계(ST39)와, 상기 파일 로딩 후, 로딩 성공 여부를 체크하는 단계(ST40)와, 상기 체크결과 로딩이 실패한 경우 에러 메시지를 디스플레이(ST33)하고, 상기 체크결과 로딩이 성공한 경우 파일 압축 해제 과정을 종료하는 단계로 이루어진다.As shown therein, a step ST31 of reading a compressed data file, a step of checking whether the read data file is compressed (ST32), an error message is displayed (ST33) if the check result is not a compressed file, If the file is a compressed file as a result of the check, the method checks whether a CRC (Cyclic Redundancy Check) has been performed (ST34); if the CRC is not performed as a result of the check, an error message is displayed (ST33); Disconnecting the header file (ST35), checking whether the disconnection is completed successfully after the disconnection (ST36), and if the check result fails, display an error message (ST33), and confirm the check result. If the connection is successful, decompressing the file (ST37), and after decompressing the file, to determine whether the decompression was completed successfully In step ST38, if the decompression of the verification result is unsuccessful, an error message is displayed (ST33). If decompression is successful, the loading of the file from the memory (ST39), and after the file is loaded, A step of checking whether the loading is successful (ST40), an error message is displayed when the loading of the check result fails (ST33), and the file decompression process is terminated when the loading of the check result is successful.

즉, 상기한 바와 같은 구성을 갖는 본 발명은 기존의 파일 압축, 해제시 RT-OS(Real Time OS) 내에서 제공해주는 기본 압축, 해제 알고리즘에 어플리케이션이 사용할 수 있는 부가 정보들을 압축된 파일 내에 헤더(header) 형태로 연결 등록(attach)함으로써, 다운로딩 받은 압축 파일의 압축 및 해제를 어플리케이션 레벨에서 가능하도록 하는 것으로, 더욱 상세하게는 다운로딩시 사용되는 파일을 RT-OS(VxWorks) 레벨(level)에서 제공되어지는 압축 알고리즘을 사용하여 압축을 수행하고, 상기 기본적인 압축을 통해 생성된 압축된 파일 내에 새로운 부가 정보들(header)을 연결 등록시켜, 압축 해제시 상기 헤더 정보를 이용해서 특정 메모리 영역에 압축을 해제한 후, 정해진 영역에 압축이 해제된 어플리케이션을 적재하여 사용토록 함으로써, OS 레벨이 아닌 어플리케이션 레벨에서 파일 압축 및 해제를 가능하도록 하고, 다운로딩 되어지는 모든 어플리케이션에 대한 압축 로딩이 가능하도록 한 것이다.That is, according to the present invention having the above-described configuration, headers in the compressed file include additional information that can be used by the application in the basic compression and decompression algorithm provided in the RT-OS (Real Time OS) when the existing file is compressed and decompressed. By attaching in the form of (header), it is possible to compress and decompress the downloaded compressed file at the application level. More specifically, the file used for downloading can be set at RT-OS (VxWorks) level. Compression is performed using a compression algorithm provided in the above), and new additional information headers are connected and registered in the compressed file generated through the basic compression. After decompressing the file, the uncompressed application is loaded and used in the designated area so that the application is not OS level. This is to enable the file compression and decompression in the level, the compression load of all applications that are downloaded to the enable.

이상에서 상술한 본 발명 "파일 압축 및 해제 방법"에 따르면, RT-Os(VxWorks)와 같이 특정 부분 내에서만 가능하던 파일 압축, 해제를 압축 파일을 인코딩 및 디코딩(Encoding & Decoding)을 통해서 어플리케이션 레벨에서 가능하게 함으로써, 모든 다운로딩 되어질 파일을 압축하여 소프트웨어의 크기를 최소한으로 줄일 수 있도록 하고, 이를 통해 제한된 통신 경로 자원을 보다 더 효율적으로 이용하고, 로딩 시간을 단축함으로서 시스템의 서비스 개시를 더욱더 빨리 수행할 수 있는 이점을 가진다.According to the above-described "file compression and decompression method" of the present invention, the application level through the encoding and decoding of the compressed file (Encoding & Decoding) the file compression, decompression that was possible only within a specific portion, such as RT-Os (VxWorks) By enabling all the files that are to be downloaded, the software can be compressed to a minimum size, which allows for faster system start-ups by more efficient use of limited communication path resources and shorter loading times. Has the advantage to be performed.

또한, 본 발명을 통해 BSM(Base Station Manager)으로부터 하위 보드로 다운로딩 받게 되는 모든 파일에 대한 압축, 해제가 가능하여 로딩을 수행할 때 로딩 패킷의 수를 감소시킬 수 있으며, 이를 통해 통신 경로 자원의 효율적 이용과 불필요한 자원 점유를 막을 수 있는 이점을 가진다.In addition, the present invention can compress and decompress all files to be downloaded from a base station manager (BSM) to a lower board, thereby reducing the number of loading packets when performing a loading, thereby communicating communication resource. It has the advantage of preventing the efficient use of resources and unnecessary resource occupation.

Claims (2)

파일 압축 방법에 있어서,In the file compression method, 데이터 파일을 읽어들인 후, 상기 읽어들인 데이터 파일의 압축 여부를 확인하는 단계와;Reading a data file and checking whether the read data file is compressed; 상기 확인결과 압축된 파일인 경우, 에러 메시지를 디스플레이하고, 상기 확인결과 압축된 파일이 아니면 파일 압축을 수행하는 단계와;If the file is a compressed file as a result of the checking, displaying an error message and performing file compression if the file is not a compressed file as a result of the checking; 상기 파일 압축 후, 그 압축 수행이 성공적으로 완료되었는지 확인하여 비정상적인 경우에는 에러 메시지를 디스플레이하고, 파일 압축이 정상적인 경우에는 상기 생성된 파일에 추가로 사용자 헤더 정보를 입력하는 단계와;After the file compression, checking whether the compression is successfully completed, displaying an error message in case of abnormality, and inputting user header information to the generated file when the file compression is normal; 상기 헤더 정보 입력 후, 상기 정보 입력이 정상적으로 수행되었는지 체크하여, 입력이 비정상적인 경우에는 에러 메시지를 디스플레이하고, 상기 입력이 정상적인 경우에는 헤더를 연결 등록시키는 단계와;Checking whether the information input is normally performed after inputting the header information, displaying an error message if the input is abnormal, and registering and registering the header if the input is normal; 상기 헤더 연결 등록 후, 상기 연결 등록이 정상적으로 완료되었는지 확인하여, 연결 등록이 비정상적인 경우에는 에러 메시지를 디스플레이하고, 상기 연결 등록이 정상적인 경우에는 상기 헤더 파일과 압축 파일을 병합하는 단계와;After the header connection registration, checking whether the connection registration is completed normally, displaying an error message when the connection registration is abnormal, and merging the header file and the compressed file when the connection registration is normal; 상기 파일 병합 수행 후, 상기 병합이 성공적으로 완료되었는지 체크하고, 그 결과 파일 병합이 실패한 경우 에러 메시지를 디스플레이하고, 상기 파일 병합이 성공한 경우 파일 압축 과정을 종료하는 단계를 포함하여 이루어진 것을 특징으로 하는 파일 압축 및 해제 방법.And after the file merging is performed, checking whether the merging is completed successfully, displaying an error message when the file merging is unsuccessful, and terminating the file compression process when the file merging is successful. How to compress and decompress files. 파일 압축 해제 방법에 있어서,In the file decompression method, 압축 데이터 파일을 읽어들인 후, 상기 읽어들인 데이터 파일이 압축된 파일인지 판별하는 단계와;Reading a compressed data file and determining whether the read data file is a compressed file; 상기 판별결과 압축된 파일이 아니면 에러 메시지를 디스플레이하고, 상기 판별결과 압축된 파일이면 CRC(Cyclic Redundancy Check)가 수행되었는지 체크하는 단계와;Displaying an error message if the file is not a compressed file as a result of the determination, and checking whether a cyclic redundancy check (CRC) has been performed if the file is compressed as a result of the determination; 상기 체크결과 CRC가 이루어지지 않은 경우 에러 메시지를 디스플레이하고, 상기 체크결과 CRC가 이루어진 파일이면 헤더 파일을 연결 해제한 후, 그 성공 여부를 확인하는 단계와;Displaying an error message if the CRC is not determined as a result of the check, disconnecting the header file if the file is the CRC as a result of the check, and checking whether the CRC is successful; 상기 확인결과 연결 해제가 실패한 경우 에러 메시지를 디스플레이하고, 상기 확인결과 연결 해제가 성공하면 파일의 압축을 해제하는 단계와;Displaying an error message if the connection is unsuccessful as a result of the confirmation, and decompressing the file if the connection is unsuccessful; 상기 파일 압축 해제 후, 압축 해제가 성공적으로 완료되었는지 확인하여, 압축 해제가 실패한 경우에는 에러 메시지를 디스플레이하고, 상기 압축 해제가 성공한 경우에는 메모리로부터 파일을 로딩하는 단계와;After decompressing the file, checking whether decompression is completed successfully, displaying an error message if decompression fails, and loading a file from memory if decompression is successful; 상기 파일 로딩 후 로딩 성공 여부를 체크하고, 그 결과 로딩이 실패한 경우에는 에러 메시지를 디스플레이하고, 상기 로딩이 성공한 경우에는 파일 압축 해제 과정을 종료하는 단계를 포함하여 이루어진 것을 특징으로 하는 파일 압축 및 해제 방법.Checking whether the loading is successful after loading the file, and if the loading fails, displaying an error message, and if the loading is successful, terminating the file decompression process. Way.
KR1020020067160A 2002-10-31 2002-10-31 Method for compress and uncompress of file KR20040038271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020067160A KR20040038271A (en) 2002-10-31 2002-10-31 Method for compress and uncompress of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020067160A KR20040038271A (en) 2002-10-31 2002-10-31 Method for compress and uncompress of file

Publications (1)

Publication Number Publication Date
KR20040038271A true KR20040038271A (en) 2004-05-08

Family

ID=37336503

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020067160A KR20040038271A (en) 2002-10-31 2002-10-31 Method for compress and uncompress of file

Country Status (1)

Country Link
KR (1) KR20040038271A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100689616B1 (en) * 2005-06-07 2007-03-08 주식회사 안철수연구소 Compression file inspecting apparatus and method thereof
WO2008039877A1 (en) * 2006-09-28 2008-04-03 Microsoft Corporation Serialization of run-time state
KR100938277B1 (en) * 2007-12-24 2010-01-21 (주)이스트소프트 Method and apparatus for file compression and restoration of compression format
US7672909B2 (en) 2006-09-28 2010-03-02 Microsoft Corporation Machine learning system and method comprising segregator convergence and recognition components to determine the existence of possible tagging data trends and identify that predetermined convergence criteria have been met or establish criteria for taxonomy purpose then recognize items based on an aggregate of user tagging behavior
US7680908B2 (en) 2006-09-28 2010-03-16 Microsoft Corporation State replication
US7716150B2 (en) 2006-09-28 2010-05-11 Microsoft Corporation Machine learning system for analyzing and establishing tagging trends based on convergence criteria
US7797453B2 (en) 2006-09-29 2010-09-14 Microsoft Corporation Resource standardization in an off-premise environment
KR101016776B1 (en) * 2009-09-21 2011-02-25 (주)이스트소프트 Forward compatibility guaranteed data compression and decompression method and apparatus thereof
US8014308B2 (en) 2006-09-28 2011-09-06 Microsoft Corporation Hardware architecture for cloud services
US8012023B2 (en) 2006-09-28 2011-09-06 Microsoft Corporation Virtual entertainment
US8025572B2 (en) 2005-11-21 2011-09-27 Microsoft Corporation Dynamic spectator mode
US8402110B2 (en) 2006-09-28 2013-03-19 Microsoft Corporation Remote provisioning of information technology
US8593312B2 (en) 2009-09-04 2013-11-26 Estsoft Corp. Method and apparatus for compressing and decompressing block unit data
US8719143B2 (en) 2006-09-28 2014-05-06 Microsoft Corporation Determination of optimized location for services and data
US9746912B2 (en) 2006-09-28 2017-08-29 Microsoft Technology Licensing, Llc Transformations for virtual guest representation

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100689616B1 (en) * 2005-06-07 2007-03-08 주식회사 안철수연구소 Compression file inspecting apparatus and method thereof
US8025572B2 (en) 2005-11-21 2011-09-27 Microsoft Corporation Dynamic spectator mode
US8014308B2 (en) 2006-09-28 2011-09-06 Microsoft Corporation Hardware architecture for cloud services
WO2008039877A1 (en) * 2006-09-28 2008-04-03 Microsoft Corporation Serialization of run-time state
US7680908B2 (en) 2006-09-28 2010-03-16 Microsoft Corporation State replication
US7716150B2 (en) 2006-09-28 2010-05-11 Microsoft Corporation Machine learning system for analyzing and establishing tagging trends based on convergence criteria
US7672909B2 (en) 2006-09-28 2010-03-02 Microsoft Corporation Machine learning system and method comprising segregator convergence and recognition components to determine the existence of possible tagging data trends and identify that predetermined convergence criteria have been met or establish criteria for taxonomy purpose then recognize items based on an aggregate of user tagging behavior
US9746912B2 (en) 2006-09-28 2017-08-29 Microsoft Technology Licensing, Llc Transformations for virtual guest representation
US9253047B2 (en) 2006-09-28 2016-02-02 Microsoft Technology Licensing, Llc Serialization of run-time state
US8775677B2 (en) 2006-09-28 2014-07-08 Microsoft Corporation Transportable web application
US8719143B2 (en) 2006-09-28 2014-05-06 Microsoft Corporation Determination of optimized location for services and data
US8012023B2 (en) 2006-09-28 2011-09-06 Microsoft Corporation Virtual entertainment
US8595356B2 (en) 2006-09-28 2013-11-26 Microsoft Corporation Serialization of run-time state
US8402110B2 (en) 2006-09-28 2013-03-19 Microsoft Corporation Remote provisioning of information technology
US7797453B2 (en) 2006-09-29 2010-09-14 Microsoft Corporation Resource standardization in an off-premise environment
KR100938277B1 (en) * 2007-12-24 2010-01-21 (주)이스트소프트 Method and apparatus for file compression and restoration of compression format
US8593312B2 (en) 2009-09-04 2013-11-26 Estsoft Corp. Method and apparatus for compressing and decompressing block unit data
US8572054B2 (en) 2009-09-21 2013-10-29 Estsoft Corp. Forward compatibility guaranteed data compression and decompression method and apparatus thereof
WO2011034299A3 (en) * 2009-09-21 2011-06-30 (주)이스트소프트 Compression and decompression method and apparatus ensuring upward compatibility
WO2011034299A2 (en) * 2009-09-21 2011-03-24 (주)이스트소프트 Compression and decompression method and apparatus ensuring upward compatibility
KR101016776B1 (en) * 2009-09-21 2011-02-25 (주)이스트소프트 Forward compatibility guaranteed data compression and decompression method and apparatus thereof

Similar Documents

Publication Publication Date Title
KR20040038271A (en) Method for compress and uncompress of file
US8719810B2 (en) Program upgrade system and method for over the air-capable mobile terminal
JP5508370B2 (en) Program upgrade method and system for portable device capable of OTA (Over-the-air)
US20130167133A1 (en) Method, terminal and system for upgrading software version
US20080096537A1 (en) Operating A Mobile Device
CN112165331A (en) Data compression method and device, data decompression method and device, storage medium and electronic equipment
CN110888862A (en) Data storage method, data query method, data storage device, data query device, server and storage medium
KR20000031184A (en) Compression device of short message in mobile communication terminal and transmission method of short message
US7222258B2 (en) Compressing a firmware image
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN112882743A (en) Software upgrading method
JPH10154044A (en) Transfer data compression and expansion system and transfer data compressing and expanding device
CN112269601B (en) BMC (baseboard management controller) and component asset information management method, device and storage medium thereof
JPH09223052A (en) Electronic mail system
CN111176693B (en) Upgrading method of digital television system
CN111722852A (en) Firmware burning method and device and computer readable storage medium
KR20030057746A (en) Method for loading of software in mobile communication system
KR100636518B1 (en) Method for upgrade of firmware in mobile telecommunication terminal
CN112612473B (en) File compression shell adding method, device, equipment and storage medium
TWI790506B (en) System for development interface and data transmission method for development interface
CN113111040B (en) File decompression method and device
JP2954202B1 (en) Program transfer method and transfer storage method in mobile communication base station system
JP4095141B2 (en) Broadcast signal receiving apparatus and method
JP2000137634A (en) Electronic compression and storage device
US20030229707A1 (en) Method and apparatus for rapid file transfer to embedded system

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination