KR101765042B1 - Access management method of memory and service device thereof - Google Patents

Access management method of memory and service device thereof Download PDF

Info

Publication number
KR101765042B1
KR101765042B1 KR1020160127072A KR20160127072A KR101765042B1 KR 101765042 B1 KR101765042 B1 KR 101765042B1 KR 1020160127072 A KR1020160127072 A KR 1020160127072A KR 20160127072 A KR20160127072 A KR 20160127072A KR 101765042 B1 KR101765042 B1 KR 101765042B1
Authority
KR
South Korea
Prior art keywords
data
block
storage unit
read
idle time
Prior art date
Application number
KR1020160127072A
Other languages
Korean (ko)
Other versions
KR20160119037A (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 KR1020160127072A priority Critical patent/KR101765042B1/en
Publication of KR20160119037A publication Critical patent/KR20160119037A/en
Application granted granted Critical
Publication of KR101765042B1 publication Critical patent/KR101765042B1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0637Permissions

Abstract

본 발명은 메모리 카드와 같은 저장 매체에 대한 읽기 및 쓰기를 위한 접근 시간을 최소화하여 데이터 파손을 최소화할 수 있는 저장 매체에 대한 접근 관리 방법 및 이를 적용한 단말 장치에 관한 것으로서, 단말 장치가 저장 매체와의 입출력 인터페이스를 제공하는 입출력 인터페이스부와, 입출력 인터페이스부를 통해 저장 매체에 대한 데이터 읽기 및 쓰기를 수행하되, 기 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행하는 접근 관리 모듈을 구비한 제어부를 포함하도록 구현된다. The present invention relates to a method and apparatus for managing access to a storage medium that minimizes data corruption by minimizing access time for reading and writing to a storage medium such as a memory card and a terminal apparatus using the method. A control unit having an access management module for reading and writing data from / to a storage medium through an input / output interface unit and for reading and writing data in blocks of a predetermined size, .

Description

저장부에 대한 접근 관리 방법 및 이를 실행하는 서비스 장치{Access management method of memory and service device thereof}Technical Field [0001] The present invention relates to an access management method for a storage unit,

본 발명은 저장 매체에 대한 접근 관리 방법, 이를 적용한 단말 장치 및 서비스 시스템에 관한 것으로서, 더욱 상세하게는 저장 매체에 대한 읽기 및 쓰기를 위한 접근 시간을 최소화하여 데이터 파손을 최소화할 수 있는 저장 매체에 대한 접근 관리 방법, 이를 적용한 단말 장치 및 서비스 시스템에 관한 것이다.The present invention relates to a method for managing access to a storage medium, a terminal apparatus and a service system using the same, and more particularly, to a storage medium capable of minimizing data destruction by minimizing access time for reading and writing An access management method for the same, and a terminal device and a service system using the same.

최근 전자 및 통신 기술이 발달하면서, 휴대폰, 디지털 카메라, MP3 플레이어, DMB 수신기, 네비게이션 장치, PDA 장치, 캠코더 등 다양한 휴대 장치의 사용이 보편화되어 있다.2. Description of the Related Art With the recent development of electronic and communication technologies, various portable devices such as mobile phones, digital cameras, MP3 players, DMB receivers, navigation devices, PDA devices, and camcorders have become popular.

더불어, 이러한 휴대 장치에서 사진, 동영상, 문서, 오디오 파일 등과 같은 다양한 사용자 데이터를 저장할 수 있는 저장 수단이 필요하게 되었다. 이러한 저장 수단은 전력이 없어도 저장된 데이터가 유지되어야 한다. 이에 따라서, 다양한 휴대 장치에서 사용할 수 있는 다양한 형태의 저장 매체가 등장하여 사용되고 있다.In addition, there is a need for a storage device capable of storing various user data such as photographs, moving pictures, documents, audio files and the like in such a portable device. Such storage means must retain the stored data even without power. Accordingly, various types of storage media that can be used in various portable apparatuses have been introduced and used.

대표적으로 사용되는 저장 매체의 예를 들면, SD(Secure Digital) 메모리 카드, 스마트 미디어(Smart Media) 카드, 컴팩트 플래시(CF: CompactFlash) 메모리 카드, 메모리 스틱 등이 있다.Examples of storage media typically used include a Secure Digital (SD) memory card, a Smart Media card, a CompactFlash (CF) memory card, a memory stick, and the like.

이 중에서 SD 메모리 카드는 SCA(SD Card Association)에서 관리하는 플래시 메모리 카드로서, 크기가 작고 가볍기 때문에, 휴대 전화, 디지털 카메라, 디지털 캠코더 등 소형 디지털 기기의 저장 장치에 주로 사용된다. SD 메모리 카드의 파일 시스템은 FAT16이며, 데이터 보안을 위한 암호 설정이 가능하다.Among these, the SD memory card is a flash memory card managed by the SCA (SD Card Association). Since the SD memory card is small and light in weight, it is mainly used for a storage device of a small digital device such as a mobile phone, a digital camera, and a digital camcorder. The file system of the SD memory card is FAT16, and password setting for data security is possible.

그런데 기존에는 이러한 메모리 카드에 정보를 기록하거나, 메모리 카드로부터 정보를 읽어올 때, 메모리 카드의 특성에 맞춘 적절한 접근 제어 없이, 해당 휴대 단말 장치의 운영체제가 제공하는 API(Application Programming Interface)를 이용하여, 다른 저장 장치에서 기록하는 방식과 동일하게 처리되었다.Conventionally, when information is written to or read from such a memory card, an API (Application Programming Interface) provided by the operating system of the portable terminal device is used without proper access control according to the characteristics of the memory card , The same processing as that in the other storage device was performed.

이는 최근과 같이 메모리 카드가 점차 대용량화 및 고속화 되어가고, 메모리 카드에 대용량의 데이터가 쓰여지는 경우에 대한 동작이 많아짐에 따라서, 데이터의 읽기 및 쓰기가 반복되는 도중에 메모리 카드의 파일 시스템이 파손되어, 전송중인 데이터는 물론 메모리 카드에 기록된 데이터 전체가 손실되는 경우가 종종 발생하고 있다.This is because the memory card gradually becomes larger and faster as in recent years, and as the operation for a large amount of data is written to the memory card, the file system of the memory card is damaged during reading and writing of data repeatedly, There is a case where the entire data recorded on the memory card as well as the data being transmitted is lost.

한국공개특허공보 제10-2000-0032881호, 공개일 2000년 06월 15일 (명칭: 휴대용 단말기의 데이터 저장장치 및 방법)Korean Patent Laid-Open Publication No. 10-2000-0032881, published Jun. 15, 2000 (Name: Data storage device and method of portable terminal)

본 발명은, 저장 매체에 대한 안정성을 높이기 위하여 제안된 것으로서, 저장 매체에 대한 읽기 및 쓰기를 위한 접근 시간을 최소화하여 데이터 파손을 최소화할 수 있는 저장 매체에 대한 접근 관리 방법, 이를 적용한 단말 장치 및 서비스 시스템을 제공하고자 한다.The present invention relates to a method for managing access to a storage medium that minimizes data destruction by minimizing access time for reading and writing to a storage medium, Service system.

본 발명은 과제를 해결하기 위한 수단으로서, 저장 매체에 대한 데이터의 읽기 및 쓰기를 수행하되, 기 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행하는 서비스 장치; 및 서비스 장치에 접속하여 서비스 장치로 데이터를 전송하거나 서비스 장치로부터 데이터를 수신하는 단말 장치를 포함하는 서비스 시스템을 제공한다.According to an aspect of the present invention, there is provided a service apparatus for reading and writing data on a storage medium, the apparatus comprising: And a terminal device connected to the service device to transmit data to the service device or receive data from the service device.

또한 본 발명은 과제를 해결하기 위한 다른 수단으로서, 데이터를 저장하는 저장부; 단말 장치로부터 데이터를 수신하여 저장부에 쓰기를 지시하거나, 저장부로부터 읽어 온 데이터를 단말 장치로 전송하는 서비스 제공부; 및 저장부에 접근하여 기 설정된 크기의 블록 단위로 데이터에 대한 읽기 또는 쓰기를 수행하는 접근 관리부를 포함하는 서비스 장치를 제공한다.According to another aspect of the present invention, there is provided a data processing apparatus including: a storage unit for storing data; A service providing unit that receives data from a terminal device and instructs the storage unit to write data, or transmits data read from the storage unit to a terminal device; And an access management unit accessing the storage unit to perform reading or writing of data in blocks of a predetermined size.

또한, 본 발명은 과제를 해결하기 위한 또 다른 수단으로서, 저장 매체와의 입출력 인터페이스를 제공하는 입출력 인터페이스부; 입출력 인터페이스부를 통해 저장 매체에 대한 데이터 읽기 및 쓰기를 수행하되, 기 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행하는 접근 관리 모듈을 구비한 제어부를 포함하는 것을 특징으로 하는 단말 장치를 제공한다.According to another aspect of the present invention, there is provided an information processing apparatus comprising: an input / output interface unit for providing an input / output interface with a storage medium; And a control unit having an access management module for reading and writing data from and to the storage medium through the input / output interface unit, and for reading and writing data in block units of a predetermined size .

본 발명에 의한 단말 장치에 있어서, 접근 관리 모듈은 블록 단위의 데이터 읽기 및 쓰기 동작 사이에 유휴 구간을 두어, 블록 단위의 데이터 읽기 및 쓰기 동작이 수행되는 동안만 저장 매체의 해당 파일에 접근하고, 유휴 구간에서는 파일에 접근하지 않는 것을 특징으로 한다.In the terminal device according to the present invention, the access management module accesses the corresponding file of the storage medium only while the data read and write operations are performed on a block-by-block basis, And the file is not accessed in the idle section.

본 발명에 의한 단말 장치에 있어서, 접근 관리 모듈은 파일 접근 정보, 시스템 환경 정보, 응용 프로그램 동작 상황 및 대기중인 데이터 블록의 상태 중에서 하나 이상의 고려하여 파일 접근 시점을 제어하는 것을 특징으로 한다.In the terminal device according to the present invention, the access management module controls file access time by considering at least one of file access information, system environment information, application program operation status, and status of waiting data blocks.

본 발명에 의한 단말 장치는, 제어부에 의해 실행되어, 저장 매체에 대한 데이터의 읽기 또는 쓰기를 요청하는 응용 프로그램을 저장하는 저장부를 더 포함할 수 있다.The terminal device according to the present invention may further include a storage unit, which is executed by the control unit and stores an application program for requesting reading or writing of data with respect to the storage medium.

본 발명에 의한 단말 장치는, 입출력 인터페이스부에 물리적으로 연결되는 저장 매체를 더 포함할 수 있다.The terminal device according to the present invention may further include a storage medium physically connected to the input / output interface unit.

본 발명에 의한 단말 장치에 있어서, 저장 매체는 SD(Secure Digital) 메모리 카드, 스마트 미디어(smartmedia) 카드, 컴팩트 플래시(CF: CompactFlash) 메모리 카드, 메모리 스틱, USB 메모리 카드, 스마트 카드, SIM(Subscriber identification module) 카드, 멀티미디어 메모리 카드(MMC: Multi Media Card) 중에서 어느 하나일 수 있다.In the terminal device according to the present invention, the storage medium may be a secure digital (SD) memory card, a smart media card, a compact flash (CF) memory card, a memory stick, a USB memory card, an identification module card, and a multimedia memory card (MMC: Multi Media Card).

더하여, 본 발명은 과제를 해결하기 위한 수단으로서, 저장 매체에 대한 접근 제어를 위한 블록 크기 및 유휴 시간을 설정하는 단계; 저장 매체에 대한 데이터의 읽기 또는 쓰기 요청을 확인하는 단계; 및 읽기 또는 쓰기 요청된 데이터에 대하여 상기 설정된 블록 크기 및 유휴 시간에 따라서 블록 단위로 저장 매체에 읽기 또는 쓰기를 수행하는 단계를 포함하는 것을 특징으로 하는 저장 매체에 대한 데이터 접근 관리 방법을 제공한다.In addition, the present invention provides, as means for solving the problems, a method for controlling access to a storage medium, comprising: setting a block size and an idle time for access control to a storage medium; Confirming a read or write request of data to the storage medium; And reading or writing the data requested to be read or written to the storage medium in block units according to the set block size and idle time.

본 발명의 저장 매체에 대한 데이터 접근 관리 방법은, 응용 프로그램이 실행되어, 데이터의 읽기 또는 쓰기를 요청하는 단계를 더 포함할 수 있다.The method of managing data access to a storage medium according to the present invention may further include a step of requesting an application program to be executed to read or write data.

본 발명의 저장 매체에 대한 데이터 접근 관리 방법에 있어서, 블록 크기는 시스템 호환성 및 안정성을 고려하여 설정되는 것을 특징으로 한다.In the data access management method for a storage medium according to the present invention, the block size is set in consideration of system compatibility and stability.

본 발명의 저장 매체에 대한 데이터 접근 관리 방법에 있어서, 저장 매체에 읽기 또는 쓰기를 수행하는 단계는, 읽기 또는 쓰기 요청된 데이터에 대하여, 설정된 블록 크기를 갖는 다수의 데이터 블록으로 블록화하는 단계를 포함하여 이루어질 수 있다.In the method of managing data access to a storage medium according to the present invention, the step of performing reading or writing on a storage medium includes a step of blocking the data requested to be read or written into a plurality of data blocks having a set block size .

본 발명의 저장 매체에 대한 데이터 접근 관리 방법에 있어서, 저장 매체에 읽기 또는 쓰기를 수행하는 단계는, 다수의 데이터 블록을 일렬로 배열하여 직렬화하는 단계를 더 포함할 수 있다.In the method of managing data access to a storage medium according to the present invention, the step of performing reading or writing on a storage medium may further include serializing a plurality of data blocks arranged in a line.

본 발명의 저장 매체에 대한 데이터 접근 관리 방법에 있어서, 저장 매체에 읽기 또는 쓰기를 수행하는 단계는, 한 데이터 블록에 대한 읽기 또는 쓰기를 수행하는 단계와, 데이터 블록에 대한 읽기 또는 쓰기가 완료되면 파일을 닫고, 기 설정된 유휴 시간 동안 대기하는 단계와, 유휴 시간이 경과하면 대기중인 데이터 블록이 존재하는 지를 확인하여, 대기중인 데이터 블록이 존재하면 대기중인 데이터 블록에 대한 읽기 또는 쓰기를 수행하도록 하는 단계를 포함하여 이루어질 수 있다.In the method of managing data access to a storage medium according to the present invention, the step of performing reading or writing on a storage medium includes the steps of: reading or writing a data block; Closing the file and waiting for a predetermined idle time, and checking whether there is a waiting data block when the idle time elapses, so that if there is a waiting data block, reading or writing is performed on the waiting data block Step < / RTI >

본 발명은 메모리 카드를 포함하는 저장 매체에 대한 데이터 읽기 및 쓰기를 수행하는데 있어서, 시스템 호환성 및 안정성을 고려하여 블록의 크기를 설정하고, 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행하며, 블록 단위로 데이터의 읽기 및 쓰기를 수행한 후에는 유휴 시간을 두어, 유휴 시간 동안 파일을 열지 않도록 함으로써, 대용량의 데이터를 저장하거나 읽는 경우에도 적절한 접근 관리를 통해 전송중인 데이터나 저장된 데이터의 손실을 최소화할 수 있으며, 그 결과 메모리 카드와 같은 저장 매체의 사용에 대한 안정성을 향상시킬 수 있는 우수한 효과가 있다.The present invention relates to a method for reading and writing data on a storage medium including a memory card, the method comprising: setting a block size in consideration of system compatibility and stability; reading and writing data in block units of a set size; After reading and writing data in block units, idle time is set so that the file is not opened during the idle time, so that even if a large amount of data is stored or read, And as a result, there is an excellent effect that the stability against use of a storage medium such as a memory card can be improved.

더하여, 본 발명은 파일 접근 정보는 물론, 시스템 환경과 응용 프로그램의 동작 상황, 대기중인 메모리 블록의 상태에 근거하여 메모리 카드와 같은 저장 매체의 파일에 대한 접근 시기를 제어함으로써, 파일 접근 시간을 최소화하여 메모리 카드와 같은 저장 매체에 대한 안정성을 향상시킬 수 있다.In addition, the present invention minimizes file access time by controlling the access timing of files on a storage medium such as a memory card based on the system environment, the operation status of application programs, and the status of waiting memory blocks as well as file access information Thereby improving the stability of a storage medium such as a memory card.

도 1은 본 발명의 일 실시 예에 따른 서비스 시스템의 구조를 나타낸 블록도이다.
도 2는 본 발명의 일 실시 예에 따른 서비스 시스템에 있어서, 서비스 장치의 구성을 나타낸 블록도이다.
도 3은 본 발명의 다른 실시 예에 따른 단말 장치의 구성을 나타낸 블록도이다.
도 4는 본 발명의 다른 실시 예에 따른 단말 장치에 있어서, 접근 관리 모듈과 다른 구성 요소 간의 연결 관계를 나타내는 블록도이다.
도 5는 본 발명의 다른 실시 예에 따른 저장 매체에 대한 접근 관리 방법을 설명하기 위한 모식도이다.
도 6은 본 발명의 또 다른 실시 예에 따른 저장 매체에 대한 접근 관리 방법을 나타낸 순서도이다.
도 7은 본 발명의 또 다른 실시 예에 따른 저장 매체에 대한 접근 관리 방법에 있어서, 데이터 읽기/쓰기 단계를 상세하게 나타낸 순서도이다.
1 is a block diagram illustrating a structure of a service system according to an embodiment of the present invention.
2 is a block diagram illustrating a configuration of a service apparatus in a service system according to an embodiment of the present invention.
3 is a block diagram illustrating a configuration of a terminal apparatus according to another embodiment of the present invention.
4 is a block diagram illustrating a connection relationship between an access management module and other components in a terminal device according to another embodiment of the present invention.
5 is a schematic diagram for explaining an access management method for a storage medium according to another embodiment of the present invention.
6 is a flowchart illustrating an access management method for a storage medium according to another embodiment of the present invention.
FIG. 7 is a detailed flowchart illustrating a data read / write step in a method for managing access to a storage medium according to another embodiment of the present invention.

이하 본 발명의 바람직한 실시 예를 첨부한 도면을 참조하여 상세히 설명한다. 다만, 하기의 설명 및 첨부된 도면에서 본 발명의 요지를 흐릴 수 있는 공지 기능 또는 구성에 대한 상세한 설명은 생략한다. 또한, 도면 전체에 걸쳐 동일한 구성 요소들은 가능한 한 동일한 도면 부호로 나타내고 있음에 유의하여야 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description and the accompanying drawings, detailed description of well-known functions or constructions that may obscure the subject matter of the present invention will be omitted. It should be noted that the same constituent elements are denoted by the same reference numerals as possible throughout the drawings.

도 1은 본 발명의 일 실시 예에 따른 서비스 시스템의 구조를 나타낸 블록도이다.1 is a block diagram illustrating a structure of a service system according to an embodiment of the present invention.

도 1을 참조하면, 본 발명에 의한 서비스 시스템은, 통신망(300)을 통해서 연결된 단말 장치(100)와 서비스 장치(400)를 포함할 수 있다.Referring to FIG. 1, a service system according to the present invention may include a terminal device 100 and a service device 400 connected through a communication network 300.

여기서 서비스 시스템은, 단말 장치(100)가 전송한 데이터를 서비스 장치(400)에서 저장 매체에 저장하거나, 서비스 장치(400)가 저장 매체로부터 데이터를 읽어와 단말 장치(100)로 제공하는 과정을 포함하는 시스템으로서, 이러한 데이터 읽기/쓰기 서비스를 제공하는 경우뿐만 아니라 이러한 데이터 읽기/쓰기를 이용하여 다른 서비스를 제공하는 경우까지 포함할 수 있다.Here, the service system stores the data transmitted from the terminal device 100 in the service device 400 in a storage medium, or the service device 400 reads data from the storage medium and provides the data to the terminal device 100 And may include not only providing such a data read / write service but also providing another service using such data read / write.

예를 들어, 상기 서비스 시스템은, 서비스 장치(400)가 단말 장치(100)에 대하여 통신망(300)을 통해 컴퓨터 자원(서버, 스토리지, 플랫폼, 및 소프트웨어 등)을 제공하는 클라우드 컴퓨터 시스템일 수 있으며, 이 경우, 서비스 장치(400)는 단말 장치(100)의 요청에 따라서 필요한 작업을 수행하고, 그 수행 결과를 단말 장치(100)에 제공한다. 이 과정에서, 서비스 장치(400)에서 저장 매체에 대한 데이터의 읽기/쓰기가 이루어지거나, 단말 장치(100) 측에서 저장 매체에 대한 데이터의 읽기/쓰기가 이루어질 수 있다. 본 실시 예에서는 먼저 전자의 경우, 서비스 장치(400) 측에서 저장 매체에 대한 데이터의 읽기/쓰기가 이루어지는 경우와 관련된다.For example, the service system may be a cloud computer system in which the service device 400 provides computer resources (server, storage, platform, and software, etc.) to the terminal device 100 via the communication network 300 In this case, the service apparatus 400 performs a necessary operation according to a request of the terminal apparatus 100, and provides the terminal apparatus 100 with the result of the execution. In this process, data can be read from / written to the storage medium in the service device 400, or data can be read / written from / to the storage medium on the terminal device 100 side. In the first embodiment, the former case relates to the case where data is read / written to the storage medium from the service device 400 side.

본 발명에 있어서, 상기 서비스 장치(400)는, 저장 매체에 대한 데이터의 읽기 및 쓰기를 수행하되, 기 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행한다.In the present invention, the service device 400 reads and writes data on a storage medium, and reads and writes data on a block basis of a predetermined size.

이때, 단말 장치(100)는 상기 서비스 장치(400)에 접속하여 서비스 장치(400)로 데이터를 전송하거나 서비스 장치(400)로부터 데이터를 수신한다.At this time, the terminal device 100 accesses the service device 400 and transmits data to the service device 400 or receives data from the service device 400.

도 2는 본 발명의 일 실시 예에 있어서 서비스 장치(400)에 대한 구성을 나타낸 블록도로서, 이를 참조하면, 상기 서비스 장치(400)는 서비스 제공부(410)와, 접근 관리부(420)와, 저장부(430)를 포함한다.Referring to FIG. 2, the service apparatus 400 includes a service providing unit 410, an access management unit 420, a service providing unit 420, And a storage unit 430.

서비스 제공부(410)는 단말 장치(100)에 대하여 클라이딩 컴퓨팅 서비스를 포함하는 임의의 서비스를 제공하며, 상기 서비스를 제공하는 과정에서 필요에 따라서 단말 장치(100)로부터 데이터를 수신하여 임의의 저장 매체로 이루어진 저장부(430)에 쓰기를 지시하거나, 상기 저장부(430)로부터 읽어 온 데이터를 단말 장치(100)로 전송한다.The service provider 410 provides an arbitrary service including a climbing computing service to the terminal device 100 and receives data from the terminal device 100 as needed in the process of providing the service, And instructs writing to the storage unit 430 made of a storage medium or transmits the data read from the storage unit 430 to the terminal device 100. [

접근 관리부(420)는 상기 서비스 제공부(410)의 지시에 따라서 실질적으로 저장부(430)에 접근하여 데이터의 읽기 및 쓰기를 수행하는 것으로서, 특히, 기 설정된 크기의 블록 단위로 데이터에 대한 읽기 또는 쓰기를 수행한다.The access management unit 420 accesses the storage unit 430 and reads and writes data substantially in accordance with an instruction from the service provider 410. In particular, Or writing.

더하여, 상기 접근 관리부(420)은 블록 단위의 데이터 읽기 또는 쓰기 동작 사이에 유휴 시간을 두고, 블록 단위의 데이터 읽기 및 쓰기 동작이 수행되는 동안만 상기 저장부(430)의 파일에 접근하고, 유휴 시간 동안에는 파일에 접근하지 않도록 한다. 이때, 데이터 읽기 또는 쓰기는 교대로 이루어질 수 있다. In addition, the access management unit 420 accesses the file of the storage unit 430 only while data is being read and written in units of blocks with an idle time between data read or write operations on a block-by-block basis, Do not access the file for a period of time. At this time, data reading or writing may be performed alternately.

더하여, 접근 관리부(420)은 상기 저장부(430)에서 읽어 온 블록들을 모아 데이터를 구성하여 상기 서비스 제공ㅇ부(410)에 전달한다. 상기와 같이 저장부(430)에 대한 접근을 관리하는데 있어서, 접근 시간을 최소화하기 위하여 상기 접근 관리부(420)은 파일 접근 정보, 시스템 환경 정보, 응용 프로그램 동작 상황 및 대기중인 데이터 블록의 상태 중에서 하나 이상의 고려하여 파일 접근 시점을 제어할 수 있다.In addition, the access management unit 420 collects the blocks read from the storage unit 430 and constructs the data to transfer the blocks to the service providing unit 410. In order to minimize the access time in managing access to the storage unit 430 as described above, the access manager 420 accesses one of the file access information, the system environment information, the application program operation status, and the status of the waiting data block Considering the above, you can control the file access point.

한편, 본 발명의 다른 실시 예에서 단말 장치(100)는 자신과 직접 연결된 저장 매체에 대한 데이터 읽기/쓰기를 본 발명에 따라서 수행할 수 있다. 이하의 실시 예에서는, 단말 장치(100)가 이용하는 저장 매체로서 메모리 카드를 예로 들어 설명하기로 한다.Meanwhile, in another embodiment of the present invention, the terminal device 100 can perform data reading / writing on a storage medium directly connected to the terminal device 100 according to the present invention. In the following embodiments, a memory card will be described as a storage medium used by the terminal device 100. [

도 3은 본 발명의 다른 실시 예에 있어서 단말 장치의 구성을 나타낸 블록도이다.3 is a block diagram showing a configuration of a terminal device according to another embodiment of the present invention.

본 발명이 적용되는 단말 장치(100)는 메모리 카드와 같은 저장 매체를 이용할 수 있는 장치라면 어떠한 장치라도 관계없다. 예를 들어, 단말 장치(100)는, 휴대폰, 스마트폰, PDA(Personal digital assistant), PMP(Portable Multimedia Player), MP3 플레이어, 캠코더, 카메라, 태블릿 PC, 노트북 컴퓨터, PC 등을 포함할 수 있는 것으로서, 메모리 카드와 같은 저장 매체를 포함하거나, 메모리 카드와 같은 저장 매체에 대한 입출력 인터페이스를 포함하는 장치라면 어떠한 장치라도 해당될 수 있다.The terminal device 100 to which the present invention is applied may be any apparatus that can use a storage medium such as a memory card. For example, the terminal device 100 may include a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a portable multimedia player (PMP), an MP3 player, a camcorder, a camera, a tablet PC, Any device including a storage medium such as a memory card or an input / output interface for a storage medium such as a memory card may be used.

도 3을 참조하면, 본 발명에 의한 단말 장치(100)는 하나 이상의 주변 장치(110)와, 제어부(120)와, 저장부(130)를 포함하여 이루어진다.Referring to FIG. 3, a terminal device 100 according to the present invention includes one or more peripheral devices 110, a control unit 120, and a storage unit 130.

상기 하나 이상의 주변 장치(110)는 단말 장치(100)에서 제어부(120) 및 저장부(130)를 제외한 나머지 장치들을 포괄적으로 나타낸 것으로서, 각각 고유의 기능을 가지며, 제어부(120)의 제어에 따라서 동작하여 그 결과를 제어부(120)로 제공한다. 본 발명에 의한 단말 장치(100)는 주변 장치(110)로서, 메모리 카드(200)와 물리적으로 접속되어 데이터 입출력을 수행하는 입출력 인터페이스부(116)를 포함한다. 이외에도, 본 발명에 의한 단말 장치(100)는 주변 장치(110)로서, 사용자의 조작에 따라서 사용자 입력 신호를 발생하는 입력부(111), 소정의 통신 방식에 따라서 데이터를 송수신하는 통신부(112)와, 단말 장치의 동작에 따라 발생하는 화면 데이터를 표시하기 위한 표시부(113), 음성 신호를 입력 받고 출력하기 위한 마이크 및 스피커 등을 포함하는 오디오 처리부(114), 영상 및 동영상 촬영을 수행하는 카메라부(115) 중에서 하나 이상을 더 포함할 수 있다. 디지털 기기의 컨버전스(convergence) 추세에 따라 휴대 기기의 변형이 매우 다양하게 이루어져, 이러한 주변 장치(110)의 모든 예를 모두 열거할 수는 없으나, 상기 언급된 주변 장치(110)와 동등한 수준의 장치들이 본 발명의 실시 예에 따른 단말에 추가로 더 포함되어 구성될 수 있다는 것은 본 기술 분야의 통상의 지식을 가진 자라면 쉽게 이해할 수 있을 것이다.The at least one peripheral device 110 is a generic representation of the remaining devices of the terminal device 100 except for the control unit 120 and the storage unit 130. The at least one peripheral device 110 has a unique function, And provides the result to the control unit 120. [ The terminal device 100 according to the present invention includes a peripheral device 110 and an input / output interface unit 116 that is physically connected to the memory card 200 and performs data input / output. In addition, the terminal device 100 according to the present invention includes an input unit 111 for generating a user input signal in response to a user's operation, a communication unit 112 for transmitting and receiving data according to a predetermined communication method, A display unit 113 for displaying screen data generated according to the operation of the terminal device, an audio processing unit 114 including a microphone and a speaker for inputting and outputting a voice signal, a camera unit (115). ≪ / RTI > Although not all of the examples of the peripheral device 110 can be enumerated, various types of deformation of the portable device can be enumerated according to the convergence trend of the digital device. However, It will be understood by those skilled in the art that the present invention may be further incorporated into a terminal according to an embodiment of the present invention.

제어부(120)는 상기 주변 장치(110)를 제어하여 특정 기능을 수행한다. 특히, 제어부(120)는 본 발명에 따른 접근 관리 모듈(121)을 포함한다. 상기 접근 관리 모듈(121)은, 하드웨어 혹은 소프트웨어 혹은 하드웨어와 소프트웨어의 조합에 의해 구현 가능하다. 예를 들어, 상기 접근 관리 모듈(121)은 단말 장치(100)의 플랫폼에서 제공하는 API 형태로 구현될 수도 있고, 플랫폼과는 독립된 프로그램 형태로 구현될 수도 있다.The control unit 120 controls the peripheral device 110 to perform a specific function. In particular, the control unit 120 includes the access management module 121 according to the present invention. The access management module 121 can be implemented by hardware, software, or a combination of hardware and software. For example, the access management module 121 may be implemented as an API provided by the platform of the terminal device 100, or may be implemented as a program independent of the platform.

상기 접근 관리 모듈(121)은, 상기 입출력 인터페이스부(116)를 통해서 메모리 카드(200)에 대한 데이터 읽기 및 쓰기를 제어하되, 기 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행한다. 더하여, 상기 접근 관리 모듈(121)은 블록 단위의 데이터 읽기 또는 쓰기 동작 사이에 유휴 시간을 두고, 블록 단위의 데이터 읽기 및 쓰기 동작이 수행되는 동안만 메모리 카드의 파일에 접근하고, 유휴 시간 동안에는 파일에 접근하지 않도록 한다. 이때, 데이터 읽기 또는 쓰기는 교대로 이루어질 수 있다. 더하여, 접근 관리 모듈(121)은 상기 메모리 카드(200)에서 읽어 온 블록들을 모아 데이터를 해당 데이터 읽기를 요청한 응용 프로그램에 제공할 수 있다. 상기와 같이 메모리 카드의 접근을 관리하는데 있어서, 접근 시간을 최소화하기 위하여 상기 접근 관리 모듈(200)은 파일 접근 정보, 시스템 환경 정보, 응용 프로그램 동작 상황 및 대기중인 데이터 블록의 상태 중에서 하나 이상의 고려하여 파일 접근 시점을 제어할 수 있다.The access management module 121 controls reading and writing of data with respect to the memory card 200 through the input / output interface unit 116, and reads and writes data in block units of predetermined sizes. In addition, the access management module 121 accesses the file of the memory card only while the block-by-block data read and write operations are performed with idle time between the data read or write operations of block units, . At this time, data reading or writing may be performed alternately. In addition, the access management module 121 collects the blocks read from the memory card 200 and provides the data to the application program requesting to read the corresponding data. In order to minimize the access time in managing access to the memory card as described above, the access management module 200 considers at least one of file access information, system environment information, application program operation status, and status of waiting data blocks You can control when files are accessed.

저장부(130)는 단말 장치(100)의 동작에 필요한 데이터 및 프로그램을 저장하기 위한 장치로서, ROM(Read Only Memory), RAM(Read Access Memory), 하드디스크(HDD, Hard Disk Drive) 뿐만 아니라 플래시 메모리, CD-ROM, DVD와 같이 공지된 다양한 저장 매체를 포함하는 개념이다. 본 발명에 있어서, 상기 저장부(130)는 예를 들어, 상기 제어부(120)에 의해서 실행되는 운영체제(OS, Operating System)(130) 및 응용 프로그램(132)을 저장한다. 상기 운영체제(130)는 단말 장치(100)의 다양한 하드웨어를 관리하여 응용 프로그램이 이용할 수 있는 환경을 제공한다. 응용 프로그램(132)은 상기 운영체제(131)을 기반으로 실행되어 특정 기능 혹은 서비스를 제공하는 것으로서, 보편적으로 운영체제(131)에서 제공하는 개방형 API를 호출하여 단말 장치(100)의 특정 하드웨어를 이용하여 필요로 하는 기능을 수행한다. 본 발명에 있어서, 상기 응용 프로그램(132)은, 동작 중에 상기 메모리 카드(200)에 대한 데이터의 읽기 또는 쓰기를 요청할 수 있다. 예를 들어, 일정 관리용 응용 프로그램의 경우, 사용자의 요청에 따라서 일정 관리 데이터를 상기 메모리 카드(200)에 저장하거나, 상기 메모리 카드(200)에 저장된 일정 관리 데이터를 읽어올 수 있다. The storage unit 130 is an apparatus for storing data and programs necessary for the operation of the terminal apparatus 100 and includes not only a read only memory (ROM), a read access memory (RAM), a hard disk drive Flash memory, CD-ROM, DVD, and the like. In the present invention, the storage unit 130 stores an operating system (OS) 130 and an application program 132 executed by the control unit 120, for example. The operating system 130 manages various hardware of the terminal device 100 and provides an environment that an application program can use. The application program 132 is executed based on the operating system 131 to provide a specific function or service and generally calls an open API provided by the operating system 131 and uses the specific hardware of the terminal device 100 Perform the required function. In the present invention, the application program 132 may request reading or writing of data to / from the memory card 200 during operation. For example, in the case of an application program for schedule management, schedule management data may be stored in the memory card 200 or the schedule management data stored in the memory card 200 in response to a user's request.

더하여, 메모리 카드(200)는 데이터의 읽기 및 쓰기가 가능한 메모리 카드로서, 예를 들어 SD 메모리 카드, 스마트 미디어(smartmedia) 카드, 컴팩트 플래시(CF: CompactFlash) 메모리 카드, 메모리 스틱, USB 메모리 카드, 스마트 카드, SIM(Subscriber identification module) 카드, 멀티미디어 메모리 카드(MMC: Multi Media Card) 중에서 어느 하나일 수 있다. 그러나, 이에 한정되는 것은 아니며, 본 발명을 적용할 수 있다면 어떠한 종류라도 가능하다.In addition, the memory card 200 is a memory card capable of reading and writing data, such as an SD memory card, a smart media card, a CompactFlash (CF) memory card, a memory stick, a USB memory card, A smart card, a SIM (Subscriber Identity Module) card, and a multimedia memory card (MMC: Multi Media Card). However, the present invention is not limited thereto, and any kind can be applied as long as the present invention can be applied.

도 4는 본 발명의 실시 예에 따른 단말 장치(100)에 있어서, 접근 관리 모듈(121)과 다른 구성 요소 간의 연결 관계를 나타내는 블록도이다.4 is a block diagram showing the connection relationship between the access management module 121 and other components in the terminal device 100 according to the embodiment of the present invention.

도 4를 참조하면, 메모리 카드(200)는 물리적으로 입출력 인터페이스부(116)와 연결되며, 상기 입출력 인터페이스부(116)를 통해서 제어부(100)에 구비된 접근 관리 모듈(121)에 의해 제어되어 데이터 읽기 또는 쓰기를 수행한다. 더하여, 상기 접근 관리 모듈(121)은 응용 프로그램(131)의 데이터 읽기 또는 쓰기 요청에 따라서, 해당 요청을 수행하도록 상기 메모리 카드(200)에 대한 접근 제어를 수행한다.4, the memory card 200 is physically connected to the input / output interface unit 116 and is controlled by the access management module 121 provided in the control unit 100 through the input / output interface unit 116 Read or write data. In addition, the access management module 121 performs access control on the memory card 200 to perform the request according to a data read or write request of the application program 131.

도 5은 상기 접근 관리 모듈(121)에 의하여 이루어지는 메모리 카드(200)에 대한 데이터 읽기/쓰기 과정을 모식화하여 나타낸 도면이다.5 is a diagram illustrating a data read / write process for the memory card 200 performed by the access management module 121. Referring to FIG.

도 5에 있어서, 'R'은 읽기 데이터를 나타내며, 'W'는 쓰기 데이터를 나타낸다. In FIG. 5, 'R' represents read data and 'W' represents write data.

도 5를 참조하면, 단말 장치(100)에서 응용 프로그램(132)을 실행하는 중에, 메모리 카드(200)에 저장된 데이터의 읽기나 메모리 카드(200)로 특정 데이터의 쓰기가 요청될 수 있다. 이때, 읽을 데이터(읽기 데이터 R)와 쓰여질 데이터(쓰기 데이터 W)는 도 5의 (a)에 도시된 바와 같이, 각각의 시점에 따라서 그 사이즈가 다르다. 예를 들어, 멀티미디어 데이터와 같이 대용량의 데이터에 대한 읽기나 쓰기가 요청될 수도 있고, 일정 정보와 같이 소량의 데이터에 대한 읽기나 쓰기가 요청될 수도 있다.5, during the execution of the application program 132 in the terminal device 100, reading of data stored in the memory card 200 or writing of specific data in the memory card 200 may be requested. At this time, as to the data to be read (read data R) and the data to be written (write data W), their sizes are different from each other as shown in Fig. 5 (a). For example, reading or writing of a large amount of data such as multimedia data may be requested, or reading or writing of a small amount of data such as schedule information may be requested.

이러한 응용 프로그램(132)의 데이터 읽기 또는 쓰기 요청은 운용체제(131)의 API를 통해 처리되지 않고, 상기 접근 관리 모듈(121)에 의하여 처리되는데, 상기 접근 관리 모듈(121)은, 도 5의 (b)에 도시된 바와 같이, 읽거나 쓰여질 데이터를 기 설정된 블록 크기의 데이터 블록으로 블록화한다. 여기서 블록 크기는 시스템 호환성이나 안정성을 고려하여 적절하게 설정될 수 있다.The data read or write request of the application program 132 is not processed through the API of the operating system 131 but is processed by the access management module 121. The access management module 121, (b), the data to be read or written is blocked into data blocks of a predetermined block size. Here, the block size can be appropriately set in consideration of system compatibility and stability.

더하여, 상기 접근 관리 모듈(121)은, 도 5의 (c)에 도시한 바와 같이, 일정 크기로 나누어진 다수의 읽기 또는 쓰기 데이터 블록을 일렬로 배열하여 직렬화한다. 이때, 읽기 데이터 블록과 쓰기 데이터 블록을 교대로 배치할 수 있다.In addition, as shown in FIG. 5C, the access management module 121 arranges a plurality of read or write data blocks divided into a predetermined size in a line and serializes them. At this time, the read data block and the write data block can be alternately arranged.

그리고, 상기 접근 관리 모듈(121)은 도 5의 (d)에 도시된 바와 같이, 상기 직렬로 배열된 데이터 블록에 대하여 읽기 또는 쓰기를 교대로 실행하는데, 이때, 한 데이터 블록에 대한 읽기 또는 쓰기를 수행한 후, 기 설정된 시간 이상의 유휴 시간(t)를 갖는다. 상기 유휴 시간(t) 동안 접근 관리 모듈(121)은 메모리 카드(200)의 파일을 열어 놓지 않는다. 즉, 읽기 또는 쓰기가 수행되는 동안만 파일을 열러 놓는다. 5 (d), the access management module 121 alternately reads or writes data blocks arranged in the serial manner. At this time, the access management module 121 reads or writes one data block And has an idle time (t) longer than a predetermined time. During the idle time t, the access management module 121 does not open the file of the memory card 200. That is, the file is opened only while reading or writing is being performed.

상술한 접근 관리 모듈(121)의 동작에 의하여, 메모리 카드(200) 측에서는 항상 블록 단위로 데이터의 읽기 및 쓰기가 이루어지며, 읽기 및 쓰기 동작 사이에 유휴 시간을 두어 데이터 파손을 방지할 수 있다.By the operation of the access management module 121, the memory card 200 always reads and writes data on a block-by-block basis, and idle time is set between read and write operations to prevent data corruption.

이하, 도 6 및 도 7을 참조하여 본 발명에 따른 저장 매체에 대한 접근 관리 방법을 제어 수순에 따라서 설명한다.Hereinafter, the access management method for the storage medium according to the present invention will be described with reference to FIGS. 6 and 7, according to control procedures.

도 6은 본 발명의 실시 예에 따른 저장 매체에 대한 접근 관리 방법의 기본 절차를 보인 순서도이다.6 is a flowchart illustrating a basic procedure of an access management method for a storage medium according to an embodiment of the present invention.

도 6을 참조하면, 접근 관리 모듈(121)에는 메모리 카드(200)의 접근 관리에 사용될 블록 크기 및 유휴 시간이 설정된다(S100). 상기 블록 크기는 시스템 호환성이나 안정성을 고려하여 설정될 수 있고, 유휴 시간은 최소 임계값 형태로 설정될 수 있다.Referring to FIG. 6, a block size and an idle time to be used for access management of the memory card 200 are set in the access management module 121 (S100). The block size may be set in consideration of system compatibility or stability, and the idle time may be set to a minimum threshold type.

이어서 접근 관리 모듈(121)은 메모리 카드(200)에 대한 데이터의 읽기 또는 쓰기 요청을 확인한다(S200). 상기 데이터의 읽기 또는 쓰기 요청은 단말 장치(100)에 설치되어 실행 중인 임의의 응용 프로그램(132)로부터 발생할 수 있다.Then, the access management module 121 confirms a read or write request of data to the memory card 200 (S200). The data read or write request may originate from any application program 132 installed in the terminal device 100 and being executed.

데이터의 읽기 또는 쓰기 요청이 확인하면, 접근 관리 모듈(121)은 읽기 또는 쓰기 요청된 데이터에 대하여 상기 설정된 블록 크기 및 유휴 시간에 따라서 블록 단위로 메모리 카드(200)에 읽기 또는 쓰기를 수행한다(S300).The access management module 121 reads or writes data requested to be read or written to the memory card 200 in block units according to the set block size and idle time S300).

도 7은 본 발명의 실시 예에 따른 메모리 카드에 대한 접근 관리 방법에 있어서, 상기 데이터의 읽기 또는 쓰기를 수행하는 단계(S300)를 상세하게 나타낸 순서도로서, 이를 참조하여 상기 단계(S300)에 대하여 더 상세하게 설명하면 다음과 같다.FIG. 7 is a flowchart illustrating a method of accessing a memory card according to an exemplary embodiment of the present invention. Referring to FIG. 7, in step S300, More detailed description will be given below.

도 7을 참조하면, 상기 단계(S300)에서, 접근 관리 모듈(121)은, 읽기 또는 쓰기 요청된 데이터에 대하여, 설정된 블록 크기를 갖는 다수의 데이터 블록으로 블록화한다(S310). 상기 단계(S310)에서, 요청된 데이터가 상기 설정된 블록 크기 이하인 경우, 그 다음으로 요청된 데이터의 일부를 포함시켜 하나의 블록으로 블록화할 수 있다.Referring to FIG. 7, in step S300, the access management module 121 blocks the data requested to be read or written into a plurality of data blocks having a set block size (S310). If the requested data is equal to or smaller than the set block size in step S310, the requested data may be partly included in one block.

더하여, 접근 관리 모듈(121)은, 상기 블록화에 생성된 다수의 데이터 블록을 일렬로 배열하여 직렬화한다(S320). 여기서, 읽기 데이터 블록과 쓰기 데이터 블록을 교대로 배치할 수 있다.In addition, the access management module 121 arranges and serializes a plurality of data blocks generated in the blocking in a line (S320). Here, the read data block and the write data block can be alternately arranged.

그리고 접근 관리 모듈(121)은, 상기 직렬화된 데이터 블록에 대하여 순차적으로 읽기 또는 쓰기를 수행하는데, 임의의 한 데이터 블록에 대한 읽기 또는 쓰기를 수행한 후(S330), 상기 데이터 블록에 대한 읽기 또는 쓰기가 완료되면 메모리 카드(200)에서 해당 파일을 닫고, 기 설정된 유휴 시간 동안 대기하면서, 기 설정된 유휴 시간이 경과하는 지를 확인한다(S340).The access management module 121 sequentially reads or writes the serialized data block. After performing a read or write operation on any one data block (S330), the access management module 121 reads or writes the data block When the writing is completed, the file is closed in the memory card 200, and it is checked whether a predetermined idle time has elapsed (S340) while waiting for a predetermined idle time.

확인 결과, 유휴 시간이 경과하면 읽기 또는 쓰기를 위해 대기중인 데이터 블록이 존재하는 지를 확인하고, 대기중인 데이터 블록이 존재하면 다음 순서의 데이터 블록에 대하여 상기 단계(S330)부터 다시 수행한다.As a result of checking, if the idle time has elapsed, it is checked whether there is a data block waiting for reading or writing. If there is a data block waiting, the process goes back to the step S330 for the next data block.

즉, 상기 단계(S320)에서 직렬화된 배열 순서에 따라서, 다수의 데이터 블록에 대하여 순서대로 상기 단계(S330, S340)를 반복 수행하여 요청된 데이터의 읽기 및 쓰기를 수행한다.That is, in step S320, the steps S330 and S340 are repeated in order for the plurality of data blocks in accordance with the serialized sequential order to read and write the requested data.

상기에 의하면, 대용량의 데이터에 대한 읽기 또는 쓰기가 요청되더라도, 일정하게 유휴 시간을 갖고, 유휴 시간 동안은 파일을 열어 놓지 않음으로써, 메모리 카드(200)를 보호할 수 있게 된다.According to the above, it is possible to protect the memory card 200 by keeping the idle time constant and not opening the file for the idle time, even if a large amount of data is requested to be read or written.

본 발명에 따른 저장 매체의 접근 관리 방법은 다양한 컴퓨터 수단을 통하여 판독 가능한 소프트웨어 형태로 구현되어 컴퓨터로 판독 가능한 기록매체에 기록될 수 있다. 여기서, 기록매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 기록매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 예컨대 기록매체는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(Magnetic Media), CD-ROM(Compact Disk Read Only Memory), DVD(Digital Video Disk)와 같은 광 기록 매체(Optical Media), 플롭티컬 디스크(Floptical Disk)와 같은 자기-광 매체(Magneto-Optical Media), 및 롬(ROM), 램(RAM, Random Access Memory), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치를 포함한다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다. 이러한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The access management method of the storage medium according to the present invention can be implemented in a form of software readable by various computer means and recorded in a computer-readable recording medium. Here, the recording medium may include program commands, data files, data structures, and the like, alone or in combination. Program instructions to be recorded on a recording medium may be those specially designed and constructed for the present invention or may be available to those skilled in the art of computer software. For example, the recording medium may be an optical recording medium such as a magnetic medium such as a hard disk, a floppy disk and a magnetic tape, a compact disk read only memory (CD-ROM), a digital video disk (DVD) Includes a hardware device that is specially configured to store and execute program instructions such as a magneto-optical medium such as a floppy disk and a ROM, a random access memory (RAM), a flash memory, do. Examples of program instructions may include machine language code such as those generated by a compiler, as well as high-level language code that may be executed by a computer using an interpreter or the like. Such hardware devices may be configured to operate as one or more software modules to perform the operations of the present invention, and vice versa.

이상과 같이, 본 명세서와 도면에는 본 발명의 바람직한 실시 예에 대하여 개시하였으나, 여기에 개시된 실시 예외에도 본 발명의 기술적 사상에 바탕을 둔 다른 변형 예들이 실시 가능하다는 것은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 자명한 것이다. 또한, 본 명세서와 도면에서 특정 용어들이 사용되었으나, 이는 단지 본 발명의 기술 내용을 쉽게 설명하고 발명의 이해를 돕기 위한 일반적인 의미에서 사용된 것이지, 본 발명의 범위를 한정하고자 하는 것은 아니다.While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, It will be apparent to those skilled in the art. Furthermore, although specific terms are used in this specification and the drawings, they are used in a generic sense only to facilitate the description of the invention and to facilitate understanding of the invention, and are not intended to limit the scope of the invention.

본 발명은 메모리 카드와 같은 저장 매체에 대한 데이터 읽기 및 쓰기를 수행하는데 있어서, 시스템 호환성 및 안정성을 고려한 단위 블록의 크기를 설정하고, 설정된 크기의 블록 단위로 데이터의 읽기 및 쓰기를 수행하며, 블록 단위로 데이터의 읽기 및 쓰기를 수행한 후에는 유휴 시간을 두어, 유휴 시간 동안 파일을 열지 않도록 함으로써, 대용량의 데이터를 저장하거나 읽는 경우에도 적절한 접근 관리를 통해 전송중인 데이터나 저장된 데이터의 손실을 최소화할 수 있으며, 그 결과 메모리 카드와 같은 저장 매체의 사용에 대한 안정성을 향상시킬 수 있는 우수한 효과가 있다.The present invention relates to an apparatus and method for reading and writing data from and to a storage medium such as a memory card by setting the size of a unit block considering system compatibility and stability, By keeping the idle time after reading and writing data in units, the file is not opened during idle time, so that even if a large amount of data is stored or read, the loss of data being transferred or stored is minimized through appropriate access management As a result, there is an excellent effect that the stability against use of a storage medium such as a memory card can be improved.

더하여, 본 발명은 파일 접근 정보는 물론, 시스템 환경과 응용 프로그램의 동작 상황, 대기중인 메모리 블록의 상태에 근거하여 메모리 카드와 같은 저장 매체의 파일에 대한 접근 시기를 제어함으로써, 파일 접근 시간을 최소화하여 메모리 카드와 같은 저장 매체에 대한 안정성을 향상시킬 수 있다.In addition, the present invention minimizes file access time by controlling the access timing of files on a storage medium such as a memory card based on the system environment, the operation status of application programs, and the status of waiting memory blocks as well as file access information Thereby improving the stability of a storage medium such as a memory card.

100: 단말 장치
200: 메모리 카드
300: 통신망
400: 서비스 장치
110: 주변 장치
111: 입력부
112: 통신부
113: 표시부
114: 오디오 처리부
115: 카메라부
116: 입출력 인터페이스부
120: 제어부
121: 접근 관리 모듈
130: 저장부
131: 운영체제(OS)
132: 응용 프로그램
200: 메모리 카드
100: terminal device
200: Memory card
300: Network
400: Service device
110: peripheral device
111:
112:
113:
114: Audio processor
115:
116: I /
120:
121: access management module
130:
131: Operating system (OS)
132: Application
200: Memory card

Claims (14)

데이터를 저장하는 저장부;
단말 장치로부터 데이터를 수신하여 상기 저장부에 쓰기를 지시하거나, 상기 저장부로부터 읽어 온 데이터를 단말 장치로 전송하는 서비스 제공부; 및
상기 서비스 제공부에 따라서 상기 저장부의 파일을 열어 상기 데이터의 읽기 또는 쓰기를 수행하되, 상기 저장부에 접근하지 않는 유휴 시간을 설정하여, 상기 유휴 시간에는 상기 저장부에 접근하지 않도록 하여 접근 시점을 제어하는 접근 관리부;
를 포함하며,
상기 접근 관리부는,
상기 저장부에 한 번 접근할 때 읽기 또는 쓰기를 수행할 데이터의 양에 대한 블록의 크기를 설정하여, 상기 데이터를 상기 설정된 블록 크기를 갖는 데이터 블록으로 블록화하고, 상기 데이터 블록 단위로 읽기 또는 쓰기가 완료되면 파일을 닫아 상기 유휴 시간 동안 대기하고, 상기 유휴 시간 경과 후 대기중인 데이터 블록이 존재하는지를 확인하여, 존재하면, 파일을 열어 상기 데이터 블록에 대한 읽기 또는 쓰기를 수행하는 것을 반복하도록 제어하며,
상기 유휴 시간은 파일 접근 정보, 시스템 환경 정보, 응용 프로그램 동작 상황 및 대기중인 데이터 블록의 상태 중에서 하나 이상을 고려하여 설정하는 것을 특징으로 하는 서비스 장치.
A storage unit for storing data;
A service providing unit that receives data from a terminal device and instructs the storage unit to write data, or transmits data read from the storage unit to a terminal device; And
And an idle time not to access the storage unit is set so that the idle time is not accessed to the storage unit to open the file of the storage unit, An access management unit for controlling the access management unit;
/ RTI >
The access management unit,
A size of a block with respect to an amount of data to be read or written when accessing the storage unit is set, the data is blocked into a data block having the set block size, and a read or write The file is closed to wait for the idle time, and it is checked whether there is a waiting data block after the lapse of the idle time. If it is present, the file is opened and reading or writing is performed on the data block repeatedly ,
Wherein the idle time is set in consideration of at least one of file access information, system environment information, application program operation status, and status of waiting data blocks.
삭제delete 삭제delete 서비스 장치에 의한 데이터 접근 관리 방법에 있어서,
저장부에 한 번 접근할 때 읽기 또는 쓰기를 수행할 데이터의 양에 대한 블록의 크기를 설정하는 단계;
상기 저장부에 접근하지 않는 유휴 시간을 설정하는 단계;
단말 장치로부터 데이터 또는 데이터 전송 요청을 수신하여, 저장부에 상기 데이터의 읽기 또는 쓰기 요청을 확인하는 단계;
상기 읽기 또는 쓰기 요청된 데이터에 대하여, 상기 설정된 블록 크기를 갖는 데이터 블록으로 블록화하는 단계; 및
상기 데이터 블록 단위로 상기 저장부에 읽기 또는 쓰기를 수행하는 단계;
를 포함하며,
상기 저장부에 읽기 또는 쓰기를 수행하는 단계는
상기 데이터 블록에 대한 읽기 또는 쓰기가 완료되면 파일을 닫고, 상기 유휴 시간 동안 대기하는 단계와,
상기 유휴 시간이 경과한 후, 대기중인 데이터 블록이 존재하는 지를 확인하여, 대기중인 데이터 블록이 존재하면 파일을 열어 상기 대기중인 데이터 블록에 대한 읽기 또는 쓰기를 수행하도록 하는 단계를 포함하여 이루어지고,
상기 유휴 시간은 파일 접근 정보, 시스템 환경 정보, 응용 프로그램 동작 상황 및 대기중인 데이터 블록의 상태 중에서 하나 이상을 고려하여 설정하는 것을 특징으로 하는 저장부에 대한 데이터 접근 관리 방법.
A method for managing data access by a service device,
Setting a size of a block with respect to an amount of data to be read or written when accessing the storage unit once;
Setting an idle time not approaching the storage unit;
Receiving a data or data transmission request from the terminal device and confirming a read or write request of the data in the storage;
Blocking the data requested to be read or written with a data block having the set block size; And
Performing reading or writing on the storage unit in units of the data blocks;
/ RTI >
The step of reading or writing to the storage unit
Closing the file and waiting for the idle time when reading or writing of the data block is completed;
Checking whether there is a pending data block after the idle time has elapsed, and if there is a pending data block, opening the file and performing reading or writing of the pending data block,
Wherein the idle time is set in consideration of at least one of file access information, system environment information, application program operation status, and status of waiting data blocks.
제4항에 있어서, 상기 블록 크기는
시스템 호환성 및 안정성을 고려하여 설정되는 것을 특징으로 하는 저장부에 대한 데이터 접근 관리 방법.
5. The method of claim 4, wherein the block size is
System compatibility and stability of the data access management method.
삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020160127072A 2016-09-30 2016-09-30 Access management method of memory and service device thereof KR101765042B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160127072A KR101765042B1 (en) 2016-09-30 2016-09-30 Access management method of memory and service device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160127072A KR101765042B1 (en) 2016-09-30 2016-09-30 Access management method of memory and service device thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020100122621A Division KR101754714B1 (en) 2010-12-03 2010-12-03 Access management method of memory card and apparatus thereof

Publications (2)

Publication Number Publication Date
KR20160119037A KR20160119037A (en) 2016-10-12
KR101765042B1 true KR101765042B1 (en) 2017-08-08

Family

ID=57173860

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160127072A KR101765042B1 (en) 2016-09-30 2016-09-30 Access management method of memory and service device thereof

Country Status (1)

Country Link
KR (1) KR101765042B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090013015A1 (en) * 2004-11-19 2009-01-08 International Business Machines Corporation System and article of manufacture for transparent autonomic data replication improving access performance for a storage area network aware file system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100327234B1 (en) 1998-11-18 2002-04-17 윤종용 Data storage device and method of portable terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090013015A1 (en) * 2004-11-19 2009-01-08 International Business Machines Corporation System and article of manufacture for transparent autonomic data replication improving access performance for a storage area network aware file system

Also Published As

Publication number Publication date
KR20160119037A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
US10877903B2 (en) Protected memory area
CN103401902A (en) Portable cloud storage system and method
KR20120128357A (en) Method and apparatus for splitting of media file
US10331365B2 (en) Accessing a serial number of a removable non-volatile memory device
TW201514727A (en) File processing system and method
KR101754714B1 (en) Access management method of memory card and apparatus thereof
KR101765042B1 (en) Access management method of memory and service device thereof
KR101258529B1 (en) Memory card system, Memory card and method of performing application program thereof
KR20100113059A (en) Integration of secure data transfer applications for generic io devices
JP6328045B2 (en) Memory device
JP4866858B2 (en) Data processing apparatus and processing method
KR20120069120A (en) Method for controlling resource access between user devices and service system thereof
US20170094502A1 (en) Management method, management device and terminal for contacts in terminal
US20150128208A1 (en) Apparatus and method for dynamically controlling security in computing device with plurality of security modules
CN109213692B (en) Storage device management system and storage device management method
CN109002984B (en) Management method, device, medium and computing equipment of digital assets
CN106328174A (en) Method and device for processing recording data
JP2007293576A (en) Information processing system, data writing method, information processor and memory
US20160062925A1 (en) Method and system for managing storage device operations by a host device
JP2006023980A (en) Memory controller, memory card, access device and method for switching memory card state
KR101980487B1 (en) Usb device for network security
JP2017079040A (en) Information terminal and method of data concealment processing therefor
JP2013137717A (en) Nonvolatile storage device, access control program and storage control method
KR20130048507A (en) Portable device for security information management and operating method thereof
KR100696322B1 (en) Hardware medium access control system and method using the same

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right