KR101212954B1 - Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it - Google Patents

Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it Download PDF

Info

Publication number
KR101212954B1
KR101212954B1 KR1020110030997A KR20110030997A KR101212954B1 KR 101212954 B1 KR101212954 B1 KR 101212954B1 KR 1020110030997 A KR1020110030997 A KR 1020110030997A KR 20110030997 A KR20110030997 A KR 20110030997A KR 101212954 B1 KR101212954 B1 KR 101212954B1
Authority
KR
South Korea
Prior art keywords
data
file information
file system
portable terminal
data storage
Prior art date
Application number
KR1020110030997A
Other languages
Korean (ko)
Other versions
KR20120113337A (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 KR1020110030997A priority Critical patent/KR101212954B1/en
Publication of KR20120113337A publication Critical patent/KR20120113337A/en
Application granted granted Critical
Publication of KR101212954B1 publication Critical patent/KR101212954B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication

Abstract

임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 저장 및 검색방법과, 그 방법을 이용하여 데이터를 저장 및 검색하는 휴대용 단말기가 개시된다. 그 휴대용단말기는 데이터베이스, 내부파일시스템 및 외부파일시스템 중 적어도 하나로부터 파일정보를 수집하는 데이터 수집부; 그 수집된 파일정보를 저장하되, 상기 내부파일시스템 또는 외부파일시스템으로부터 수집된 파일정보에 대해서는 기존에 저장되어 있던 파일정보와 동기화하여 저장하는 데이터 저장부; 및 그 데이터 저장부로부터 원하는 데이터를 검색하는 데이터 검색부를 포함하고, 데이터 수집부로부터의 데이터 수집, 데이터 전송, 데이터 저장부에서의 데이터 저장 및 데이터 검색부에서의 데이터 검색은 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)를 이용한 동시성제어(concurrency control)에 의해 수행된다.
본 발명에 의한 임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 저장, 검색 방법 및 그를 이용한 휴대용 단말기에 의하면, 휴대용 단말기에서 임베디드 리눅스 상에 설치된 데이터 베이스, 내부 파일시스템, 외부 파일시스템으로부터 파일정보를 수집하는 여러 개의 수집부에서 전달된 데이터를 동시에 저장, 색인 생성할 수 있어 수집 시간을 단축할 수 있을뿐만 아니라 수집 중간에도 검색이 가능하여 데이터 수집 중에도 원하는 데이터를 빠르게 검색할 수 있다.
Disclosed are a data storage and retrieval method for a portable terminal equipped with embedded Linux, and a portable terminal for storing and retrieving data using the method. The portable terminal includes a data collecting unit for collecting file information from at least one of a database, an internal file system, and an external file system; A data storage unit for storing the collected file information, wherein the file information collected from the internal file system or the external file system is synchronized with the previously stored file information; And a data retrieval unit for retrieving desired data from the data storage unit, wherein data collection from the data collection unit, data transmission, data storage in the data storage unit, and data retrieval in the data retrieval unit are provided by embedded Linux. It is performed by concurrency control using IPC.
According to the data storage and retrieval method of a portable terminal equipped with an embedded Linux according to the present invention and a portable terminal using the same, various methods of collecting file information from a database, an internal file system, and an external file system installed on an embedded Linux in the portable terminal are provided. By simultaneously storing and indexing data delivered from two collection units, you can shorten the collection time and search in the middle of the collection, so you can quickly search for the data you want during data collection.

Description

임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 저장 및 검색방법과, 그 방법을 이용하여 데이터를 저장 및 검색하는 휴대용 단말기{Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it}Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it}

본 발명은 휴대용 단말기에서의 데이터 저장 및 검색에 관한 것으로서, 특히 임베디드 리눅스(embedded linux) 계열을 사용하는 휴대용 단말기에서 사용자에게 휴대용 단말기 내부의 데이터를 빠르고 쉽게 저장 및 검색하도록 하는, 임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 자장 및 검색방법과, 그 방법을 이용하여 데이터를 저장 및 검색하는 휴대용 단말기에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data storage and retrieval in a portable terminal. In particular, in a portable terminal using an embedded linux series, the embedded Linux is installed so that a user can quickly and easily store and retrieve data in the portable terminal. The present invention relates to a data magnetic field and retrieval method of a portable terminal, and a portable terminal for storing and retrieving data using the method.

휴대용 단말기, 예를 들어 휴대폰에서 데이터를 검색하기 위해서는 주소록, 일정, 메모, 미디어 등 휴대폰에 설치된 응용프로그램 각각의 데이터베이스와 사진, 음악, 영상 등 멀티미디어 데이터를 저장하고 있는 내부파일시스템 및 외부 파일시스템에 대해 원하는 데이터를 검색한다. In order to retrieve data from a mobile terminal, for example, a mobile phone, an internal file system and an external file system that store multimedia data such as photos, music, and videos, and databases of applications installed on the mobile phone such as address book, calendar, memo, and media. Retrieve the data you want.

이렇게 하는 것은 데이터를 검색할 때 응용프로그램마다 마련된 데이터베이스와 멀티미디어 데이터를 저장하고 있는 파일시스템을 일일이 검색하여 데이터를 수집해야 하므로 속도가 느리다.This is slow when retrieving data, because each application must search the database and file system that stores the multimedia data.

이러한 문제를 해결하기 위해서, 검색하기 전에 응용프로그램 마다 마련된 데이터베이스와 멀티미디어 데이터 등을 저장하고 있는 파일시스템으로부터 검색에 필요한 데이터만을 미리 수집하여 검색대상 데이터를 통합적으로 저장 관리하는 방법이 있다. 예를 들어 주소록 데이터베이스의 테이블을 구성하는 필드 중에서 이름, 메일, 전화번호가 검색대상이면 이러한 필드정보만 추출하고, 미디어에서는 곡명이 주 검색대상이면 곡명정보를 추출하여 미리 통합저장부에 저장한다. 이렇게 해서 검색 요청이 입력되면 상기 미리 준비된 통합저장부를 검색하여 데이터를 검색한다.In order to solve this problem, there is a method of collectively storing and managing data to be searched by collecting only data necessary for searching from a file system storing a database and multimedia data provided for each application before searching. For example, if the name, mail, and phone number of the fields constituting the table of the address book database are to be searched, only such field information is extracted. If the song name is a main search object, the song name information is extracted and stored in the integrated storage in advance. In this way, when a search request is inputted, the previously prepared integrated storage unit is searched for data.

이와 같이 휴대폰에서 검색을 위한 통합저장부를 구현하기 위해서는 데이터 베이스, 내부 파일시스템 및 외부 파일시스템으로부터 데이터를 수집하는 것이 필요하다. 데이터베이스, 내부파일시스템 및 외부파일시스템으로부터 미리 통합저장부를 준비하기 위해서는 상기 데이터베이스, 내부파일시스템 및 외부파일시스템에는 전체(full) 데이터를 저장하고, 검색을 위해서는 별도로 상기 전체 데이터 중에서 통합저장부에 미리 저장될 데이터를 지정하여 저장하는 방법이 있다.As such, in order to implement the integrated storage for retrieval in a mobile phone, it is necessary to collect data from a database, an internal file system, and an external file system. In order to prepare the integrated storage in advance from the database, the internal file system and the external file system, full data is stored in the database, the internal file system and the external file system, and for retrieval, the data is stored in advance in the integrated storage. There is a way to specify and save the data to be stored.

이렇게 하는 것은 데이터를 저장할 때 마다 일일이 검색용 데이터를 지정하여 저장하고 이를 이용하여 사용자가 원하는 데이터를 검색해야 하는 번거로움이 있다.This is cumbersome to designate and save the data for each search whenever the data is saved and use it to retrieve the data the user wants.

본 발명이 해결하려는 과제는 임베디드 리눅스(embedded linux) 계열을 사용하는 휴대용 단말기에서 사용자에게 휴대용 단말기 내부의 데이터를 빠르고 쉽게 검색하도록 하는, 임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 저장 및 검색방법을 제공하는 것이다.The problem to be solved by the present invention is to provide a data storage and retrieval method of a portable terminal equipped with embedded Linux to enable users to quickly and easily retrieve data in the portable terminal in a portable terminal using an embedded linux series will be.

본 발명이 해결하고자 하는 과제는 임베디드 리눅스(embedded linux) 계열을 사용하는 휴대용 단말기에서 사용자에게 휴대용 단말기 내부의 데이터를 빠르고 쉽게 검색하도록 하는 데이터 저장 및 검색 방법을 이용하여 휴대용 단말기 내부의 데이터를 쉽고 빠르게 검색할 수 있게 하는, 임베디드 리눅스가 탑재된 휴대용 단말기를 제공하는 것이다.The problem to be solved by the present invention is to quickly and easily retrieve the data in the portable terminal using a data storage and retrieval method for the user to quickly and easily retrieve the data in the portable terminal in a portable terminal using an embedded linux series It is to provide a portable terminal with embedded Linux that can be searched.

본 발명이 이루고자 하는 다른 기술적 과제는 상기의 임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 수집 및 검색 방법을 휴대용 단말기에서 실행시키기 위한 프로그램을 기록한 휴대용 단말기로 읽을 수 있는 기록 매체를 제공하는 것이다.Another object of the present invention is to provide a recording medium that can be read by a portable terminal in which a program for executing the data collection and retrieval method of the portable terminal with embedded Linux is recorded.

상기 기술적 과제를 해결하기 위한 본 발명에 의한 임베디드 리눅스가 탑재된 휴대용 단말기는, 데이터베이스, 내부파일시스템 및 외부파일시스템 중 적어도 하나로부터 파일정보를 수집하는 데이터 수집부; 상기 데이터 수집부로부터 수집된 파일정보를 저장하되, 상기 내부파일시스템 또는 외부파일시스템으로부터 수집된 파일정보에 대해서는 기존에 저장되어 있던 파일정보와 동기화하여 저장하는 데이터 저장부; 및 상기 데이터 저장부로부터 원하는 데이터를 검색하는 데이터 검색부를 포함한다. 상기 데이터 수집부로부터의 데이터 수집, 데이터 전송, 상기 데이터 저장부에서의 데이터 저장 및 데이터 검색은 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)을 이용하여 요청되고, 복수의 수집부와 검색부가 동시에 데이터 처리를 요청할 경우에는 동시성제어(concurrency control)에 의해 상기 요청된 데이터처리가 수행된다.According to an aspect of the present invention, there is provided a portable terminal equipped with an embedded Linux, including: a data collector configured to collect file information from at least one of a database, an internal file system, and an external file system; A data storage unit for storing file information collected from the data collection unit, and storing the file information collected from the internal file system or an external file system in synchronization with previously stored file information; And a data retrieval unit for retrieving desired data from the data storage unit. Data collection, data transmission, data storage and data retrieval from the data collection unit are requested using interprocess communication (IPC) provided by Embedded Linux, and a plurality of collection units and retrieval units simultaneously retrieve data. When requesting processing, the requested data processing is performed by concurrency control.

상기 데이터 수집부는 임베디드(embedded) 리눅스(Linux) 상의 안드로이드 플랫폼 환경에서 동작하는 응용프로그램에서 데이터베이스 상에 데이터가 생성, 수정, 삭제될 때 트리거링이 발생하게 하여 변경된 데이터를 실시간으로 수집하는 DB 파일정보 수집부; 휴대용 단말기가 부팅할 때 내부파일시스템이 관리하는 디렉토리의 하부 디렉토리까지 모두 검색하여 필요한 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 때 상기 휴대용 단말기의 응용 프로그램에 의해 상기 내부파일시스템의 파일이 생성 또는 삭제될 때 트리거링하여 파일정보를 수집하는 내부파일 정보 수집부; 외부저장장치의 장착 또는 탈착되는 이벤트를 검출하여 외부파일시스템의 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 경우 응용 프로그램에 의해 상기 외부파일시스템의 파일이 생성 또는 삭제될 때에도 트리거링하여 상기 트리거링된 파일정보를 수집하는 외부파일정보 수집부 중 적어도 하나를 포함하는 것이 바람직하다.The data collection unit collects DB file information in real time to collect the changed data by triggering when data is created, modified, or deleted in the database in an application operating in the Android platform environment on embedded Linux. part; When the portable terminal boots up, it searches all the lower directories of the directory managed by the internal file system to collect necessary file information, and when the portable terminal is running, files of the internal file system are generated by an application program of the portable terminal. Or an internal file information collecting unit which collects file information by triggering when deleted; Detects an event of mounting or detaching an external storage device to collect file information of an external file system, and triggers when a file of the external file system is created or deleted by an application program when the portable terminal is running. It is preferable to include at least one of the external file information collecting unit for collecting file information.

상기 본 발명에 의한 휴대용 단말기는 임베디드 리눅스에 설치된 안드로이드 플랫폼 환경에서 동작하여 데이터를 출력하는 응용프로그램을 더 구비하고, 이 때 상기 데이터 저장부는 상기 응용프로그램에서 출력되는 데이터를 저장하는 것이 바람직하다. The portable terminal according to the present invention further includes an application program for outputting data by operating in an Android platform environment installed in the embedded Linux, wherein the data storage unit preferably stores data output from the application program.

상기 기술적 과제를 해결하기 위한 임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 저장 및 검색방법은, 안드로이드 플랫폼 환경에서 동작하는 응용프로그램에 상응하여 분산되어 존재하는 데이터베이스, 내부메모리에 저장된 파일을 관리하는 내부파일시스템, 외부저장장치에 저장된 파일을 관리하는 외부 파일시스템을 구비하는, 임베디드 리눅스가 탑재된 휴대용 단말기에서의 데이터 저장 및 검색방법에 있어서, 상기 데이터베이스, 상기 내부파일시스템 및 상기 외부파일시스템 중 적어도 하나로부터 파일정보를 수집하는 데이터수집단계; 상기 수집된 파일정보를 저장하되, 상기 내부파일시스템 또는 외부파일시스템으로부터 수집된 파일정보에 대해서는 기존에 저장되어 있던 파일정보와 동기화하여 저장하는 단계; 및 상기 저장된 데이터로부터 원하는 데이터를 검색하는 단계를 포함하고, 상기 데이터 수집, 데이터 전송, 데이터 저장 및 데이터 검색은 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)를 통해 요청되고, 복수의 수집부들과 검색부들의 동시 요청은 동시성제어(concurrency control)에 의해 처리되는 것을 특징으로 한다. Data storage and retrieval method of a portable terminal equipped with embedded Linux to solve the above technical problem, an internal file system for managing the files stored in the database, the internal memory distributed in accordance with the application program running in the Android platform environment A data storage and retrieval method in a portable terminal with embedded Linux, comprising: an external file system for managing a file stored in an external storage device, the method comprising: from at least one of the database, the internal file system, and the external file system; A data collection step of collecting file information; Storing the collected file information, and storing the file information collected from the internal file system or an external file system in synchronization with previously stored file information; And retrieving desired data from the stored data, wherein data collection, data transmission, data storage, and data retrieval are requested through interprocess communication (IPC) provided by Embedded Linux, and retrieving a plurality of collection units. The concurrent request of the parts is characterized by being processed by concurrency control.

상기 데이터수집단계는 상기 응용프로그램에서 데이터가 생성, 수정, 삭제될 때 상기 데이터베이스에서 제공하는 트리거에 의해 변경된 데이터를 수집하는 단계; 상기 휴대용 단말기가 부팅할 때 상기 내부파일시스템이 관리하는 디렉토리의 하부 디렉토리까지 모두 검색하여 필요한 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 때 상기 응용 프로그램에 의해 상기 내부 파일시스템의 파일이 생성 또는 삭제될 때 트리거링하여 파일정보를 수집하는 단계; 외부저장장치의 장착 또는 탈착되는 이벤트를 검출하여 상기 외부 파일시스템의 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 경우 응용 프로그램에 의해 상기 외부 파일시스템의 파일이 생성 또는 삭제될 때에도 트리거링하여 상기 변경된 파일정보를 수집하는 단계 중 적어도 하나를 포함하는 것이 바람직하다. The data collecting step may include collecting data changed by a trigger provided by the database when data is generated, modified, or deleted in the application program; When the portable terminal boots up, it searches all the subdirectories of the directory managed by the internal file system to collect necessary file information, and when the portable terminal is running, a file of the internal file system is generated or generated by the application program. Collecting file information by triggering when deleted; Detects an event of mounting or detaching an external storage device to collect file information of the external file system, and triggers when a file of the external file system is created or deleted by an application program when the portable terminal is running. It is preferable to include at least one of the step of collecting file information.

상기 데이터 저장은 임베디드 리눅스에 설치된 안드로이드 플랫폼 환경에서 응용프로그램이 자체적으로 수집 또는 처리한 데이터를 상기 응용프로그램이 직접 데이터 저장부에 저장하는 것을 더 포함하는 것이 바람직하다.The data storage may further include storing the data collected or processed by the application itself in the data storage unit in the Android platform environment installed in the embedded Linux.

그리고 상기 기재된 발명을 휴대용 단말기에서 실행시키기 위한 프로그램을 기록한 휴대용 단말기로 읽을 수 있는 기록매체를 제공한다.The present invention also provides a recording medium that can be read by a portable terminal that records a program for executing the above-described invention in the portable terminal.

본 발명에 의한 임베디드 리눅스가 탑재된 휴대용 단말기의 데이터 저장, 검색 방법 및 그를 이용한 휴대용 단말기에 의하면, 휴대용 단말기에서 임베디드 리눅스 상에 설치된 데이터 베이스, 내부 파일시스템, 외부 파일시스템으로부터 파일정보를 수집하는 여러 개의 수집부에서 전달된 데이터를 동시에 저장, 색인 생성할 수 있어 수집 시간을 단축할 수 있을뿐만 아니라 수집 중간에도 검색이 가능하여 데이터 수집 중에도 원하는 데이터를 빠르게 검색할 수 있다.According to the data storage and retrieval method of a portable terminal equipped with an embedded Linux according to the present invention and a portable terminal using the same, various methods of collecting file information from a database, an internal file system, and an external file system installed on an embedded Linux in the portable terminal are provided. Data can be stored and indexed at the same time from two collection units to reduce collection time and can be retrieved in the middle of collection.

도 1은 임베디드 리눅스(embedded linux) 계열을 사용하는 단말기에서 사용자에게 내부의 데이터를 빠르고 쉽게 검색하는 데이터 수집, 저장, 검색 방법 및 시스템을 설명하기 위한 전체적인 시스템 구성을 도시한 것이다.
도 2는 본 발명에 의한 임베디드 리눅스상에 데이터 저장부와 검색부가 탑재된 휴대용 단말기의 구성에 대한 일실시예를 도시한 것이다.
도 3은 본 발명에 의한 임베디드 리눅스가 탑재된 휴대용 단말기에서의 데이터 수집 및 검색방법을 흐름도로 도시한 것이다.
FIG. 1 illustrates an overall system configuration for explaining a data collection, storage, and retrieval method and system for quickly and easily retrieving internal data to a user in a terminal using an embedded linux series.
2 illustrates an embodiment of a configuration of a portable terminal equipped with a data storage unit and a search unit on an embedded Linux according to the present invention.
3 is a flowchart illustrating a data collection and retrieval method in a portable terminal equipped with embedded Linux according to the present invention.

이하, 첨부된 도면을 참조로 본 발명의 바람직한 실시예를 상세히 설명하기로 한다. 본 명세서에 기재된 실시예와 도면에 도시된 구성은 본 발명의 바람직한 일 실시예에 불과할 뿐이고, 본 발명의 기술적 사상을 모두 대변하는 것은 아니므로, 본 출원시점에 있어서 이들을 대체할 수 있는 다양한 균등물과 변형예들이 있을 수 있음을 이해하여야 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The embodiments described in the present specification and the configurations shown in the drawings are merely preferred embodiments of the present invention and are not intended to represent all of the technical ideas of the present invention and therefore various equivalents And variations are possible.

도 1은 임베디드 리눅스(embedded linux) 계열을 사용하는 단말기에서 사용자에게 내부의 데이터를 빠르고 쉽게 검색하는 데이터 수집, 저장, 검색 방법 및 시스템을 설명하기 위한 전체적인 시스템 구성을 도시한 것이다.FIG. 1 illustrates an overall system configuration for explaining a data collection, storage, and retrieval method and system for quickly and easily retrieving internal data to a user in a terminal using an embedded linux series.

상기 데이터 수집 및 검색 시스템은 데이터 수집부(100, 110), 데이터 저장부(120) 및 데이터 검색부(130)를 포함하여 이루어진다. The data collection and retrieval system includes a data collection unit 100 and 110, a data storage unit 120, and a data retrieval unit 130.

상기 데이터 수집부(100, 110)는 임베디드 리눅스(Embedded linux)를 사용하는 휴대용 단말기에서 데이터 저장을 위해 DBMS(105)를 사용하여 데이터를 저장하거나, 파일시스템(115)을 이용해서 데이터를 저장한다. DBMS 레코드(record)를 저장하는 대표적인 응용프로그램들(140)에는 주소록(phonebook), 일정(calendar), 통화기록부(call log), 문자메시지(SMS), 메모(memo) 등이 있다. 그리고 파일로 저장되는 대표적인 데이터에는 사진, 음악, 영상 등의 멀티미디어 데이터 등이 있다. 상기 응용프로그램들은 일 예로 자바 플랫폼(150) 상에서 설치되어 동작될 수 있다.The data collectors 100 and 110 store data using the DBMS 105 or store the data using the file system 115 in a portable terminal using an embedded linux. . Representative applications 140 for storing DBMS records include a phonebook, a calendar, a call log, a text message (SMS), a memo, and the like. Representative data stored in files include multimedia data such as photos, music, and images. For example, the applications may be installed and operated on the Java platform 150.

상기 데이터 수집부(100, 110)는 DB(105)와 파일시스템(115)로부터 검색하고자 하는 데이터를 자동으로 수집한다. 도 1을 참조하면, DB 데이터수집부(100)와 파일시스템 데이터 수집부(110)에 해당된다.The data collectors 100 and 110 automatically collect data to be retrieved from the DB 105 and the file system 115. Referring to Figure 1, it corresponds to the DB data collector 100 and the file system data collector 110.

상기 데이터 저장부(120)는 데이터 수집부(100, 110)에서 수집된 데이터를 효율적으로 저장하며, 복수의 데이터 수집부에서 수집된 데이터를 동시에 관리할 수 있도록 하기 위해, 데이터 저장부(120)는 상기 복수의 데이터 수집부에 해당하는 복수의 프로세스들이 접속해서 데이터를 처리하는 기능을 제공한다. The data storage unit 120 stores data collected by the data collection units 100 and 110 efficiently, and in order to simultaneously manage the data collected by the plurality of data collection units, the data storage unit 120. Provides a function of accessing a plurality of processes corresponding to the plurality of data collection units to process data.

또한, 빠른 검색을 제공하기 위해 다양한 색인 기능을 제공한다. 도 1을 참조하면, mobile DBS와 통합저장부가 데이터 저장부(120)에 해당된다.It also provides a variety of indexing features to provide fast searching. Referring to FIG. 1, the mobile DBS and the integrated storage correspond to the data storage 120.

상기 데이터 검색부(130)는 데이터 저장부(120)에 있는 데이터를 사용자에게 편리하게 검색해주는 사용자인터페이스를 제공하며, 검색된 정보와 해당 프로그램을 연결해서 사용할 수 있게 한다. 예를 들어 “사람” 이란 단어로 검색을 해서 이승철의 “그런 사람 또 없을테니까.mp3”가 검색된 후 상기 mp3 파일을 클릭(click)하면 오디오 플레이어(audio player)와 연결해서 음악이 실행된다. The data retrieval unit 130 provides a user interface for conveniently retrieving data in the data storage unit 120 to the user, and connects the retrieved information with the corresponding program. For example, if you search for the word "People" and search for Lee Seung-chul's "There's no such person.mp3", click on the mp3 file and the music will be connected to the audio player.

상기 데이터 수집부(100, 110), 데이터 저장부(120), 파일시스템(115), 데이터베이스(105) 등은 안드로이드 리눅스(160)를 커널로 탑재한 휴대단말기에서 설치되어 동작하는 것이 바람직하다.The data collectors 100 and 110, the data storage unit 120, the file system 115, the database 105, and the like are preferably installed and operated in a mobile terminal having the Android Linux 160 as a kernel.

도 2는 본 발명에 의한 임베디드 리눅스상에 데이터 저장부와 검색부가 탑재된 휴대용 단말기의 구성을 도시한 것으로서, 데이터수집부(20), 데이터저장부(250) 및 데이터 검색부(260)를 포함하여 이루어지며, 응용프로그램(240)를 더 포함하는 것이 바람직하다. 2 illustrates a configuration of a portable terminal having a data storage unit and a search unit mounted on an embedded Linux according to the present invention, and includes a data collector 20, a data storage unit 250, and a data search unit 260. In this case, it is preferable to further include an application program 240.

상기 데이터수집부(20)는 데이터베이스(215), 내부파일시스템(225) 및 외부파일시스템(235) 중 적어도 하나로부터 파일정보를 수집하며, DB파일정보수집부(210), 내부파일정보수집부(220) 및 외부파일정보수집부(230) 중 적어도 하나를 포함하여 이루어진다.The data collector 20 collects file information from at least one of the database 215, the internal file system 225, and the external file system 235, and the DB file information collector 210 and the internal file information collector. It comprises at least one of the 220 and the external file information collecting unit 230.

상기 데이터베이스(215)는 임베디드(embedded) 리눅스(Linux) 상의 안드로이드 플랫폼 환경에서 동작하는 응용프로그램에서 데이터가 생성, 수정, 삭제될 때 트리거링(triggering) 되게 하는 트리거를 제공한다. The database 215 provides a trigger that is triggered when data is created, modified, or deleted in an application operating in an Android platform environment on embedded Linux.

상기 DB파일정보수집부(210)는 상기 데이터베이스(215)에서 트리거링이 발생하면 트리거된 데이터를 실시간으로 수집한다.The DB file information collecting unit 210 collects triggered data in real time when triggering occurs in the database 215.

상기 내부파일시스템(225)는 휴대용 단말기의 내부 메모리에 저장된 파일을 관리한다. The internal file system 225 manages files stored in the internal memory of the portable terminal.

상기 내부파일정보수집부(220)는 휴대용 단말기가 부팅(booting) 할 때 내부파일시스템(225)이 관리하는 디렉토리(directory)의 하부 디렉토리까지 모두 검색하여 필요한 파일정보를 수집한다. 또한 상기 내부파일정보수집부(220)는 휴대용 단말기가 구동 중일 때는 휴대용 단말기의 응용프로그램에 의해 내부파일시스템(225)의 파일이 생성 또는 삭제될 때 트리거링하여 파일정보를 수집한다.The internal file information collection unit 220 collects necessary file information by searching all the sub-directories of the directory managed by the internal file system 225 when the portable terminal boots. In addition, the internal file information collecting unit 220 collects file information by triggering when a file of the internal file system 225 is generated or deleted by an application program of the portable terminal while the portable terminal is running.

상기 외부파일시스템(235)은 휴대용 단말기의 외부저장장치에 저장된 파일을 관리한다. The external file system 235 manages files stored in an external storage device of the portable terminal.

상기 외부파일정보수집부(230)는 외부저장장치의 장착 또는 탈착되는 이벤트를 검출하여 외부파일시스템(235)의 파일정보를 수집하고, 휴대용 단말기가 구동 중일 경우에는 응용프로그램에 의해 외부파일시스템(235)의 파일이 생성 또는 삭제될 때에도 트리거링하여 상기 변경된 파일정보를 수집한다. The external file information collecting unit 230 collects file information of the external file system 235 by detecting an event of mounting or detaching an external storage device, and when the portable terminal is running, an external file system ( Triggered when the file of 235 is created or deleted to collect the changed file information.

상기 데이터 저장부(250)는 데이터수집부(20)로부터 수집된 파일정보를 저장한다. 이 때, 상기 내부파일시스템(225) 또는 외부파일시스템(235)으로부터 수집된 파일정보에 대해서는 기존에 데이터 저장부(250)에 저장되어 있던 파일정보와 동기화하여 저장한다. 즉, 상기 데이터수집부(20)는 빠른 데이터 수집을 위해 수집된 데이터가 이전에 수집된 데이터와 동일한 지를 판단하지 않고 데이터저장부(250)로 전달하게 되는데, 데이터 저장부(250)는 데이터 수집부(20)에서 전달된 데이터를 다 받아서 그대로 저장하게 되면 메모리 용량 문제와 데이터 데이터 중복에 의해 저장속도 및 검색속도 등 데이터 처리 성능 문제가 발생할 수 있다. 따라서 데이터 저장부(250)는 데이터 수집부(20)와 응용프로그램(240)으로부터 전달된 데이터가 이미 내부에 동일한 데이터가 있는지 빠르게 판단하는 방법을 제공하며, 이미 저장된 데이터는 저장하지 않게 처리하여 데이터 처리 및 저장 효율성을 높인다. 그 예로는 데이터수집부에서 전달된 데이터가 데이터 저장부에 없을 경우 이를 데이터 저장부에 삽입하는 command 인 insert, 데이터 수집부의 데이터가 데이터 저장부의 데이터와 다를 경우에는 데이터 수집부의 데이터로 교체하는 commnand인 update, 데이터 수집부의 데이터가 데이터 저장부에 존재하면 갱신(update)하고 없으면 삽입(insert)하는 command인 upsert 등을 제공할 수 있다. 그리고 데이터수집부(20)로부터 전달된 데이터를 보고 데이터저장부(250) 내부에 불필요하게 남아있는 데이터를 자동으로 제거한다. 이러한 방법은 동기화에 의해 이루어진다. 상기 동기화 과정은 다음과 같이 이루어진다. 데이터 수집부(20)에서 수집된 파일정보와 데이터저장부(250)에 있는 파일정보를 비교하여, 동일하면 그대로 두고, 상기 수집된 파일정보가 상기 데이터저장부(250)에 존재하지 않으면 상기 수집된 파일정보를 상기 데이터 저장부(250)에 삽입(insert)하고, 상기 수집된 데이터에는 존재하지 않고 상기 데이터 저장부(250)에만 존재하는 경우에는 상기 데이터 저장부에 존재하는 데이터를 삭제(delete)한다. The data storage unit 250 stores file information collected from the data collection unit 20. At this time, the file information collected from the internal file system 225 or the external file system 235 is stored in synchronization with the file information previously stored in the data storage unit 250. That is, the data collector 20 transfers the collected data to the data storage unit 250 without determining whether the collected data is the same as previously collected data for fast data collection. The data storage unit 250 collects the data. If the data transmitted from the unit 20 is received and stored as it is, data processing performance problems such as storage speed and search speed may occur due to memory capacity problems and data data duplication. Therefore, the data storage unit 250 provides a method of quickly determining whether the data transmitted from the data collection unit 20 and the application 240 already have the same data therein. Increase processing and storage efficiency For example, insert that is a command to insert data transmitted from the data collection unit into the data storage unit if there is no data storage unit, or commnand to replace the data collection unit data if the data collection unit is different from the data storage unit. If the data of the data collector of the update, the data collection unit exists in the data storage unit, and if not updated (upsert) that can be provided (insert) can be provided. In addition, the data transmitted from the data collection unit 20 is automatically removed from the data remaining unnecessarily inside the data storage unit 250. This method is achieved by synchronization. The synchronization process is performed as follows. Compare the file information collected by the data collection unit 20 and the file information in the data storage unit 250, and leave the same if the same, if the collected file information does not exist in the data storage unit 250 is collected The inserted file information is inserted into the data storage unit 250, and if the collected file information does not exist in the collected data but exists only in the data storage unit 250, the data existing in the data storage unit is deleted. )do.

상기 데이터검색부(260)는 상기 데이터 저장부(250)로부터 원하는 데이터를 검색한다. 데이터검색부(260)는 사용자가 원하는 키워드(keyword)를 이용해서 데이터저장부(250)로부터 원하는 데이터를 빠르게 검색해서 해당 프로그램과 연결해 주는 것이 바람직하다. 데이터검색부(260)는 사용자가 검색하고 싶은 키워드를 입력하는 창과 검색된 데이터를 보여줄 수 있는 리스트로 구성될 수 있다. 또한 데이터 검색부(260)는 사용자가 검색 키워드를 타이핑(typing)할 때 마다 데이터저장부(250)로부터 데이터를 검색하여 상기 리스트에 출력하게 할 수 있다. 그리고 리스트된 데이터를 클릭(click)하면 해당 프로그램과 함께 응용프로그램을 구동하는 것이 바람직하다. 예를 들면 mp3 파일인 경우에는 오디오 플레이어를 구동한다.The data retrieval unit 260 retrieves desired data from the data storage unit 250. The data retrieval unit 260 preferably uses a keyword desired by the user to quickly retrieve desired data from the data storage unit 250 and connect the corresponding data with the corresponding program. The data search unit 260 may include a window for inputting a keyword that a user wants to search for and a list for displaying the searched data. In addition, the data retrieval unit 260 may retrieve data from the data storage unit 250 and output the data to the list every time a user types a search keyword. When the listed data is clicked, it is preferable to run an application program together with the corresponding program. For example, in the case of mp3 files, the audio player is driven.

상기 데이터 수집부(20)로부터의 데이터 수집, 수집된 데이터의 데이터저장부(250)로의 데이터 전송, 상기 데이터 저장부(250)에서의 데이터 저장 및 데이터 검색부(160)를 통한 데이터 검색은 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)를 통해 처리되고, 복수의 수집부와 검색부에서 동시에 발생하는 요청 사항은 동시성제어(concurrency control)에 의해 처리된다. 즉, 데이터 저장부(250)는 프로세스간 통신(IPC)를 이용한 동시성제어(concurrency control)에 의해, 여러 개의 수집부들 예를 들어 DB파일정보 수집부(210), 내부파일정보 수집부(220), 외부파일정보 수집부(230) 및 응용프로그램(240)으로부터 동시에 데이터가 전달되어도 이를 저장할 수 있다. 데이터 저장부(250)는 다중 프로세스(multi-process)와 연결해서 데이터를 처리함으로써 여러 개의 수집부들로부터 동시에 전달된 데이터를 저장할 수 있다. 상기 연결은 리눅스의 IPC(inter process communication)를 이용해서 데이터 전달이 가능한데, 대표적인 방법으로는 소켓(socket) 또는 공유메모리(shared memory)를 사용할 수 있다. 소켓을 이용하게 되면, 데이터저장부(250)는 서버 기능을 하게 되어 클라이언트 역할을 하는 프로세스와 일대일로 연결되어 데이터를 전송하며, 공유메모리를 이용하게 되면 상기 데이터저장부(250)와 프로세스가 메모리를 공유하여 데이터를 전송 및 저장하게 된다. Data collection from the data collection unit 20, data transmission of the collected data to the data storage unit 250, data storage in the data storage unit 250 and data retrieval through the data retrieval unit 160 are embedded. It is handled through interprocess communication (IPC) provided by Linux, and requests made simultaneously by multiple collectors and searchers are handled by concurrency control. That is, the data storage unit 250 is a plurality of collectors, for example, DB file information collector 210, internal file information collector 220 by concurrency control using interprocess communication (IPC) The data may be stored even when data is simultaneously transmitted from the external file information collecting unit 230 and the application program 240. The data storage unit 250 may store data transmitted simultaneously from multiple collection units by processing data in connection with a multi-process. The connection can be delivered using Linux's inter process communication (IPC), which is typically a socket or shared memory. When the socket is used, the data storage unit 250 functions as a server and is connected one-to-one with a process serving as a client to transmit data. When the shared memory is used, the data storage unit 250 and the process are memory. Share and transfer data.

그리고 상기 응용프로그램(240)은 임베디드 리눅스에 설치된 안드로이드 플랫폼 환경에서 자체적으로 데이터를 수집하고 처리할 수 있으며, 상기 데이터 저장부(250)에 직접 저장하고 검색할 수도 있다,In addition, the application program 240 may collect and process data in an Android platform environment installed in the embedded Linux, and may directly store and retrieve the data in the data storage 250.

상기 데이터 저장부(250)는 상기 DB파일정보수집부(210), 내부파일정보 수집부(220) 및 외부파일정보 수집부(230)로부터 수집된 데이터를 각각 분리하여 저장하는 것이 바람직하다. 하지만 사용환경에 따라서는 상기 데이터 저장부(250)는 상기 DB파일정보수집부(210), 내부파일정보 수집부(220) 및 외부파일정보 수집부(230)로부터 수집된 데이터를 통합하여 저장할 수도 있다. The data storage unit 250 preferably separates and stores data collected from the DB file information collecting unit 210, the internal file information collecting unit 220, and the external file information collecting unit 230. However, depending on the usage environment, the data storage unit 250 may integrate and store data collected from the DB file information collector 210, the internal file information collector 220, and the external file information collector 230. have.

상기 데이터 저장부(250)는 다양한 검색과 빠른 성능을 제공하기 위해 다양한 색인 방법을 제공한다. 특히 데이터 저장부(250)는 수집된 파일정보의 부분 검색을 빠르게 할 수 있게 하기 위해, 인버티드 인덱스(inverted index)와 같은 전문(fulltext) 색인을 제공하는 것이 바람직하다. 상기 색인들은 수집된 파일정보를 저장할 때 자동으로 생성하고 변경하는 것이 바람직하다.The data storage unit 250 provides various indexing methods to provide various searching and fast performance. In particular, the data storage unit 250 may provide a full text index such as an inverted index in order to speed up the partial search of the collected file information. The indexes are preferably created and changed automatically when storing the collected file information.

뿐만아니라, 빠른 검색을 제공하기 위해서 데이터 저장부(150)에 데이터가 저장되는 중에도 데이터 검색부(160)를 통한 데이터 검색이 가능하다. 또한 상술한 바와 같이 데이터 저장부(250)는 다중프로세스와 연결할 수 있는 기능을 동일하게 제공하며, 내부적으로 데이터를 저장하는 중간에도 검색할 수 있도록 데이터 동시 제어처리 기능을 제공하는 것이 바람직하다. 이를 위해, 상기 데이터저장부(250)는 소켓 기반의 클라이언트/서버 기능을 제공하는 임베디드 DBMS와 그 위에서 구동되는 검색엔진을 사용하여 구현가능하다.In addition, in order to provide a fast search, data search through the data search unit 160 may be performed even while data is stored in the data storage unit 150. In addition, as described above, the data storage unit 250 may provide the same function to be connected to multiple processes, and may provide a data simultaneous control processing function so that the data storage 250 may be searched in the middle of storing data internally. To this end, the data storage 250 may be implemented using an embedded DBMS providing a socket-based client / server function and a search engine driven thereon.

도 3은 본 발명에 의한 임베디드 리눅스가 탑재된 휴대용 단말기의 파일시스템으로부터의 데이터 저장 및 검색 방법을 흐름도로 도시한 것이다.3 is a flowchart illustrating a data storage and retrieval method from a file system of a portable terminal equipped with embedded Linux according to the present invention.

상기 임베디드 리눅스가 탑재된 휴대용 단말기는 안드로이드 플랫폼 환경에서 동작하는 응용프로그램에 상응하여 분산되어 존재하는 데이터베이스, 내부메모리에 저장된 파일을 관리하는 내부파일시스템, 외부저장장치에 저장된 파일을 관리하는 외부 파일시스템 중 적어도 하나를 구비하는 것이 바람직하다. The portable terminal equipped with the embedded Linux has a distributed database corresponding to an application program operating in an Android platform environment, an internal file system for managing files stored in an internal memory, and an external file system for managing files stored in an external storage device. It is preferable to have at least one of them.

도 2 및 도 3을 참조하면, 먼저 데이터 수집부(20)는 데이터베이스(215), 내부파일시스템(225) 및 외부파일시스템(235) 중 적어도 하나로부터 파일정보를 수집한다.(S300단계) 2 and 3, first, the data collecting unit 20 collects file information from at least one of the database 215, the internal file system 225, and the external file system 235.

데이터 저장부(250)는 상기 수집된 파일정보를 저장하되, 상기 내부파일시스템(220) 또는 외부파일시스템(230)으로부터 수집된 파일정보에 대해서는 기존에 저장되어 있던 파일정보와 동기화하여 저장한다.(S310단계) 상기 데이터 저장은 프로세스간 통신(IPC)를 이용하여 요청되며, 동시성 제어(concurrency control)에 의해 여러 개의 수집부들로부터 동시에 전달된 데이터를 저장할 수 있다. 상기 데이터 저장부(250)와 프로세스는 소켓이나 공유메모리를 사용하여 연결하여 데이터를 전달할 수 있다. 그리고 빠른 검색을 위한 데이터 저장 공간의 효율성과 데이터 처리 속도향상을 위한 동기화 작업은 상술한 바와 동일하므로 설명을 생략한다.The data storage unit 250 stores the collected file information, and stores the file information collected from the internal file system 220 or the external file system 230 in synchronization with the previously stored file information. The data storage may be requested using interprocess communication (IPC), and may simultaneously store data delivered from multiple collection units by concurrency control. The data storage unit 250 and the process may be connected by using a socket or a shared memory to transfer data. Since the operation of synchronizing the data storage space for faster retrieval and the data processing speed is the same as described above, the description thereof is omitted.

데이터 검색부(260)는 데이터 저장부(250)에 저장된 데이터로부터 원하는 데이터를 검색한다.(S320단계) 상기 데이터 검색은 프로세스간 통신(IPC)를 이용한 동시성제어(concurrency control)에 의해 데이터가 저장되는 중간에도 가능하다. The data retrieval unit 260 retrieves the desired data from the data stored in the data storage unit 250 (step S320). The data retrieval is stored by concurrency control using interprocess communication (IPC). It is possible in the middle of being.

여기서, 상기 데이터 전송, 데이터 저장 및 데이터 검색 뿐만 아니라, 데이터 수집도 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)를 이용한 동시성제어(concurrency control)에 의해 수행된다. Here, the data transfer, data storage and data retrieval as well as data collection are performed by concurrency control using interprocess communication (IPC) provided by Embedded Linux.

그리고 상기 데이터수집(300단계)은 상기 응용프로그램에서 데이터가 생성, 수정, 삭제될 때 데이터베이스(225)에서 제공하는 트리거에 의해 변경된 데이터를 수집할 수 있다. 또한 상기 휴대용 단말기가 부팅할 때 내부파일시스템(225)이 관리하는 디렉토리의 하부 디렉토리까지 모두 검색하여 필요한 파일정보를 수집하거나, 상기 휴대용 단말기가 구동 중일 때 상기 응용 프로그램에 의해 내부 파일시스템(225)의 파일이 생성 또는 삭제될 때 트리거링하여 파일정보를 수집할 수 있다. 또한 외부저장장치의 장착 또는 탈착되는 이벤트를 검출하여 상기 외부 파일시스템(235)의 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 경우 응용 프로그램에 의해 상기 외부 파일시스템(235)의 파일이 생성 또는 삭제될 때에도 트리거링하여 상기 트리거링된 파일정보를 수집할 수도 있다. The data collection step 300 may collect data changed by a trigger provided by the database 225 when data is generated, modified, or deleted in the application program. In addition, when the portable terminal boots up, all the subdirectories of the directory managed by the internal file system 225 are searched to collect necessary file information, or when the portable terminal is running, the internal file system 225 is executed by the application program. File information can be collected by triggering when a file is created or deleted. In addition, by detecting an event of mounting or detaching an external storage device to collect the file information of the external file system 235, when the portable terminal is running, the file of the external file system 235 is generated or created by an application program. The triggered file information may be collected by being triggered even when deleted.

한편, S320단계에서의 데이터 저장은 임베디드 리눅스에 설치된 안드로이드 플랫폼 환경에서 응용프로그램(240)이 자체적으로 수집 또는 처리한 데이터를 직접 데이터 저장부(250)에 저장하는 것에 의해 이루어질 수도 있다. On the other hand, the data storage in step S320 may be made by directly storing the data collected or processed by the application 240 itself in the Android platform environment installed in the embedded Linux in the data storage unit 250.

그리고 데이터베이스(215)로부터 수집된 데이터와 내부파일시스템(225)으로부터 수집된 데이터 및 외부파일시스템(235)으로부터 수집된 데이터는 분리해서 저장하는 것이 바람직하지만, 경우에 따라서는 통합해서 저장할 수도 있다. The data collected from the database 215 and the data collected from the internal file system 225 and the data collected from the external file system 235 are preferably stored separately, but may be integrated and stored in some cases.

본 발명은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터(정보 처리 기능을 갖는 장치를 모두 포함한다)가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 장치의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광데이터 저장장치 등이 있다. The present invention can be embodied as code that can be read by a computer (including all devices having an information processing function) in a computer-readable recording medium. A computer-readable recording medium includes all kinds of recording apparatuses in which data that can be read by a computer system is stored. Examples of computer-readable recording devices include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like.

본 발명은 도면에 도시된 실시예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 등록청구범위의 기술적 사상에 의해 정해져야 할 것이다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

100 : DB 데이터 수집부 110 : 파일시스템 데이터수집부
120 : 데이터 저장부 130 : 데이터 검색부
140 : 응용프로그램 150 : 자바플랫폼
160 : 안드로이드 리눅스 105 : 데이터베이스
115 : 파일시스템 20 ; 데이터수집부
205, 240 : 응용프로그램 210 : DB파일정보 수집부
215 : 데이터베이스 220 : 내부파일정보 수집부
225 : 내부파일시스템 230 : 외부파일정보 수집부
235 : 외부파일시스템 250 : 데이터 저장부
260 : 데이터 검색부
100: DB data collector 110: File system data collector
120: data storage unit 130: data search unit
140: application 150: Java platform
160: Android Linux 105: Database
115: filesystem 20; Data collector
205, 240: Application 210: DB file information collection unit
215: database 220: internal file information collection unit
225: internal file system 230: external file information collection unit
235: external file system 250: data storage
260: data retrieval unit

Claims (12)

데이터베이스, 내부파일시스템 및 외부파일시스템 중 적어도 하나로부터 파일정보를 수집하는 데이터 수집부;
상기 데이터 수집부로부터 수집된 파일정보를 저장하되, 상기 내부파일시스템 또는 외부파일시스템으로부터 수집된 파일정보에 대해서는 기존에 저장되어 있던 파일정보와 동기화하여 저장하는 데이터 저장부; 및
상기 데이터 저장부로부터 원하는 데이터를 검색하는 데이터 검색부를 포함하고,
상기 데이터 수집부로부터의 데이터 수집, 데이터 전송, 상기 데이터 저장부에서의 데이터 저장 및 데이터 검색은 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)를 통해 요청되고 복수의 수집부들과 검색부들의 동시 요청은 동시성제어(concurrency control)에 의해 처리되며,
상기 데이터 수집부는
임베디드(embedded) 리눅스(Linux) 상의 안드로이드 플랫폼 환경에서 동작하는 응용프로그램에서 데이터가 생성, 수정, 삭제될 때 트리거링 되는 데이터베이스에서 트리거링이 발생하면 변경된 데이터를 실시간으로 수집하는 DB 파일정보 수집부;
휴대용 단말기가 부팅할 때 내부파일시스템이 관리하는 디렉토리의 하부 디렉토리까지 모두 검색하여 필요한 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 때 상기 휴대용 단말기의 응용 프로그램에 의해 상기 내부파일시스템의 파일이 생성 또는 삭제될 때 트리거링하여 파일정보를 수집하는 내부파일 정보 수집부; 및
외부저장장치의 장착 또는 탈착되는 이벤트를 검출하여 외부파일시스템의 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 경우 응용 프로그램에 의해 상기 외부파일시스템의 파일이 생성 또는 삭제될 때에도 트리거링하여 상기 변경된 파일정보를 수집하는 외부파일정보 수집부 중 적어도 하나를 포함하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기.
A data collecting unit collecting file information from at least one of a database, an internal file system, and an external file system;
A data storage unit for storing file information collected from the data collection unit, and storing the file information collected from the internal file system or an external file system in synchronization with previously stored file information; And
A data retrieval unit for retrieving desired data from the data storage unit,
Data collection, data transmission, data storage and data retrieval from the data collection unit are requested through interprocess communication (IPC) provided by Embedded Linux, and simultaneous requests from multiple collection units and retrieval units Handled by concurrency control,
The data collecting unit
DB file information collecting unit for collecting the changed data in real time when the triggering occurs in the database that is triggered when the data is generated, modified, deleted in the application running in the Android platform environment (embedded) Linux (Linux);
When the portable terminal boots up, it searches all the lower directories of the directory managed by the internal file system to collect necessary file information, and when the portable terminal is running, files of the internal file system are generated by an application program of the portable terminal. Or an internal file information collecting unit which collects file information by triggering when deleted; And
Detects an event of mounting or detaching an external storage device to collect file information of an external file system, and triggers when a file of the external file system is created or deleted by an application program when the portable terminal is running. A portable terminal equipped with embedded Linux, characterized in that it comprises at least one of an external file information collecting unit for collecting information.
삭제delete 제1항에 있어서,
임베디드 리눅스에 설치된 안드로이드 플랫폼 환경에서 데이터를 수집하고 처리하는 응용프로그램을 더 구비하고,
상기 데이터 저장부는
상기 응용프로그램이 자체적으로 수집하고 처리한 데이터를 상기 응용프로그램으로부터 직접 수신하여 저장하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기.
The method of claim 1,
It is equipped with an application that collects and processes data in the Android platform environment installed in embedded Linux.
The data storage unit
The portable terminal with embedded Linux, characterized in that for receiving and storing data collected and processed by the application program directly from the application program.
제1항에 있어서, 상기 동기화는
상기 데이터 수집부에서 수집된 파일정보와 상기 저장부에 있는 파일정보를 비교하여, 동일하면 그대로 두고, 상기 수집된 파일정보가 상기 데이터 저장부에 존재하지 않으면 상기 수집된 파일정보를 상기 데이터 저장부에 삽입(insert)하고, 상기 수집된 데이터에는 존재하지 않고 상기 데이터 저장부에만 존재하는 경우에는 상기 데이터 저장부에 존재하는 데이터를 삭제(delete)하는 것에 의해 이루어지는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기.
The method of claim 1 wherein the synchronization is
Compare the file information collected by the data collection unit with the file information in the storage unit, and leave the same if they are the same. If the collected file information does not exist in the data storage unit, the collected file information is stored in the data storage unit. And embedded in the data storage unit, when the data exists in the data storage unit instead of the collected data, and deletes the data existing in the data storage unit. Handheld terminal.
제1항에 있어서, 상기 데이터 저장부는
상기 DB파일정보 수집부, 내부파일정보 수집부 및 외부파일정보 수집부로부터 수집된 데이터를 각각 분리하거나 통합해서 저장하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기.
The method of claim 1, wherein the data storage unit
The portable terminal with embedded Linux, characterized in that to separate or integrate the data collected from the DB file information collecting unit, the internal file information collecting unit and the external file information collecting unit, respectively.
제1항에 있어서, 상기 데이터 저장부는
수집된 파일정보의 부분 검색을 빠르게 할 수 있는 전문(fulltext) 색인을 제공하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기.
The method of claim 1, wherein the data storage unit
A portable terminal equipped with embedded Linux, characterized by providing a full-text index to speed up partial retrieval of collected file information.
제6항에 있어서, 상기 데이터 저장부는
상기 수집된 파일정보를 저장할 때 상기 색인을 생성하고 변경하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기.
The method of claim 6, wherein the data storage unit
And a portable terminal having an embedded Linux, wherein the index is generated and changed when the collected file information is stored.
안드로이드 플랫폼 환경에서 동작하는 응용프로그램에 상응하여 분산되어 존재하는 데이터베이스, 내부메모리에 저장된 파일을 관리하는 내부파일시스템, 외부저장장치에 저장된 파일을 관리하는 외부 파일시스템을 구비하는, 임베디드 리눅스가 탑재된 휴대용 단말기에서의 데이터 저장 및 검색방법에 있어서,
상기 데이터베이스, 상기 내부파일시스템 및 상기 외부파일시스템 중 적어도 하나로부터 파일정보를 수집하는 데이터수집단계;
상기 수집된 파일정보를 저장하되, 상기 내부파일시스템 또는 외부파일시스템으로부터 수집된 파일정보에 대해서는 기존에 저장되어 있던 파일정보와 동기화하여 저장하는 단계; 및
상기 저장된 데이터로부터 원하는 데이터를 검색하는 단계를 포함하고,
상기 데이터 수집, 데이터 전송, 데이터 저장 및 데이터 검색은 임베디드 리눅스에서 제공하는 프로세스간 통신(IPC)를 통해 요청되고 상기 요청들이 동시에 발생될 경우에는 동시성제어(concurrency control)에 의해 처리되며,
상기 데이터수집단계는
상기 응용프로그램에서 데이터가 생성, 수정, 삭제될 때 상기 데이터베이스에서 제공하는 트리거에 의해 변경된 데이터를 수집하는 단계;
상기 휴대용 단말기가 부팅할 때 상기 내부파일시스템이 관리하는 디렉토리의 하부 디렉토리까지 모두 검색하여 필요한 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 때 상기 응용 프로그램에 의해 상기 내부 파일시스템의 파일이 생성 또는 삭제될 때 트리거링하여 파일정보를 수집하는 단계; 및
외부저장장치의 장착 또는 탈착되는 이벤트를 검출하여 상기 외부 파일시스템의 파일정보를 수집하고, 상기 휴대용 단말기가 구동 중일 경우 응용 프로그램에 의해 상기 외부 파일시스템의 파일이 생성 또는 삭제될 때에도 트리거링하여 상기 변경된 파일정보를 수집하는 단계 중 적어도 하나를 포함하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기에서의 데이터 저장 및 검색방법.
Embedded Linux is equipped with an existing database distributed according to an application running on the Android platform environment, an internal file system for managing files stored in internal memory, and an external file system for managing files stored in external storage devices. In the data storage and retrieval method in a portable terminal,
A data collection step of collecting file information from at least one of the database, the internal file system, and the external file system;
Storing the collected file information, and storing the file information collected from the internal file system or an external file system in synchronization with previously stored file information; And
Retrieving desired data from the stored data,
The data collection, data transmission, data storage, and data retrieval are requested through interprocess communication (IPC) provided by Embedded Linux, and when the requests are generated simultaneously, they are processed by concurrency control.
The data collection step
Collecting data changed by a trigger provided by the database when data is generated, modified, or deleted in the application program;
When the portable terminal boots up, it searches all the subdirectories of the directory managed by the internal file system to collect necessary file information, and when the portable terminal is running, a file of the internal file system is generated or generated by the application program. Collecting file information by triggering when deleted; And
Detects an event of mounting or detaching an external storage device to collect file information of the external file system, and triggers when a file of the external file system is created or deleted by an application program when the portable terminal is running. A data storage and retrieval method in a portable terminal equipped with embedded Linux, characterized in that it comprises at least one of collecting file information.
삭제delete 제8항에 있어서, 상기 데이터 저장은
임베디드 리눅스에 설치된 안드로이드 플랫폼 환경에서 응용프로그램이 자체적으로 수집 또는 처리한 데이터를 상기 응용프로그램으로부터 직접 데이터 저장부에 저장하는 것을 더 포함하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기에서의 데이터 저장 및 검색방법.
The method of claim 8, wherein the data storage is
And storing the data collected or processed by the application program in the Android platform environment installed in the embedded Linux, directly from the application program to a data storage unit. Search method.
제8항에 있어서, 상기 데이터베이스로부터 수집된 데이터와 내부파일시스템으로부터 수집된 데이터 및 외부파일시스템으로부터 수집된 데이터는 분리해서 저장되거나 통합해서 저장하는 것을 특징으로 하는 임베디드 리눅스가 탑재된 휴대용 단말기에서의 데이터 저장 및 검색방법.The portable terminal of claim 8, wherein the data collected from the database, the data collected from the internal file system, and the data collected from the external file system are separately stored or integrated and stored. How to store and retrieve data. 제8항에 기재된 발명을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.
A computer-readable recording medium having recorded thereon a program for executing the invention according to claim 8 on a computer.
KR1020110030997A 2011-04-05 2011-04-05 Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it KR101212954B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020110030997A KR101212954B1 (en) 2011-04-05 2011-04-05 Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020110030997A KR101212954B1 (en) 2011-04-05 2011-04-05 Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it

Publications (2)

Publication Number Publication Date
KR20120113337A KR20120113337A (en) 2012-10-15
KR101212954B1 true KR101212954B1 (en) 2012-12-18

Family

ID=47282903

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020110030997A KR101212954B1 (en) 2011-04-05 2011-04-05 Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it

Country Status (1)

Country Link
KR (1) KR101212954B1 (en)

Also Published As

Publication number Publication date
KR20120113337A (en) 2012-10-15

Similar Documents

Publication Publication Date Title
US11645183B1 (en) User interface for correlation of virtual machine information and storage information
CN101067822B (en) Method and system for hierarchical storage management of metadata
CA2722643C (en) Systems and methods for thumbnail management
EP2985694B1 (en) Application program management method and terminal device
US9697258B2 (en) Supporting enhanced content searches in an online content-management system
WO2012149884A1 (en) File system, and method and device for retrieving, writing, modifying or deleting file
US20140222824A1 (en) Method and apparatus for portable index on a removable storage medium
JP2004310621A (en) File access method, and program for file access in storage system
CA2458416A1 (en) Techniques for restoring data based on contents and attributes of the data
JP2009505289A (en) Snapshot indexing
CN103077199A (en) File resource searching and locating method and device
CN109033360B (en) Data query method, device, server and storage medium
US7844596B2 (en) System and method for aiding file searching and file serving by indexing historical filenames and locations
US11151081B1 (en) Data tiering service with cold tier indexing
KR20090063733A (en) Method recovering data server at the applying multiple reproduce dispersion file system and metadata storage and save method thereof
US9870422B2 (en) Natural language search
WO2014145099A1 (en) Shared media crawler database method and system
CN114610680A (en) Method, device and equipment for managing metadata of distributed file system and storage medium
JP2013073557A (en) Information search system, search server and program
CN103020186A (en) File searching method, device and equipment based on embedded device
KR101212954B1 (en) Method for storing and searching data in mobile device embedded Linux, and mobile device for storing and searching data using it
KR101212953B1 (en) Method for collecting data from file system in mobile device embedded Linux, and mobile device for collecting data using it
KR100843075B1 (en) Apparatus and method for managing data
KR101258443B1 (en) Method for collecting data in mobile device embedded Linux, and mobile device for collecting data using it
KR20140032862A (en) Apparatus and method for providing integrated cloud service

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee