CN101923515A - Method for operating Web page in flash memory of embedding system application device - Google Patents
Method for operating Web page in flash memory of embedding system application device Download PDFInfo
- Publication number
- CN101923515A CN101923515A CN 201010275352 CN201010275352A CN101923515A CN 101923515 A CN101923515 A CN 101923515A CN 201010275352 CN201010275352 CN 201010275352 CN 201010275352 A CN201010275352 A CN 201010275352A CN 101923515 A CN101923515 A CN 101923515A
- Authority
- CN
- China
- Prior art keywords
- flash memory
- web page
- web
- embedded
- memory
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a method for operating a Web page in a flash memory of an embedding system application device. In the method, the non-compressed Web page is directly stored in the flash memory; the application device mounts the Web page to the embedding operation system; the operation system operates a Web server, and appoints the Web page catalogue as the Web page mounting catalogue; the users access the Web page by a browser. By adopting the method for operating the Web page in the flash memory of the embedding system application device, the method is different from the prior art that the Web page file is firstly compressed and stored in the flash memory, and then decompressed in the memory, and then the Web page is operated in the memory; the method directly stores the non-compressed Web page file in the left space of the flash memory so as to fully use the left flash memory space while the flash memory is operated and the operation speed of the embedding system is not affected; the method saves the space of the memory.
Description
Technical field
The present invention relates to the embedded system application, particularly the method field of the operation for embedded system Web page specifically is meant the method for moving the Web page in the flash memory of embedding system application device.
Background technology
Progress along with society, development of science and technology, multiplexing device also is with rapid changepl. never-ending changes and improvements, the user also has higher requirement to embedded device, need to provide the embedded device of complete function, safety, advantage such as quick, stable, easy to operate, complete and perfect functions must need the complete administrative mechanism of a cover, and little and special system abbreviates embedded system as.
More common embedded system has Linux, WinCE, VxWorks at present, UC/OS, Nucleus, all there are its relative merits in each system, each embedded system obtained promoting with different application needs in different periods, the Linux embedded system is exactly a good embedded system, the most widely used and operating system of increasing income, WinCE, VxWorks, UC/OS, Nucleus are the embedded OSs of paying, and can obtain good technical support on stream.Accounted for market greatly in this piece market with regard to Linux in the present embedded system, the characteristics of Linux are to increase income, freely, and exist a huge tissue of increasing income no matter running into what problem in actual performance history can be by the forum that increases income, or other approach is looked for solution, this system is that embedded system has been injected vigor, the development of embedded system is from now on gone through added heavy one.Because being in great demand of embedded device, provide good opportunity to the development of embedded system.
In the process of Embedded System Design, the flash memory that can only select 2 multiple size is as memory device, the size as 1M, 2M, 4M, 8M, 16M.But program file generally can not exhaust flash memory, will cause the waste of flash memory like this.Such as, our program file size is 5M, so we select the flash memory of 8M, the flash memory residue of 3M is so just arranged.
In the performance history of project, we usually can run into the problem of Out of Memory.Be the waste of flash memory on one side, Yi Bian be the deficiency of internal memory.Utilize this part residue flash memory so try every possible means.
In existing development and Design, flash memory is can not be used as internal memory next stored program, because the speed of flash memory is too slow, when CPU frequently reads data in the flash memory, can cause the overlong time of CPU reading of data, forms the bottleneck of system.CPU not only can be in the fetch program data, also can do write operation, like this can be slower.So in the Embedded System Design before, all can't utilize this part remaining flash memory space.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of with the Web page stores in the flash memory remaining space, avoid the flash memory space waste, can reach the method for in the flash memory of embedding system application device, moving the Web page of saving the memory headroom purpose simultaneously.
Usually all have the interface of a Web page as man-machine interaction in embedded system, the size of this Web page generally has hundreds of KB and does not wait to several MB.Design of the prior art all is that first other program file with the Web page and embedded system is compressed into a file together, and in the device start process, the operation boot files then can unzip to the Web page in the internal memory and go.Realize the quick calling process of the Web page with this.
In embedded system, the Web page has following three important feature:
1, the Web page only need read does not need to write;
2, the reading speed of the Web page does not require too fast;
3, the Web page is deposited with the form of file.
Therefore, main thought of the present invention is, utilizes above-mentioned three characteristics, in the time of design the Web page do not compressed directly to be put on the flash memory operation Web page in flash memory.Rather than earlier being kept at flash memory after the compression of the Web page, again the page is unziped in the internal memory after waiting system start-up, in internal memory, move the Web page.When Web server read the Web file by file system, file system can be supported the access of different flash types, no matter be code-shaped flash memory NOR flash memory or storage-type flash memory nand flash memory.So both save memory headroom, and can not form the bottleneck on the system speed again, also do not limited the type of flash memory.
In order to realize above-mentioned purpose, the invention provides a kind of method of in the flash memory of embedding system application device, moving the Web page, wherein, described application apparatus comprises CPU, internal memory, flash memory and input/output module, described CPU connects described internal memory, flash memory and input/output module respectively, the described Web page is stored in the described flash memory with unpressed document form, and described method may further comprise the steps:
(1) user starts embedding system application device;
(2) described application apparatus carries out initialization operation;
(3) described application apparatus operation embedded operating system kernel;
(4) described application apparatus will be stored in Web pagefile carry in the flash memory to embedded OS;
(5) described embedded OS moves Web server, and the Web page directory is appointed as Web pagefile mount directory;
(6) user is by the browser access Web page;
(7) described Web server reads the Web pagefile of appointment and it is returned to browser;
(8) browser display Web pagefile.
Should in flash memory, move in the method for the Web page, further comprising the steps of before in described step (1):
(0) user writes the embedded system initialization files in the flash memory of application apparatus.
Should move in the method for the Web page in flash memory, described embedded system initialization files comprise boot files, program file and unpressed Web pagefile.The step that described application apparatus carries out initialization operation is meant that specifically CPU reads boot files and it is write to internal memory.
Should move in the method for the Web page in flash memory, described flash memory is code-shaped flash memory or storage-type flash memory.Described embedded OS is Linux, WinCE, VxWorks, UC/OS or Nucleus.The described Web page is a human-computer interaction interface.
Adopted the method for in the flash memory of embedding system application device, moving the Web page of this invention, it is different from the prior art earlier compression Web pagefile and leaves in the flash memory, unzip in the internal memory again, the method of the operation Web page in internal memory, but Web pagefile uncompressed directly is stored in the remaining space of flash memory, and in flash memory the operation Web page, thereby can be under the situation that does not influence operation for embedded system speed, make full use of remaining flash memory space, to reach the purpose in save memory space.
Description of drawings
Fig. 1 is the process flow diagram that moves the method for the Web page in the flash memory of embedding system application device of the present invention.
Embodiment
In order more to be expressly understood technology contents of the present invention, describe in detail especially exemplified by following examples.
See also shown in Figure 1, for of the present invention in the flash memory of embedding system application device the process flow diagram of a kind of embodiment of the method for the operation Web page.Wherein, described application apparatus comprises CPU, internal memory, flash memory and input/output module, described CPU connects described internal memory, flash memory and input/output module respectively, and the described Web page is stored in the described flash memory with unpressed document form, and described method may further comprise the steps:
(1) user starts embedding system application device;
(2) described application apparatus carries out initialization operation;
(3) described application apparatus operation embedded operating system kernel;
(4) described application apparatus will be stored in Web pagefile carry in the flash memory to embedded OS;
(5) described embedded OS moves Web server, and the Web page directory is appointed as Web pagefile mount directory;
(6) user is by the browser access Web page;
(7) described Web server reads the Web pagefile of appointment and it is returned to browser;
(8) browser display Web pagefile.
In this embodiment, described embedded OS is a (SuSE) Linux OS, and described flash memory is code-shaped flash memory (a NOR flash memory), and the described Web page is a human-computer interaction interface.Described embedded system initialization files comprise boot files, program file and unpressed Web pagefile, and the step that described application apparatus carries out initialization operation is meant that specifically CPU reads boot files and it is write to internal memory.
A kind of preferred embodiment in, described in the flash memory of embedding system application device the method for the operation Web page, it is further comprising the steps of before in step (1):
(0) user writes the embedded system initialization files in the flash memory of application apparatus.
In other embodiment, the flash memory described in the present invention can also be storage-type flash memory (nand flash memory), and described embedded OS can also be embedded OSs such as WinCE, VxWorks, UC/OS or Nucleus.
In practical application of the present invention, the method for moving the Web page in the flash memory of embedding system application device provided by the present invention generally includes following steps:
1, in the process of recordable paper packing, Web page part is made file system separately, do not compress, and directly leave in after bootloader (guiding is written into file) and the program file with document form;
2, starting outfit;
3, Bootloader carries out.
4, the embedded system kernel is carried out;
5, after starting successfully, partly be mounted to the Web page in the flash memory in the system;
6, Web server start the time, Web page deposit position is appointed as mount directory;
7, the user is by the browser access page;
8, Web server reads the Web pagefile of appointment and returns to browser by file system;
9, browser display Web pagefile.
Adopted the method for in the flash memory of embedding system application device, moving the Web page of this invention, it is different from the prior art earlier compression Web pagefile and leaves in the flash memory, unzip in the internal memory again, the method of the operation Web page in internal memory, but Web pagefile uncompressed directly is stored in the remaining space of flash memory, and in flash memory the operation Web page, thereby can be under the situation that does not influence operation for embedded system speed, make full use of remaining flash memory space, to reach the purpose in save memory space.
In this instructions, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.
Claims (7)
1. the method for the operation Web page in the flash memory of embedding system application device, described application apparatus comprises CPU, internal memory, flash memory and input/output module, described CPU connects described internal memory, flash memory and input/output module respectively, the described Web page is stored in the described flash memory with unpressed document form, it is characterized in that described method may further comprise the steps:
(1) user starts embedding system application device;
(2) described application apparatus carries out initialization operation;
(3) described application apparatus operation embedded operating system kernel;
(4) described application apparatus will be stored in Web pagefile carry in the flash memory to embedded OS;
(5) described embedded OS moves Web server, and the Web page directory is appointed as Web pagefile mount directory;
(6) user is by the browser access Web page;
(7) described Web server reads the Web pagefile of appointment and it is returned to browser;
(8) browser display Web pagefile.
2. the method for moving the Web page in flash memory according to claim 1 is characterized in that described method is further comprising the steps of before in step (1):
(0) user writes the embedded system initialization files in the flash memory of application apparatus.
3. the method for moving the Web page in flash memory according to claim 2 is characterized in that described embedded system initialization files comprise boot files, program file and unpressed Web pagefile.
4. the method for moving the Web page in flash memory according to claim 3 is characterized in that the step that described application apparatus carries out initialization operation is meant that specifically CPU reads boot files and it is write to internal memory.
5. according to each described method of in flash memory, moving the Web page in the claim 1 to 4, it is characterized in that described flash memory is code-shaped flash memory or storage-type flash memory.
6. according to each described method of in flash memory, moving the Web page in the claim 1 to 4, it is characterized in that described embedded OS is Linux, WinCE, VxWorks, UC/OS or Nucleus.
7. according to each described method of in flash memory, moving the Web page in the claim 1 to 4, it is characterized in that the described Web page is a human-computer interaction interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010275352 CN101923515B (en) | 2010-09-07 | 2010-09-07 | Method for operating Web page in flash memory of embedding system application device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010275352 CN101923515B (en) | 2010-09-07 | 2010-09-07 | Method for operating Web page in flash memory of embedding system application device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101923515A true CN101923515A (en) | 2010-12-22 |
CN101923515B CN101923515B (en) | 2012-07-04 |
Family
ID=43338466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010275352 Active CN101923515B (en) | 2010-09-07 | 2010-09-07 | Method for operating Web page in flash memory of embedding system application device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101923515B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166715A (en) * | 2014-08-15 | 2014-11-26 | 成都天奥信息科技有限公司 | Vxworks platform electronic chart engine |
CN104750492A (en) * | 2015-03-31 | 2015-07-01 | 广东欧珀移动通信有限公司 | Startup control method and device for mobile device on basis of embedded operating system |
CN109669877A (en) * | 2018-12-11 | 2019-04-23 | 腾讯科技(深圳)有限公司 | EMS memory management process, device, terminal and storage medium |
CN110825429A (en) * | 2019-11-13 | 2020-02-21 | 中孚安全技术有限公司 | Web project packaging method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828538A (en) * | 2006-03-31 | 2006-09-06 | 浙江大学 | Method for realizing operating procedure directly from file system in embedded system |
CN101105752A (en) * | 2006-10-26 | 2008-01-16 | 福昭科技(深圳)有限公司 | Processing method for embedded type system using NAND flash memory storage and start-up |
CN101639782A (en) * | 2009-07-14 | 2010-02-03 | 上海市共进通信技术有限公司 | System bootloading method based on embedded operating system |
CN101739440A (en) * | 2009-12-09 | 2010-06-16 | 熊伟 | External series FLASH webpage storage method used by embedded system WEB server |
-
2010
- 2010-09-07 CN CN 201010275352 patent/CN101923515B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828538A (en) * | 2006-03-31 | 2006-09-06 | 浙江大学 | Method for realizing operating procedure directly from file system in embedded system |
CN101105752A (en) * | 2006-10-26 | 2008-01-16 | 福昭科技(深圳)有限公司 | Processing method for embedded type system using NAND flash memory storage and start-up |
CN101639782A (en) * | 2009-07-14 | 2010-02-03 | 上海市共进通信技术有限公司 | System bootloading method based on embedded operating system |
CN101739440A (en) * | 2009-12-09 | 2010-06-16 | 熊伟 | External series FLASH webpage storage method used by embedded system WEB server |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166715A (en) * | 2014-08-15 | 2014-11-26 | 成都天奥信息科技有限公司 | Vxworks platform electronic chart engine |
CN104166715B (en) * | 2014-08-15 | 2017-06-09 | 成都天奥信息科技有限公司 | A kind of VxWorks platform clectronic sea chart engine processing system |
CN104750492A (en) * | 2015-03-31 | 2015-07-01 | 广东欧珀移动通信有限公司 | Startup control method and device for mobile device on basis of embedded operating system |
CN104750492B (en) * | 2015-03-31 | 2018-01-19 | 广东欧珀移动通信有限公司 | The start-up control method and device of mobile device based on embedded OS |
CN109669877A (en) * | 2018-12-11 | 2019-04-23 | 腾讯科技(深圳)有限公司 | EMS memory management process, device, terminal and storage medium |
CN110825429A (en) * | 2019-11-13 | 2020-02-21 | 中孚安全技术有限公司 | Web project packaging method and system |
Also Published As
Publication number | Publication date |
---|---|
CN101923515B (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4109230B1 (en) | Storage system, file storage and reading method, and terminal device | |
KR101281326B1 (en) | Extended utilization area for a memory device | |
CN103500076A (en) | Novel USB protocol computer accelerating device based on multi-channel SLC NAND and DRAM cache memory | |
CN101650660A (en) | Booting a computer system from central storage | |
CN101923515B (en) | Method for operating Web page in flash memory of embedding system application device | |
CN1866212A (en) | Displaying images during boot-up and shutdown | |
CN1133944C (en) | System and method for starting system of computer system | |
CN104133822A (en) | Method and device for scanning files in memory | |
CN101656789A (en) | Method for managing application information of mobile phone and application manager | |
WO2010055937A1 (en) | Computer system, data storage method, and program | |
CN101042703A (en) | Method for managing metadata of file system using dbms | |
CN1936866A (en) | Flash memory body storing mechanism with data restoring function | |
CN116643778A (en) | Application program optimization method and electronic equipment | |
CN1828538A (en) | Method for realizing operating procedure directly from file system in embedded system | |
CN105528425A (en) | Method of implementing asynchronous data storage based on files in cloud computing environment | |
WO2014163852A1 (en) | Grouping files for optimized file operations | |
CN1892597A (en) | Method for renewing hand-held device operation function through insert-and-use storage device | |
US20190114084A1 (en) | Computing system with processing and method of operation thereof | |
CN101118494A (en) | System and method for starting up and operating system from external connected electronic card with built-in equipment | |
CN101345933A (en) | Dynamic alternation and loading/unloading method for mobile phone display font style and font size | |
CN101089842A (en) | Method for duplicating file in embedded equipment | |
CN101187936A (en) | A log data storage method and device | |
CN101373473B (en) | Method and system for reducing file quantity in embedded system flash memory | |
CN100444166C (en) | Position-based interface access method and device for FAT file system | |
CN1940870A (en) | System and method for fast starting attachment memory of computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |