TWI468941B - System and method for storing information - Google Patents
System and method for storing information Download PDFInfo
- Publication number
- TWI468941B TWI468941B TW97142105A TW97142105A TWI468941B TW I468941 B TWI468941 B TW I468941B TW 97142105 A TW97142105 A TW 97142105A TW 97142105 A TW97142105 A TW 97142105A TW I468941 B TWI468941 B TW I468941B
- Authority
- TW
- Taiwan
- Prior art keywords
- memory
- space
- user
- release
- reserved
- Prior art date
Links
Landscapes
- Telephone Function (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本發明涉及一種資料儲存系統及方法,尤其涉及一種應用於行動裝置中的資料儲存系統及方法。The present invention relates to a data storage system and method, and more particularly to a data storage system and method for use in a mobile device.
在行動裝置新增或收到一筆資料(如一封簡訊或MMS),往往會遇到因記憶體資源限制(即儲存空間已滿),而要求使用者刪除一些舊資料以便可以把新的資料儲存起來。但是,如果使用者未及時在第一時間把資源釋放出來,例如有電話進來需要接聽,則需要在接聽電話前把最後一筆資料儲存起來,否則就會發生資料丟失的情況。Adding or receiving a data (such as a newsletter or MMS) to a mobile device often encounters a limitation of memory resources (ie, the storage space is full), and requires the user to delete some old data so that new data can be stored. stand up. However, if the user does not release the resource in time, for example, if a call comes in and needs to be answered, the last data needs to be stored before the call is received, otherwise data loss will occur.
傳統的作法是額外增加一塊獨立的暫存空間,先把新的資料儲存在該暫存空間,但事後對該暫存空間的維護相當繁瑣。例如,有讀取或修改資料的需求時,必須判斷該資料是位於暫存空間還是記憶體,然後才能進行操作,並且在刪除暫存空間的資料前,需要將該刪除的資料複製到記憶體以保持資料的完整性。The traditional practice is to add an additional temporary storage space, first store the new data in the temporary storage space, but the maintenance of the temporary storage space is quite cumbersome afterwards. For example, when there is a need to read or modify data, it must be judged whether the data is in the temporary storage space or the memory before the operation can be performed, and the deleted data needs to be copied to the memory before deleting the data of the temporary storage space. To maintain the integrity of the data.
鑒於以上內容,有必要提供一種資料儲存系統及方法,當行動裝置接收到一筆新資料時,可自動儲存該新資料,並可以便於後續資料處理。In view of the above, it is necessary to provide a data storage system and method. When a mobile device receives a new data, it can automatically store the new data and facilitate subsequent data processing.
一種資料儲存系統,應用於行動裝置中,所述系統包括:記憶體初始化模組,用於當行動裝置啟動時初始化記憶體;記憶體預留模組,用於在所述記憶體中預留一塊空 間;資料儲存模組,用於當行動裝置接收一筆新資料時,自動將該新資料儲存到預留的記憶體空間中;所述記憶體預留模組,還用於在所述記憶體中重新預留一塊空間,並判斷預留記憶體空間是否成功;提示模組,用於當預留記憶體空間失敗時,提示用戶釋放記憶體;所述記憶體預留模組,還用於判斷用戶釋放記憶體是否成功,如果用戶釋放記憶體失敗,則進一步判斷是否到達提示次數。A data storage system is applied to a mobile device, the system comprising: a memory initialization module, configured to initialize a memory when the mobile device is activated; and a memory reservation module, configured to reserve in the memory An empty piece a data storage module for automatically storing the new data in a reserved memory space when the mobile device receives a new data; the memory reservation module is further used in the memory Re-reserving a space and determining whether the reserved memory space is successful; the prompting module is configured to prompt the user to release the memory when the reserved memory space fails; the memory reservation module is also used for It is judged whether the user releases the memory successfully. If the user fails to release the memory, it is further determined whether the number of prompts is reached.
一種資料儲存方法,應用於行動裝置中,該方法包括如下步驟:當行動裝置啟動時初始化記憶體;在所述記憶體中預留一塊空間;當行動裝置接收一筆新資料時,自動將該新資料儲存到預留的記憶體空間中,並在所述記憶體中重新預留一塊空間;當預留記憶體空間失敗時,提示用戶釋放記憶體,如果用戶釋放記憶體成功,則在所述記憶體中重新預留一塊空間,如果用戶釋放記憶體失敗,則繼續提示用戶釋放記憶體直至到達提示次數。A data storage method is applied to a mobile device, the method comprising the steps of: initializing a memory when the mobile device is activated; reserving a space in the memory; automatically receiving the new data when the mobile device receives a new data The data is stored in the reserved memory space, and a space is reserved in the memory; when the memory space fails to be reserved, the user is prompted to release the memory, and if the user releases the memory successfully, then the data is A space is reserved in the memory. If the user fails to release the memory, the user is prompted to release the memory until the number of prompts is reached.
相較於習知技術,所述的資料儲存系統及方法,可以在行動裝置記憶體中預留一塊空間,當行動裝置接收到一筆新資料時,將該新資料儲存到預留的記憶體空間中,並在所述記憶體中重新預留一塊空間,當需要對該新資料進行更新和刪除操作時,直接在記憶體中進行操作即可,簡化了資料處理的流程,提高了資料處理效率。Compared with the prior art, the data storage system and method can reserve a space in the mobile device memory, and when the mobile device receives a new data, store the new data in the reserved memory space. And re-reserving a space in the memory, when the new data needs to be updated and deleted, the operation can be directly performed in the memory, simplifying the data processing flow and improving the data processing efficiency. .
參閱圖1所示,係本發明一種資料儲存系統較佳實施方式的硬體架構圖。該系統主要包括微處理器1、儲存器2及 輸入/輸出設備3,所述微處理器1與所述儲存器2和輸入/輸出設備3相連。其中,所述儲存器2包括記憶體21和資料處理單元20。所述記憶體21用於儲存各種資料(如簡訊或MMS,其來源可能是其他行動裝置,或是從網路下載得到)。所述記憶體21可以是動態隨機存取記憶體(Dynamic Random Access Memory,DRAM)或同步動態隨機存取記憶體(Synchronous DRAM,SDRAM)等。輸入/輸出設備3包括LCD液晶顯示螢幕和鍵盤等,用於顯示資料及輸入資訊。Referring to FIG. 1, a hardware architecture diagram of a preferred embodiment of a data storage system of the present invention is shown. The system mainly includes a microprocessor 1, a storage 2 and An input/output device 3, which is connected to the storage 2 and the input/output device 3. The storage 2 includes a memory 21 and a data processing unit 20. The memory 21 is used to store various materials (such as a newsletter or MMS, which may be sourced from other mobile devices or downloaded from the Internet). The memory 21 may be a dynamic random access memory (DRAM) or a synchronous dynamic random access memory (SDRAM). The input/output device 3 includes an LCD liquid crystal display screen and a keyboard for displaying data and inputting information.
所述微處理器1用於調用所述資料處理單元20,並控制所述資料處理單元20的執行。所述資料處理單元20用於在記憶體21中預留一塊空間,當行動裝置接收到一筆新資料時,將該新資料儲存到預留的記憶體空間中,並在所述記憶體21中重新預留一塊空間。The microprocessor 1 is used to call the data processing unit 20 and control the execution of the data processing unit 20. The data processing unit 20 is configured to reserve a space in the memory 21, and when the mobile device receives a new data, store the new data in the reserved memory space, and in the memory 21 Re-reserve a space.
參閱圖2所示,係圖1中所示資料處理單元20的功能模組圖。所述資料處理單元20包括記憶體初始化模組201、記憶體預留模組202、資料儲存模組203及提示模組204。本發明所稱的模組是完成一特定功能的電腦程式段,比程式更適合於描述軟體在電腦中的執行過程,因此在本發明以下對軟體描述中都以模組描述。Referring to FIG. 2, a functional block diagram of the data processing unit 20 shown in FIG. The data processing unit 20 includes a memory initialization module 201, a memory reservation module 202, a data storage module 203, and a prompt module 204. The module referred to in the present invention is a computer program segment for performing a specific function, and is more suitable for describing the execution process of the software in the computer than the program. Therefore, the following description of the software is described in the module.
所述記憶體初始化模組201用於當行動裝置啟動時初始化記憶體21。The memory initialization module 201 is configured to initialize the memory 21 when the mobile device is activated.
所述記憶體預留模組202用於在所述記憶體21中預留一塊空間。The memory reservation module 202 is configured to reserve a space in the memory 21.
所述資料儲存模組203用於當接收一筆新資料時,自動將該新資料儲存到預留的記憶體空間中。The data storage module 203 is configured to automatically store the new data into the reserved memory space when receiving a new data.
所述記憶體預留模組202還用於在所述記憶體21中重新預留一塊空間,並判斷預留記憶體空間是否成功。The memory reservation module 202 is further configured to re-reserve a space in the memory 21 and determine whether the reserved memory space is successful.
所述提示模組204用於當預留記憶體空間失敗時,提示用戶釋放記憶體。The prompting module 204 is configured to prompt the user to release the memory when the reserved memory space fails.
所述記憶體預留模組202還用於判斷用戶釋放記憶體是否成功,如果用戶釋放記憶體失敗,則進一步判斷是否到達提示次數。其中,用戶釋放記憶體失敗包括:用戶釋放的記憶體空間不夠,導致預留記憶體空間失敗,或者,用戶拒絕釋放記憶體空間,導致預留記憶體空間失敗。The memory reservation module 202 is further configured to determine whether the user releases the memory successfully. If the user fails to release the memory, it is further determined whether the number of prompts is reached. The failure of the user to release the memory includes: the memory space released by the user is insufficient, resulting in failure of the reserved memory space, or the user refuses to release the memory space, resulting in failure of the reserved memory space.
參閱圖3所示,係本發明一種資料儲存方法較佳實施方式的流程圖。步驟S401,當行動裝置啟動時,記憶體初始化模組201初始化記憶體21。Referring to FIG. 3, a flow chart of a preferred embodiment of a data storage method of the present invention is shown. In step S401, when the mobile device is activated, the memory initialization module 201 initializes the memory 21.
步驟S402,記憶體預留模組202在記憶體21中預留一塊空間。In step S402, the memory reservation module 202 reserves a space in the memory 21.
步驟S403,行動裝置接收一筆新資料。In step S403, the mobile device receives a new piece of data.
步驟S404,資料儲存模組203自動將該新資料儲存到預留的記憶體空間中。In step S404, the data storage module 203 automatically stores the new data in the reserved memory space.
步驟S405,記憶體預留模組202在記憶體21中重新預留一塊空間。In step S405, the memory reservation module 202 re-reserves a space in the memory 21.
步驟S406,記憶體預留模組202判斷預留記憶體空間是否成功,如果成功,則流程結束,如果失敗,則執行步驟S407。In step S406, the memory reservation module 202 determines whether the reserved memory space is successful. If successful, the process ends. If it fails, step S407 is performed.
步驟S407,提示模組204提示用戶釋放記憶體。In step S407, the prompting module 204 prompts the user to release the memory.
步驟S408,記憶體預留模組202判斷用戶釋放記憶體是否成功,如果成功,則執行步驟S405,如果失敗,則執行步驟S409。其中,用戶釋放記憶體失敗包括:用戶釋放的記憶體空間不夠,導致預留記憶體空間失敗,或者,用戶拒絕釋放記憶體空間,導致預留記憶體空間失敗。In step S408, the memory reservation module 202 determines whether the user releases the memory successfully. If successful, step S405 is performed, and if it fails, step S409 is performed. The failure of the user to release the memory includes: the memory space released by the user is insufficient, resulting in failure of the reserved memory space, or the user refuses to release the memory space, resulting in failure of the reserved memory space.
步驟S409,記憶體預留模組202判斷是否到達提示次數,如果沒有達到提示次數,執行步驟S407,如果達到提示次數,則流程結束。In step S409, the memory reservation module 202 determines whether the number of prompts has been reached. If the number of prompts has not been reached, step S407 is performed, and if the number of prompts is reached, the flow ends.
本實施方式中的行動裝置可以為手機、數位相機或PDA(Personal Digital Assistant,個人數位助理)等具有資料處理功能的電子設備。The mobile device in the present embodiment may be an electronic device having a data processing function such as a mobile phone, a digital camera, or a PDA (Personal Digital Assistant).
本發明資料儲存系統及方法,雖以較佳實施方式揭露如上,然其並非用以限定本發明。任何熟悉此項技藝之人士,在不脫離本發明之精神及範圍內,當可做更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。The data storage system and method of the present invention are disclosed above in the preferred embodiments, but are not intended to limit the present invention. Any person skilled in the art will be able to make changes and refinements without departing from the spirit and scope of the invention, and the scope of the invention is defined by the scope of the appended claims.
微處理器‧‧‧1Microprocessor ‧‧1
儲存器‧‧‧2Storage ‧‧2
輸入/輸出設備‧‧‧3Input/output equipment ‧‧3
資料處理單元‧‧‧20Data processing unit ‧‧20
記憶體‧‧‧21Memory ‧‧21
記憶體初始化模組‧‧‧201Memory Initialization Module ‧‧201
記憶體預留模組‧‧‧202Memory reservation module ‧‧‧202
資料儲存模組‧‧‧203Data storage module ‧ ‧ 203
提示模組‧‧‧204Prompt module ‧‧‧204
初始化記憶體‧‧‧S401Initialize memory ‧‧‧S401
在記憶體中預留一塊空間‧‧‧S402Reserve a space in the memory ‧‧S402
接收一筆新資料‧‧‧S403Receive a new piece of information ‧‧S403
將該新資料儲存到預留的記憶體空間中‧‧‧S404Store this new data in the reserved memory space ‧‧S404
在記憶體中重新預留一塊空間‧‧‧S405Re-reserving a space in memory ‧‧S405
預留記憶體空間是否成功‧‧‧S406Whether the reserved memory space is successful ‧‧‧S406
提示用戶釋放記憶體‧‧‧S407Prompt the user to release the memory ‧‧‧S407
釋放記憶體是否成功‧‧‧S408Whether the release of memory is successful ‧‧‧S408
是否到達提示次數‧‧‧S409Whether to reach the number of reminders ‧‧‧S409
圖1係本發明一種資料儲存系統較佳實施方式的硬體架構圖。1 is a hardware architecture diagram of a preferred embodiment of a data storage system of the present invention.
圖2係圖1中資料處理單元的功能模組圖。2 is a functional block diagram of the data processing unit of FIG. 1.
圖3係本發明一種資料儲存方法較佳實施方式的流程圖。3 is a flow chart of a preferred embodiment of a data storage method of the present invention.
初始化記憶體‧‧‧S401Initialize memory ‧‧‧S401
在記憶體中預留一塊空間‧‧‧S402Reserve a space in the memory ‧‧S402
接收一筆新資料‧‧‧S403Receive a new piece of information ‧‧S403
將該新資料儲存到預留的記憶體空間中‧‧‧S404Store this new data in the reserved memory space ‧‧S404
在記憶體中重新預留一塊空間‧‧‧S405Re-reserving a space in memory ‧‧S405
預留記憶體空間是否成功‧‧‧S406Whether the reserved memory space is successful ‧‧‧S406
提示用戶釋放記憶體‧‧‧S407Prompt the user to release the memory ‧‧‧S407
釋放記憶體是否成功‧‧‧S408Whether the release of memory is successful ‧‧‧S408
是否到達提示次數‧‧‧S409Whether to reach the number of reminders ‧‧‧S409
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97142105A TWI468941B (en) | 2008-10-31 | 2008-10-31 | System and method for storing information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97142105A TWI468941B (en) | 2008-10-31 | 2008-10-31 | System and method for storing information |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201017411A TW201017411A (en) | 2010-05-01 |
TWI468941B true TWI468941B (en) | 2015-01-11 |
Family
ID=44830837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97142105A TWI468941B (en) | 2008-10-31 | 2008-10-31 | System and method for storing information |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI468941B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI450187B (en) * | 2012-05-08 | 2014-08-21 | Acer Inc | Data storage method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW416031B (en) * | 1996-02-02 | 2000-12-21 | Acer Inc | A method for storing memory data when the computer system activates suspend mode |
US6212632B1 (en) * | 1998-07-31 | 2001-04-03 | Flashpoint Technology, Inc. | Method and system for efficiently reducing the RAM footprint of software executing on an embedded computer system |
TW200417884A (en) * | 2003-03-14 | 2004-09-16 | Hon Hai Prec Ind Co Ltd | System and method for automatically classifying bill of material |
US20070255901A1 (en) * | 2004-04-23 | 2007-11-01 | Matsushita Electric Industrial Co., Ltd. | Memory Card, Access Device, and Processing Method of Memory Card |
-
2008
- 2008-10-31 TW TW97142105A patent/TWI468941B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW416031B (en) * | 1996-02-02 | 2000-12-21 | Acer Inc | A method for storing memory data when the computer system activates suspend mode |
US6212632B1 (en) * | 1998-07-31 | 2001-04-03 | Flashpoint Technology, Inc. | Method and system for efficiently reducing the RAM footprint of software executing on an embedded computer system |
TW200417884A (en) * | 2003-03-14 | 2004-09-16 | Hon Hai Prec Ind Co Ltd | System and method for automatically classifying bill of material |
US20070255901A1 (en) * | 2004-04-23 | 2007-11-01 | Matsushita Electric Industrial Co., Ltd. | Memory Card, Access Device, and Processing Method of Memory Card |
Also Published As
Publication number | Publication date |
---|---|
TW201017411A (en) | 2010-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107403089B (en) | Resource tampering identification method and device based on application program | |
US20120101988A1 (en) | Method for Managing Application Information Implemented by a Mobile Phone and Application Manager | |
US20140026062A1 (en) | Method, system and apparatus for collecting data associated with applications | |
KR20120041384A (en) | Method and apparatus for updating firmware of mobile device | |
KR102100458B1 (en) | Method for managing memory and an electronic device thereof | |
WO2017005085A1 (en) | Data compression method, apparatus, and terminal | |
CN112783761A (en) | Method, device and system for testing cold start duration of application program | |
CN111782304A (en) | Logic control method and device for paging loading data, computer equipment and medium | |
CN107590144A (en) | A kind of file memory method and terminal | |
CN104424333A (en) | Method and system for loading table data | |
WO2019062615A1 (en) | User interface rendering method and apparatus | |
CN109117153A (en) | Processing method, device, terminal and the storage medium of application program | |
CN105491129A (en) | Page loading progress display method and device and mobile terminal | |
CN107682389B (en) | Method, terminal and computer readable storage medium for executing network request | |
US9118756B2 (en) | Recording method, recording device, and electronic device | |
CN105760226B (en) | A kind of method, device and mobile terminal of quick start mobile terminal camera | |
CN114780019A (en) | Electronic device management method and device, electronic device and storage medium | |
CN113157439B (en) | Resource statistics method, device and terminal | |
TWI468941B (en) | System and method for storing information | |
CN101714120A (en) | Data storage system and method | |
US9348825B2 (en) | Server and method for causing terminal to display screen | |
WO2014067368A1 (en) | Method, apparatus and device for obtaining resource preview image | |
CN106302821B (en) | Data request method and equipment thereof | |
US8693042B2 (en) | Image copying method and device | |
CN111930391B (en) | Application data processing method and device, server and user terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |