CN1949902A - Cell phone configuration method - Google Patents

Cell phone configuration method Download PDF

Info

Publication number
CN1949902A
CN1949902A CNA200610063438XA CN200610063438A CN1949902A CN 1949902 A CN1949902 A CN 1949902A CN A200610063438X A CNA200610063438X A CN A200610063438XA CN 200610063438 A CN200610063438 A CN 200610063438A CN 1949902 A CN1949902 A CN 1949902A
Authority
CN
China
Prior art keywords
configuration
mapping table
file
index
size
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
CNA200610063438XA
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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CNA200610063438XA priority Critical patent/CN1949902A/en
Publication of CN1949902A publication Critical patent/CN1949902A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a cellphone configuring method, comprising the steps of: dividing cellphone configurations into different configuration files by configuration functions; establishing a mapping table, which is an one-dimensional array including array subscript, configuration file handle, configuration offset from configuration file head and configuration-occupied storage capacity; establishing configuration ID numbers including subscript index configured in the mapping table; establishing ID number-configuration relation; when inquiring or modifying cellphone configuration, firstly obtaining the configuration ID number by the relation; finding the configuration file handle, configuration offset and configuration-occupied storage capacity in the mapping table by the configuration number; operating the file where the configuration is by the above three parameters, and reading the actual configuration contents, and processing them. And it can largely save internal memory consumption of configurations and simultaneously reduce cellphone production cost.

Description

A kind of cell phone configuration method
[technical field]
The present invention relates to mobile communication technology, relate in particular to a kind of method of mobile phone configuration.
[background technology]
Now, the function of mobile phone from 2G, 2.5G, to 3G, is attached to function on the mobile phone from simple telephone communication, from strength to strength to network browsing, multimedia application.The increase of function must need more configuration.In this case, according to the conventional method, all of mobile phone are configured in the start back all import mobile phone EMS memory so that fast access just need expend considerable internal memory and deposit configuration file from file system.How consumes memory also just means the raising of mobile phone cost, and this is sub-economic to most of user.
[summary of the invention]
The technical problem to be solved in the present invention provides a kind of internal memory of can saving and expends, and reduces the cell phone configuration method of mobile phone production cost.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is that a kind of cell phone configuration method comprises the steps:
101. the configuration of mobile phone is divided into different configuration files according to the function that disposes;
102. set up mapping table, described mapping table is an one-dimension array, its content comprises, the size that array index, configuration file handle, configuration take storage apart from the side-play amount and the configuration of configuration file beginning;
103. set up configuration identifier number, the content of described identification number comprises the subscript index that is configured in the mapping table;
104. set up the association of identification number with configuration;
105. when inquiry or revising the mobile phone configuration, at first obtain the identification number of this configuration by association; From mapping table, find the configuration file handle, dispose the size that takies storage apart from the side-play amount and the configuration of configuration file beginning by identification number; File by above-mentioned 3 parameter operative configuration places reads the actual content of this configuration, handles.Above-described cell phone configuration method, described mapping table can be divided into mapping table a and mapping table b; Mapping table a comprises array index and configuration file handle, and mapping table b comprises array index, disposes the size that takies storage apart from the side-play amount and the configuration of configuration file beginning; Described configuration identifier number comprises the subscript index that is configured among mapping table a and the mapping table b.
Above-described cell phone configuration method is characterized in that, the array size of described mapping table a is the number of concrete configuration file, and the array size of mapping table b is the number of concrete configuration; Described configuration identifier number is at least 2 bytes, wherein the 1st byte is the file handle index, be used at mapping table a locating file handle, later byte is the index of mapping table b, is used for searching this configuration corresponding side-play amount and the storage size that takies apart from the file beginning at mapping table b.
Above-described cell phone configuration method is characterized in that, also comprises the steps:
401. configuration file is sorted by the subscript index of configuration identifier number in mapping table a;
402. when the mobile phone power-on initialization, open these configuration files and obtain their file handle;
403. by the handle of configuration file being write mapping table a by the subscript index of configuration identifier number in mapping table a.
Above-described cell phone configuration method when inquiry or revising the mobile phone configuration, is found the configuration file handle by the 1st byte of identification number from mapping table a in step 104; From mapping table b, find the size that configuration takies storage apart from the side-play amount and the configuration of configuration file beginning by the later byte of identification number.
The present invention sets up configuration identifier number, by mapping table just can be very fast the corresponding file handle that retrieves configuration, the storage size that takies apart from the side-play amount of file beginning, just can find the physical location of the real storage of this configuration then by file operation quickly, finish inquiry and retouching operation.The present invention does not only need all configurations are all imported mobile phone EMS memory from file system when start, when inquiry and retouching operation, also need not whole configuration file is imported internal memory, but the content part that only will inquire about and revise is loaded into the internal memory (using up the internal memory that can discharge this provisional application) of provisional application, realizes operation.The internal memory that the present invention can save configuration in a large number expends, and also can reduce the production cost of mobile phone simultaneously.
[description of drawings]
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Fig. 1 is the flow chart of a kind of cell phone configuration method embodiment 1 of the present invention.
Fig. 2 is the flow chart of a kind of cell phone configuration method embodiment 2 of the present invention.
[embodiment]
Implementation method of the present invention is:
The configuration of mobile phone is classified according to the function of configuration, be divided into different small documents (suppose that this n configuration file is called A1 respectively, A2 ,-An) store.The setting relevant as phone is a file, and the setting that note is relevant is again the another one file, and the mobile phone interface setting then is another file.And configuration file is sorted by the subscript index of configuration identifier number in mapping table a.Behind mobile phone power-on, these mobile phone configuration files are not read mobile phone EMS memory from file system, but only open these files and obtain their file handle F1, F2,-Fn, by the subscript index of configuration identifier number in mapping table a the handle of configuration file is write mapping table a, realize the initialization of mapping table a.The data of mapping table b are fixed, and write when programming.When needs are used certain when configuration, the handle by these configuration files can read relevant configuration.So we just can read, revise the mobile phone configuration by these file handles.
The basic skills that the present invention read and revised certain configuration S is as follows:
1. set up mapping table a and b, inquire configuration S at which file (supposing that this document handle is F) and particular location hereof by mapping table.(suppose that its side-play amount apart from the file beginning is X, its storage size that takies is a Y byte).Utilize file handle F then, come the operation file pointer to move it the file particular location at configuration S place apart from the offset X of file beginning, these three positional informations of storage size Y that take, and then read the configuration S of Y byte, return to the ISSUER at last.
2. be similar for the situation of revising configuration and the situation of query configuration, also be to find this configuration corresponding file handle F, offset X, the storage size Y that takies apart from the file beginning by mapping table, navigate to concrete file position then, the new configuration with Y byte at last is written to this position of this document.
For the operation map table, the configuration identifier number (ID) that set up mobile phone in program is S1, S2 ... Sn.Identification number can be decided to be totally 3 bytes, the 1st byte of identification number is the file handle index, be used for coming the locating file handle at mapping table a, the the 2nd and 3 index that byte is mapping table b of identification number is used for searching this configuration corresponding offset X and the storage size Y that takies apart from the file beginning at mapping table b.
The configuration identifier of above-mentioned mobile phone number is 3 bytes, but not as limit.Along with the configuration of mobile phone increases, can be extended for 4 bytes, 5 bytes to 3 bytes, even more, use wherein a part as the array index index of mapping table a then, rest parts is as the array index index of mapping table b.
Mapping table a is actual to be exactly an one-dimension array, and array size is 256, and the 1st byte of identification number is exactly the subscript of this array, and be as follows:
Array index File handle F
0 The file handle F1 of configuration file 1
1 The file handle F2 of configuration file 2
2 The file handle F3 of configuration file 3
3 The file handle F4 of configuration file 4
. . .
255 The file handle F256 of configuration file 256
In actual the use, if the required configuration file of mobile phone do not have 256 so many, then mapping table a does not just have 256 so greatly, in other words, is exactly that mobile phone has n configuration file at present, mapping table a size is exactly n so.
Mapping table b in fact also is one 1 dimension group, and array size is 65536, and the 2nd, 3 subscript that byte is exactly this array of identification number is as follows:
Array index This configuration is apart from the offset X of file beginning The storage size Y that this configuration takies
0 Configuration 1 is apart from the offset X 1 of file beginning The configuration 1 storage size Y1 that takies
1 Configuration 2 is apart from the offset X 2 of file beginning The configuration 2 storage size Y2 that take
2 Configuration 3 is apart from the offset X 3 of file beginning The configuration 3 storage size Y3 that take
3 Configuration 4 is apart from the offset X 4 of file beginning The configuration 4 storage size Y4 that take
. . .
65535 Configuration 65536 is apart from the offset X 65536 of file beginning The configuration 65536 storage size Y65536 that take
In actual the use, if the required configuration of mobile phone do not have 65536 so many, then mapping table b does not just have 65536 so greatly, in other words, is exactly that mobile phone has m configuration at present, mapping table b size is exactly m so.
When specifically getting and revising certain configuration S, at first to determine the configuration identifier number (ID) of mobile phone configuration S correspondence.Configuration number is to be mutually related with configuration identifier, and specific practice is, definition grand below similar in program:
#define KK_POWER_ON_MUSIC 0x010001/* startup music */
#define KK_POWER_OFF_MUSIC 0x010002/* shutdown music */
Above-mentioned 0x010001 and 0x010002 are respectively the configuration identifier number of startup music and shutdown music.
The user shutdown music is set, during startup music, will directly use this config. number KK_POWER_ON_MUSIC and KK_POWER_OFF_MUSIC to come call function in program, for example call function getMusic (KK_POWER_ON_MUSIC) be so just passable.In fact KK_POWER_OFF_MUSIC and KK_POWER_ON_MUSIC are a numeral, just 0x010001 and 0x010002.
Configuration identifier number (ID) has been arranged, by mapping table a and b, the corresponding file handle F that retrieves configuration S that just can be very fast, offset X, the storage size Y that takies apart from the file beginning, just can find the physical location of the real storage of this configuration then by file operation efficiently, just can finish inquiry and retouching operation at last.
Be the course of work of the example explanation embodiment of the invention 1 with inquiry cell phone incoming call the tinkle of bells below.As shown in Figure 1, after mobile phone was received incoming call, system found this configuration identifier by the association of cell phone incoming call configuration and number is 0x031234.The 1st byte 0x03 by configuration identifier number comes the locating file handle at mapping table a.The example of mapping table a is as follows:
Array index File handle F
0 0x78340ac0
1 0x78340ac4
2 0x78340ac8
3 0x78340acc
. . .
255 0
It is 0x78340acc that system retrieves file handle.
System again the 2nd and the 3rd byte by configuration identifier number mapping table b search this configuration corresponding apart from the offset X of file beginning and the storage size Y that takies, the 2nd and the 3rd byte of configuration identifier number is 0x1234.The example of mapping table b is as follows:
Array index This configuration is apart from the offset X of file beginning The storage size Y that this configuration takies
0 Configuration 1 is apart from the offset X 1 of file beginning The configuration 1 storage size Y1 that takies
1 Configuration 2 is apart from the offset X 2 of file beginning The configuration 2 storage size Y2 that take
2 Configuration 3 is apart from the offset X 3 of file beginning The configuration 3 storage size Y3 that take
3 Configuration 4 is apart from the offset X 4 of file beginning The configuration 4 storage size Y4 that take
. . .
256 0x14 0xfa
. .
.
4660 0x04 0x1e
. . .
65535 Configuration 65536 is apart from the offset X 65536 of file beginning The configuration 65536 storage size Y65536 that take
The 0x1234 decimalize is exactly 4660, and it is 0x04 byte apart from the offset X that file starts that system finds the list item of 4660 correspondences to obtain this configuration, and the storage size Y that this configuration takies is the individual byte of 0x1e (30).
Final system is 0x78340acc by file handle, this configuration is a 0x04 byte apart from the offset X of file beginning, the storage size Y that this configuration takies is a 0x1E byte, these three parameters just can direct control should configuration place file and quick indexing to the actual content of this configuration, read the content of these 30 bytes then.The content of these 30 bytes is: fs:/music/comingcall/waltz.mp3.Like this, system is fs:/music/comingcall/waltz.mp3 by the ringing sound of cell phone that this method has read Set For Current fast.Then play this file as incoming call jingle bell sound.
We see by this example, and the actual content of configuration has taken 30 bytes, but system has only used the internal memory of 4/N+2+1 byte just can find this configuration fast.Above-mentioned 4/N refers to: the 4th, and the file handle of mapping table a, N are the configuration total numbers that this file handle corresponding file is stored altogether.Because a file can be stored the configuration of N bar, so each memory consumption that is configured in allocation list a is exactly 4/N.2 above-mentioned finger side-play amounts, side-play amount takies 2 bytes, and just the maximum offset of each configuration file is 65536 bytes.Above-mentioned 1 refers to the storage size of configuration, has taken a byte and illustrate in mapping table b, and the storage control that takies of each configuration is 256 bytes to the maximum.If single configuration surpasses this number, can solve this problem by this configuration being decomposed into a few height configurations.So), just saved the individual byte of 30-(4/N+2+1) above the configuration at this.Suppose that N is 200,4/N can almost ignore so, that is to say that we pass through this method and saved 27 bytes on the EMS memory occupation of this configuration.Method of the present invention is actually a kind of and exchanges the method in space for the time, is used for saving expensive mobile phone EMS memory, and this method is specially adapted to the little low-end mobile phone of internal memory.
Be the course of work of the example explanation embodiment of the invention 2 below again with the incoming call blacklist of revising mobile phone, as shown in Figure 2.The incoming call blacklist hypothesis of mobile phone is supported 10 blacklist numbers at most, and each number maximum length is 25 item code lengths.
The configuration identifier that the cell phone incoming call blacklist is found in the association of the incoming call blacklist configuration of system by mobile phone number is 0X021000
It is 0x78340ac8 that the 1st byte 0x02 by identification number comes the locating file handle at mapping table a.(mapping table a sees embodiment 1)
Search this configuration corresponding offset X and the storage size Y that takies by the 2nd and 3 byte of identification number at mapping table b again apart from the file beginning
The the 2nd and 3 byte of identification number is 0x0100, and decimalize is exactly 256, so we to find the list item of 256 correspondences to obtain this configuration be 0x14 byte apart from the offset X of file beginning, the storage size Y that this configuration takies is the individual byte of 0xfa (250).(mapping table b sees embodiment 1)
By file handle is 0x78340ac8, offset X is a 0x14 byte, storage size Y is a 0xfa byte, these three parameters just can direct control should configuration place file and quick indexing to the position of this configuration, only this part load content is made amendment in the internal memory or the content of new mobile phone blacklist (250 bytes) is write.
At last, preserve this configuration file.
We see by this example, and the actual content of configuration has taken 250 bytes, but we have only used the internal memory of 4/N+2+1 byte just can find this configuration fast.Above-mentioned 4/N refers to: the 4th, and the file handle of mapping table a, N are the configuration total numbers that this file handle corresponding file is stored altogether.Because a file can be stored the configuration of N bar, so each memory consumption that is configured in allocation list a is exactly 4/N.2 above-mentioned finger side-play amounts, side-play amount takies 2 bytes, and just the maximum offset of each configuration file is 65536 bytes.Above-mentioned 1 refers to the storage size of configuration, has taken 1 byte and illustrate in mapping table b.We as can be known the storage control that takies of each configuration be 256 bytes to the maximum.If single configuration surpasses this number, we can solve this problem by this configuration being decomposed into a few height configurations so.So we have just saved the individual byte of 250-(4/N+2+1) at this above the configuration.Suppose that N is 2000,4/N can almost ignore so, that is to say that we pass through this method and saved 247 bytes on the EMS memory occupation of this configuration.

Claims (5)

1. a cell phone configuration method is characterized in that, comprises the steps:
101. the configuration of mobile phone is divided into different configuration files according to the function that disposes;
102. set up mapping table, described mapping table is an one-dimension array, its content comprises, the size that array index, configuration file handle, configuration take storage apart from the side-play amount and the configuration of configuration file beginning;
103. set up configuration identifier number, the content of described identification number comprises the subscript index that is configured in the mapping table;
104. set up the association of identification number with configuration;
105. when inquiry or revising the mobile phone configuration, at first obtain the identification number of this configuration by association; From mapping table, find the configuration file handle, dispose the size that takies storage apart from the side-play amount and the configuration of configuration file beginning by identification number; File by above-mentioned 3 parameter operative configuration places reads the actual content of this configuration, handles.
2. cell phone configuration method according to claim 1 is characterized in that, described mapping table is divided into mapping table a and mapping table b; Mapping table a comprises array index and configuration file handle, and mapping table b comprises array index, disposes the size that takies storage apart from the side-play amount and the configuration of configuration file beginning; Described configuration identifier number comprises the subscript index that is configured among mapping table a and the mapping table b.
3. cell phone configuration method according to claim 2 is characterized in that, the array size of described mapping table a is the number of concrete configuration file, and the array size of mapping table b is the number of concrete configuration; Described configuration identifier number is at least 2 bytes, wherein the 1st byte is the file handle index, be used at mapping table a locating file handle, later byte is the index of mapping table b, is used for searching this configuration corresponding side-play amount and the storage size that takies apart from the file beginning at mapping table b.
4. cell phone configuration method according to claim 3 is characterized in that, also comprises the steps:
401. configuration file is sorted by the subscript index of configuration identifier number in mapping table a;
402. when the mobile phone power-on initialization, open these configuration files and obtain their file handle;
403. by the handle of configuration file being write mapping table a by the subscript index of configuration identifier number in mapping table a.
5. according to claim 3 or 4 described cell phone configuration methods, it is characterized in that, in step 104, when inquiry or revising the mobile phone configuration, from mapping table a, find the configuration file handle by the 1st byte of identification number; From mapping table b, find the size that configuration takies storage apart from the side-play amount and the configuration of configuration file beginning by the later byte of identification number.
CNA200610063438XA 2006-11-01 2006-11-01 Cell phone configuration method Pending CN1949902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200610063438XA CN1949902A (en) 2006-11-01 2006-11-01 Cell phone configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200610063438XA CN1949902A (en) 2006-11-01 2006-11-01 Cell phone configuration method

Publications (1)

Publication Number Publication Date
CN1949902A true CN1949902A (en) 2007-04-18

Family

ID=38019249

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200610063438XA Pending CN1949902A (en) 2006-11-01 2006-11-01 Cell phone configuration method

Country Status (1)

Country Link
CN (1) CN1949902A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902748A (en) * 2012-09-18 2013-01-30 上海移远通信技术有限公司 Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems
CN102929626A (en) * 2012-10-30 2013-02-13 Tcl通讯(宁波)有限公司 Function query module implementation method and system based on Android system, and mobile phone
CN104166626A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration file storage and recovery method of data communication equipment and data communication equipment
CN113467853A (en) * 2021-05-31 2021-10-01 北京达佳互联信息技术有限公司 Data processing method, apparatus, device, storage medium and program product

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902748A (en) * 2012-09-18 2013-01-30 上海移远通信技术有限公司 Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems
CN102929626A (en) * 2012-10-30 2013-02-13 Tcl通讯(宁波)有限公司 Function query module implementation method and system based on Android system, and mobile phone
WO2014067308A1 (en) * 2012-10-30 2014-05-08 Tcl通讯(宁波)有限公司 Implementation method and system for function inquiry module based on android system, and cellular phone
CN102929626B (en) * 2012-10-30 2016-06-22 Tcl通讯(宁波)有限公司 Based on the functional inquiry module realizing method of Android system, system and mobile phone
CN104166626A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration file storage and recovery method of data communication equipment and data communication equipment
CN104166626B (en) * 2013-05-16 2018-01-02 上海斐讯数据通信技术有限公司 The storage of the configuration file of datacom device and restoration methods and datacom device
CN113467853A (en) * 2021-05-31 2021-10-01 北京达佳互联信息技术有限公司 Data processing method, apparatus, device, storage medium and program product
CN113467853B (en) * 2021-05-31 2024-04-16 北京达佳互联信息技术有限公司 Data processing method, apparatus, device, storage medium, and program product

Similar Documents

Publication Publication Date Title
CN101227685B (en) Method and apparatus for obtaining number region of mobile terminal
CN1913546A (en) Method for sort storing mobile phone short message
CN1885869A (en) Address list system and its using method
CN1758680A (en) Method for permutation and displaying number of mobile communication terminal
CN1149816C (en) Extended telephone directory for a mobile telephone
CN1949907A (en) Mobile terminal and network searching method thereof
CN101431558A (en) Data control method for mobile terminal and mobile terminal thereof
CN1949902A (en) Cell phone configuration method
CN101056338A (en) Method for providing personalized information lifecycle management service using policy-based autonomic data management
CN1976522A (en) Mobile terminal equipment and method for supporting different kind of smart cards
CN102541925A (en) Method and device for rapidly storing and retrieving detailed tickets
CN101937271A (en) Method and device for inputting contact information and mobile terminal
CN1863235A (en) Method for grouping yellow pages contact person record in user identification card
CN1756273A (en) Method for adding linkman information in hand-held equipment telephone directory
CN1851671A (en) Method for saving global varible internal memory space
CN1434619A (en) System and method for realizing dynamic displaying telephone record
CN1492705A (en) Method for arranging telephnoe numbers according to using frequency
CN1829352A (en) Mobile communication terminal data management method using sim card
CN1195359C (en) Data synchronizing system and method
CN101014059A (en) Method for storing and extending data information of electric phone book
CN101115092B (en) CDMA wireless terminal telephone number accurate matching method
CN1226896C (en) Dynamic distribution method of memory space in subscirber identifying module
CN1758679A (en) User data storage method of mobile communication terminal and its use
CN1901564A (en) Shortcut key setting method and mobile communication terminal using the same
CN101222720B (en) Linkman information and short message processing method and terminal

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

Application publication date: 20070418