CN101923515B - 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 PDF

Info

Publication number
CN101923515B
CN101923515B CN 201010275352 CN201010275352A CN101923515B CN 101923515 B CN101923515 B CN 101923515B CN 201010275352 CN201010275352 CN 201010275352 CN 201010275352 A CN201010275352 A CN 201010275352A CN 101923515 B CN101923515 B CN 101923515B
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.)
Active
Application number
CN 201010275352
Other languages
Chinese (zh)
Other versions
CN101923515A (en
Inventor
姜定勇
欧阳棣
刘伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Gongjin Communication Technology Co Ltd
Original Assignee
Shanghai Gongjin Communication Technology Co Ltd
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 Shanghai Gongjin Communication Technology Co Ltd filed Critical Shanghai Gongjin Communication Technology Co Ltd
Priority to CN 201010275352 priority Critical patent/CN101923515B/en
Publication of CN101923515A publication Critical patent/CN101923515A/en
Application granted granted Critical
Publication of CN101923515B publication Critical patent/CN101923515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

The method of the operation Web page in the flash memory of embedding system application device
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 in the flash memory of embedding system application device, moving the Web page.
Background technology
Progress along with society; Development of science and technology; Multiplexing device also is with rapid changepl. never-ending changes and improvements, and the user also has higher requirement to embedded device, needs 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, little and special system abbreviates embedded system as.
More common embedded system has Linux, WinCE, VxWorks, UC/OS at present; Nucleus, all there are its relative merits in each system, and each embedded system obtained promoting with different application needs in different periods, and the Linux embedded system is exactly a good embedded system; Use operating system the widest and that increase 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 the huge tissue of increasing income can be through the forum that increases income, or other approach be looked for solution no matter run into what problem in actual performance history; 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, good opportunity is provided 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 the 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 not read and need 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 Web pages compression, unzip to the page in the internal memory again after waiting system start-up, in internal memory, move the Web page.When Web server read the Web file through 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, and 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 through 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 in flash memory, move in the method for the Web page, 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 in flash memory, move in the method for the Web page, 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 to again in the internal memory, the method for 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 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 in the flash memory of embedding system application device, moves the method for the Web page of the present invention.
Embodiment
In order more to be expressly understood technology contents of the present invention, the special following examples of lifting specify.
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 through 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 in the flash memory of embedding system application device, moving the Web page 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 through the browser access page;
8, Web server reads the Web pagefile of appointment and returns to browser through 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 to again in the internal memory, the method for 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 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 through the browser access Web page;
(7) described Web server reads the Web pagefile of appointment and it is returned to browser according to described Web pagefile mount directory;
(8) browser display Web pagefile.
2. the method for in flash memory, moving the Web page 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 in flash memory, moving the Web page 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 in flash memory, moving the Web page 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.
CN 201010275352 2010-09-07 2010-09-07 Method for operating Web page in flash memory of embedding system application device Active CN101923515B (en)

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 CN101923515A (en) 2010-12-22
CN101923515B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166715B (en) * 2014-08-15 2017-06-09 成都天奥信息科技有限公司 A kind of VxWorks platform clectronic sea chart engine processing system
CN104750492B (en) * 2015-03-31 2018-01-19 广东欧珀移动通信有限公司 The start-up control method and device of mobile device based on embedded OS
CN109669877B (en) * 2018-12-11 2023-04-04 腾讯科技(深圳)有限公司 Memory management method, device, terminal and storage medium
CN110825429A (en) * 2019-11-13 2020-02-21 中孚安全技术有限公司 Web project packaging method and system

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN101923515A (en) 2010-12-22

Similar Documents

Publication Publication Date Title
EP4109230A1 (en) Storage system, file storage and reading method, and terminal device
KR101281326B1 (en) Extended utilization area for a memory device
CN104951326B (en) Webpage access method and device
JP5445463B2 (en) Computer system, data storage method and program
CN101923515B (en) Method for operating Web page in flash memory of embedding system application device
CN104133822A (en) Method and device for scanning files in memory
CN1866212A (en) Displaying images during boot-up and shutdown
CN101650660A (en) Booting a computer system from central storage
CN101042703A (en) Method for managing metadata of file system using dbms
CN1648878A (en) Method for improving compute system disc synchronous writing property based on movable memory
CN103500075A (en) Externally-connected computer accelerating device based on new materials
CN113590501A (en) Data storage method and related equipment
CN1892597A (en) Method for renewing hand-held device operation function through insert-and-use storage device
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
CN105025367A (en) Page loading method based on digital set-top box
CN101187936B (en) A log data storage method and device
CN105528425A (en) Method of implementing asynchronous data storage based on files in cloud computing environment
WO2014163852A1 (en) Grouping files for optimized file operations
CN101089842A (en) Method for duplicating file in embedded equipment
CN102200919B (en) Method and device for starting operation of embedded operation system
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
CN1821960A (en) Embedded system for automatic loading root file system automatic loading system and method
CN112328180B (en) File management method based on single chip microcomputer

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