CN108427567B - Automatic upgrading method for device driver package - Google Patents

Automatic upgrading method for device driver package Download PDF

Info

Publication number
CN108427567B
CN108427567B CN201810329127.6A CN201810329127A CN108427567B CN 108427567 B CN108427567 B CN 108427567B CN 201810329127 A CN201810329127 A CN 201810329127A CN 108427567 B CN108427567 B CN 108427567B
Authority
CN
China
Prior art keywords
package
user
upgrading
drive
drive package
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.)
Active
Application number
CN201810329127.6A
Other languages
Chinese (zh)
Other versions
CN108427567A (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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering 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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201810329127.6A priority Critical patent/CN108427567B/en
Publication of CN108427567A publication Critical patent/CN108427567A/en
Application granted granted Critical
Publication of CN108427567B publication Critical patent/CN108427567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an automatic upgrading method of a device driver package, which comprises the following steps: determining a source reference drive package for upgrading and a work drive package to be upgraded; backing up a working drive package; reading the device model information in the two drive packages, and if the device models are different, exiting the upgrading process; if the two are the same, directly covering a visual configuration symbol library file and a research and development level fully-controlled page in a source reference drive package to a work drive package, refreshing example symbols in a user level fully-controlled visual page by using a new symbol library, and synchronously inputting a variable list, an output variable list and a parameter list; synchronizing an offline human-computer interface data hierarchical structure in a source reference drive packet to a work drive packet, and simultaneously reserving a fixed value setting value and a device type selection configuration option value of the same ID in the work drive packet; saving and analyzing the work driving package, and displaying the upgrading content; and upgrading after the user confirms. The method can automatically upgrade the kernel of the research and development drive package on the premise of keeping the configuration of the user.

Description

Automatic upgrading method for device driver package
Technical Field
The invention belongs to the field of embedded programming configuration, and particularly relates to an automatic upgrading method for a device driver package.
Background
The relay protection device has more and more requirements on configurable capacity, and in order to meet global market demands, research and development-user step-by-step configuration is often performed based on a drive package mode, that is, a device integrator builds a device standard function based on a symbol library, performs device function configuration in a visual mode, and designs user configurable data to form a standard drive package. And the user performs device logic programming, module switching and constant value setting based on actual engineering requirements to form an actual operation drive packet. In the step-by-step configuration mode, the situations of problem elimination, function addition and the like of the research and development level driver package exist, at this time, the driver package at the user side is modified and is not suitable for reconfiguration, a method of one-key automatic upgrading is needed, research level configuration content is synchronized to the user driver package, and the previous configuration content of the user is reserved. The scheme is generated.
Disclosure of Invention
The present invention is directed to a method for automatically upgrading a device driver package, which can automatically upgrade the kernel of a research driver package while maintaining the configuration of a user.
In order to achieve the above purpose, the solution of the invention is:
an automatic upgrading method for a device driver package comprises the following steps:
step 1, determining a source reference drive package for upgrading and a work drive package to be upgraded;
step 2, backing up a work drive package to be upgraded;
step 3, reading the device model information in the two drive packages, and if the device models are different, exiting the upgrading process; entering the step 4 only when the device models are the same;
step 4, directly covering a visual configuration symbol library file and a research and development level fully-controlled page in the source reference drive package to a work drive package to be upgraded, refreshing example symbols in a user level fully-controlled visual page by using a new symbol library, and synchronously inputting a variable list, an output variable list and a parameter list;
step 5, synchronizing the off-line human-machine interface data hierarchical structure in the source reference drive package to the work drive package to be upgraded, wherein the off-line human-machine interface data hierarchical structure comprises a menu structure, a fixed value grouping and device type selection configuration data, and simultaneously, fixed value setting values and device type selection configuration option values of the same ID in the work drive package to be upgraded are reserved;
step 6, storing and analyzing the work driving package to be upgraded, and displaying the upgrading content;
and 7, upgrading after the user confirms, and if the user selects to cancel, restoring by using the backup drive package.
In the step 1, the source reference driver package and the work driver package are compressed files in a user-defined format, and are composed of a plurality of files and directories after being decompressed, wherein the files comprise a visual symbol library, a visual page and an offline configuration file, and the offline configuration file belongs to a user modifiable value type.
In the step 1, the driver package configuration tool is divided into a research and development version and a user version, the research and development version needs hardware dog identity authentication and software serial number management, a device research and development worker sets a visual page to be research and development level complete control or user level complete control, the page controlled completely at the research and development level is read only and cannot be modified under the user version, and the research and development version needs hardware dog identity authentication and software serial number management; and the page newly built by the user under the user version is automatically set as a user-level complete control type.
In step 1, a source reference driver package is selected under the driver package opened by the user version tool, the source reference driver package is a source reference driver package for upgrading, and the driver package currently opened is a working driver package to be upgraded.
In the step 2, the work driver package to be upgraded is compressed and stored as a bak file.
In the above step 3, the device model is a sub-attribute in the device information, and the attribute name is device _ type.
In the step 6, the upgrade content is displayed in the form of an HTML form.
After the scheme is adopted, the invention discloses an automatic upgrading method for a device driver package, wherein the driver package consists of a plurality of subfiles, and device research personnel can set the authority of a file to a terminal user and process the authority into three types, namely research-level complete control, user modifiable value and user-level complete control. The driver package 1 is defined as a reference driver package, and the driver package 2 is defined as a driver package to be upgraded. Directly covering the file of the drive package 1 to the drive package 2 for the complete control file with the type of research and development level; for the file with the type of user modifiable value, adopting a partial updating strategy, synchronizing the hierarchical structure of the file from the drive package 1 to the drive package 2, and reserving the set value in the drive package 2 by the settable attribute; for files of the type that is fully user controlled, the files in the drive package 2 are left unchanged. The automatic upgrade of the device driver package is realized by refining the file types and adopting different strategies.
The invention has the following beneficial effects: the related configuration files of the driver package are classified according to types, the development is supported, a user can intelligently and automatically upgrade after the kernel of the driver package is modified, and user-level configuration content is reserved to the maximum extent.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The technical solution and the advantages of the present invention will be described in detail with reference to the accompanying drawings.
The driver package is a compressed file with a custom format, and consists of a plurality of files and directories after being decompressed, wherein the files comprise contents such as a visual symbol library, a visual page, an offline configuration file and the like. The driver package configuration tool is divided into a research and development version and a user version, the research and development version needs hardware dog identity authentication and software serial number management, and the condition that a user modifies the visual page type by using the research and development version is avoided.
Device research personnel can establish the drive package at the research and development version from 0, select the hardware to build the device, newly-built the page under the hardware node to set up the type that sets up each visual page under the page: the development level complete control and the user level complete control. The development-level fully-controlled page is only read and can not be modified under the user version, and the page newly built by the user under the user version is automatically set to be the user-level fully-controlled type. The device research personnel use the visual symbols to build a device function program and carry out man-machine related offline configuration, an offline configuration file comprises device information, a menu structure and grouping of liquid crystal display, fixed value grouping and other data, and the offline configuration file belongs to a user modifiable value type, namely, a user can modify a set value but cannot add or delete members.
Taking fig. 1 as an example, the method for automatically upgrading the device driver package according to the present invention includes the following steps:
(1) determining a source reference drive package 1 for upgrading and a work drive package 2 to be upgraded, and selecting one source reference drive package under the drive packages opened by the user version tool, wherein the source reference drive package is the drive package 1, and the drive package of the current opening operation is the drive package 2.
(2) And backing up the drive package 2 to be upgraded, and compressing and storing the drive package 2 as a bak file.
(3) Reading the device model information in the two drive packages, and if the device models are different, exiting the upgrading process; only when the device models are the same, the subsequent steps are performed. Preferably, the device model is 1 sub-attribute in the device information, the attribute name is device _ type, and for example, if the device model 1 is PCS-978 and the device model 2 is PCS-915, upgrading is not possible.
(4) Directly covering a visual configuration symbol library file and a research and development level fully-controlled page in the drive package 1 to the drive package 2, refreshing example symbols in the user level fully-controlled visual page by using a new symbol library, and synchronously inputting a variable list, an output variable list and a parameter list. The symbol library stores template data of a plurality of visual functional symbols, wherein the symbols have attributes such as type names, instance names and the like, and members such as an input variable list, an output variable list, a parameter list and the like. When the symbol member variable in the library is updated, the example of the visual page is automatically and synchronously refreshed, and the consistency of input, output and parameters is ensured.
(5) Synchronizing the off-line human-machine interface data hierarchical structure in the drive package 1 to the drive package 2, wherein the off-line human-machine interface data hierarchical structure comprises a menu structure, a fixed value grouping and device type selection configuration data, and simultaneously reserving fixed value setting values and device type selection configuration option values of the same ID in the drive package 2. For example, if the drive package 1 adds 2 fixed values to the "high-voltage side protection" fixed value group, the drive package needs to be synchronized with the "high-voltage side protection" fixed value group of the drive package 2, but the set values of other fixed values in the group are kept unchanged.
(6) And storing and analyzing the drive package, and displaying the upgrading content. Preferably, the upgraded content is presented in the form of an HTML form, and the upgraded content can be presented in the form of a paragraph, a table or a tree. And performing rule check on the upgraded drive package, such as whether a variable name exists, whether a set value exceeds a range, whether a visual symbol instance name is repeated, and the like.
(7) And the user confirms the upgrade, and if the upgrade is selected to be cancelled, the backup drive package is used for recovery.
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.

Claims (4)

1. An automatic upgrading method for a device driver package is characterized by comprising the following steps:
step 1, determining a source reference drive package for upgrading and a work drive package to be upgraded;
the source reference drive package and the work drive package are compressed files in a user-defined format, and are composed of a plurality of files and directories after being decompressed, wherein the files comprise a visual symbol library, a visual page and an offline configuration file, and the offline configuration file belongs to a user modifiable value type;
the driver package configuration tool is divided into a research and development version and a user version, the research and development version needs hardware dog identity authentication and software serial number management, device research and development personnel set a visual page to be research and development level complete control or user level complete control, and the research and development level complete control page is only read and can not be modified under the user version; a page newly built by a user under the user version is automatically set as a user-level complete control type;
selecting a source reference drive package under the drive packages opened by the user version tool, wherein the source reference drive package is a source reference drive package for upgrading, and the drive package of the current opening operation is a working drive package to be upgraded;
step 2, backing up a work drive package to be upgraded;
step 3, reading the device model information in the two drive packages, and if the device models are different, exiting the upgrading process; entering the step 4 only when the device models are the same;
step 4, directly covering a visual configuration symbol library file and a research and development level fully-controlled page in the source reference drive package to a work drive package to be upgraded, refreshing example symbols in a user level fully-controlled visual page by using a new symbol library, and synchronously inputting a variable list, an output variable list and a parameter list;
step 5, synchronizing the off-line human-machine interface data hierarchical structure in the source reference drive package to the work drive package to be upgraded, wherein the off-line human-machine interface data hierarchical structure comprises a menu structure, a fixed value grouping and device type selection configuration data, and simultaneously, fixed value setting values and device type selection configuration option values of the same ID in the work drive package to be upgraded are reserved;
step 6, storing and analyzing the work driving package to be upgraded, and displaying the upgrading content;
and 7, upgrading after the user confirms, and if the user selects to cancel, restoring by using the backup drive package.
2. The method for automatically upgrading a device driver package according to claim 1, wherein: in the step 2, the work driver package to be upgraded is compressed and stored as a bak file.
3. The method for automatically upgrading a device driver package according to claim 1, wherein: in step 3, the device model is a sub-attribute in the device information, and the attribute name is device _ type.
4. The method for automatically upgrading a device driver package according to claim 1, wherein: in the step 6, the upgrade content is displayed in an HTML form.
CN201810329127.6A 2018-04-13 2018-04-13 Automatic upgrading method for device driver package Active CN108427567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810329127.6A CN108427567B (en) 2018-04-13 2018-04-13 Automatic upgrading method for device driver package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810329127.6A CN108427567B (en) 2018-04-13 2018-04-13 Automatic upgrading method for device driver package

Publications (2)

Publication Number Publication Date
CN108427567A CN108427567A (en) 2018-08-21
CN108427567B true CN108427567B (en) 2021-06-18

Family

ID=63160858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810329127.6A Active CN108427567B (en) 2018-04-13 2018-04-13 Automatic upgrading method for device driver package

Country Status (1)

Country Link
CN (1) CN108427567B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655801A (en) * 2009-09-11 2010-02-24 华为技术有限公司 Method and device for upgrading drive software
CN102681875A (en) * 2012-05-15 2012-09-19 浪潮电子信息产业股份有限公司 General automatic updating method for drive program
CN105739996A (en) * 2016-03-03 2016-07-06 南京南瑞继保电气有限公司 Embedded device development and user step-by-step development method
CN106293747A (en) * 2016-08-12 2017-01-04 京东方科技集团股份有限公司 Electronic equipment and the driving method of electronic equipment
US9696980B2 (en) * 2006-10-24 2017-07-04 Medapps, Inc. Method for remote provisioning of electronic devices by overlaying an initial application image with a retrieved application image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9696980B2 (en) * 2006-10-24 2017-07-04 Medapps, Inc. Method for remote provisioning of electronic devices by overlaying an initial application image with a retrieved application image
CN101655801A (en) * 2009-09-11 2010-02-24 华为技术有限公司 Method and device for upgrading drive software
CN102681875A (en) * 2012-05-15 2012-09-19 浪潮电子信息产业股份有限公司 General automatic updating method for drive program
CN105739996A (en) * 2016-03-03 2016-07-06 南京南瑞继保电气有限公司 Embedded device development and user step-by-step development method
CN106293747A (en) * 2016-08-12 2017-01-04 京东方科技集团股份有限公司 Electronic equipment and the driving method of electronic equipment

Also Published As

Publication number Publication date
CN108427567A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN106598612B (en) Operation method and system for data table in database
CN101005681A (en) Interface automatic forming method and interface automatic forming system
CN105700888A (en) Visualization rapid developing platform based on jbpm workflow engine
CN105094832A (en) WYSIWYG method and system for dynamically generating user interface
CN112015412A (en) Device and method for generating business model based on form engine
CN109933322A (en) A kind of page editing method, apparatus and computer readable storage medium
DE112012006925T5 (en) System construction support tool and system
US20130135331A1 (en) Project-data creating device and programmable display device
CN103903086A (en) Method and system for developing management information system based on service model driving
CN110532058B (en) Management method, device and equipment of container cluster service and readable storage medium
US10387005B2 (en) Monitoring apparatus in electric power system
CN109471580B (en) Visual 3D courseware editor and courseware editing method
EP3979148A1 (en) Method and system for displaying machine learning automatic modeling procedure
CN111476007B (en) Table generation method, table generation device, computer device and computer-readable storage medium
CN112560370A (en) Chip design code generation method, terminal and storage medium
CN106951593B (en) Method and device for generating configuration file of protection measurement and control device
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN111079382A (en) Form rendering method and system based on MVVM (multifunction virtual machine) mode
CN107220044B (en) Method and device for driving business object based on meta-model
CN108427567B (en) Automatic upgrading method for device driver package
CN111475602B (en) Multi-version knowledge graph storage method and device, storage medium and electronic equipment
CN109408322A (en) A kind of automatic business process implementation method of cloud platform
CN115422621A (en) Method, system, device and storage medium for modifying colors of digital-analog parts in batch
CN111984113B (en) Text editing method and device and electronic equipment
EP3975605A1 (en) Base station station-type replacement method, sdr network management system, base station station-type replacement apparatus and computer-readable storage medium

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