CN107193560A - Config update method and device - Google Patents

Config update method and device Download PDF

Info

Publication number
CN107193560A
CN107193560A CN201710347088.8A CN201710347088A CN107193560A CN 107193560 A CN107193560 A CN 107193560A CN 201710347088 A CN201710347088 A CN 201710347088A CN 107193560 A CN107193560 A CN 107193560A
Authority
CN
China
Prior art keywords
code
configuration
upgrade package
software upgrade
update
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
CN201710347088.8A
Other languages
Chinese (zh)
Other versions
CN107193560B (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.)
Chery Automobile Co Ltd
Original Assignee
Chery Automobile 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 Chery Automobile Co Ltd filed Critical Chery Automobile Co Ltd
Priority to CN201710347088.8A priority Critical patent/CN107193560B/en
Publication of CN107193560A publication Critical patent/CN107193560A/en
Application granted granted Critical
Publication of CN107193560B publication Critical patent/CN107193560B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of config update method and device, belong to automotive field.Including:It is the newly-increased configuration code of idle configurations code bit configuration reserved in software upgrade package according to what's new, obtains the software upgrade package after configuration code updates;Target configuration identifier configuration feature code obtains the software upgrade package after code update in software upgrade package after being updated according to the what's new for the configuration code, and the target configuration identifier is at least made up of the newly-increased configuration code;According to the software upgrade package after the code update, system upgrade is carried out to main frame.The present invention is effectively improved the efficiency of config update.The present invention is used to carry out config update for the main frame of automobile.

Description

Config update method and device
Technical field
The present invention relates to automotive field, more particularly to a kind of config update method and device.
Background technology
When automobile is offline from production line, special off-line test (English can be used:End OfLine;Referred to as:EOL) Equipment is by opening or closing function host (for example:The main system of audio of automobile) in some or all functions for including, will configure Signal write-in functions main frame, makes function host have different functions, and then meet different configuration needs.Also, in automobile After offline, config update can also be carried out to function host, to increase function not to be covered in function host, and then abundant function The function of main frame.
In the prior art, when needing to carry out config update to function host, it is necessary to soft to main frame according to newly-increased function Part is modified, and the change is mainly shown as the change of software code.
Due to including multiple functions in function host, and multiple functions use identical coded system in software, when need , it is necessary to be modified to a large amount of even all of codes in software when increasing function, therefore, existing config update method It is less efficient.
The content of the invention
In order to solve prior art when needing increase function, it is necessary to asking that a large amount of codes in software are modified Topic, the embodiments of the invention provide a kind of config update method and device.The technical scheme is as follows:
First aspect there is provided a kind of config update method, including:
It is the newly-increased configuration code of idle configurations code bit configuration reserved in software upgrade package according to what's new, obtains configuration code Software upgrade package after renewal;
Target configuration identifier configuration feature in software upgrade package after being updated according to the what's new for the configuration code Code obtains the software upgrade package after code update, and the target configuration identifier is at least made up of the newly-increased configuration code;
According to the software upgrade package after the code update, system upgrade is carried out to main frame.
Alternatively, the software upgrade package according to after the code update, system upgrade is carried out to main frame, including:
Judge the digit of configuration code bit of diagnostic equipment whether more than or equal to the software upgrade package after the code update Configure the digit of code bit;
The software upgrade package after digit of the configuration code bit of the diagnostic equipment is more than or equal to the code update is matched somebody with somebody The digit of code bit is put, system upgrade is carried out to the main frame by the diagnostic equipment.
Alternatively, it is described that system upgrade is carried out to the main frame by the diagnostic equipment, including:
By the configuration of the software upgrade package after the configuration identifier of the software upgrade package in the main frame and the code update Mark is compared;
In the configuration identifier of software upgrade package after the code update, exist and the software upgrade package in the main frame Configuration identifier different mark when, the function code corresponding to the different mark is write into the main frame.
Alternatively, it is described be the newly-increased configuration of idle configurations code bit configuration reserved in software upgrade package according to what's new After code, methods described also includes:
Judge that the what's new whether there is incidence relation with original function in the software upgrade package;
When in the what's new and the software upgrade package there is incidence relation in original function, it is determined that with it is described new Increase function and there is configuration code corresponding to the function of incidence relation, and by the corresponding configuration code and the newly-increased configuration code character Into the target configuration identifier;
, will be described newly-increased when incidence relation is not present in original function in the what's new and the software upgrade package Configuration code constitutes the target configuration identifier.
Alternatively, the newly-increased configuration of idle configurations code bit configuration according to what's new to be reserved in software upgrade package Code, including:
It whether there is idle configurations code bit in the reserved configuration code bit of detection, the idle configurations code bit is described reserved The code bit not being otherwise fully engaged in configuration code bit;
When there is idle configurations code bit in the reserved configuration code bit, configure newly-increased in the idle configurations code bit Configuration code.
Second aspect there is provided a kind of config update device, including:
First configuration module, the idle configurations code bit for being reserved according to what's new in software upgrade package configures newly-increased Configuration code, obtains the software upgrade package after configuration code updates;
Second configuration module, for being target in the software upgrade package after configuration code renewal according to the what's new Configuration identifier configuration feature code obtains the software upgrade package after code update, and the target configuration identifier is at least by described newly-increased Configuration code is constituted;
Upgraded module, according to the software upgrade package after the code update, system upgrade is carried out to main frame.
Alternatively, the upgraded module, including:
Judging submodule, for judging whether the digit of configuration code bit of diagnostic equipment is more than or equal to after the code update Software upgrade package configuration code bit digit;
Upgrade submodule, for the configuration code bit when the diagnostic equipment digit more than or equal to the code update after The digit of the configuration code bit of software upgrade package, system upgrade is carried out by the diagnostic equipment to main frame.
Alternatively, the upgrading submodule, specifically for:
By the configuration of the software upgrade package after the configuration identifier of the software upgrade package in the main frame and the code update Mark is compared;
In the configuration identifier of software upgrade package after the code update, exist and the software upgrade package in the main frame Configuration identifier different mark when, the function code corresponding to the different mark is write into the main frame.
Alternatively, described device also includes:
Judge module, is associated for judging that the what's new whether there is with original function in the software upgrade package Relation;
Comprising modules, for when in the what's new and the software upgrade package original function there is incidence relation When, it is determined that there is the configuration code corresponding to the function of incidence relation with the what's new, and by the corresponding configuration code with The newly-increased configuration code constitutes the target configuration identifier;
The comprising modules, are additionally operable to close when the what's new is not present with original function in the software upgrade package During connection relation, the newly-increased configuration code is constituted into the target configuration identifier.
Alternatively, first configuration module, specifically for:
It whether there is idle configurations code bit in the reserved configuration code bit of detection, the idle configurations code bit is described reserved The code bit not being otherwise fully engaged in configuration code bit;
When there is idle configurations code bit in the reserved configuration code bit, configure newly-increased in the idle configurations code bit Configuration code.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Config update method and device provided in an embodiment of the present invention, by being pre- in software upgrade package according to what's new The newly-increased configuration code of idle configurations code bit configuration stayed, obtains the software upgrade package after configuration code updates, according to what's new be with Put target configuration identifier configuration feature code in the software upgrade package after code updates and obtain the software upgrade package after code update, then System upgrade is carried out to main frame according to the software upgrade package after code update, when increasing function to main frame, only need to change less Partial code, rather than it is a large amount of even to whole codes, for example:It is target configuration identifier that the part of change is needed in code Function code, reduces the workload of modification code, is effectively improved the efficiency of config update method.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of flow chart of config update method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another config update method provided in an embodiment of the present invention;
Fig. 3 is a kind of idle configurations code according to what's new to be reserved in software upgrade package provided in an embodiment of the present invention The method flow diagram of the newly-increased configuration code of position configuration;
Fig. 4 is a kind of software upgrade package according to after code update provided in an embodiment of the present invention, and system is carried out to main frame The method flow diagram of upgrading;
Fig. 5 is a kind of method flow diagram for carrying out system upgrade to main frame by diagnostic equipment provided in an embodiment of the present invention;
Fig. 6-1 is a kind of structural representation of config update device provided in an embodiment of the present invention;
Fig. 6-2 is a kind of structural representation of upgraded module provided in an embodiment of the present invention;
Fig. 6-3 is the structural representation of another config update device provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is a kind of flow chart of config update method provided in an embodiment of the present invention, as shown in figure 1, this method can be with Including:
Step 101, it is that the idle configurations code bit reserved in software upgrade package configures newly-increased configuration code according to what's new, obtains Software upgrade package after being updated to configuration code.
Step 102, according to what's new be configuration code update after software upgrade package in target configuration identifier configuration feature Code obtains the software upgrade package after code update.
Wherein, target configuration identifier is at least made up of newly-increased configuration code.
Step 103, according to the software upgrade package after code update, system upgrade is carried out to main frame.
In summary, config update method provided in an embodiment of the present invention, by being software upgrade package according to what's new In the newly-increased configuration code of idle configurations code bit configuration reserved, the software upgrade package after configuration code updates is obtained, according to what's new Target configuration identifier configuration feature code obtains the software upgrading after code update in software upgrade package after being updated for configuration code Bag, system upgrade is carried out further according to the software upgrade package after code update to main frame, when increasing function to main frame, only needs change Smaller part of code, rather than a large amount of even all of codes, for example:The part of change is needed to configure mark for target in code The function code of knowledge, reduces the workload of modification code, is effectively improved the efficiency of config update method.
Fig. 2 is the flow chart of another config update method provided in an embodiment of the present invention, as shown in Fig. 2 this method can With including:
Step 201, it is that the idle configurations code bit reserved in software upgrade package configures newly-increased configuration code according to what's new, obtains Software upgrade package after being updated to configuration code.
Alternatively, as shown in figure 3, configuring newly-increased according to what's new for idle configurations code bit reserved in software upgrade package The process of configuration code, can include:
It whether there is idle configurations code bit in the reserved configuration code bit of step 2011, detection.
Wherein, reserved configuration code bit refers to the initial configuration period in main frame, and that is reserved in software upgrade package is temporary transient The configuration code bit being not used by, be that is to say, configuration code is not configured in the reserved configuration code bit, or, the reserved configuration Configuration code is configured in code bit, but not to the corresponding configuration identifier configuration feature code of configuration code.
When configuration code bit is otherwise fully engaged, illustrate that the corresponding configuration code of all configuration codes in the configuration code bit is identified Be configured with function, the function be main frame in existing function, in order that what's new existing capability is not impacted, it is necessary to The newly-increased configuration code of configuration, that is to say, in idle configurations code bit in the code bit not being otherwise fully engaged in reserved configuration code bit The newly-increased configuration code of configuration.Therefore, configured in idle configurations code bit before increasing configuration code bit newly, it is necessary to detect reserved configuration code It whether there is idle configurations code bit in position.
Alternatively, in the initial configuration period configuration of reservations code bit of main frame, idle configurations code bit or free time can be matched somebody with somebody The configuration code put in code bit is marked, and need to only be detected in detection in reserved configuration code bit with the presence or absence of labeled configuration Code bit or configuration code, when there is the configuration code bit being labeled or configuration code in reserved configuration code bit, then illustrate that this is reserved There is idle configurations code bit in configuration code bit, when the configuration code bit being labeled or configuration code are not present in reserved configuration code bit When, then illustrate idle configurations code bit is not present in the reserved configuration code bit.
Illustratively, it is provided with 6 data bytes (English altogether in the initial configuration period of vehicle main frame, memory:Data Byte), 6 data bytes have 48 configuration code bits, and the configuration code bit is properly termed as bit (English under binary system: Bit the corresponding relation of) position, 6 data bytes and 48 configuration code bits refer to table 1, as can be seen from Table 1 data byte 1 Byte 0 is corresponded to 8 configuration code bits of byte 7.In the initial configuration period configuration of reservations code bit of main frame, the free time can be matched somebody with somebody The configuration code put in code bit is labeled as " * " or " NULL " symbol, is marked with " * " when detecting to exist in reserved configuration code bit Or " NULL " symbol when, that is, think there is idle configurations code bit in the reserved configuration code bit, can be in the idle configurations Newly-increased configuration code is configured in code bit.
Table 1
Data Byte Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Data#1 7 6 5 4 3 2 1 0
Data#2 15 14 13 12 11 10 9 8
Data#3 23 22 21 20 19 18 17 16
Data#4 31 30 29 28 27 26 25 24
Data#5 39 38 37 36 35 34 33 32
Data#6 47 46 45 44 43 42 41 40
Step 2012, when there is idle configurations code bit in reserved configuration code bit, configure new in idle configurations code bit Increase configuration code.
When there is idle configurations code bit in reserved configuration code bit, can be newly-increased according to needs during this config update The sum of function determines the sum of the newly-increased configuration code of needs, then, and the coding method used during according to coding determines to need newly The sum of the corresponding configuration code bit of configuration code of increasing, then be the newly-increased configuration code of configuration code bit configuration, and set up according to configuration result The corresponding relation of newly-increased configuration code and what's new, meanwhile, corresponding relation is stored in software upgrade package, to obtain configuration code Software upgrade package after renewal.Wherein, what's new refer to main frame originally without function, for example:Video playback capability, music Playing function, the reverse image function of having boost line, the reverse image function without boost line and the function without using reversing auxiliary Deng.
Illustratively, it is assumed that idle configurations code bit is 43 and 44, and the sum of newly-increased function is needed during this time config update For 3,3 what's news are respectively:Have the reverse image function of boost line, the reverse image function without boost line and without using The function for auxiliary of moving backward, the coding method used when configuring configuration code according to what's new is binary coding method, according to The sum of newly-increased function is needed to determine to need the sum of newly-increased configuration code to be 3, because 2 binary digits can be represented 4 binary conditions, each binary condition can represent 1 what's new, it is known that can be to represent using 2 configuration code bits 3 what's news, that is to say, can be to 3 binary system shapes in corresponding 4 binary conditions of 43 and 44 configuration code bits The newly-increased configuration code of state configuration, uses " NULL " symbol to be marked remaining 1 binary condition, to represent reserved configuration There is idle configurations code bit in code bit, and 3 newly-increased configuration codes and 3 what's news are set to corresponding relation, the correspondence is closed System refer to table 2, for example:" the 0 " of 43 and " the newly-increased configuration code that the 0 " of 44 is constituted and the reversing for having boost line can be set Imaging function correspondence.
Table 2
43 44 What's new
0 0 There is the reverse image function of boost line
0 1 Reverse image function without boost line
1 0 Without using the function of reversing auxiliary
NULL NULL
It should be noted that when configuring configuration code according to what's new the coding method that uses can also for octal system, The decimal system, hexadecimal or USA standard code for information interchange (English:American Standard Code for Information Interchange;Abbreviation:The coded system such as ASCII), the embodiment of the present invention is not specifically limited to it.
Step 202, judge in what's new and software upgrade package that original function whether there is incidence relation.
Original function after configuration identifier configuration feature code to obtaining in what's new and software upgrade package, institute With before the code of what's new is configured to the corresponding configuration identifier of what's new, it is thus necessary to determine that what's new is corresponding to match somebody with somebody Mark is put, the configuration identifier of the determination is properly termed as target configuration identifier, the target configuration identifier can be at least by newly-increased configuration Code composition, specifically, when original function has incidence relation in what's new and software upgrade package, what's new is corresponding Target configuration identifier is collectively constituted by the configuration code for increasing configuration code and original function associated with it newly, is determined by step 203 Target configuration identifier, when incidence relation is not present in original function in what's new and software upgrade package, what's new correspondence Target configuration identifier be made up of newly-increased configuration code, pass through step 204 and determine target configuration identifier.
Step 203, when in what's new and software upgrade package there is incidence relation in original function, it is determined that with newly-increased work( There can be the configuration code corresponding to the function of incidence relation, and corresponding configuration code and the composition target configuration of newly-increased configuration code are marked Know.
When original function has incidence relation in what's new and software upgrade package, the realization of what's new can be by The influence of original function, therefore, it is determined that what's new target configuration identifier when, it is necessary to will with what's new exist associate Configuration code corresponding to the function of relation is combined with newly-increased configuration code, to obtain target configuration identifier, and obtained target is matched somebody with somebody Put mark to be stored in the software upgrade package after configuration code updates, in case using.
Step 204, when in what's new and software upgrade package original function be not present incidence relation when, by newly-increased configuration Code composition target configuration identifier.
When incidence relation is not present in original function in what's new and software upgrade package, the realization of what's new will not Influenceed by original function, therefore, the corresponding newly-increased configuration code of what's new is the target configuration identifier of what's new, And save it in the software upgrade package after configuration code updates.
Illustratively, it is assumed that an original function is corner inducing function (abbreviation in software upgrade package:SAM functions), should Function is used to perceive the turning action of automobile, and the corresponding configuration code bit of the function is 38, its corresponding configuration code be 1, it is necessary to 3 newly-increased functions are to have the reverse image function of boost line, the reverse image function without boost line and aided in without using reversing Function, the corresponding relation of 3 what's news and newly-increased configuration code refer to table 2, because automobile may in reversing process Turn, in the implementation process of the reverse image function of having boost line and reverse image function without boost line, two work( The turning action with reference to automobile can be required to, i.e., two functions can be influenceed by corner inducing function, for example:Do not turning Under conditions of the inducing function of angle, due to having the reverse image function of boost line and reverse image function without boost line when in use The turning of automobile can not be known, main frame occurs that display is abnormal, DTC then occurs in host computer system, and then cause vehicle to exist Can not be by checking the inspection of equipment, therefore, it is determined there is the reverse image function of boost line and without boost line when offline There is incidence relation with corner inducing function in reverse image function.Therefore, the corresponding configuration code of corner inducing function is auxiliary with having The corresponding configuration code composition of reverse image function of index contour has the target configuration identifier of the reverse image function of boost line, corner sense Answer the corresponding configuration code of function reverse image of the configuration code composition without boost line corresponding with the reverse image function without boost line The target configuration identifier of function, without using the corresponding configuration code composition of the function of reversing auxiliary without using the function of reversing auxiliary Target configuration identifier, it is (oblique in the cell of position column that the corresponding target configuration identifier of 3 what's news refer to table 3 Line represents that the value of the position indicated by the row does not influence the cell to be expert at the realization of indicated function, where what's new Oblique line in the cell of row represents to be not provided with what's new), for example:" the 1 " of 38 and " 0 " and " 0 " group of 44 of 43 Into the target configuration identifier for the reverse image function of having boost line, " the 1 " of 43 with " 0 " composition of 44 is aided in without using reversing Function target configuration identifier.
Table 3
38 43 44 What's new
1 0 0 There is the reverse image function of boost line
1 0 1 Reverse image function without boost line
1 0 Without using the function of reversing auxiliary
NULL NULL
Step 205, according to what's new be configuration code update after software upgrade package in target configuration identifier configuration feature Code obtains the software upgrade package after code update.
It is determined that after the corresponding target configuration identifier of what's new, it is necessary to configuration code renewal after software upgrade package in write Enter the corresponding relation of the target configuration identifier and what's new, and function generation is used in the software upgrade package after configuration code updates Code defines what's new, needs in function code the realization for defining what's new to need matching somebody with somebody for which existing part in automobile Close, when completing what's new, each part needs the sequencing of deliberate action and each deliberate action produced, with Software upgrade package after to code update, is completed after config update according to the software upgrade package after the code update, when main frame exists When receiving the instruction corresponding with target configuration identifier of user's triggering, the part in automobile can be provided according in function code Order perform deliberate action, and then complete corresponding function, finally realize the completion main frame on the premise of not added parts Config update.
While for target configuration identifier configuration feature code, in addition it is also necessary to by the corresponding function of target configuration identifier The corresponding relation of code is recorded in the software kit after code update, for example;Will " 38 1 " with " 43 0 " and " 44 The corresponding relation of the address of the corresponding function code of 0 " composition target configuration identifier, records the software kit after code update In, the corresponding relation can be recorded in the header file of the function code of the software kit after code update, or, the corresponding relation It can also be showed by modes such as pointers in function code.
It should be noted that target configuration identifier is matched somebody with somebody in the software upgrade package after being updated according to what's new for configuration code When putting function code and obtaining the software upgrade package after code update, it can be separately provided for the function code related to what's new Do not include the corresponding function code of main frame original function in software upgrade package, the software upgrade package being separately provided.According to the list When the software upgrade package solely set carries out system upgrade to main frame, the time of system upgrade can be shortened, and then improve configuration more New efficiency.
Step 206, according to the software upgrade package after code update, system upgrade is carried out to main frame.
Alternatively, as shown in figure 4, according to the software upgrade package after code update, the process of system upgrade is carried out to main frame, It can include:
Step 2061, judge diagnostic equipment configuration code bit digit whether be more than or equal to code update after software upgrading The digit of the configuration code bit of bag.
Diagnostic equipment can carry out serial communication with main frame, to complete data exchange between the two, and according to code update Software upgrade package afterwards refreshes the setting of main frame, system upgrade is carried out to main frame, and then complete the config update of main frame.Due to examining Disconnected instrument needs to carry out serial communication with main frame, and this requires diagnostic equipment to be read it is necessary to have enough configuration code bits after code update Software upgrade package in configuration code, that is to say, it is desirable to which the digit of the configuration code bit of diagnostic equipment must be greater than or equal to code The digit of the configuration code bit of software upgrade package after renewal, therefore, needs to judge to diagnose before system upgrade is carried out to main frame The digit of the configuration code bit of instrument whether be more than or equal to code update after software upgrade package configuration code bit digit, work as diagnosis During the digit of the configuration code bit for the software upgrade package that the digit of the configuration code bit of instrument is more than or equal to after code update, it could pass through Diagnostic equipment carries out system upgrade to main frame, that is, performs step 2062, when the digit of the configuration code bit of diagnostic equipment is less than code update , it is necessary to change or change diagnostic equipment during the digit of the configuration code bit of software upgrade package afterwards, until the configuration code bit of diagnostic equipment During the digit of the configuration code bit for the software upgrade package that digit is more than or equal to after code update, main frame could be entered by diagnostic equipment Row system upgrade.
Step 2062, the software upgrade package after digit of the configuration code bit of diagnostic equipment is more than or equal to code update are matched somebody with somebody The digit of code bit is put, system upgrade is carried out to main frame by diagnostic equipment.
Alternatively, as shown in figure 5, carrying out the process of system upgrade to main frame by diagnostic equipment, it can include:
Step 2062a, matching somebody with somebody the software upgrade package after the configuration identifier and code update of the software upgrade package in main frame Mark is put to be compared.
When carrying out system upgrade to main frame, it can select in software upgrade package and main frame after being updated according to upgrade code Software kit in different part main frame is upgraded, so can effectively shorten the time of system upgrade, and then improve The efficiency of config update.The different part is mainly manifested in the configuration identifier and main frame of the software upgrade package after code update Software upgrade package configuration identifier difference, that is to say, be mainly reflected in target configuration identifier and its corresponding function code. Therefore, can be first by the software upgrading after the configuration identifier and code update of the software upgrade package in main frame before being upgraded The configuration identifier of bag is compared, in the configuration identifier to determine the software upgrade package after code update whether there is with main frame Software upgrade package the different mark of configuration identifier, in the configuration identifier of software upgrade package after code update, exist with During the different mark of the configuration identifier of the software upgrade package in main frame, the function code corresponding to different marks is write and led Machine, that is, perform step 2062b, to complete the system upgrade of main frame.
In step 2062b, the configuration identifier of software upgrade package after code update, exist and the software upgrading in main frame During the different mark of the configuration identifier of bag, the function code corresponding to different marks is write into main frame.
, can be by inquiring about the target stored in the software upgrade package after code update when carrying out system upgrade to main frame The corresponding relation of the corresponding function code of configuration identifier, finds the corresponding function code of target configuration identifier, and by the work( Energy code write-in main frame, to realize the configuration of the corresponding function of target configuration identifier, and then completes the config update of main frame. In ablation process, the list for the part that diagnostic equipment can be included by obtaining in automobile, and search in the list whether include generation Code update after software upgrade package in the part that is related to, with judge the part in automobile whether can support code update after it is soft Zero be related in the realization for the what's new being related in part AKU, software upgrade package after code update is included in the list During part, represent the part in automobile can support code update after software upgrade package in the realization of what's new that is related to, then Function code corresponding to different marks can be write to main frame, the ablation process is mainly reflected in the diagnosis communication clothes of diagnostic equipment Configuration information and parameter information are written to the process in main frame by business, also, restart main frame after the completion of ablation process, and main frame is just The configuration information and configuration parameter of write-in can be read, and then completes the config update of main frame.
Table 4
38 39 40 The original function of main frame
0 0 0 Function A
0 0 Function B
0 1 0 Function C
0 1 Function D
1 0 0 Function E
1 0 1 Function F
1 1 0 Function G
1 1 1 Function H
1 Corner inducing function
Illustratively, it is assumed that the configuration identifier of the software upgrade package in main frame is as shown in table 4, the software upgrading after code update The configuration identifier of bag as shown in table 5, the configuration identifier of the software upgrade package after code update is understood according to the contrast of table 4 and table 5 In, there are the marks different from the configuration identifier of the software upgrade package in main frame, this is different to be designated:" 1 ", " the 43 of 38 Position 0 " and " 44 0 " composition target configuration identifier, " 38 1 ", " 43 0 " and " 44 1 " composition target Configuration identifier and " 1 " and " the target configuration identifier of the 0 " composition of 44 of 43.
Table 5
38 39 40 43 44 The original function of main frame
0 0 0 Function A
0 0 Function B
0 1 0 Function C
0 1 Function D
1 0 0 Function E
1 0 1 Function F
1 1 0 Function G
1 1 1 Function H
1 Corner inducing function
1 0 0 There is the reverse image function of boost line
1 0 1 Reverse image function without boost line
1 0 Without using the function of reversing auxiliary
Found according to table 4 and table 5 different in the software upgrade package after the software upgrade package and code update in main frame After mark, the configuration of each target can be found by inquiring about the corresponding relation of the corresponding function code of target configuration identifier Corresponding function code is identified, and corresponding function code is write into main frame, to complete the config update of main frame.
It should be noted that when carrying out system upgrade to main frame, the software after being updated according to upgrade code can be selected The AKU part different from the software kit in main frame is upgraded to main frame, due to identical portion in software kit of not upgrading Point so that the original function of config update aft engine is unaffected, i.e., the function of the vehicle produced and sold away Use be not in failure, also, due to including multiple functions in vehicle main frame, in software kit of only upgrading in upgrading not Same part, relative to all the elements in upgrading software kit, can reduce the work of change and the test in upgrading to software Measure, reduce due to the wrong probability produced is modified and tested to software, shorten the config update cycle, and then raising pair Main frame carries out the efficiency of config update, even, can also avoid due to software alteration it is too big caused by the vehicle sold Recall and maintenance of doing over again.
Also, after the config update of main frame is completed, the software upgrade package after code update can be used to replace main frame former Some software upgrade packages, and the original software upgrade package of main frame is deleted, to improve the stabilization of the host computer system after config update Property.
It should be noted that the sequencing of config update method and step provided in an embodiment of the present invention can be carried out suitably Adjustment, step according to circumstances can also accordingly be increased and decreased, and any one skilled in the art discloses in the application Technical scope in, the method that can readily occur in change should all cover within the protection domain of the application, thus no longer go to live in the household of one's in-laws on getting married State.
In summary, config update method provided in an embodiment of the present invention, by being software upgrade package according to what's new In the newly-increased configuration code of idle configurations code bit configuration reserved, the software upgrade package after configuration code updates is obtained, according to what's new Target configuration identifier configuration feature code obtains the software upgrading after code update in software upgrade package after being updated for configuration code Bag, system upgrade is carried out further according to the software upgrade package after code update to main frame, when increasing function to main frame, only needs change Smaller part of code, rather than a large amount of even all of codes, for example:The part of change is needed to configure mark for target in code The function code of knowledge, reduces the workload of modification code, is effectively improved the efficiency of config update method.
The embodiments of the invention provide a kind of config update device 600, as in Figure 6-1, the device 600 can include:
First configuration module 601, the idle configurations code bit for being reserved according to what's new in software upgrade package is configured Newly-increased configuration code, obtains the software upgrade package after configuration code updates.
Second configuration module 602, for being configured according to what's new for target in the software upgrade package after configuration code renewal Mark configuration feature code obtains the software upgrade package after code update, and target configuration identifier is at least made up of newly-increased configuration code.
Upgraded module 603, according to the software upgrade package after code update, system upgrade is carried out to main frame.
In summary, config update method provided in an embodiment of the present invention, by the first configuration module according to what's new For the newly-increased configuration code of idle configurations code bit configuration reserved in software upgrade package, the software upgrade package after configuration code updates is obtained, Second configuration module is according to target configuration identifier configuration feature code in the software upgrade package that what's new is after configuration code updates The software upgrade package after code update is obtained, upgraded module carries out system liter according to the software upgrade package after code update to main frame Level, when increasing function to main frame, need to only change smaller part of code, rather than a large amount of even all of codes, for example:Generation The part that change is needed in code is the function code of target configuration identifier, reduces the workload of modification code, effectively improves The efficiency of config update method.
Alternatively, as in fig. 6-2, upgraded module 603, can include:
Judging submodule 6031, for judging whether the digit of configuration code bit of diagnostic equipment is more than or equal to after code update Software upgrade package configuration code bit digit.
Upgrading submodule 6032, the digit for the configuration code bit when diagnostic equipment is more than or equal to software after code update The digit of the configuration code bit of AKU, system upgrade is carried out by diagnostic equipment to main frame.
Alternatively, upgrading submodule 6032, specifically can be used for:
The configuration identifier of software upgrade package after the configuration identifier and code update of software upgrade package in main frame is carried out Compare.
In the configuration identifier of software upgrade package after code update, there is the configuration mark with the software upgrade package in main frame When knowing different marks, the function code corresponding to different marks is write into main frame.
Alternatively, as shown in Fig. 6-3, device 600 can also include:
Judge module 604, for judging what's new with original function in software upgrade package with the presence or absence of incidence relation.
Comprising modules 605, for when in what's new and software upgrade package there is incidence relation in original function, it is determined that There is the configuration code corresponding to the function of incidence relation with what's new, and corresponding configuration code and newly-increased configuration code are constituted into mesh Mark configuration identifier.
The comprising modules 605, are additionally operable to when what's new with original function in software upgrade package in the absence of incidence relation When, newly-increased configuration code is constituted into target configuration identifier.
Alternatively, the first configuration module 601, specifically can be used for:
It whether there is idle configurations code bit in the reserved configuration code bit of detection, the idle configurations code bit is described reserved The code bit not being otherwise fully engaged in configuration code bit.
When there is idle configurations code bit in the reserved configuration code bit, configure newly-increased in the idle configurations code bit Configuration code.
In summary, config update method provided in an embodiment of the present invention, by the first configuration module according to what's new For the newly-increased configuration code of idle configurations code bit configuration reserved in software upgrade package, the software upgrade package after configuration code updates is obtained, Second configuration module is according to target configuration identifier configuration feature code in the software upgrade package that what's new is after configuration code updates The software upgrade package after code update is obtained, upgraded module carries out system liter according to the software upgrade package after code update to main frame Level, when increasing function to main frame, need to only change smaller part of code, rather than a large amount of even all of codes, for example:Generation The part that change is needed in code is the function code of target configuration identifier, reduces the workload of modification code, effectively improves The efficiency of config update method.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the device of foregoing description, The specific work process of module and submodule, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of config update method, it is characterised in that including:
It is the newly-increased configuration code of idle configurations code bit configuration reserved in software upgrade package according to what's new, obtains configuration code renewal Software upgrade package afterwards;
Target configuration identifier configuration feature code in software upgrade package after being updated according to the what's new for the configuration code The software upgrade package after code update is obtained, the target configuration identifier is at least made up of the newly-increased configuration code;
According to the software upgrade package after the code update, system upgrade is carried out to main frame.
2. according to the method described in claim 1, it is characterised in that the software upgrade package according to after the code update, System upgrade is carried out to main frame, including:
Judge diagnostic equipment configuration code bit digit whether be more than or equal to the code update after software upgrade package configuration The digit of code bit;
The configuration code of software upgrade package after the digit of the configuration code bit of the diagnostic equipment is more than or equal to the code update The digit of position, system upgrade is carried out by the diagnostic equipment to the main frame.
3. method according to claim 2, it is characterised in that described that system is carried out to the main frame by the diagnostic equipment Upgrading, including:
By the configuration identifier of the software upgrade package after the configuration identifier of the software upgrade package in the main frame and the code update It is compared;
In the configuration identifier of software upgrade package after the code update, exist and match somebody with somebody with software upgrade package in the main frame Put when identifying different marks, the function code corresponding to the different mark is write into the main frame.
4. according to the method described in claim 1, it is characterised in that it is described be to reserve in software upgrade package according to what's new The newly-increased configuration code of idle configurations code bit configuration after, methods described also includes:
Judge that the what's new whether there is incidence relation with original function in the software upgrade package;
When in the what's new and the software upgrade package there is incidence relation in original function, it is determined that with the newly-increased work( There can be the configuration code corresponding to the function of incidence relation, and the corresponding configuration code is constituted into institute with the newly-increased configuration code State target configuration identifier;
When incidence relation is not present in original function in the what's new and the software upgrade package, by the newly-increased configuration The code composition target configuration identifier.
5. according to the method described in claim 1, it is characterised in that described is to reserve in software upgrade package according to what's new The newly-increased configuration code of idle configurations code bit configuration, including:
It whether there is idle configurations code bit in the reserved configuration code bit of detection, the idle configurations code bit is the reserved configuration The code bit not being otherwise fully engaged in code bit;
When there is idle configurations code bit in the reserved configuration code bit, newly-increased configuration is configured in the idle configurations code bit Code.
6. a kind of config update device, it is characterised in that including:
First configuration module, for the newly-increased configuration of idle configurations code bit configuration reserved according to what's new in software upgrade package Code, obtains the software upgrade package after configuration code updates;
Second configuration module, for being configured according to the what's new for target in the software upgrade package after configuration code renewal Mark configuration feature code obtains the software upgrade package after code update, and the target configuration identifier is at least by the newly-increased configuration Code composition;
Upgraded module, according to the software upgrade package after the code update, system upgrade is carried out to main frame.
7. device according to claim 6, it is characterised in that the upgraded module, including:
Judging submodule, for judging it is soft after the code update whether the digit of configuration code bit of diagnostic equipment is more than or equal to The digit of the configuration code bit of part AKU;
Upgrading submodule, the digit for the configuration code bit when the diagnostic equipment is more than or equal to the software after code update The digit of the configuration code bit of AKU, system upgrade is carried out by the diagnostic equipment to main frame.
8. device according to claim 7, it is characterised in that the upgrading submodule, specifically for:
By the configuration identifier of the software upgrade package after the configuration identifier of the software upgrade package in the main frame and the code update It is compared;
In the configuration identifier of software upgrade package after the code update, exist and match somebody with somebody with software upgrade package in the main frame Put when identifying different marks, the function code corresponding to the different mark is write into the main frame.
9. device according to claim 6, it is characterised in that described device also includes:
Judge module, is associated for judging that the what's new whether there is with original function in the software upgrade package System;
Comprising modules, for when original function has incidence relation in the what's new and the software upgrade package, really The fixed configuration code existed with the what's new corresponding to the function of incidence relation, and will the corresponding configuration code with it is described newly Increase configuration code and constitute the target configuration identifier;
The comprising modules, are additionally operable to associate when the what's new is not present with original function in the software upgrade package When being, the newly-increased configuration code is constituted into the target configuration identifier.
10. device according to claim 6, it is characterised in that first configuration module, specifically for:
It whether there is idle configurations code bit in the reserved configuration code bit of detection, the idle configurations code bit is the reserved configuration The code bit not being otherwise fully engaged in code bit;
When there is idle configurations code bit in the reserved configuration code bit, newly-increased configuration is configured in the idle configurations code bit Code.
CN201710347088.8A 2017-05-16 2017-05-16 Configuration updating method and device Active CN107193560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710347088.8A CN107193560B (en) 2017-05-16 2017-05-16 Configuration updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710347088.8A CN107193560B (en) 2017-05-16 2017-05-16 Configuration updating method and device

Publications (2)

Publication Number Publication Date
CN107193560A true CN107193560A (en) 2017-09-22
CN107193560B CN107193560B (en) 2020-08-04

Family

ID=59873863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710347088.8A Active CN107193560B (en) 2017-05-16 2017-05-16 Configuration updating method and device

Country Status (1)

Country Link
CN (1) CN107193560B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920178A (en) * 2018-06-29 2018-11-30 北京汽车股份有限公司 Vehicle carries the method for adjustment and device of configuration
CN110109440A (en) * 2019-04-10 2019-08-09 深圳市朗仁科技有限公司 Diagnostic equipment method for parameter configuration, device, computer equipment and storage medium
CN110413265A (en) * 2019-08-02 2019-11-05 甘棠软件系统(上海)有限公司 A kind of software configuration code generating method, device and electronic equipment
CN110687873A (en) * 2018-07-05 2020-01-14 Juki株式会社 Production system, management device, and recording medium for recording program
CN112445160A (en) * 2019-09-02 2021-03-05 广州汽车集团股份有限公司 Automatic generation method and device of ECU configuration code
CN115794185A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310388A (en) * 2000-02-21 2001-08-29 英业达股份有限公司 Increment mode method for upgrading data file
CN1691599A (en) * 2004-04-24 2005-11-02 华为技术有限公司 Method of communication terminal configuration synchronization
US7343483B1 (en) * 2000-06-12 2008-03-11 Altera Corporation Configuring both a programmable logic device and its embedded logic with a single serialized configuration bit stream
CN102301332A (en) * 2009-04-27 2011-12-28 宝马股份公司 Method for updating software components
CN102520995A (en) * 2011-12-06 2012-06-27 北京航空航天大学 Software remote stream type loading method and system
CN102555945A (en) * 2010-12-30 2012-07-11 上海博泰悦臻电子设备制造有限公司 Multi-mode switching method and system for vehicle-mounted terminal
CN102937903A (en) * 2012-10-23 2013-02-20 珠海金山网络游戏科技有限公司 Packaged file updating method based on feature matching
CN103458298A (en) * 2012-06-01 2013-12-18 北京四达时代软件技术股份有限公司 Method and system or upgrading set top box software
CN105871691A (en) * 2016-04-29 2016-08-17 腾讯科技(深圳)有限公司 Communication system, method and device applied to intelligent toy system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310388A (en) * 2000-02-21 2001-08-29 英业达股份有限公司 Increment mode method for upgrading data file
US7343483B1 (en) * 2000-06-12 2008-03-11 Altera Corporation Configuring both a programmable logic device and its embedded logic with a single serialized configuration bit stream
CN1691599A (en) * 2004-04-24 2005-11-02 华为技术有限公司 Method of communication terminal configuration synchronization
CN102301332A (en) * 2009-04-27 2011-12-28 宝马股份公司 Method for updating software components
CN105718293A (en) * 2009-04-27 2016-06-29 宝马股份公司 Method And System For Updating Software Components Of Motor Vehicle, And Corresponding Motor Vehicle
CN102555945A (en) * 2010-12-30 2012-07-11 上海博泰悦臻电子设备制造有限公司 Multi-mode switching method and system for vehicle-mounted terminal
CN102520995A (en) * 2011-12-06 2012-06-27 北京航空航天大学 Software remote stream type loading method and system
CN103458298A (en) * 2012-06-01 2013-12-18 北京四达时代软件技术股份有限公司 Method and system or upgrading set top box software
CN102937903A (en) * 2012-10-23 2013-02-20 珠海金山网络游戏科技有限公司 Packaged file updating method based on feature matching
CN105871691A (en) * 2016-04-29 2016-08-17 腾讯科技(深圳)有限公司 Communication system, method and device applied to intelligent toy system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920178A (en) * 2018-06-29 2018-11-30 北京汽车股份有限公司 Vehicle carries the method for adjustment and device of configuration
CN110687873A (en) * 2018-07-05 2020-01-14 Juki株式会社 Production system, management device, and recording medium for recording program
CN110687873B (en) * 2018-07-05 2024-02-06 Juki株式会社 Production system, management device, and recording medium for recording program
CN110109440A (en) * 2019-04-10 2019-08-09 深圳市朗仁科技有限公司 Diagnostic equipment method for parameter configuration, device, computer equipment and storage medium
CN110413265A (en) * 2019-08-02 2019-11-05 甘棠软件系统(上海)有限公司 A kind of software configuration code generating method, device and electronic equipment
CN110413265B (en) * 2019-08-02 2023-11-03 甘棠软件系统(上海)有限公司 Software configuration code generation method and device and electronic equipment
CN112445160A (en) * 2019-09-02 2021-03-05 广州汽车集团股份有限公司 Automatic generation method and device of ECU configuration code
CN115794185A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium
WO2023035966A1 (en) * 2021-09-10 2023-03-16 中兴通讯股份有限公司 Data increment upgrading method, power supply device system, network manager, and storage medium
CN115794185B (en) * 2021-09-10 2023-11-07 中兴通讯股份有限公司 Data increment upgrading method, power supply equipment system, network manager and storage medium

Also Published As

Publication number Publication date
CN107193560B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN107193560A (en) Config update method and device
CN101593157B (en) Bad block management (BBM) method and device for Nand Flash
TWI401691B (en) Controller having flash memory testing functions, storage system and testing method thereof
TWI443512B (en) Block management method, memory controller and memory stoarge apparatus
TWI423026B (en) Data writing method, memory controller and memory storage apparatus
CN101772757B (en) For repairing the method and system of damaged hard disk file systems
KR20040023843A (en) Apparatus and method for processing defect in memory
CN114546292B (en) Method and system for managing nand flash bad blocks
US20120185740A1 (en) Data writing method for non-volatile memory module and memory controller and memory storage apparatus using the same
CN111596860B (en) FPGA control method for improving NAND-FLASH storage reliability
CN107290654A (en) A kind of fpga logic test structure and method
CN109669635A (en) Order LBA for solid-state storage main control chip is overlapped detection method and device
CN102033765B (en) BCM (Body Control Module) program upgrading method and vehicle-mounted electronic control system upgrading method
CN114639439A (en) Chip internal SRAM test method and device, storage medium and SSD device
CN109857433B (en) Single chip microcomputer software upgrading tool and method
CN109474475A (en) The switching system of dual redundant network interface card under windows XPE
CN106816175A (en) The control method and device of memory
CN102360568B (en) Parallel asynchronous memory and data reading method thereof
CN111352764A (en) Chip repairing method, device, equipment and storage medium
CN115562655A (en) BMS-based object dictionary access method, system, electronic equipment and storage medium
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN113518501B (en) Intelligent lighting system equipment replacement method, system, device and storage medium
CN109728915A (en) The switching method of dual redundant network interface card under windows XPE
CN115376606A (en) Dynamic random access memory channel test method, system, device and storage medium
US20130246687A1 (en) Data writing method, memory controller and memory storage apparatus

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