CN108427567A - A kind of device driving packet automatically updating method - Google Patents

A kind of device driving packet automatically updating method Download PDF

Info

Publication number
CN108427567A
CN108427567A CN201810329127.6A CN201810329127A CN108427567A CN 108427567 A CN108427567 A CN 108427567A CN 201810329127 A CN201810329127 A CN 201810329127A CN 108427567 A CN108427567 A CN 108427567A
Authority
CN
China
Prior art keywords
packet
driving
user
task driven
research
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
CN201810329127.6A
Other languages
Chinese (zh)
Other versions
CN108427567B (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

Classifications

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

Abstract

The present invention discloses a kind of device driving packet automatically updating method, and step is:It determines for the source reference driving packet of upgrading and task driven packet to be upgraded;Back-up job driving packet;The device type information read in two driving packets exits upgrading flow if device model is different;It is identical, the page that the visual configuration symbol library file in source reference driving packet, research and development grade control completely is directly overlie into task driven packet, and the example symbol in the visual page controlled completely using new symbolic library refreshes user grade, synchronous input variable list, output variable list, parameter list;Offline man-machine interface data hierarchy in source reference driving packet is synchronized to task driven packet, while retaining the definite value setting value of identical ID in task driven packet, device type selection option value;Task driven packet is preserved and analyzed, shows updated contents;User upgrades after confirming.Such method can carry out the automatic upgrading of research and development driving packet kernel under the premise of retaining user configuration.

Description

A kind of device driving packet automatically updating method
Technical field
The invention belongs to embedded programming field of configuration, more particularly to a kind of device drives packet automatically updating method.
Background technology
Protective relaying device is more and more to configurability requirement, to adapt to globalizing market demand, is often based upon drive Dynamic pack mode carries out researching and developing-user's substep configuration, i.e. device integrates personnel and builds device standard feature based on symbolic library, with visual The mode of change carries out apparatus function configuration, and designing user configurable data, forms standard driving packet.User is based on Practical Project Demand carries out device programming in logic, module throwing is moved back, fixed value adjusting, formation actual motion driving packet.Under substep configuration mode, There are problems that researching and developing the situations such as grade driving packet defect elimination, what's new, modification has been carried out in the driving packet of user side at this time, no It preferably reconfigures again, needs the method that a key upgrades automatically, research grade is configured into content synchronization to user's driving packet, and retain Configuration content before user.Thus this case generates.
Invention content
The purpose of the present invention is to provide a kind of device driving packet automatically updating method, can retain user configuration Under the premise of carry out research and development driving packet kernel automatic upgrading.
In order to achieve the above objectives, solution of the invention is:
A kind of device driving packet automatically updating method, includes the following steps:
Step 1, it determines for the source reference driving packet of upgrading and task driven packet to be upgraded;
Step 2, task driven packet to be upgraded is backed up;
Step 3, the device type information read in two driving packets exits upgrading flow if device model is different;Only when When device model is identical, 4 are entered step;
Step 4, the page visual configuration symbol library file in source reference driving packet, research and development grade controlled completely is direct The reality in visual page for covering task driven packet to be upgraded, and being controlled completely using new symbolic library refreshes user grade Example symbol, synchronous input variable list, output variable list, parameter list;
Step 5, the offline man-machine interface data hierarchy in source reference driving packet work to be upgraded is synchronized to drive Dynamic packet, including the grouping of menu structure, definite value, device type selection data, while retaining identical in task driven packet to be upgraded Definite value setting value, the device type selection option value of ID;
Step 6, task driven packet to be upgraded is preserved and analyzed, shows updated contents;
Step 7, user upgrades after confirming, if user selects to cancel, is restored using backup driving packet.
In above-mentioned steps 1, source reference driving packet and task driven packet are all the compressed files of user-defined format, after decompression by Several files and catalogue composition, including visualization symbolic library, visual page and off-line arrangement file, off-line arrangement file belong to User can change Value Types.
In above-mentioned steps 1, driving packet configuration tool point research and development version and user version, research and development version need Dongle identity Certification and software sequence number management, research and development version for device research staff by visual page be set as research and development grade completely control or User class controls completely, and the page that research and development grade controls completely is read-only under user version to be changed, and research and development version needs hardware Dog authentication and software sequence number management;The page that user creates under user version is automatically set as user class and controls class completely Type.
In above-mentioned steps 1, a source reference driving packet is selected under the driving packet of user version tool open, then the source is joined Driving packet is examined to drive packet for the source reference of upgrading, the driving packet of current opening operation is task driven packet to be upgraded.
In above-mentioned steps 2, task driven packet compression to be upgraded is stored as bak files.
In above-mentioned steps 3, device model is the sub- attribute in device information, the entitled device_type of attribute.
In above-mentioned steps 6, updated contents are showed in the form of HTML form.
After adopting the above scheme, the present invention discloses a kind of device driving packet automatically updating method, and driving packet is by several Ziwens Part forms, and file can be arranged to terminal user authority in device research staff, and being divided into research and development, grade controls completely, user can change Value, user class control three types and are handled completely.Definition driving packet 1 is referenced drive packet, and driving packet 2 is driving to be upgraded Packet.It is research and development grade fully controlling files to type, the file of driving packet 1 is directly covered into driving packet 2;It is that user can to type Modified values file, using partly more new strategy, the hierarchical structure of file is synchronized to driving packet 2, the attribute that can be arranged by driving packet 1 Retain the setting value in driving packet 2;It is the file that user controls completely for type, the file retained in driving packet 2 is constant.It is logical It crosses refinement file type and uses Different Strategies, the automatic upgrading of realization device driving packet.
The present invention has the advantages that:To driving packet associated profile carry out Type division, support research and development and User can intelligently upgrade automatically after driving packet kernel modifications, maximumlly retain user class and configure content.
Description of the drawings
Fig. 1 is the flow chart of the present invention.
Specific implementation mode
Below with reference to attached drawing, technical scheme of the present invention and advantageous effect are described in detail.
Driving packet is the compressed file of a user-defined format, is made of several files and catalogue after decompression, including visualization The contents such as symbolic library, visual page, off-line arrangement file.Packet configuration tool point research and development version, user version are driven, version is researched and developed This needs Dongle authentication and software sequence number management, and user is avoided to use research and development version modification visual page type.
Device research staff can create driving packet in research and development version since 0, select hardware to build device, in hardware node The newly-built page down, and the type that each visual page is arranged under the page is set:Grade controls completely, user class controls completely for research and development Two types.The page that controls completely of research and development grade is read-only under user version to be changed, the page that user creates under user version Face is automatically set as the complete Control Cooling of user class.Device research staff builds apparatus function program using visualization symbol, and Man-machine relevant off-line arrangement is carried out, off-line arrangement file includes device information, the menu structure of liquid crystal display and grouping, definite value The data such as grouping, off-line arrangement file, which belongs to user, can change Value Types, i.e. user can change setting value, but cannot increase, Removing members.
By taking Fig. 1 as an example, a kind of device driving packet automatically updating method of the present invention realizes that steps are as follows:
(1) it determines for the source reference driving packet 1 of upgrading and task driven packet 2 to be upgraded, it can be in user version tool A source reference driving packet is selected under the driving packet of opening, then source reference driving packet is driving packet 1, the driving of current opening operation Packet is driving packet 2.
(2) driving packet 2 to be upgraded is backed up, 2 compression of driving packet is stored as bak files.
(3) the device type information read in two driving packets exits upgrading flow if device model is different;Only work as dress Set model it is identical when, carry out subsequent step.Preferably, device model is 1 sub- attribute in device information, and attribute is entitled Device_type, if such as device model 1 be PCS-978, device model 2 be PCS-915, then cannot upgrade.
(4) page that the visual configuration symbol library file in driving packet 1, research and development grade control completely is directly overlie into drive Dynamic packet 2, and the example symbol in the visual page controlled completely using new symbolic library refreshes user grade, synchronous input variable List, output variable list, parameter list.The template data of multiple visualization function symbols is stored in symbolic library, symbol has The attributes such as type name, Instance Name have the members such as input variable list, output variable list, parameter list.When the symbol in library at When member's variable has update, automatic synchronization refreshes the example of visual page, it is ensured that input, output, parameter are consistent.
(5) the offline man-machine interface data hierarchy in driving packet 1 is synchronized to driving packet 2, including menu structure, fixed Value grouping, device type selection data, while retaining the definite value setting value of identical ID, device type selection option in driving packet 2 Value.Such as driving packet 1 has increased 2 definite values newly in " high-pressure side protection " definite value group, then needs the " high-pressure side for being synchronized to driving packet 2 Protection " definite value group, but the setting value of other definite values remains unchanged in the group.
(6) simultaneously analysis-driven packet is preserved, shows updated contents.Preferably, in the form of HTML form, show updated contents, Sectional is fallen, table, tree-like form show the content of upgrading.Driving after upgrading is wrapped into line discipline inspection, such as variable name Whether there is, setting value whether over range, visualization symbol instance name whether repeat.
(7) user confirms upgrading, if selection is cancelled, is restored using backup driving packet.
Above example is merely illustrative of the invention's technical idea, and protection scope of the present invention cannot be limited with this, every According to technological thought proposed by the present invention, any change done on the basis of technical solution each falls within the scope of the present invention Within.

Claims (7)

1. a kind of device drives packet automatically updating method, it is characterised in that include the following steps:
Step 1, it determines for the source reference driving packet of upgrading and task driven packet to be upgraded;
Step 2, task driven packet to be upgraded is backed up;
Step 3, the device type information read in two driving packets exits upgrading flow if device model is different;Only work as device When model is identical, 4 are entered step;
Step 4, the page that the visual configuration symbol library file in source reference driving packet, research and development grade control completely is directly covered To task driven packet to be upgraded, and the example in the visual page controlled completely using new symbolic library refreshes user grade is accorded with Number, synchronous input variable list, output variable list, parameter list;
Step 5, the offline man-machine interface data hierarchy in source reference driving packet is synchronized to task driven packet to be upgraded, Including menu structure, definite value grouping, device type selection data, while retaining determining for identical ID in task driven packet to be upgraded It is worth setting value, device type selection option value;
Step 6, task driven packet to be upgraded is preserved and analyzed, shows updated contents;
Step 7, user upgrades after confirming, if user selects to cancel, is restored using backup driving packet.
2. a kind of device as described in claim 1 drives packet automatically updating method, it is characterised in that:In the step 1, source ginseng The compressed file for driving packet and task driven packet to be all user-defined format is examined, is made of several files and catalogue after decompression, including Symbolic library, visual page and off-line arrangement file are visualized, off-line arrangement file, which belongs to user, can change Value Types.
3. a kind of device as described in claim 1 drives packet automatically updating method, it is characterised in that:In the step 1, driving Packet configuration tool point research and development version and user version, research and development version need Dongle authentication and software sequence number management, grind Hair version sets visual page to research and development grade control or user class completely for device research staff and controls completely, and research and development grade is complete The page controlled entirely is read-only under user version to be changed, and research and development version needs Dongle authentication and software sequence number pipe Reason;The page that user creates under user version is automatically set as the complete Control Cooling of user class.
4. a kind of device as described in claim 1 drives packet automatically updating method, it is characterised in that:In the step 1, with One source reference driving of selection is wrapped under the driving packet that family version tool is opened, then the source reference drives packet to join for the source of upgrading Driving packet is examined, the driving packet of current opening operation is task driven packet to be upgraded.
5. a kind of device as described in claim 1 drives packet automatically updating method, it is characterised in that:In the step 2, it will wait for The task driven packet compression of upgrading is stored as bak files.
6. a kind of device as described in claim 1 drives packet automatically updating method, it is characterised in that:In the step 3, device Model is the sub- attribute in device information, the entitled device_type of attribute.
7. a kind of device as described in claim 1 drives packet automatically updating method, it is characterised in that:In the step 6, with HTML form form shows updated contents.
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 true CN108427567A (en) 2018-08-21
CN108427567B 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
CN108427567B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US10929109B2 (en) Method and apparatus for converting building block programming into program code
CN105700888A (en) Visualization rapid developing platform based on jbpm workflow engine
CN103761107B (en) Software package customizing device and method
CN104615541A (en) Simulation testing modeling system and method based on flow chart
CN102541694A (en) Method and device for database backup
US10452389B2 (en) Computer-implemented method for editing data object variants
CN106775928A (en) A kind of virtual machine Autonomic Migration Framework system and method between isomery cloud platform
CN104572201A (en) Three-dimensional model-based spacecraft assembly information modification system and modification method
CN104965672A (en) Method for automatically, rapidly and conveniently configuring RAID
CN103399781A (en) Cloud server and virtual machine management method thereof
CN105893016A (en) Log recording system and method based on MVC (Model View Controller) framework
CN109976803A (en) A kind of generation method and device of file
CN103984574A (en) Method and system for updating website
EP3979148A1 (en) Method and system for displaying machine learning automatic modeling procedure
US9269113B2 (en) Energy management system and a screen generation method thereof
CN103197927B (en) A kind of method that realizes of Workflow and system thereof
CN106951593B (en) Method and device for generating configuration file of protection measurement and control device
US9031905B2 (en) Data synchronization
US20070157087A1 (en) Method and system for automatically generating user interfaces for integration
CN101556540A (en) Unified management method for a plurality of backup software and system thereof
CN108427567A (en) A kind of device driving packet automatically updating method
CN105241011B (en) Air-conditioning group control system development device and method
CN104750525A (en) Control method for turning on and turning off server in timed mode
CN110941422A (en) Code automatic generation method, code generator and readable storage medium
CN103425550B (en) A kind of system cloning process and device

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