CN106777393A - A kind of data-updating method and device - Google Patents

A kind of data-updating method and device Download PDF

Info

Publication number
CN106777393A
CN106777393A CN201710103165.5A CN201710103165A CN106777393A CN 106777393 A CN106777393 A CN 106777393A CN 201710103165 A CN201710103165 A CN 201710103165A CN 106777393 A CN106777393 A CN 106777393A
Authority
CN
China
Prior art keywords
variable
address
demarcation
demarcate
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710103165.5A
Other languages
Chinese (zh)
Other versions
CN106777393B (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.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle 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 Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN201710103165.5A priority Critical patent/CN106777393B/en
Publication of CN106777393A publication Critical patent/CN106777393A/en
Application granted granted Critical
Publication of CN106777393B publication Critical patent/CN106777393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of data-updating method and device, the data-updating method includes:Obtain the first demarcation address of variable in the address of variable mapped file in engineering;Obtain demarcate variable description database in institute modified address in need second demarcate variable;Address of variable is demarcated according to described first, the second demarcation variable for needing modified address is updated.The address of the second demarcation variable is modified by the first demarcation address of variable for getting, without manually being operated so that operation is extremely facilitated, also, the degree of accuracy is high.

Description

A kind of data-updating method and device
Technical field
The present invention relates to data more frontier, especially a kind of data-updating method and device.
Background technology
The method of existing nominal data address modification has at present:1st, artificial statistical method.The method is fairly simple directly, But actual operability is not strong, because the demarcation address of variable quantity of each requirement of engineering modification is very huge, not only take Arduously, and it is accurate fixed it cannot be guaranteed that;2nd, all of demarcation variable in engineering is all mapped to by the calibration tool of specialty .a2l file (demarcate variable description database file), such method benefit can be without manual modification address, but but The .a2l files of customization, underaction can not selectively be generated.
The content of the invention
The embodiment of the present invention technical problem to be solved is to provide a kind of data-updating method and device, is used to realize automatically To demarcating the renewal of variable description database file, and the demarcation variable description database file of needs can be generated.
In order to solve the above technical problems, data-updating method provided in an embodiment of the present invention, including:
Obtain the first demarcation address of variable in the address of variable mapped file in engineering;
Obtain demarcate variable description database in institute modified address in need second demarcate variable;
Address of variable is demarcated according to described first, the second demarcation variable for needing modified address is updated.
Preferably, also wrapped after the step of obtaining the first demarcation address of variable in the address of variable mapped file in engineering Include:
Generate with the first entitled major key for demarcating variable, with the corresponding demarcation of the title that variable is demarcated with described first Address of variable value is the data dictionary of key assignments.
Preferably, obtain demarcate variable description database in institute modified address in need second demarcation variable the step of bag Include:
According to the described first title for demarcating variable, it is determined that being demarcated with described first in variable description database is demarcated The title corresponding second of variable demarcates the description file of variable;
According to the corresponding demarcation address of variable value of the title that variable is demarcated with described first, the second demarcation variable is determined Description fragment position of the change of address to be repaired in the description file.
Preferably, address of variable is demarcated according to described first, the second demarcation variable for needing modified address is carried out The step of renewal, includes:
Need the first of modified address to demarcate variable according to described, inquire about data dictionary, variable ground is demarcated with described first Location, replacement needs the second of the modified address destination address for demarcating variable.
Preferably, the data-updating method also includes:
The description file of the second demarcation variable after being updated is inserted into the demarcation variable description database.
Preferably, the data-updating method also includes:
Obtain the total amount of the description file of the second demarcation variable demarcated after being updated in variable description database.
Another aspect according to embodiments of the present invention, the embodiment of the present invention additionally provides a kind of data update apparatus, including:
First acquisition module, for obtaining the first demarcation address of variable in the address of variable mapped file in engineering;
Second acquisition module, for obtain demarcate variable description database in institute modified address in need second demarcation change Amount;
Update module, for demarcating address of variable according to described first, needs the second of modified address to demarcate change to described Amount is updated.
Preferably, the data update apparatus also include:
Generation module, for generating with the first entitled major key for demarcating variable, to demarcate the name of variable with described first Corresponding demarcation address of variable value is called the data dictionary of key assignments.
Preferably, second acquisition module includes:
First determining unit, the title for demarcating variable according to described first, it is determined that demarcating variable description database In with described first demarcate variable title it is corresponding second demarcate variable description file;
Second determining unit, for the basis demarcation address of variable value corresponding with the title that described first demarcates variable, Determine description fragment position of the change of address to be repaired of the second demarcation variable in the description file.
Preferably, the update module includes:
Replacement unit, for needing the first of modified address to demarcate variable according to described, inquires about data dictionary, with described the One demarcates address of variable, and replacement needs the second of the modified address destination address for demarcating variable.
Preferably, the data update apparatus also include:
Insertion module, for that will be updated after second demarcation variable description file be inserted into it is described demarcation variable retouch In stating database.
Preferably, the data update apparatus also include:
3rd acquisition module, for obtaining the second demarcation variable demarcated after being updated in variable description database Description file total amount.
Compared with prior art, data-updating method provided in an embodiment of the present invention and device, at least with following beneficial Effect:
The address of the second demarcation variable is modified by the first demarcation address of variable for getting, it is artificial without carrying out Operation so that operation is extremely facilitated, also, the degree of accuracy is high.
Brief description of the drawings
Fig. 1 is the structural representation of the data-updating method described in first embodiment of the invention;
Fig. 2 is the concrete structure schematic diagram of the data-updating method described in second embodiment of the invention;
Fig. 3 is the structural representation of the data update apparatus described in second embodiment of the invention.
Specific embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.In the following description, there is provided such as specific configuration is only with the specific detail of component In order to help comprehensive understanding embodiments of the invention.Therefore, it will be apparent to those skilled in the art that can be to reality described herein Example is applied to make various changes and modifications without deviating from scope and spirit of the present invention.In addition, for clarity and brevity, it is right to eliminate The description of known function and construction.
Reference picture 1, first embodiment of the invention provides a kind of data-updating method, including:
Step 101, obtains the first demarcation address of variable in the address of variable mapped file in engineering.
Step 102, obtain demarcate variable description database in institute modified address in need second demarcate variable.
Step 103, address of variable is demarcated according to described first, and the second demarcation variable for needing modified address is carried out Update.
In a step 101, it is by the address of variable mapped file in engineering to the first acquisition for demarcating address of variable Carry out retrieving what is obtained.
The embodiment of the invention, the first demarcation address of variable pair reflected in mapped file by the address of variable in engineering The address of the second demarcation variable is modified, without manually being operated so that operation is extremely facilitated, also, the degree of accuracy is high.
And further, in the first embodiment of the invention, also include after step 101:
1011, generation is corresponding with the title that variable is demarcated with described first with the first entitled major key for demarcating variable The address of variable value of demarcating be the data dictionary of key assignments.
The purpose for generating data dictionary is for the ease of the determination to the second demarcation variable and to the second data dictionary Modify address.
Because the title and storage that store the first demarcation variable in the address of variable mapped file in engineering are being demarcated It is identical or have corresponding relation between the title of the second demarcation variable in variable description database so that it is determined that all repair It is very convenient during the second demarcation variable of change of address, and accurate rate is high.
And further, in the first embodiment of the invention, step 102 can specifically include:
1021, according to described first demarcate variable title, it is determined that demarcate variable description database in and described first The title corresponding second for demarcating variable demarcates the description file of variable;
1022, according to the corresponding demarcation address of variable value of the title that variable is demarcated with described first, determine the second demarcation Description fragment position of the change of address to be repaired of variable in the description file.
By first in the description files and data dictionary of the multiple demarcation variables that will be demarcated in variable description database Demarcate variable title compare, it is determined that institute modified address in need second demarcate variable residing for description file, and Description fragment position of the change of address to be repaired in this describes file residing for change of address to be repaired, the path of lookup is very clear, will not go out Now search the problem for determining mistake.Improve the precision that whole data update.
And further, in the first embodiment of the invention, step 103 can specifically include:
Step 1031, needs the first of modified address to demarcate variable according to described, data dictionary is inquired about, with the described first mark Determine address of variable, replacement needs the second of the modified address destination address for demarcating variable.
For the description file of the second demarcation variable after replacing address, only its address is modified, Without being changed to other description informations in description file.
And further, in the first embodiment of the invention, the data-updating method can also include:
The description file of the second demarcation variable after being updated is inserted into the demarcation variable description database.
By insertion operation herein, the description file storage for just allowing to carry out the second demarcation variable after address updates exists In the demarcation variable description database, and the address of the second demarcation variable for originally storing then is discarded.
And further, in first embodiment of the invention, the data-updating method also includes:
Obtain the total amount of the description file of the second demarcation variable demarcated after being updated in variable description database.
Herein to being updated after the total amount of description file of the second demarcation variable to carry out statistics be for the ease of using People finder demarcates the information of variable.After total amount is got, to the name modifications of the demarcation variable description database file into The title related to the title of the address of variable mapped file in the engineering of correspondence version, for example, the address of variable in engineering Mapped file is the second edition, then the title for demarcating variable description database is modified into the second edition, is easy to follow-up system Meter is searched.
The data-updating method provided by first embodiment of the invention, realize manually to operate just can become to demarcating The address of the second demarcation variable in amount descriptive data base is updated, also, the manipulation accuracy of this kind of update method is high, no The address error of the second demarcation variable after causing to be updated.
Reference picture 2, second embodiment of the invention gives the specific example of a data-updating method, and it includes:
Step 201, obtains the first demarcation variable ground in the address of variable mapped file (for example .MAP files) in engineering Location;
Step 202, generation is corresponding with the title that variable is demarcated with first with the first entitled major key for demarcating variable Demarcate data dictionary of the address of variable as key assignments;
Step 203, the title of the first demarcation variable in the data dictionary in step 202, it is determined that demarcating variable In descriptive data base with described first demarcate variable title difference it is corresponding modified address in need second demarcate variable Description file (for example .SL), and by it is all of description file extracted from the demarcation variable description database;
Step 204, according to the mark corresponding with the title that first demarcates variable recorded in the data dictionary in step 202 Determine address of variable, determine every 1 second demarcation variable change of address to be repaired obtain in step 203 respectively description file in Description fragment position;
Step 205, the data dictionary generated in query steps 202 demarcates variable by being recorded in data dictionary with first The corresponding demarcation address of variable of title replace into step 204 corresponding description fragment position in the description file for determining, And the address to the second demarcation variable of original description fragment position record is deleted;
Step 206, the description file of the second demarcation variable after being replaced is inserted into demarcation variable data storehouse Original position;
Step 207, counts the total amount of the description file that quantity is demarcated into row address amended second;
Step 208, the title to demarcating variable description database is modified.
Reference picture 3, another aspect according to embodiments of the present invention, third embodiment of the invention additionally provides a kind of data more New equipment, including:
First acquisition module, for the first demarcation address of variable in the address of variable mapped file in engineering;
Second acquisition module, for obtain demarcate variable description database in institute modified address in need second demarcation change Amount;
Update module, for demarcating address of variable according to described first, needs the second of modified address to demarcate change to described Amount is updated.
The embodiment of the invention, the first demarcation address of variable pair reflected in mapped file by the address of variable in engineering The address of the second demarcation variable is modified, without manually being operated so that operation is extremely facilitated, also, the degree of accuracy is high.
Preferably, the data update apparatus also include:
Generation module, for generating with the first entitled major key for demarcating variable, to demarcate the name of variable with described first Corresponding demarcation address of variable value is called the data dictionary of key assignments.
Preferably, second acquisition module includes:
First determining unit, the title for demarcating variable according to described first, it is determined that demarcating variable description database In with described first demarcate variable title it is corresponding second demarcate variable description file;
Second determining unit, for the basis demarcation address of variable value corresponding with the title that described first demarcates variable, Determine description fragment position of the change of address to be repaired of the second demarcation variable in the description file.
Preferably, the update module includes:
Replacement unit, for needing the first of modified address to demarcate variable according to described, inquires about data dictionary, with described the One demarcates address of variable, and replacement needs the second of the modified address destination address for demarcating variable.
Preferably, the data update apparatus also include:
Insertion module, for that will be updated after second demarcation variable description file be inserted into it is described demarcation variable retouch In stating database.
Preferably, the data update apparatus also include:
3rd acquisition module, for obtaining the second demarcation variable demarcated after being updated in variable description database Description file total amount.
The data update apparatus that third embodiment of the invention is provided, are devices corresponding with the above method, in the above method All implementations suitable for the embodiment of the device, can also reach identical technique effect.Realize without artificial Operation just can realize that the address of the second demarcation variable to demarcating in variable description database is updated, also, update Accuracy is very high.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications Should be regarded as protection scope of the present invention.

Claims (12)

1. a kind of data-updating method, it is characterised in that including:
Obtain the first demarcation address of variable in the address of variable mapped file in engineering;
Obtain demarcate variable description database in institute modified address in need second demarcate variable;
Address of variable is demarcated according to described first, the second demarcation variable for needing modified address is updated.
2. data-updating method according to claim 1, it is characterised in that obtain the address of variable mapped file in engineering In first demarcation address of variable the step of after also include:
Generate with the first entitled major key for demarcating variable, with the corresponding demarcation variable of the title that variable is demarcated with described first Address value is the data dictionary of key assignments.
3. data-updating method according to claim 2, it is characterised in that obtain to demarcate in variable description database and own The step of needing the second of modified address to demarcate variable includes:
According to described first demarcate variable title, it is determined that demarcate variable description database in and it is described first demarcate variable Title it is corresponding second demarcate variable description file;
According to the corresponding demarcation address of variable value of the title that variable is demarcated with described first, the to be repaired of the second demarcation variable is determined Description fragment position of the change of address in the description file.
4. data-updating method according to claim 2, it is characterised in that demarcate address of variable according to described first, it is right It is described to need the second of modified address to demarcate variable to include the step of be updated:
Need the first of modified address to demarcate variable according to described, inquire about data dictionary, address of variable is demarcated with described first, replace Changing needs the second of the modified address destination address for demarcating variable.
5. data-updating method according to claim 1, it is characterised in that the data-updating method also includes:
The description file of the second demarcation variable after being updated is inserted into the demarcation variable description database.
6. data-updating method according to claim 5, it is characterised in that the data-updating method also includes:
Obtain the total amount of the description file of the second demarcation variable demarcated after being updated in variable description database.
7. a kind of data update apparatus, it is characterised in that including:
First acquisition module, for obtaining the first demarcation address of variable in the address of variable mapped file in engineering;
Second acquisition module, for obtain demarcate variable description database in institute modified address in need second demarcate variable;
Update module, for demarcating address of variable according to described first, enters to the second demarcation variable for needing modified address Row updates.
8. data update apparatus according to claim 7, it is characterised in that the data update apparatus also include:
Generation module, for generating with the first entitled major key for demarcating variable, to demarcate the title phase of variable with described first Corresponding address of variable value of demarcating is the data dictionary of key assignments.
9. data update apparatus according to claim 8, it is characterised in that second acquisition module includes:
First determining unit, for according to described first demarcate variable title, it is determined that demarcate variable description database in and Described first title corresponding second for demarcating variable demarcates the description file of variable;
Second determining unit, for the basis demarcation address of variable value corresponding with the title that described first demarcates variable, it is determined that Second demarcates description fragment position of the change of address to be repaired of variable in the description file.
10. data update apparatus according to claim 8, it is characterised in that the update module includes:
Replacement unit, for needing the first of modified address to demarcate variable according to described, inquires about data dictionary, with the described first mark Determine address of variable, replacement needs the second of the modified address destination address for demarcating variable.
11. data update apparatus according to claim 7, it is characterised in that the data update apparatus also include:
Insertion module, for that will be updated after second demarcation variable description file be inserted into it is described demarcation variable description number According in storehouse.
12. data update apparatus according to claim 11, it is characterised in that the data update apparatus also include:
3rd acquisition module, for obtaining retouching for the second demarcation variable demarcated after being updated in variable description database State the total amount of file.
CN201710103165.5A 2017-02-24 2017-02-24 A kind of data-updating method and device Active CN106777393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710103165.5A CN106777393B (en) 2017-02-24 2017-02-24 A kind of data-updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710103165.5A CN106777393B (en) 2017-02-24 2017-02-24 A kind of data-updating method and device

Publications (2)

Publication Number Publication Date
CN106777393A true CN106777393A (en) 2017-05-31
CN106777393B CN106777393B (en) 2019-11-08

Family

ID=58960455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710103165.5A Active CN106777393B (en) 2017-02-24 2017-02-24 A kind of data-updating method and device

Country Status (1)

Country Link
CN (1) CN106777393B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463401A (en) * 2017-07-31 2017-12-12 北京新能源汽车股份有限公司 Generation method, device and the computer-readable recording medium of variable read-write file
CN112015444A (en) * 2019-05-31 2020-12-01 北京新能源汽车股份有限公司 Variable address updating method and device and automobile
CN112486925A (en) * 2020-12-28 2021-03-12 潍柴动力股份有限公司 A2L file processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136211A (en) * 2011-11-23 2013-06-05 北汽福田汽车股份有限公司 Automatic generation method and device for A2L file
US20140195476A1 (en) * 2013-01-10 2014-07-10 Sap Ag Generating notification from database update
CN104636351A (en) * 2013-11-07 2015-05-20 北汽福田汽车股份有限公司 A2L file generation method and system
CN105677849A (en) * 2016-01-06 2016-06-15 北京京东尚科信息技术有限公司 Data updating method and device
US20170031955A1 (en) * 2015-07-31 2017-02-02 Netapp, Inc. Extensible and elastic data management services engine external to a storage domain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136211A (en) * 2011-11-23 2013-06-05 北汽福田汽车股份有限公司 Automatic generation method and device for A2L file
US20140195476A1 (en) * 2013-01-10 2014-07-10 Sap Ag Generating notification from database update
CN104636351A (en) * 2013-11-07 2015-05-20 北汽福田汽车股份有限公司 A2L file generation method and system
US20170031955A1 (en) * 2015-07-31 2017-02-02 Netapp, Inc. Extensible and elastic data management services engine external to a storage domain
CN105677849A (en) * 2016-01-06 2016-06-15 北京京东尚科信息技术有限公司 Data updating method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463401A (en) * 2017-07-31 2017-12-12 北京新能源汽车股份有限公司 Generation method, device and the computer-readable recording medium of variable read-write file
CN112015444A (en) * 2019-05-31 2020-12-01 北京新能源汽车股份有限公司 Variable address updating method and device and automobile
CN112486925A (en) * 2020-12-28 2021-03-12 潍柴动力股份有限公司 A2L file processing method, device and storage medium
CN112486925B (en) * 2020-12-28 2022-09-23 潍柴动力股份有限公司 A2L file processing method, device and storage medium

Also Published As

Publication number Publication date
CN106777393B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN108874919B (en) Automatic checking method for planned land, electronic equipment, storage medium and system
CN106777393A (en) A kind of data-updating method and device
US20150363458A1 (en) Systems and methods for migrating database data
RU2009109241A (en) METHOD FOR FORMING IMPROVED CARTOGRAPHIC DATA FOR USE IN NAVIGATION DEVICES
CN107729576A (en) The management method and system of archives
CN108073390A (en) It is managed collectively the method, apparatus and system of configuration file in multiple engineerings
CN105825356A (en) Data information management method and device of biological sample
CN108985974A (en) A kind of tourist resources data collection system based on mobile GIS
JP2010128898A (en) Content position estimating device
CN107391045A (en) A kind of directory space quota method and system
CN104063421B (en) Magnanimity traffic remotely-sensed data search method and device
JP2015530050A (en) Method for guaranteeing consistency of planning data and related apparatus
CN106055582A (en) Method and apparatus for replacing table name of database
CN111460623B (en) Real-time acquisition and processing method and system for mapping operation data
CN108108166A (en) A kind of multi-platform stick picture disposing method and system
CN101944123B (en) Simulated batch configuration document management method oriented to semiconductor manufacturing equipment function
JP4510792B2 (en) LOCATION ANALYSIS DEVICE, LOCATION ANALYSIS METHOD, ITS PROGRAM, AND RECORDING MEDIUM
JP2010117840A (en) Road snow ice work management system
CN115757672A (en) High-precision map data updating method and system
Alfredsson et al. HMK–Swedish handbook in surveying and mapping
CN109829025B (en) Line correction method and device, electronic device and storage medium
CN107861725B (en) iOS data reverse automatic analysis strategy
KR20150124357A (en) Apparatus and method for analyzing fluid stream in pipe network based gis
CN111144136B (en) Data conversion method, system, computer device and readable storage medium
Rosati et al. The most distant X-ray clusters and the evolution of their space density

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant