CN101111029A - Method and device for obtaining operating data - Google Patents

Method and device for obtaining operating data Download PDF

Info

Publication number
CN101111029A
CN101111029A CNA2007101299453A CN200710129945A CN101111029A CN 101111029 A CN101111029 A CN 101111029A CN A2007101299453 A CNA2007101299453 A CN A2007101299453A CN 200710129945 A CN200710129945 A CN 200710129945A CN 101111029 A CN101111029 A CN 101111029A
Authority
CN
China
Prior art keywords
portable terminal
service data
file
program area
file system
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.)
Pending
Application number
CNA2007101299453A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2007101299453A priority Critical patent/CN101111029A/en
Publication of CN101111029A publication Critical patent/CN101111029A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present invention discloses a method for acquiring running data. The present invention comprises: a file system of the mobile terminal is established; the running data can be extracted from the program area of the mobile terminal, and the running data can be saved in the file system. The present invention also provides a device for acquiring running data, the running data can be unloaded to the program area of the mobile terminal, when the mobile terminal is started, the running data can be extracted from the program area and saved in the file area, to realize the automatic operation of the complete script of the mirror image file generated at the mobile terminal, and reduce the error rate when the mirror image file is generated at the mobile terminal.

Description

Obtain the method and apparatus of service data
Technical field
The present invention relates to the mobile communication technology field, relate in particular to a kind of method and apparatus that obtains service data.
Background technology
Along with the development of mobile communication technology, portable terminal is universal day by day.Portable terminal also is widely used in data communication such as online, receiving and dispatching mail, note except traditional voice call purposes, more than function such as these voice calls, online, receiving and dispatching mail, note realize by the working procedure in the portable terminal.The working procedure of portable terminal is stored among the ROM (Read Only Memory, read-only memory), and this working procedure is with among the burned ROM of the form of image file when producing portable terminal.Be stored in the working procedure among the ROM, only can read, can not write, and after the portable terminal outage, the working procedure among this ROM can not lost.
In need ROM when producing portable terminal, and in actual applications, generate the operating process more complicated of image file, generally comprise following steps the burned portable terminal of image file:
A, the ROM of portable terminal is erased at only, the value that also is about to each bit (bit) among the ROM is set to 1.This step can realize by instruments such as Trace32 of the prior art.
B, compiled program is write portable terminal.As shown in Figure 1, portable terminal ROM of the prior art is divided into program area and file area.Wherein, the program area is used for the program of memory mobile terminal, comprises boot when portable terminal starts and running software program etc., and the running software program comprises again: operating system and application program etc.The file area is used for the service data of memory mobile terminal, comprising: the data of portable terminal and network interaction, switching on and shutting down animation, basic the tinkle of bells, wallpaper etc.In this step, portable terminal writes compiled program the program area of this portable terminal ROM.
C, mobile terminal-opening.This moment portable terminal the file area in without any file system, the portable terminal system that creates a file automatically, this process of setting up file system are similar to and format a hard disk on personal computers.When file system set up finish after, without any service data, so this portable terminal can't search network, can't be connected with network and communicate by letter, even do not have information such as switching on and shutting down animation and interface images in the file system of this portable terminal.
D, by modes such as serial ports or USB (Universal Serial Bus, USB) interfaces, the essential service data of the normal operation of portable terminal is downloaded in the file system of this portable terminal.
E, the data among the portable terminal ROM derive are generated a complete image file, and whether this image file of verification is correct and complete.Data among this portable terminal ROM comprise the program of program area stored and the service data of file area stored.
In the above step, steps d can't realize fully that script operates automatically, needs manually to download the essential service data of normal operation for portable terminal, occur because the mistake of human factor generation through regular meeting, thereby the error rate when causing generating image file is higher.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus that obtains service data, error rate problem of higher when solving that portable terminal generates image file in the prior art.
For reaching above-mentioned purpose, the embodiment of the invention provides a kind of method of obtaining service data, may further comprise the steps:
Set up the file system of portable terminal;
From the program area of described portable terminal, extract service data, and described service data is stored in the described file system.
The embodiment of the invention also provides a kind of device that obtains service data, comprising:
File system is set up the unit, is used to set up the file system of portable terminal;
The service data extraction unit is used for extracting service data from the program area of described portable terminal, and described service data is stored in the described file system.
Compared with prior art, the embodiment of the invention downloads to service data the program area of portable terminal, when mobile terminal-opening, from the program area, extract this service data and store in the file area, realized that the complete script that portable terminal generates image file operates automatically, reduced the error rate when portable terminal generates image file.
Description of drawings
Fig. 1 is the schematic diagram that portable terminal ROM divides in the prior art;
Fig. 2 is a kind of flow chart that obtains the service data method of the embodiment of the invention;
Fig. 3 is the generation image file method flow diagram of the embodiment of the invention one;
Fig. 4 is the mobile terminal-opening flow chart of the embodiment of the invention two;
Fig. 5 is a kind of apparatus structure schematic diagram that obtains service data of the embodiment of the invention.
Embodiment
Be elaborated below in conjunction with the drawings and specific embodiments.
As shown in Figure 2, Fig. 2 is a kind of flow chart that obtains the service data method of the embodiment of the invention, specifically may further comprise the steps:
Step 201 is set up the file system of this portable terminal.
The ROM of portable terminal is divided into program area and file area.Wherein, the program area is used for the program of memory mobile terminal, comprises boot when portable terminal starts and running software program etc.; The file area is used for the service data of memory mobile terminal, comprising: the data of portable terminal and network interaction, switching on and shutting down animation, basic the tinkle of bells, wallpaper etc.
Set up file system in the file area of portable terminal ROM, the process of setting up of this document system is similar to hard disk of format on the computer.After finishing the foundation of file system, without any file, this portable terminal lacks necessary service data in this document system, therefore can't search network, can't communicate with network, even not have the switching on and shutting down animation, no interface picture.
Step 202 is extracted service data from the program area of portable terminal, and this service data is stored in the file system of foundation.
Portable terminal extracts the necessary service data of this running of mobile terminal from the program area, this service data is in the production process of portable terminal, along with the program of this portable terminal together is written in the program area of this portable terminal ROM.Portable terminal stores the service data of extracting in the file system of foundation into, and this document system is positioned at the file area of portable terminal ROM.
In the above-mentioned program area that service data is write portable terminal ROM, multiple mode can be arranged.For example: service data is packaged as a compressed file by certain compress mode compression, and this compressed file direct compilation is advanced in the program file of portable terminal.Wherein, the compressed file direct compilation is advanced the program file of portable terminal, specifically comprise: compressed file is converted to text formatting, as: with the binary data in the compressed file 31,20,30,20,6F, 62,6A, 0D, 3C, 3C, 20,0D, 2F, 54,79,70 usefulness text formattings are expressed as { 0x31,0x20,0x30,0x20,0x6F, 0x62,0x6A, 0x0D, 0x3C, 0x3C, 0x20,0x0D, 0x2F, 0x54,0x79,0x70}, then with the data of those text formattings data as program, the preliminary treatment instruction #include by the C language introduces C linguistic source program, is advanced in the program of portable terminal by the compiler of the C language data compilation with those text formattings again.So the service data of this portable terminal is written in the program area of this portable terminal ROM together together with the program of portable terminal.
Again for example: by DOS (Disk Operating System, disc operating system) order " the new file of copy/b portable terminal program file+compressed file " is merged into a new file with the compressed file of service data and the program file of portable terminal, and the new file after the merging can be by in the directly erasable program area that advances portable terminal ROM of instruments such as Trace32.
By the above embodiments, make the process that generates the portable terminal image file in the prior art be improved.The embodiment of the invention one generates the method flow diagram of image file, as shown in Figure 3, may further comprise the steps:
Step 301 is erased at the ROM of portable terminal only.The value of each bit is set to 1 among the portable terminal ROM, and this step can realize by instruments such as Trace32 of the prior art.
Step 302 together writes portable terminal program and service data the program area of this portable terminal ROM.
With compressed file of the normal necessary service data boil down to of operation of portable terminal, the program with this compressed file and portable terminal together writes in the program area of this portable terminal ROM then.Certainly, for new portable terminal, its service data is less usually, only comprises data, switching on and shutting down animation, basic the tinkle of bells and the wallpaper etc. of portable terminal and network interaction, therefore can service data not compressed the program area of the portable terminal ROM that writes direct yet.
Step 303, mobile terminal-opening is set up file system.
After program being write the program area of portable terminal ROM, this portable terminal can be realized power up function.Behind the mobile terminal-opening, judge whether there is file system in this portable terminal,, then carry out the portable terminal operation of starting shooting normally if exist; If there is no, then set up the file system of this portable terminal.Owing in the step 302 program and service data have together been write in the program area of portable terminal ROM, there is not file in the file area, therefore behind mobile terminal-opening, can't read the service data in the file area, also promptly judge not have file system in this portable terminal.Owing to do not have file system in the file area of this portable terminal ROM, lack necessary service data, so this portable terminal can't search network, can't communicate with network, even not have the animation of switching on and shutting down, the picture at no interface.The system that creates a file in the file area of this portable terminal ROM, the process of setting up of this document system are similar to hard disk of format on the computer.
Step 304 is extracted service data from the program area of portable terminal ROM, and this service data is stored in the file system of foundation.Be stored in the program area of portable terminal ROM if this service data is the form with compressed file, then the compressed file with this service data decompresses to the file area of this portable terminal.
Step 305 derives complete image file of generation with the data among the portable terminal ROM, and verifies this image file.Data among this portable terminal ROM comprise the program of program area stored and the service data of file area stored, behind the generation image file, need the correctness and the integrality of this image file of checking.
After image file generates, when carrying out the production of portable terminal, directly among the ROM with the burned portable terminal of this image file, thereby avoided complicated program and data downloading process.In the embodiment of the invention described above, because obtaining the process of service data, can finish mobile terminal-opening by the script automation, reduce the interference of human factor, thereby reduced the error rate when portable terminal generates image file.
Owing in the embodiment of the invention the essential service data of the normal operation of portable terminal is stored in the program area of this portable terminal ROM, therefore when breaking down, portable terminal causes file system corruption, when perhaps needing to recover the portable terminal Default Value, can will from the program area of portable terminal ROM, extract this service data after the file system formatization again, realize the fast quick-recovery of file system.Can carry out following improvement to the start process of portable terminal, as shown in Figure 4, Fig. 4 is the mobile terminal-opening flow chart of the embodiment of the invention two, may further comprise the steps:
Step 401, mobile terminal-opening.
Step 402, portable terminal judge whether to exist file system.Behind mobile terminal-opening, the start boot of storing in the program area can arrive the fixed position of file area and read service data, if portable terminal can read service data, then judges to have file system in the file area; If portable terminal can't read service data, then judge not have file system in the file area.If there is file system in the file area, then forward step 405 to; If do not have file system in the file area, then forward step 403 to.
Step 403 is set up the file system of portable terminal.Format file area to portable terminal, and system creates a file.
Step 404 is extracted service data from the program area of portable terminal ROM, and this service data is stored in the file system of foundation.
Step 405 is finished start process.
When mobile terminal-opening, all carry out above-mentioned start flow process, can guarantee that the file system operation of portable terminal is normal.
The embodiment of the invention also provides a kind of device that obtains service data, and as shown in Figure 5, this device 100 that obtains service data comprises: file system is set up unit 110, service data extraction unit 120 and data storage cell 140.Wherein, file system is set up unit 110, is used to set up the file system of portable terminal.Service data extraction unit 120, the threaded file system sets up unit 110, is used for extracting service data from the program area of portable terminal, and stores the service data of extracting into file system and set up in the file system of being set up unit 110.Data storage cell 140 is used for service data is stored into the program area of portable terminal.Data storage cell 140 comprises: compression subelement 141, be used for service data is compressed, and obtain compressed file.
The data storage cell 140 of another embodiment of the present invention not only comprises the above-mentioned unit 141 that is compressed in, and also comprises compiling subelement 142, connects compression subelement 141, is used for compressed file is compiled into the program file of portable terminal.
The data storage cell 140 of yet another embodiment of the invention not only comprises above-mentioned compression subelement 141, also comprises merging subelement 143, connects compression subelement 141, is used for the program file of compressed file and portable terminal is merged.
An other embodiment of the present invention has set up judging unit 130 on the basis of said apparatus, the threaded file system sets up unit 110, be used for judging whether portable terminal exists file system, if do not exist, then the circular document system sets up unit 110, sets up unit 110 by file system and sets up file system.
In sum, embodiments of the invention are by downloading to service data the program area of portable terminal, when mobile terminal-opening, from the program area, extract this service data and store in the file area, realized that the complete script that portable terminal generates image file operates automatically, reduce the interference of human factor, thereby reduced the error rate when portable terminal generates image file.And, when breaking down, portable terminal causes file system corruption, when perhaps needing to recover the portable terminal Default Value, can will from the program area of portable terminal ROM, extract this service data after the file system formatization again, realize the fast quick-recovery of file system.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (13)

1. a method of obtaining service data is characterized in that, may further comprise the steps:
Set up the file system of portable terminal;
From the program area of described portable terminal, extract service data, and described service data is stored in the described file system.
2. obtain the method for service data according to claim 1, it is characterized in that, before the described file system of setting up portable terminal, also comprise: during described mobile terminal-opening, judge whether there is file system in the described portable terminal,, then set up the file system of described portable terminal if do not exist.
3. as obtaining the method for service data as described in the claim 2, it is characterized in that, before the described mobile terminal-opening, comprising: described service data is stored in the program area of described portable terminal.
4. as obtaining the method for service data as described in the claim 3, it is characterized in that, describedly store service data the program area of portable terminal into, specifically comprise:
Described service data is compressed, obtained compressed file;
Described compressed file is stored in the program area of described portable terminal.
5. as obtaining the method for service data as described in the claim 4, it is characterized in that, describedly store compressed file the program area of portable terminal into, comprising:
Described compressed file is compiled in the program file of described portable terminal;
Described program file is stored in the program area of described portable terminal.
6. as obtaining the method for service data as described in the claim 4, it is characterized in that, in the described program area that compressed file is stored into portable terminal, comprising:
Program file to described compressed file and described portable terminal merges;
With the file storage after merging in the program area of described portable terminal.
7. as obtaining the method for service data as described in the claim 4, it is characterized in that describedly extract service data from the program area of portable terminal, comprising: the file in the described program area is decompressed obtains described service data.
8. a device that obtains service data is characterized in that, comprising:
File system is set up the unit, is used to set up the file system of portable terminal;
The service data extraction unit is used for extracting service data from the program area of described portable terminal, and described service data is stored in the described file system.
9. as obtaining the device of service data as described in the claim 8, it is characterized in that described device also comprises judging unit, connect described file system and set up the unit, be used for judging whether described portable terminal exists file system.
10. as obtaining the device of service data as described in the claim 8, it is characterized in that described device also comprises data storage cell, be used for described service data is stored into the program area of described portable terminal.
11., it is characterized in that described data storage cell comprises the compression subelement as obtaining the device of service data as described in the claim 10, be used for described service data is compressed, obtain compressed file.
12., it is characterized in that described memory cell also comprises the compiling subelement as obtaining the device of service data as described in the claim 11, connect described compression subelement, be used for described compressed file is compiled into the program file of described portable terminal.
13., it is characterized in that described memory cell also comprises the merging subelement as obtaining the device of service data as described in the claim 11, connect described compression subelement, be used for the program file of described compressed file and described portable terminal is merged.
CNA2007101299453A 2007-07-20 2007-07-20 Method and device for obtaining operating data Pending CN101111029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101299453A CN101111029A (en) 2007-07-20 2007-07-20 Method and device for obtaining operating data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101299453A CN101111029A (en) 2007-07-20 2007-07-20 Method and device for obtaining operating data

Publications (1)

Publication Number Publication Date
CN101111029A true CN101111029A (en) 2008-01-23

Family

ID=39042883

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101299453A Pending CN101111029A (en) 2007-07-20 2007-07-20 Method and device for obtaining operating data

Country Status (1)

Country Link
CN (1) CN101111029A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644992B (en) * 2008-08-04 2011-05-25 中兴通讯股份有限公司 Method and system for recreating data of file system
CN104484241A (en) * 2014-12-10 2015-04-01 广东欧珀移动通信有限公司 Terminal system file backup and recovery method and device
CN105117246A (en) * 2015-08-04 2015-12-02 晶晨半导体(上海)有限公司 Method for rapidly booting electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644992B (en) * 2008-08-04 2011-05-25 中兴通讯股份有限公司 Method and system for recreating data of file system
CN104484241A (en) * 2014-12-10 2015-04-01 广东欧珀移动通信有限公司 Terminal system file backup and recovery method and device
CN104484241B (en) * 2014-12-10 2018-12-11 广东欧珀移动通信有限公司 The method and device that a kind of pair of terminal system file is backed up and restored
CN105117246A (en) * 2015-08-04 2015-12-02 晶晨半导体(上海)有限公司 Method for rapidly booting electronic equipment

Similar Documents

Publication Publication Date Title
US11016785B2 (en) Method and system for mirror image package preparation and application operation
CN105975311B (en) Application starting method and device
JP4376181B2 (en) Program execution processing terminal device
WO2013178048A1 (en) Method and device for generating firmware over-the-air upgrade package
CN101706725A (en) Method and system for loading and debugging relocatable program
EP2336932A2 (en) Data card, method and system for identifying fingerprint with data card
CN109817210A (en) Voice writing method, device, terminal and storage medium
CN109782997B (en) Data processing method, device and storage medium
JPH07222248A (en) System for utilizing speech information for portable information terminal
CN105117339B (en) A kind of method and apparatus that native command debugging routine is debugged using plug-in unit
CN101159957A (en) Data terminal equipment updating, renovating method and device
CN101111029A (en) Method and device for obtaining operating data
CN113741954A (en) System software generation method and device, electronic equipment and storage medium
CN112948247A (en) Processing method, system, device and medium for operation playback of application program
CN112181366A (en) Mobile application development framework based on cross-platform interaction
CN112905464B (en) Application running environment data processing method and device
CN112346736B (en) Data processing method and system
KR20090104043A (en) Method and apparatus for launching a program application
US8751548B2 (en) Data processing apparatus and method thereof, and information processing apparatus and method thereof
JP2004258861A (en) Method of processing information
CN111767214A (en) Automatic testing method and device for software UI
CN110018930A (en) Image recovery method, device, equipment and storage medium
KR20160069281A (en) System and method for multi language support for a Webtoon
KR101196748B1 (en) Data backup method in mobile telecommunication terminal equipment
CN114218441B (en) Method for calling and displaying UOF document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080123