CN1190053C - Off-line data configuration method for communication equipment - Google Patents

Off-line data configuration method for communication equipment Download PDF

Info

Publication number
CN1190053C
CN1190053C CN 02103655 CN02103655A CN1190053C CN 1190053 C CN1190053 C CN 1190053C CN 02103655 CN02103655 CN 02103655 CN 02103655 A CN02103655 A CN 02103655A CN 1190053 C CN1190053 C CN 1190053C
Authority
CN
China
Prior art keywords
data
configuration data
configuration
field
file
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.)
Expired - Fee Related
Application number
CN 02103655
Other languages
Chinese (zh)
Other versions
CN1437365A (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.)
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 CN 02103655 priority Critical patent/CN1190053C/en
Publication of CN1437365A publication Critical patent/CN1437365A/en
Application granted granted Critical
Publication of CN1190053C publication Critical patent/CN1190053C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention discloses an off-line data configuration method for a communication device. In the method, a universal data description method to describe and configure data to obtain a configuration data description file; then data files in a device are derived out; on the basis of a conversion rule of the configuration data description file, the data files are converted to a plurality of database file (DBF) tables by using the configuration data description file; the DBF tables are edited, and the configuration data is modified; on the basis of a conversion rule of the configuration data description file, the DBF tables are reversely converted to a configuration data file by using the description file; finally, the configuration data file is loaded to the device, and the configuration data is restored.

Description

A kind of off-line data configuration method of communication equipment
Technical field
The present invention relates to the data configuration method of communication equipment in the communication system, relate in particular to the off-line arrangement method of communication apparatus.
Background technology
In communication system, because the needs of communication equipment operation and management need carry out data configuration to communication equipment.The organizational form of the data configuration of communication equipment is a lot of in the reality, such as form, the form of configuration file or the form of data structure etc. that adopt memory database, usually select multi-form configuration data scheme according to the difference location of product for use with different factors such as industry custom, at different configuration data schemes, corresponding off-line data configuration method is also had nothing in common with each other.Existing off-line data configuration method is usually at first according to the data form of different layout data library files (DBF) form of configuration data, and formulate system's form and be used for the data of description dictionary, then at webmaster inediting DBF data form, and be converted to the memory database equipment that is loaded into and use, thereby reach the purpose of communication equipment off-line data configuration; For already present data in the equipment, by online it is read webmaster, and insert in the DBF form.Be converted into memory database according to system's form then, at last memory database be loaded into equipment, restore data.The shortcoming of said method is, the one, transfer process does not have according to can asking, if equipment change database structure, change conversion method, upgrade conversion instrument and configuration tool synchronously; The 2nd, owing to there is not perfect data description method, the data upgrading is difficult for, and a new versions of data is whenever arranged, and all needs to revise upgrading tool and upgrading rule; The 3rd, the online configuration data that reads, must define equipment and webmaster between agreement, realize complicated.
Summary of the invention
The object of the present invention is to provide a kind of off-line data configuration method of simple, general communication equipment.
For achieving the above object, the off-line data configuration method of communication equipment provided by the invention comprises:
(1) adopts the describing method of the database file form that can be described various data type field in the database to describe configuration data, generate the configuration data description document;
(2) data file in the derivation equipment;
(3) utilize configuration data description document and convert the data file of above-mentioned derivation to several database files (DBF) form, edit above-mentioned DBF form, revise configuration data according to the transformation rule of configuration data description document;
(4) utilize configuration data description document and be data file after the configuration to DBF form reverse conversion according to the transformation rule of configuration data description document;
(5) data file after will disposing is loaded into equipment, the data after the recovery configuring.
It is the formal description configuration data that adopts " joint " and " keyword " that the data description method that adopts described in the described step (1) is described configuration data, in this method, comprise some keywords in each " joint ", wherein: " joint " is used for describing master meter, expansion table, system parameters, enumerated field and the bit field field of configuration data, and " keyword " is used for describing the concrete structure of master meter, expansion table, system parameters, enumerated field and the bit field field of above-mentioned configuration data.
Described step (3) is described to be utilized the configuration data description document and converts above-mentioned data file to several database files (DBF) form according to the transformation rule of configuration data description document, be according to the concrete structure of master meter, expansion table, system parameters, enumerated field and bit field field in the configuration data of configuration data description document description, described data file is converted to the DBF form.
Described method also comprises the upgrade step of configuration data, to adapt to the variation of configuration data of device.
The upgrade step of described configuration data can for: the configuration data description document of utilizing last version is converted to the DBF file with the configuration data of this version, described DBF file is made amendment, utilize the configuration data description document of back one version that the configuration data of amended DBF file conversion for back one version is loaded in the equipment then.
The upgrade step of described configuration data can also for: utilize the configuration data description document of last version and back one version, the configuration data of last version directly be converted to the configuration data of back one version.
Because method of the present invention adopts described data description method to describe configuration data, generate the configuration data description document, utilize the configuration data description document and convert the data file that derives in the slave unit to several DBF form according to the transformation rule of configuration data description document, editor, after revising the data in the above-mentioned DBF form, utilize the configuration data description document and be loaded into equipment after the data file of DBF form reverse conversion after for configuration according to the transformation rule of configuration data description document, data after the recovery configuring, adopt such scheme, make the present invention have following advantage:
1, configuration data description document editor is convenient, browse intuitively, and the versatility height, and can more effectively include configuration database in configuration management;
2, the data upgrading is simply effective with the off-line arrangement process, the versatility height;
3, the transfer process of configuration data and off-line arrangement process versatility are good, needn't synchronous upgrade conversion instrument and configuration tool when version changes;
4, the complete separation instrumentation of off-line arrangement process, the efficient height, and configuration data description document editor is convenient, browses intuitively, and versatility is good, can more effectively include configuration database in configuration management.
Description of drawings
Fig. 1 is the embodiment flow chart of the method for the invention
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
The essence of the method for the invention is to utilize the configuration data description document that the configuration data of deriving in the slave unit is edited, revised, and will edit, amended configuration data is loaded in the equipment again, thereby finish the off-line data configuration of equipment.Specific implementation process of the present invention is with reference to figure 1.
According to Fig. 1, at first make the configuration data description document in the 1st step.In order to accomplish general data upgrading and off-line arrangement, it is necessary and primary problem that data are carried out general description.Because all configuration datas can show as the bivariate table case form, therefore just whole configuration data can be described as long as describe these two-dimentional forms.
In communication equipment, memory database is divided into system parameters district, data dictionary district and data field three parts usually.Configuration data in memory database with the forms mode tissue, the attribute information of form wherein, all in data dictionary, describe as the dominant record number of form, field number, field type, field length, span or the like, concrete data then are kept at the data field, in the data field, all data are according to form, record and order is deposited.If need a certain record in the equipment running process, then according to the description of data dictionary, calculate the side-play amount of this record, thereby carry out the location of this record and read.In addition, some system parameterss have been deposited in the system parameters district, the data that system parameters is relatively simple for structure often, can't become form separately.
In order to generate general configuration data description document, the present invention adopt a kind of relatively be convenient to edit, check and handle with initialization the syntactic description mode of file (INI) form tissue is set.Promptly adopt the formal description configuration data of " joint " and " keyword ", comprise some keywords and " keyword " corresponding characters string in each " joint ".Wherein: " joint " is used for describing master meter, expansion table, system parameters, enumerated field and the bit field field of configuration data, and " keyword " is used for describing the concrete structure of master meter, expansion table, system parameters, enumerated field and the bit field field of above-mentioned configuration data.The basic structure of described ini file is as follows:
[section]
key=string
Above-mentioned section is " joint ", and key is " keyword ", and string is the string value of this keyword representative.
In this example, define a data form with each " joint ", the representative of " joint " title is formed the form sign by form sequence number and memonic symbol, " keyword " title represent form title, dominant record number, field name, field type, field length, field span, default value or the like, string value is then represented the concrete value of certain keyword, so just can describe the configuration data structure out fully.In addition, because configuration data also comprises co-ordinative construction, will unite field in this example and be split as several and expand forms and define separately.Because to be used for describing type is the co-ordinative construction data to expansion table,, be master meter with common form definition in this example with respect to expansion table.If having type in the master meter is the data of co-ordinative construction, then the data definition with each co-ordinative construction is the expansion table of this master meter;
In this example, the content of description includes only data dictionary and system parameters, and concrete data still are kept in the memory database.The system parameters district adopts form description equally, and the field in this table is parameter name, parameter type, parameter length, parameter value, and each system parameters all generates a record of this table.For the enumeration type in the configuration data, adopt form description too, and with " joint " name as its sign, " keyword " as enumerating sequence number, character string is as its title.The bit field type is similar substantially, and different is to need to describe its bit field length and implication.Be the example of configuration data description document below, each row front portion is its content in this example, and the back is the explanation of this content:
/ * system parameters describe */
[SYSTEM_PARAMETER_SECTION]; The system parameters joint;
SYSTEM_PARAM_AREA_LENGTH=1024; The system parameters length of field;
DB_VERSION=1.10; Database version;
……|
The 000_PARA_NAME=maximum node number; 000 parameter domain name;
000_PARA_TYPE=ULONG; 000 parameter field type;
000_PARA_LENGTH=4; 000 parameter field length;
000_PARA_VALUE=64; 000 parameter value;
……/
The description * of/* master meter/
[TABLE_001]; Be numbered 001 table;
TABLE_NAME=form 001; Table name claims;
TABLE_TYPE=INDEX_TBL; The table type;
INDEX_TYPE=ORDER_IDX; Index type;
MAX_TUPLE_NUM=200; The dominant record number;
FIELD_NUMBER=2; Field Count;
00_FIELD_NAME=field 1; Be numbered 00 field name;
00_FIELD_TYPE=ULONG; Be numbered 00 field type;
00_FIELD_LENGTH=4; Be numbered 00 field length;
00_FIELD_INDEX=YES; But be numbered whether index of 00 field;
00_FIELD_DEFAULT=NO; Be numbered 00 field silent approvement value;
01_FIELD_NAME=field 2; Be numbered 01 field name
01_FIELD_TYPE=UCHAR; Be numbered 01 field type;
01_FIELD_LENGTH=1; Be numbered 01 field length;
01_FIELD_INDEX=NO; But be numbered whether index of 01 field;
01_FIELD_ENUM=ENUM_001; Be numbered 01 the pairing enumeration type of field;
01_FIELD_DEFAULT=NO; Be numbered 01 field silent approvement value;
01_FIELD_EXTEND=EXT_RELATION_002; Be numbered the expansion table (being used to indicate expansion relation) of 01 field correspondence;
/ * master meter and expansion table relationship description */
[EXT_RELATION_002]; Be numbered 002 expansion relation;
KEY_FIELD_NUM=1; The keyword hop count;
KEY_FIELD_NAME_00=field 2; The 00th critical field name;
KEY_FIELD_NAME_01=field 3; The 01st critical field name (indicating critical field here);
00_KEY_FIELD_VALUE_00=1; The 00th value of the 00th critical field;
00_KEY_FIELD_VALUE_01=1; The 01st value of the 00th critical field;
00_EXT_TABLE_NAME=EXT_TABLE_010; The 00th expansion table name;
01_KEY_FIELD_VALUE_00=1; The 00th value of the 01st critical field;
01_KEY_FIELD_VALUE_01=2; The 01st value of the 01st critical field;
01_EXT_TABLE_NAME=EXT_TABLE_011; The 01st expansion table name;
……/
/ * open expansion form description */
[EXT_TABLE_010]; Be numbered 010 expansion table;
……/
[EXT_TABLE_011]; Be numbered 011 expansion table;
The description * of/* enumerated field/
[ENUM_001]; Be numbered 001 enumeration type sign;
Enumerating of ENUM_NAME=field 2; The enumerated field name;
01=enumerates name 1; Numerical value 01 correspondence enumerate title
02=enumerates name 2; Numerical value 02 correspondence enumerate title
……/
The description * of/* bit field field/
[BIT_001]; Be numbered 001 bit field type identification;
BIT_NAME=CONTROL1; The bit field title;
00_BITS_NAME=bit field name 1; Be numbered 00 title;
00_BITS_LENGTH=3; Be numbered 00 length
01_BITS_NAME=bit field name 2; Be numbered 01 title
01_BITS_LENGTH=5; Be numbered 00 length;
Adopt the describing method of the database file form that can be described various data type field in the database of similar above-mentioned example to describe configuration data, generate the configuration data description document;
In step 2, data file in the derivation equipment, utilize the configuration data description document and convert above-mentioned data file to several database files (DBF) form in step 3 then, edit above-mentioned DBF form, revise configuration data according to the transformation rule of configuration data description document.Describedly utilize the configuration data description document and convert above-mentioned data file to several database files (DBF) form according to the transformation rule of configuration data description document, be according to the concrete structure of master meter, expansion table, system parameters, enumerated field and bit field field in the configuration data of configuration data description document description, described data file is converted to the DBF form.
In step 3, the configuration data description document that utilize to derive is converted to the process of several DBF files to memory database, can be called the forward conversion of configuration data.The detailed process of conversion is: according to the configuration data description document, each opens master meter and expansion table all generates the empty form of a DBF separately, the title of the empty form of described DBF, field name, field type, field length etc. all with the configuration data description document in full accord.According to the derivation of table number and the corresponding configuration data itemize from memory database of field number handle, insert successively in the DBF form and go.
System parameter table also generates a DBF form, and the DBF form inserted in direct value generation record from the configuration data description document.
In step 4, utilize the configuration data description document and be DBF form reverse conversion data file after the configuration according to the transformation rule of configuration data description document.The inverse process of the conversion of this step and step 3.In step 5, the data file after the configuration is loaded into equipment, the data after the recovery configuring at last.
For the described example of Fig. 1, the off-line data configuration pin is carried out the DBF form after changing, and whole off-line arrangement process will be mainly reflected in the following aspects by means of the configuration data description document:
1, to only depend on the DBF form be to be beyond expression to the relation between master meter and expansion table, therefore need be by the description in the configuration data description document, realize master meter and expansion table content synchronously;
2, for the edit properties of form and field, whether form allows to increase and deletes, whether allows editor, whether field allows editor and span etc., equally can't record in the DBF form, therefore when editor, need guarantee the correct of editing process by the description in the configuration data description document;
3, the editor of enumeration type and bit field type.In DBF, can't represent for these two types, can only write down its numerical value, therefore need be by the configuration data description document, numerical value is converted to concrete string representation or bit field is represented.
Needing explanation is that the present invention can be undertaken by general off-line arrangement instrument in implementation process.
The described method of Fig. 1 can also be used for the upgrade step of configuration data, to adapt to the variation of configuration data of device.Data upgradings is a special case of off-line data configuration, generates the highest version data after referring to a lowest version data transaction, and the integrality and the correctness of retention data to greatest extent.Utilize above-mentioned off-line arrangement process, we have two kinds of schemes can realize the data upgrading:
The one, the configuration data description document of utilizing last version is converted to the DBF file with the configuration data of this version, described DBF file is made amendment, utilize the configuration data description document of back one version that the configuration data of amended DBF file conversion for back one version is loaded in the equipment then.
The 2nd, utilize the configuration data description document of last version and back one version, the configuration data of last version directly is converted to the configuration data of back one version.
No matter the sort of method all will be considered data structure, the conversion method after promptly tableau format changes.Be a kind of processing mode of suggestion below:
1, the condition that form is equal is identical form numbering and identical title;
2, according to top condition the last data file being carried out form deletes and inserts; The title difference is then inserted an empty table according to back one configuration data description document if numbering is identical, and inserts acquiescence numerical value according to its field description;
3, the condition that field is equal is identical field number and identical field name;
4, according to top condition certain of last data file is opened form and carry out copy, deletion, the insertion of field; If field length, type generation conversion, according to the compatibility rule-conversion data, or the default value of use Field Definition;
5, successively every table, each field of last data file are carried out above-mentioned processing, generate back one data file.

Claims (7)

1, a kind of off-line data configuration method of communication equipment comprises:
(1) adopts the describing method of the database file form that can be described various data type field in the database to describe configuration data, generate the configuration data description document;
(2) data file in the derivation equipment;
(3) utilize configuration data description document and convert the data file of above-mentioned derivation to several database files DBF form, edit above-mentioned database file DBF form, revise configuration data according to the transformation rule of configuration data description document;
(4) utilize configuration data description document and be data file after the configuration to DBF form reverse conversion according to the transformation rule of configuration data description document;
(5) data file after will disposing is loaded into equipment, the data after the recovery configuring.
2, the off-line data configuration method of communication equipment according to claim 1 is characterized in that: the data description method that adopts described in the step (1) is described configuration data and is described configuration data for the syntactic description mode that adopts initialization that the ini file form is set.
3, the off-line data configuration method of communication equipment according to claim 1 and 2, it is characterized in that: it is the formal description configuration data that adopts " joint " and " keyword " that the data description method that adopts described in the step (1) is described configuration data, in this method, comprise some keywords in each " joint ", wherein: " joint " is used for describing the master meter of configuration data, expansion table, system parameters, enumerated field and bit field field, " keyword " is used for describing the master meter of above-mentioned configuration data, expansion table, system parameters, the concrete structure of enumerated field and bit field field.
4, the off-line data configuration method of communication equipment according to claim 1, it is characterized in that step (3) is described utilizes the configuration data description document and converts above-mentioned data file to several database files DBF form according to the transformation rule of configuration data description document, be according to the concrete structure of master meter, expansion table, system parameters, enumerated field and bit field field in the configuration data of configuration data description document description, described data file is converted to database file DBF form.
5, the off-line data configuration method of communication equipment according to claim 1 is characterized in that described method also comprises the upgrade step of configuration data, to adapt to the variation of configuration data of device.
6, the off-line data configuration method of communication equipment according to claim 5, the upgrade step that it is characterized in that described configuration data is: the configuration data description document of utilizing last version is converted to database file DBF with the configuration data of this version, described database file DBF is made amendment, utilize the configuration data description document of back one version that the configuration data that amended database file DBF is converted to back one version is loaded in the equipment then.
7, the off-line data configuration method of communication equipment according to claim 5, the upgrade step that it is characterized in that described configuration data is: utilize the configuration data description document of last version and back one version, the configuration data of last version directly is converted to the configuration data of back one version.
CN 02103655 2002-02-04 2002-02-04 Off-line data configuration method for communication equipment Expired - Fee Related CN1190053C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02103655 CN1190053C (en) 2002-02-04 2002-02-04 Off-line data configuration method for communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02103655 CN1190053C (en) 2002-02-04 2002-02-04 Off-line data configuration method for communication equipment

Publications (2)

Publication Number Publication Date
CN1437365A CN1437365A (en) 2003-08-20
CN1190053C true CN1190053C (en) 2005-02-16

Family

ID=27627905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02103655 Expired - Fee Related CN1190053C (en) 2002-02-04 2002-02-04 Off-line data configuration method for communication equipment

Country Status (1)

Country Link
CN (1) CN1190053C (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100377151C (en) * 2005-03-11 2008-03-26 鸿富锦精密工业(深圳)有限公司 Off-line programing system and method for measuring equipment
CN101098248B (en) * 2006-06-26 2010-09-08 腾讯科技(深圳)有限公司 Method and system for implementing universal network management based on configuration describing document
CN100422948C (en) * 2006-09-18 2008-10-01 毛国红 Recovery method for computer system or data
CN100566357C (en) * 2007-07-24 2009-12-02 华为技术有限公司 Communication apparatus batch configuration managerial approach and device thereof
CN102662683B (en) * 2011-12-30 2015-07-22 广东东研网络科技股份有限公司 Generating and importing method for communication facility configuration file based on key-value pair format
CN102855305B (en) * 2012-08-20 2015-05-27 大唐移动通信设备有限公司 Data upgrading method and device
EP3286915B1 (en) 2015-04-23 2021-12-08 Apple Inc. Digital viewfinder user interface for multiple cameras
US10009536B2 (en) * 2016-06-12 2018-06-26 Apple Inc. Applying a simulated optical effect based on data received from multiple camera sensors
DK180859B1 (en) 2017-06-04 2022-05-23 Apple Inc USER INTERFACE CAMERA EFFECTS
US11112964B2 (en) 2018-02-09 2021-09-07 Apple Inc. Media capture lock affordance for graphical user interface
US10375313B1 (en) 2018-05-07 2019-08-06 Apple Inc. Creative camera
US11722764B2 (en) 2018-05-07 2023-08-08 Apple Inc. Creative camera
US11770601B2 (en) 2019-05-06 2023-09-26 Apple Inc. User interfaces for capturing and managing visual media
US10674072B1 (en) 2019-05-06 2020-06-02 Apple Inc. User interfaces for capturing and managing visual media
US11321857B2 (en) 2018-09-28 2022-05-03 Apple Inc. Displaying and editing images with depth information
US11128792B2 (en) 2018-09-28 2021-09-21 Apple Inc. Capturing and displaying images with multiple focal planes
US11706521B2 (en) 2019-05-06 2023-07-18 Apple Inc. User interfaces for capturing and managing visual media
CN110569218B (en) * 2019-08-01 2021-11-23 厦门市美亚柏科信息股份有限公司 Offline modification method and device for EXT file system and storage medium
US11039074B1 (en) 2020-06-01 2021-06-15 Apple Inc. User interfaces for managing media
US11212449B1 (en) 2020-09-25 2021-12-28 Apple Inc. User interfaces for media capture and management
US11539876B2 (en) 2021-04-30 2022-12-27 Apple Inc. User interfaces for altering visual media
US11778339B2 (en) 2021-04-30 2023-10-03 Apple Inc. User interfaces for altering visual media

Also Published As

Publication number Publication date
CN1437365A (en) 2003-08-20

Similar Documents

Publication Publication Date Title
CN1190053C (en) Off-line data configuration method for communication equipment
CN1199104C (en) Back-and-forth method and device for software design
CN1134730C (en) System and method for reducing footprint of preloaded classes
CN1215415C (en) Files management method and storage information reproducing device and storage information recording medium
CN1612136A (en) Document conversion system, document conversion method
CN1653448A (en) System and method for searching data sources
CN1790335A (en) XML file data access method
CN1609835A (en) Comment method, apparatus and system for electronic file
CN1167014C (en) File processing method, data processing device and storage medium
CN101046808A (en) File process system and method
CN1286053C (en) Extensible file format
CN1761958A (en) Method and arrangement for searching for strings
CN1627259A (en) Programmable object model for namespace or schema library support in a software application
CN1873642A (en) Searching engine with automating sorting function
CN1908935A (en) Search method and system of a natural language
CN1908931A (en) Literal data variable typesetting method
CN1900933A (en) Image search system, image search method, and storage medium
CN1661593A (en) Method for translating computer language and translation system
CN1889043A (en) Method for using human natural language in computer programing
US7415405B2 (en) Database script translation tool
CN1670734A (en) Compound engine managing methods and compound engine managing system
CN1265307C (en) Characteristic character string extracting and substituting method in language localization
CN101833545B (en) Method for indexing data in digital recourse processing process
CN1645372A (en) Universal constraining realizing method for real-time internal memory database
CN100533383C (en) Method of displacing data in software

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050216

Termination date: 20150204

EXPY Termination of patent right or utility model