Movatterモバイル変換


[0]ホーム

URL:


CN103729226A - Software correct configuration method and tool - Google Patents

Software correct configuration method and tool
Download PDF

Info

Publication number
CN103729226A
CN103729226ACN201410038985.7ACN201410038985ACN103729226ACN 103729226 ACN103729226 ACN 103729226ACN 201410038985 ACN201410038985 ACN 201410038985ACN 103729226 ACN103729226 ACN 103729226A
Authority
CN
China
Prior art keywords
bin
program
parameter
software
correct
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410038985.7A
Other languages
Chinese (zh)
Inventor
陈水明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co LtdfiledCriticalGuangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201410038985.7ApriorityCriticalpatent/CN103729226A/en
Publication of CN103729226ApublicationCriticalpatent/CN103729226A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种软件正确配置方法及工具,实现了在无需重新编译代码的情况下对已经烧录进ROM后的BIN文件的BIN参数进行更改,从而,实现了软件成功配置的功能,且避免了时间的浪费,以及,对控制端的鉴权设计,确定控制端的正确,进一步解决由于人工编译并操作,而导致的参数配置与控制端不匹配的失误率高的技术问题。本发明实施例方法包括:S1:对控制端进行鉴权,确定所述控制端正确;S2:导入包含有BIN参数的第一BIN程序,所述BIN参数由PARAM.BIN和参数信息组成;S3:对第一BIN程序的BIN参数进行修改成为第二BIN程序。

Figure 201410038985

The embodiment of the present invention discloses a method and tool for correct software configuration, which realizes changing the BIN parameters of the BIN file that has been burned into ROM without recompiling the code, thereby realizing the function of successful software configuration , and avoid the waste of time, and, for the authentication design of the control terminal, confirm the correctness of the control terminal, and further solve the technical problem of high error rate of parameter configuration and control terminal mismatch due to manual compilation and operation. The method in the embodiment of the present invention includes: S1: authenticate the control terminal, and determine that the control terminal is correct; S2: import the first BIN program containing BIN parameters, and the BIN parameters are composed of PARAM.BIN and parameter information; S3 : Modify the BIN parameters of the first BIN program to become the second BIN program.

Figure 201410038985

Description

The correct collocation method of a kind of software and instrument
Technical field
The present invention relates to burning technical field, relate in particular to the correct collocation method of a kind of software and instrument.
Background technology
Burn-recording system is a kind of computer system of special use, as a part for device or equipment.Conventionally, burn-recording system is that a control program is stored in the burning processor control panel in ROM.In fact, all equipment with digital interface, as wrist-watch, micro-wave oven, video recorder, automobile etc., all use burn-recording system, some burn-recording system also comprises operating system, but most of burn-recording systems are all to realize whole steering logic by single program, by program compiler code, more compiled program code burning is entered in ROM, owing to being applied in the different equipment with digital interface, each equipment possesses the parameter of oneself, for example microwave stove is for the parameter of difference in functionality, the parameter of TV set image display function.
In existing burn-recording system, during compiled code, can generate a BIN file, in BIN file, include the parameter information B parameter IN file of required function, therefore, after program code enters ROM together with the burning of BIN file, electronic equipment just can call parameters carry out related work.
Yet, after entering ROM with the BIN burning file of B parameter IN file, in the time of need to changing configuration to parameter, need to again recompilate code, generate the new BIN file that includes new B parameter IN file, ROM is entered in burning again, therefore, cause the time to be wasted in a large number, simultaneously, owing to manually compiling and operating, thereby parameter configuration and the unmatched fault rate of control end have further been increased.
Summary of the invention
The embodiment of the present invention provides the correct collocation method of a kind of software and instrument, realized in the BIN parameter of burning being entered to the BIN file after ROM without recompilate code in the situation that and having changed, thereby, realize the function that software successfully configures, and avoided waste of time, and, authentication design to control end, determine the correct of control end, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
The correct collocation method of a kind of software that the embodiment of the present invention provides, step comprises:
S1: control end is carried out to authentication, determine that described control end is correct;
S2: import a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information;
S3: the described BIN parameter of a described BIN program is modified and become the 2nd BIN program.
Alternatively, described step S1 specifically comprises:
Whether the control end that the correct configuration tool of software is opened in judgement possesses authentication file, if so, the information of authentication file is mated, and if not, generates initial authentication file, and is sent to the manufacturing side and loads described information and obtain new authentication file;
According to described information mandate, open the described control end of the correct configuration tool of described software.
Alternatively, a described BIN program is set up the specific region that is useful on the described BIN parameter of storage.
Alternatively, described step S2 specifically comprises:
Importing includes a BIN program of BIN parameter, and described BIN parameter is comprised of PARAM.BIN and parameter information, and described parameter information includes numbering, length and data;
According to described PARAM.BIN, obtain the position of described BIN parameter in a described BIN program.
Alternatively, described step S3 specifically comprises:
According to described PARAM.BIN, recall the described BIN parameter of a described BIN program
Resolve described BIN parameter;
Described BIN parameter is modified and generated the 2nd BIN program;
Meanwhile, generate and the corresponding XML file of described the 2nd BIN program.
The correct configuration tool of a kind of software providing in the embodiment of the present invention, is applied to the correct collocation method of any one software as mentioned in the embodiment of the present invention, it is characterized in that, comprising:
Authentication module, carries out authentication to control end, determines that described control end is correct;
Import module, for importing a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information;
Generation module, for modifying and become the 2nd BIN program the described BIN parameter of a described BIN program.
Alternatively, authentication module specifically comprises:
Judgement submodule, whether the control end of opening the correct configuration tool of software for judging possesses authentication file, if, the information of authentication file is mated, if not, generate initial authentication file, and be sent to the manufacturing side and load described information and obtain new authentication file;
Authorize submodule, for open the described control end of the correct configuration tool of described software according to described information mandate.
Alternatively, importing module specifically comprises:
Import submodule, for importing a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information, and described parameter information includes numbering, length and data;
Obtain submodule, for obtaining described BIN parameter according to described PARAM.BIN in the position of a described BIN program.
Alternatively, generation module specifically comprises:
Calling module, for recalling the described BIN parameter of a described BIN program according to described PARAM.BIN
Parsing module, for resolving described BIN parameter;
The first generation module, for the 2nd BIN program of generation that described BIN parameter is modified.
Alternatively, generation module also comprises:
The second generation module, for generating described the 2nd BIN program when described the first generation module simultaneously, generates and the corresponding XML file of described the 2nd BIN program.As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
The correct collocation method of a kind of software and the instrument that in the embodiment of the present invention, provide, wherein, method step comprises: S1: control end is carried out to authentication, determine that described control end is correct; S2: import a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information; S3: the BIN parameter of a BIN program is modified and become the 2nd BIN program.In the present embodiment, by control end is permitted to authentication, import again a BIN program that includes BIN parameter, finally carrying out BIN parameter modification generates the 2nd new BIN program and replaces an original BIN program, the BIN parameter that just can realize the BIN file after burning is entered to ROM without recompility code in the situation that is changed, thereby, realized the function that software successfully configures, further avoided waste of time, and, authentication design to control end, determine the correct of control end, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of an embodiment of the correct collocation method of a kind of software that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of the correct collocation method of a kind of software that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of the correct collocation method of a kind of software that Fig. 3 provides for the embodiment of the present invention;
The structural representation of an embodiment of the correct configuration tool of a kind of software that Fig. 4 provides for the embodiment of the present invention;
The structural representation of another embodiment of the correct configuration tool of a kind of software that Fig. 5 provides for the embodiment of the present invention;
The structural representation of another embodiment of the correct configuration tool of a kind of software that Fig. 6 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides the correct collocation method of a kind of software and instrument, realized in the BIN parameter of burning being entered to the BIN file after ROM without recompilate code in the situation that and having changed, thereby, realize the function that software successfully configures, and avoided waste of time, and, authentication design to control end, determine the correct of control end, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, an embodiment of the correct collocation method of a kind of software that the embodiment of the present invention provides comprises:
S1: control end is carried out to authentication, determine that control end is correct;
In the present embodiment, when developer is before entering ROM by BIN burning program, need first source code program to be compiled into BIN program, after compiled BIN burning program is entered to ROM, in the time of need to modifying to the BIN parameter in BIN program, while opening the correct configuration tool of software by control end, need first to using the control end of software configuration tool to carry out authentication, this authentication can be whether to possess modification license of a BIN program etc. to opening the control end of the correct configuration tool of software, herein, specifically do not limit, after authentication, determine that aforesaid control end is correct.
S2: import a BIN program that includes BIN parameter;
When control end being carried out after authentication completes, and definite control end correct after, by using the correct configuration tool of software to import a BIN program that includes BIN parameter, be understandable that, this BIN parameter is comprised of PARAM.BIN and parameter information, be understandable that, this PARAM.BIN is the sign of BIN parameter, be placed on the beginning of BIN parameter, after be followed by the information for the required parameter of a BIN program, this parameter information can be one or a plurality of, for example the beginning of BIN parameter is PARAM.BIN, after be parameter 1, parameter 2 etc., specifically do not limit herein.
It should be noted that, when compiled code, need in BIN program, set up one for storing the specific region of BIN parameter, aforesaid BIN parameter is imported in BIN program.
S3: the BIN parameter of a BIN program is modified and become the 2nd BIN program.
In the present embodiment, when the correct configuration tool of software imports by reading after BIN parameter carries out an initialized BIN program, the correct configuration tool of software is modified and is become the 2nd BIN program the BIN parameter of a BIN program, it should be noted that, to the modification of BIN parameter as can be that the parameter white balance in BIN parameter is numbered to 1, length is 0 * 50, data are that binary data etc. is revised as parameter white balance and is numbered 2, length is 0 * 40, data are binary data etc., specifically do not limit herein.
The correct collocation method of a kind of software and the instrument that in the embodiment of the present invention, provide, wherein, method step comprises: S1: control end is carried out to authentication, determine that described control end is correct; S2: import a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information; S3: the BIN parameter of a BIN program is modified and become the 2nd BIN program.In the present embodiment, by control end is permitted to authentication, import again a BIN program that includes BIN parameter, finally carrying out BIN parameter modification generates the 2nd new BIN program and replaces an original BIN program, the BIN parameter that just can realize the BIN file after burning is entered to ROM without recompility code in the situation that is changed, thereby, realized the function that software successfully configures, further avoided waste of time, and, authentication design to control end, determine the correct of control end, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
That the process of the correct collocation method of a kind of software in the present embodiment is described in detail above, to the process of a BIN program authentication be described in detail below, refer to Fig. 2, an embodiment of the correct collocation method of a kind of software that the embodiment of the present invention provides comprises:
201,, after opening a BIN program, whether the control end that a BIN program is opened in judgement possesses authentication file, if so, performsstep 202, if not, performsstep 203;
In the present embodiment, when developer is before entering ROM by BIN burning program, need first source code program to be compiled into BIN program, after compiled BIN burning program is entered to ROM, in the time of need to modifying to the BIN parameter in BIN program, while opening the correct configuration tool of software by control end, whether the control end that needs judgement to open the correct configuration tool of software possesses authentication file, if control end possesses authentication file, performstep 202, if control end does not possess authentication file, performstep 203.
Should be noted that, whether the control end that the correct configuration tool of software is opened in judgement possesses the hardware information that authentication file including has control end, this hardware information can be for example the CPU sequence number of control end, it can also be the mainboard sequence number of control end, or the hard disk sequence number of control end, and the user profile corresponding with aforesaid hardware information, be for example user name, the term of life of the correct configuration tool of software, and residue number of days.
202, the information of authentication file is mated;
After control end that the correct configuration tool of software is opened in judgement possesses authentication file, the hardware information of control end is mated with the user profile corresponding with this hardware information, aforesaid hardware information can be for example the CPU sequence number of control end, it can also be the mainboard sequence number of control end, or the hard disk sequence number of control end, the user profile corresponding with aforesaid hardware information, for example, can be user name, the term of life of the correct configuration tool of software, and residue number of days.
The coupling of understandable aforesaid term of life and residue number of days, can be whether the current time of opening the correct configuration tool of software surpasses the cut-off date, and front service time of once opening the correct configuration tool of software with current service time calculation date number of days poor, be the A A month A day service time of for example, once opening the correct configuration tool of software before, with current service time A A month B day calculation date number of days poor be C days, specifically do not limit herein.
203, generate initial authentication file, and be sent to manufacturing side load information and obtain new authentication file;
After control end that the correct configuration tool of software is opened in judgement does not possess authentication file, generate initial authentication file, this initial authentication file is sent to the manufacturing side to be loaded the information corresponding with the control end of opening the correct configuration tool of software and obtains new authentication file, aforesaid information can be the hardware information of control end and the user profile corresponding with this hardware information, this hardware information can be the CPU sequence number of control end, it can also be the mainboard sequence number of control end, or the hard disk sequence number of control end, the user profile corresponding with aforesaid hardware information, it can be for example user name, the term of life of the correct configuration tool of software.
204, according to information, the control end of the correct configuration tool of software is opened in mandate;
In the present embodiment, when control end being carried out after authentication completes, after determining that the information of control end is correct, according to information, the control end of the correct configuration tool of software is opened in mandate, makes by the correct configuration tool of this software, can carry out subsequent step under this control end.
205, import a BIN program that includes BIN parameter;
When control end being carried out after authentication completes, and definite control end correct after, by using the correct configuration tool of software to import a BIN program that includes BIN parameter, be understandable that, this BIN parameter is comprised of PARAM.BIN and parameter information, be understandable that, this PARAM.BIN is the sign of BIN parameter, be placed on the beginning of BIN parameter, after be followed by the information for the required parameter of a BIN program, this parameter information can be one or a plurality of, for example the beginning of BIN parameter is PARAM.BIN, after be parameter 1, parameter 2 etc., specifically do not limit herein.Should be noted that, aforesaid parameter information can be the numbering that includes BIN parameter, length and data, for example the parameter in BIN parameter 1 is parameter white balance, is numbered 1, length is 0 * 50, data are binary data, and the parameter 2 in BIN parameter is parameter brightness, is numbered 2, length is 0 * 25, and data are binary data etc.
It should be noted that, when compiled code, need in BIN program, set up one for storing the specific region of BIN parameter, aforesaid BIN parameter is imported in BIN program.
206, according to PARAM.BIN, obtain the position of BIN parameter in a BIN program;
When having imported by reading after BIN parameter carries out an initialized BIN program, according to PARAM.BIN, obtain the position of BIN parameter in a BIN program, making the correct configuration tool of software can be that PARAM.BIN by BIN parameter obtains the position of BIN parameter in a BIN program rapidly.
207, the BIN parameter of a BIN program is modified and become the 2nd BIN program.
In the present embodiment, when the correct configuration tool of software completes a BIN program authentication, and after determining that a BIN program is correct, the correct configuration tool of software is modified and is become the 2nd BIN program the parameter information of the BIN parameter of a BIN program, it should be noted that, to the modification of BIN parameter as can be that the parameter white balance in BIN parameter is numbered to 1, length is 0 * 50, data are that binary data etc. is revised as parameter white balance and is numbered 2, length is 0 * 40, data are binary data etc., specifically do not limit herein.
In the present embodiment, by control end is permitted to authentication, import again a BIN program that includes BIN parameter, carrying out BIN parameter modification generates the 2nd new BIN program and replaces an original BIN program again, just can without recompility code in the situation that, realize the parameter change of the BIN file after ROM is entered in burning, thereby, realized the function that software successfully configures, further avoided waste of time, and, to opening the hardware information of control end and the authentication of the user profile corresponding with hardware information of the correct configuration tool of software, to opening the control end mandate of the correct configuration tool of software, just can carry out the design of BIN parameter modification, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
Be that the process of a BIN program authentication is described in detail above, below the detailed process that BIN parameter is modified be described in detail, refer to Fig. 3, an embodiment of the correct collocation method of a kind of software that the embodiment of the present invention provides comprises:
301,, after opening a BIN program, whether the control end that a BIN program is opened in judgement possesses authentication file, if so, performsstep 302, if not, performsstep 303;
In the present embodiment, when developer is before entering ROM by BIN burning program, need first source code program to be compiled into BIN program after compiled BIN burning program is entered to ROM, in the time of need to modifying to the BIN parameter in BIN program, while opening the correct configuration tool of software by control end, whether the control end that needs judgement to open the correct configuration tool of software possesses authentication file, if control end possesses authentication file, performstep 302, if control end does not possess authentication file, performstep 303.
Should be noted that, whether the control end that the correct configuration tool of software is opened in judgement possesses the hardware information that authentication file including has control end, this hardware information can be for example the CPU sequence number of control end, it can also be the mainboard sequence number of control end, or the hard disk sequence number of control end, and the user profile corresponding with aforesaid hardware information, be for example user name, the term of life of the correct configuration tool of software, and residue number of days.
302, the information of authentication file is mated;
After control end that the correct configuration tool of software is opened in judgement possesses authentication file, the hardware information of control end is mated with the user profile corresponding with this hardware information, aforesaid hardware information can be for example the CPU sequence number of control end, it can also be the mainboard sequence number of control end, or the hard disk sequence number of control end, the user profile corresponding with aforesaid hardware information, for example, can be user name, the term of life of the correct configuration tool of software, and residue number of days.
The coupling of understandable aforesaid term of life and residue number of days, can be whether the current time of opening the correct configuration tool of software surpasses the cut-off date, and front service time of once opening the correct configuration tool of software with current service time calculation date number of days poor, be the A A month A day service time of for example, once opening the correct configuration tool of software before, with current service time A A month B day calculation date number of days poor be C days, specifically do not limit herein.
303, generate initial authentication file, and be sent to manufacturing side load information and obtain new authentication file;
After control end that the correct configuration tool of software is opened in judgement does not possess authentication file, generate initial authentication file, this initial authentication file is sent to the manufacturing side to be loaded the information corresponding with the control end of opening the correct configuration tool of software and obtains new authentication file, aforesaid information can be the hardware information of control end and the user profile corresponding with this hardware information, this hardware information can be the CPU sequence number of control end, it can also be the mainboard sequence number of control end, or the hard disk sequence number of control end, the user profile corresponding with aforesaid hardware information, it can be for example user name, the term of life of the correct configuration tool of software.
304, according to information, the control end of the correct configuration tool of software is opened in mandate;
In the present embodiment, when control end being carried out after authentication completes, after determining that the information of control end is correct, according to information, the control end of the correct configuration tool of software is opened in mandate, makes by the correct configuration tool of this software, can carry out subsequent step under this control end.
305, import a BIN program that includes BIN parameter;
When control end being carried out after authentication completes, and definite control end correct after, by using the correct configuration tool of software to import a BIN program that includes BIN parameter, be understandable that, this BIN parameter is comprised of PARAM.BIN and parameter information, be understandable that, this PARAM.BIN is the sign of BIN parameter, be placed on the beginning of BIN parameter, after be followed by the information for the required parameter of a BIN program, this parameter information can be one or a plurality of, for example the beginning of BIN parameter is PARAM.BIN, after be parameter 1, parameter 2 etc., specifically do not limit herein.Should be noted that, aforesaid parameter information can be the numbering that includes BIN parameter, length and data, for example the parameter in BIN parameter 1 is parameter white balance, is numbered 1, length is 0 * 50, data are binary data, and the parameter 2 in BIN parameter is parameter brightness, is numbered 2, length is 0 * 25, and data are binary data etc.
It should be noted that, when compiled code, need in BIN program, set up one for storing the specific region of BIN parameter, aforesaid BIN parameter is imported in BIN program.
306, according to PARAM.BIN, obtain the position of BIN parameter in a BIN program;
When having imported by reading after BIN parameter carries out an initialized BIN program, according to PARAM.BIN, obtain the position of BIN parameter in a BIN program, making the correct configuration tool of software can be that PARAM.BIN by BIN parameter obtains the position of BIN parameter in a BIN program rapidly.
307, according to PARAM.BIN, recall the BIN parameter of a BIN program;
When the position of BIN parameter in a BIN program obtained in the correct configuration tool of software according to PARAM.BIN after, the correct configuration tool of software can recall according to PARAM.BIN the BIN parameter of a BIN program.
308, resolve BIN parameter;
When the correct configuration tool of software recalls the BIN parameter of a BIN program according to PARAM.BIN after, the correct configuration tool of software is resolved the data of BIN parameter, be understandable that, this BIN parameter includes numbering, length and data, for example the parameter white balance in BIN parameter is numbered 1, and length is 0 * 50, data are binary data etc., specifically do not limit herein.
309, BIN parameter is modified and generated the 2nd BIN program;
In the present embodiment, after the correct configuration tool parsing of software BIN supplemental characteristic completes, the BIN parameter of the one BIN program is modified and become the 2nd BIN program, it should be noted that, to the modification of BIN parameter, as being that the parameter white balance in BIN parameter is numbered to 1, length is 0 * 50, data are that binary data etc. is revised as parameter white balance and is numbered 2, length is 0 * 40, and data are binary data etc., specifically do not limit herein.
310, generation and the corresponding XML file of the 2nd BIN program.
In the time of the 2nd BIN program of generation, generate and the corresponding XML file of the 2nd BIN program, this XML file record the data of BIN parameter of the 2nd BIN program, making when other BIN programs need to be used the BIN parameter in the 2nd BIN program, can be that the XML file that imports the 2nd BIN program by direct copying is directly replaced renewal.
Be understandable that, in the specific region that this XML file and BIN Parameter storage are mentioned in the present embodiment.
In the present embodiment, by control end is permitted to authentication, import again a BIN program that includes BIN parameter, finally carrying out BIN parameter modification generates the 2nd new BIN program and replaces an original BIN program, just can without recompility code in the situation that, realize the parameter change of the BIN file after ROM is entered in burning, thereby, realized the function that software successfully configures, further avoided waste of time, and, to opening the hardware information of control end and the authentication of the user profile corresponding with hardware information of the correct configuration tool of software, to opening the control end mandate of the correct configuration tool of software, just can carry out the design of BIN parameter modification, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end, simultaneously, in the 2nd BIN program of generation, generate and the corresponding XML file of the 2nd BIN program, make the BIN parameter of subsequent applications the 2nd BIN program by directly replacing XML file, just obtain rapidly the BIN parameter of the 2nd BIN program, further improved the efficiency of software configuration.
Refer to Fig. 4, an embodiment of the correct configuration tool of a kind of software providing in the embodiment of the present invention comprises:
Authentication module 401, carries out authentication to control end, determines that control end is correct;
Import module 402, for importing a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information;
Generation module 403, for modifying and become the 2nd BIN program the BIN parameter of a BIN program.
In the present embodiment, by 401 pairs of control ends of authentication module, permit authentication,import module 402 and import again a BIN program that includes BIN parameter,last generation module 403 carries out BIN parameter modification and generates the 2nd new BIN program and replace an original BIN program, just can without recompility code in the situation that, realize the BIN parameter change of the BIN file after ROM is entered in burning, thereby, realized the function that software successfully configures, further avoided waste of time, and, the authentication design of 401 pairs of control ends of authentication module, determine the correct of control end, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
Refer to Fig. 5, an embodiment of the correct configuration tool of a kind of software providing in the embodiment of the present invention comprises:
Authentication module 501, carries out authentication to control end, determines that control end is correct;
Wherein,authentication module 501 can further include:
Judgement submodule 5011, whether the control end of opening the correct configuration tool of software for judging possesses authentication file, if, the information of authentication file is mated, if not, generate initial authentication file, and be sent to manufacturing side load information and obtain new authentication file;
Authorizesubmodule 5012, for according to information mandate open the control end of the correct configuration tool of software.
Import module 502, for importing a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information;
Wherein, importingmodule 502 can further include:
Import submodule 5021, for importing a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information, and described parameter information includes numbering, length and data;
Obtainsubmodule 5022, for obtaining BIN parameter according to PARAM.BIN in the position of a BIN program.
Generation module 503, for modifying and become the 2nd BIN program the BIN parameter of a BIN program.
In the present embodiment, by 501 pairs of control ends of authentication module, permit authentication,import module 502 and import again a BIN program that includes BIN parameter,last generation module 503 carries out BIN parameter modification and generates the 2nd new BIN program and replace an original BIN program, just can without recompility code in the situation that, realize the BIN parameter change of the BIN file after ROM is entered in burning, thereby, realized the function that software successfully configures, further avoided waste of time, and, 5011 pairs of the judgement submodules ofauthentication module 501 are opened the hardware information of control end and the authentication of the user profile corresponding with hardware information of the correct configuration tool of software, the control end mandate of authorizing 5012 pairs of submodules to open the correct configuration tool of software just can be carried out the design of BIN parameter modification, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end.
Refer to Fig. 6, an embodiment of the correct configuration tool of a kind of software providing in the embodiment of the present invention comprises:
Authentication module 601, carries out authentication to control end, determines that control end is correct;
Wherein, authentication module 601 can further include:
Judgement submodule 6011, whether the control end of opening the correct configuration tool of software for judging possesses authentication file, if, the information of authentication file is mated, if not, generate initial authentication file, and be sent to manufacturing side load information and obtain new authentication file;
Authorize submodule 6012, for according to information mandate open the control end of the correct configuration tool of software.
Import module 602, for importing, by reading BIN parameter, carry out an initialized BIN program, BIN parameter includes PARAM.BIN, numbering, length and data;
Wherein, importing module 602 can further include:
Import submodule 6021, for importing a BIN program that includes BIN parameter, described BIN parameter is comprised of PARAM.BIN and parameter information, and described parameter information includes numbering, length and data;
Obtain submodule 6022, for obtaining BIN parameter according to PARAM.BIN in the position of a BIN program.
Generation module 603, for modifying and become the 2nd BIN program the BIN parameter of a BIN program;
Wherein, generation module 603 can further include:
Calling module 6031, for recalling the BIN parameter of a BIN program according to PARAM.BIN
Parsing module 6032, for resolving BIN parameter;
The first generation module 6033, for the 2nd BIN program of generation that BIN parameter is modified
The second generation module 6034, for generating the 2nd BIN program simultaneously when the first generation module, generates and the corresponding XML file of the 2nd BIN program.
In the present embodiment, by 601 pairs of control ends of authentication module, permit authentication, import module 602 and import again a BIN program that includes BIN parameter, last generation module 603 carries out BIN parameter modification and generates the 2nd new BIN program and replace an original BIN program, just can without recompility code in the situation that, realize the BIN parameter change of the BIN file after ROM is entered in burning, thereby, realized the function that software successfully configures, further avoided waste of time, and, 6011 pairs of the judgement submodules of authentication module 601 are opened the hardware information of control end and the authentication of the user profile corresponding with hardware information of the correct configuration tool of software, the control end mandate of authorizing 6012 pairs of submodules to open the correct configuration tool of software just can be carried out the design of BIN parameter modification, further solve owing to manually compiling and operating, and the high technical matters of the unmatched fault rate of the parameter configuration causing and control end, simultaneously, when the first generation module 6033 generates the 2nd BIN program, the second generation module 6034 generates and the corresponding XML file of the 2nd BIN program, make the BIN parameter of subsequent applications the 2nd BIN program by directly replacing XML file, just obtain rapidly the BIN parameter of the 2nd BIN program, further improved the efficiency of software configuration.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

Translated fromChinese
1.一种软件正确配置方法,其特征在于,步骤包括:1. A software correct configuration method is characterized in that, the steps comprise:S1:对控制端进行鉴权,确定所述控制端正确;S1: Authenticate the control terminal, and determine that the control terminal is correct;S2:导入包含有BIN参数的第一BIN程序,所述BIN参数由PARAM.BIN和参数信息组成;S2: Import the first BIN program containing BIN parameters, the BIN parameters are composed of PARAM.BIN and parameter information;S3:对所述第一BIN程序的所述BIN参数进行修改成为第二BIN程序。S3: Modify the BIN parameter of the first BIN program to become a second BIN program.2.根据权利要求1所述的方法,其特征在于,所述步骤S1具体包括:2. The method according to claim 1, wherein said step S1 specifically comprises:判断打开软件正确配置工具的控制端是否具备鉴权文件,若是,则对鉴权文件的信息进行匹配,若否,则生成初始鉴权文件,并发送至生产端加载所述信息并获取新鉴权文件;Determine whether the control terminal that opens the software correct configuration tool has an authentication file, if so, match the information of the authentication file, if not, generate an initial authentication file, and send it to the production end to load the information and obtain a new authentication file. rights document;根据所述信息授权打开所述软件正确配置工具的所述控制端。Opening the control terminal of the software correct configuration tool according to the information authorization.3.根据权利要求1所述的方法,其特征在于,3. The method of claim 1, wherein,所述第一BIN程序建立有用于存储所述BIN参数的特定区域。The first BIN program is established with a specific area for storing the BIN parameters.4.根据权利要求1所述的方法,其特征在于,所述步骤S2具体包括:4. The method according to claim 1, wherein said step S2 specifically comprises:导入包含有BIN参数的第一BIN程序,所述BIN参数由PARAM.BIN和参数信息组成,所述参数信息包含有编号,长度和数据;Importing the first BIN program that contains BIN parameters, said BIN parameters are made up of PARAM.BIN and parameter information, said parameter information includes serial number, length and data;根据所述PARAM.BIN获取所述BIN参数在所述第一BIN程序中的位置。Obtain the position of the BIN parameter in the first BIN program according to the PARAM.BIN.5.根据权利要求1所述的方法,其特征在于,所述步骤S3具体包括:5. The method according to claim 1, wherein said step S3 specifically comprises:根据所述PARAM.BIN调出所述第一BIN程序的所述BIN参数Call out the BIN parameters of the first BIN program according to the PARAM.BIN解析所述BIN参数;Parsing the BIN parameters;对所述BIN参数进行修改生成第二BIN程序;modifying the BIN parameters to generate a second BIN program;同时,生成与所述第二BIN程序相应的XML文件。At the same time, an XML file corresponding to the second BIN program is generated.6.一种软件正确配置工具,应用于如权利要求1至5中提及的一种软件正确配置方法,其特征在于,包括:6. A software correct configuration tool, applied to a method for correct software configuration as mentioned in claims 1 to 5, characterized in that it comprises:鉴权模块,对控制端进行鉴权,确定所述控制端正确;The authentication module authenticates the control terminal and determines that the control terminal is correct;导入模块,用于导入包含有BIN参数的第一BIN程序,所述BIN参数由PARAM.BIN和参数信息组成;The import module is used to import the first BIN program that contains the BIN parameter, and the BIN parameter is composed of PARAM.BIN and parameter information;生成模块,用于对所述第一BIN程序的所述BIN参数进行修改成为第二BIN程序。A generating module, configured to modify the BIN parameters of the first BIN program to become a second BIN program.7.根据权利要求6所述的软件正确配置工具,其特征在于,鉴权模块具体包括:7. The software correct configuration tool according to claim 6, wherein the authentication module specifically includes:判断子模块,用于判断打开软件正确配置工具的控制端是否具备鉴权文件,若是,则对鉴权文件的信息进行匹配,若否,则生成初始鉴权文件,并发送至生产端加载所述信息并获取新鉴权文件;The judging sub-module is used to judge whether the control terminal that opens the correct configuration tool of the software has an authentication file. If so, the information of the authentication file is matched. the above information and obtain a new authentication document;授权子模块,用于根据所述信息授权打开所述软件正确配置工具的所述控制端。The authorization sub-module is configured to authorize opening the control terminal of the correct software configuration tool according to the information.8.根据权利要求6所述的软件正确配置工具,其特征在于,导入模块具体包括:8. The software correct configuration tool according to claim 6, wherein the import module specifically comprises:导入子模块,用于导入包含有BIN参数的第一BIN程序,所述BIN参数由PARAM.BIN和参数信息组成,所述参数信息包含有编号,长度和数据;Importing sub-modules for importing the first BIN program that contains BIN parameters, the BIN parameters are composed of PARAM.BIN and parameter information, and the parameter information includes serial number, length and data;获取子模块,用于根据所述PARAM.BIN获取所述BIN参数在所述第一BIN程序中的位置。The obtaining sub-module is used to obtain the position of the BIN parameter in the first BIN program according to the PARAM.BIN.9.根据权利要求6所述的软件正确配置工具,其特征在于,生成模块具体包括:9. The software correct configuration tool according to claim 6, wherein the generating module specifically comprises:调用模块,用于根据所述PARAM.BIN调出所述第一BIN程序的所述BIN参数A calling module, configured to call out the BIN parameters of the first BIN program according to the PARAM.BIN解析模块,用于解析所述BIN参数;A parsing module, configured to parse the BIN parameters;第一生成模块,用于对所述BIN参数进行修改生成第二BIN程序。The first generation module is used to modify the BIN parameters to generate the second BIN program.10.根据权利要求9所述的软件正确配置工具,其特征在于,生成模块还包括:10. The software correct configuration tool according to claim 9, wherein the generation module further comprises:第二生成模块,用于当所述第一生成模块生成所述第二BIN程序同时,生成与所述第二BIN程序相应的XML文件。The second generation module is configured to generate the XML file corresponding to the second BIN program when the first generation module generates the second BIN program.
CN201410038985.7A2014-01-262014-01-26Software correct configuration method and toolPendingCN103729226A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410038985.7ACN103729226A (en)2014-01-262014-01-26Software correct configuration method and tool

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410038985.7ACN103729226A (en)2014-01-262014-01-26Software correct configuration method and tool

Publications (1)

Publication NumberPublication Date
CN103729226Atrue CN103729226A (en)2014-04-16

Family

ID=50453310

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410038985.7APendingCN103729226A (en)2014-01-262014-01-26Software correct configuration method and tool

Country Status (1)

CountryLink
CN (1)CN103729226A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111488140A (en)*2019-01-292020-08-04杭州海康威视数字技术股份有限公司Method and device for supporting multiple programming languages and multiple programming libraries and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101202035A (en)*2007-12-202008-06-18凌阳科技股份有限公司Method for adjusting screen and equipment for adjusting screen
CN102508660A (en)*2011-10-262012-06-20青岛海信宽带多媒体技术有限公司Generation method and device of executable file
EP2584465A1 (en)*2011-10-172013-04-24Honeywell International Inc.Methods and reconfigurable systems to incorporate customized executable code within a condition based health maintenance system without recompiling base code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101202035A (en)*2007-12-202008-06-18凌阳科技股份有限公司Method for adjusting screen and equipment for adjusting screen
EP2584465A1 (en)*2011-10-172013-04-24Honeywell International Inc.Methods and reconfigurable systems to incorporate customized executable code within a condition based health maintenance system without recompiling base code
CN102508660A (en)*2011-10-262012-06-20青岛海信宽带多媒体技术有限公司Generation method and device of executable file

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李慧 等: "《PHP入门经典》", 30 April 2013*
黄东巍 等: "《3G终端及业务技术》", 31 October 2009*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111488140A (en)*2019-01-292020-08-04杭州海康威视数字技术股份有限公司Method and device for supporting multiple programming languages and multiple programming libraries and computer equipment
CN111488140B (en)*2019-01-292023-10-27杭州海康威视数字技术股份有限公司Method, device and computer equipment for supporting multiple programming libraries in multiple programming languages

Similar Documents

PublicationPublication DateTitle
Ghezzi et al.Fundamentals of software engineering
US8533691B2 (en)Managing non-common features for program code translation
CN109274959B (en)Television screen parameter separation method, television and computer readable storage medium
CN110825363B (en)Intelligent contract acquisition method and device, electronic equipment and storage medium
CN105103127A (en)Compiler based obfuscation
CN110750272B (en)Data burning method for image pickup apparatus, burning apparatus, and storage medium
CN104133676A (en)Function execution method and function execution device based on scripts
CN103500099A (en)Method for achieving quick software secondary development through expansion points and expansion
CN111857712A (en) Form processing method, device, terminal and medium
WO2017166448A1 (en)Kernel vulnerability repair method and device
US11507367B2 (en)Firmware update method and firmware update system thereof
KR102185292B1 (en)Software development system and method
CN107391178B (en)Terminal installation package deployment and implementation method and device
CN105373384B (en)A kind of software development methodology and device
CN111625586A (en)Method and system for importing general service data
CN108459846A (en)Software cloud method for customizing and platform
CN103729226A (en)Software correct configuration method and tool
US8423849B2 (en)Device test data reuse for device simulation
CN103501324A (en)Theme packaging method and device as well as server
CN115826987A (en)Application software packaging online method and device, terminal equipment and storage medium
CN108416191B (en)Method and device for reinforcing source code based on opaque predicate and finite state machine
KR102185291B1 (en)Software development system and method
KR102131918B1 (en)Software development system and method
CN111142965A (en)Language configuration method and device, electronic equipment and storage medium
US20230401240A1 (en)System and method for enterprise process construction

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20140416


[8]ページ先頭

©2009-2025 Movatter.jp