CN105204790A - Printing control method of embedded type relaying protection device - Google Patents

Printing control method of embedded type relaying protection device Download PDF

Info

Publication number
CN105204790A
CN105204790A CN201510536951.5A CN201510536951A CN105204790A CN 105204790 A CN105204790 A CN 105204790A CN 201510536951 A CN201510536951 A CN 201510536951A CN 105204790 A CN105204790 A CN 105204790A
Authority
CN
China
Prior art keywords
script
printing
print
business
control program
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
CN201510536951.5A
Other languages
Chinese (zh)
Other versions
CN105204790B (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.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology 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 State Grid Corp of China SGCC, Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510536951.5A priority Critical patent/CN105204790B/en
Publication of CN105204790A publication Critical patent/CN105204790A/en
Application granted granted Critical
Publication of CN105204790B publication Critical patent/CN105204790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a printing control method of an embedded type relaying protection device. According to the device, a script engine for executing a target program and a plurality of printing scripts are set in the device; in a printing process, the corresponding printing script is firstly selected according to a printing business; then, the corresponding printing script is analyzed into corresponding printing control information by the script engine; and finally, the printing is carried out according to the printing control information. Under the condition that a printing software target program in the device is not modified, the effective printing can be carried out on data with different formats, and the running stability of an embedded type target program can be effectively guaranteed in principle, so that the printing stability is guaranteed and the printing flexibility is met. The business development efficiency can be effectively improved by the method. Furthermore, the working time of business developers can be saved by the method, and the working efficiency of the business developers also can be improved.

Description

A kind of Embedded Relay Protector print control program
Technical field
The present invention relates to the relay protection automatic field of power engineering, the control method that the business datum particularly relating to a kind of Embedded Relay Protector prints.
Background technology
Embedded system particularly relates to the embedded equipment of the relay protection automatic field belonging to power engineering, all very high to the requirement of the stability of system, rapidity and dirigibility; And general business printing technique adopts complete coded system to realize, because the form printed is various, so user is when printing, print format slightly changes the target program just needing change to print, namely this waste the unnecessary time and change target program, and be difficult to meet simultaneously print stability, dirigibility demand.
Summary of the invention
The object of this invention is to provide a kind of Embedded Relay Protector print control program, be difficult to meet the problem of the stability of printing, the demand of dirigibility in order to solve traditional Method of printing simultaneously.
For achieving the above object, the solution of the present invention comprises a kind of Embedded Relay Protector print control program, arrange in a device and be used for the script engine of performance objective program and the printing script of several corresponding different print service, and record the script listing that these print script; When printing, first with reference to script listing, selecting to print script accordingly according to print service, then by described script engine, this printing script being resolved to corresponding printing control information, finally print according to described printing control information.
Describedly carry out printing according to described printing control information and be specially: first, business datum to be printed is formatted as character string according to described printing control information by script engine, then described character string is exported to printing terminal, and last printing terminal prints.
Arranging printing script concrete steps is: first build and print script, then download and print script.
The described printing script that builds is specially: generated by script the build tool or the manual create-rule according to printing script and print script.
Described download prints script and is specially: by specific download instrument, the printing script of generation is downloaded to embedded equipment.
When unloading printing script, by download tool, the printing script file in device being deleted, realizing the unloading printing script.
Describedly the corresponding script that prints is selected to be specially according to print service: described script engine searches for the printing script corresponding with this business key word by business key word from described script listing; Described business key word is a kind of data embodying the form of business to be printed.
In Embedded Relay Protector print control program provided by the invention; built-in printing script engine is adopted to add the pattern of external printing script; when print software target program in not modifier; only need select corresponding script for different print service; the printing of this business datum is realized, so can both effectively print the data of different business according to this script.Due to the method do not change embedded can performance objective program itself, so can effectively ensure principle embedded can performance objective program run stability, and then ensure print stability, and, the method can meet the dirigibility of printing, can the efficiency of useful raising business development.In addition, the method can save the working time of business development personnel, and then also can improve the work efficiency of business development personnel.
Accompanying drawing explanation
Fig. 1 is the know-why schematic diagram of Embedded Relay Protector print control program provided by the invention;
Fig. 2 is the techniqueflow chart of Embedded Relay Protector print control program provided by the invention;
Fig. 3 is the techniqueflow chart printing script setting;
Fig. 4 is the structural representation of script;
Fig. 5 is the simple application exemplary plot of a form script.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described in detail.
As shown in Figure 1, be the know-why schematic diagram of a kind of Embedded Relay Protector print control program provided by the invention, the central inventive point of the method is not revise executable target program.
As shown in Figures 2 and 3, first, the printing script engine being used for performance objective program is set in Embedded Relay Protector and several are set and print script file.Wherein, the business printing script file and embedded equipment is one to one, and one prints the corresponding a kind of business of script file.When embedded equipment is under some business, the printing script file in device is corresponding with this business.Changing the step printing script file is: first unload original printing script file, then download new printing script file, specifically see step 2 below.
Arranging the concrete steps printing script file is:
1, print the structure of script file: first determine the printing script file needing to arrange according to the business module of device, then generated by script the build tool or the manual create-rule according to printing script file and print script file;
2, download and the unloading of script file is printed: download in embedded equipment by specific download instrument by printing script file, also by download tool, the printing script file in device is deleted, thus realize the unloading printing script file, the printing function of the corresponding business of this script file is unloaded with this.
Arrange to print while script file, before or complete time, need to arrange printing outlet terminal.By setting of printing menu setecting, printout terminal device (printer or file) is set, be specially: under supporting document exports printing operating mode, setting of printing menu is selected first to be presented on interface by printout terminal name (printer or file), and choose on the terminal name item preserved last time in advance, the reconfigurable new outlet terminal index of user is also preserved, and all business printouts of system will synchronously proceed to the terminal of relative set.When select with printer be terminal carry out printout time, carry out printing by the printer selected; When select with file be terminal carry out printout time, send backstage by file service by printout.After arranging the success of outlet terminal equipment, script engine (or being referred to as print engine) will enter environment corresponding to printout terminal immediately, and this arranges the characteristic that printout terminal has power down maintenance.
The above-mentioned setting completing printing script file.By that analogy, be provided with in this device above-mentioned several print scripts, formed print script listing, include in this list these several print script.
When there being print out task, the print control system in this embedded equipment being powered on, after system electrification, loading the printing script file set.When device prints, the printing script that in the script listing that print engine loads from power on afterwards by business key word, search is corresponding with this business key word, and the printing script searched is resolved, and generate corresponding printing control information, then actual traffic data information (namely needing the data message of this business printed) is obtained by call-back manner, the actual traffic data information progressive format that print engine will obtain according to the printing control information generated, generate business datum character string, then the business datum character string of generation is exported to printing terminal equipment (printer or file), last printing terminal equipment prints according to the service character string obtained, after printing, the printing control information that release generates.
Business key word is the specifying information that can reflect and embody the business datum that needs print, and can say that business key word is the marker that can embody corresponding business, such as the suffix character etc. of business.
In addition, if the printing script file that when powering on, business is corresponding does not exist, then the printing function of this business module is not supported.In addition, the print style that printing script file corresponding to certain business module can change this business module is changed; And, print script file if changed, also just mean replacing business module, so can ensure to print different business modules, thus can ensure that embedded equipment prints the dirigibility of requirement developing.
In the present embodiment, script adopts text formatting character string to describe, and compressed text form also can be adopted to describe to adapt to different Embedded Hardware Platforms (saving space); Script format can comprise service scenario key word, form, static variable mark, dynamic circulation marking variable etc.
Be described for the definition rule of form script below, as shown in Figure 4, script is made up of five parts such as type, model key word, English equal sign, form description, English commas, as follows respectively:
Type is used to the form describing mode identifying script, and be respectively compress mode and uncompressed mode character string, its value is char or int, case-insensitive.
Script key word is used to the key word of identification service module, and print engine is according to the corresponding script of this keyword search, and this key word supports that Incomplete matching pattern is searched.
English equal sign is used to split the identifier that key word and form describe.
Form describes and is used for description script form, comprises static form, static variable, dynamic circulation variable and form, variable-length, alignment thereof etc., and concrete definition is as shown in table 1.
Table 1
Fig. 5 is the simple application example of a form script, comprise the script definition of design effect and two kinds of forms, wherein the every script applications of squeezing characters string is in carrying out in the embedded equipment of compress mode storage for saving space, the script applications of string format is in the embedded equipment supporting character string, the two is equivalence completely, also mutually can replace use, automatically identify.
In above-described embodiment, print script and can download in embedded equipment, as other embodiment, also can being just loaded in embedded equipment in advance.
Above-described embodiment gives a kind of concrete embodiment, but basic ideas of the present invention are above-mentioned basic scheme, the embodiment that some concrete technical characteristics wherein are just optimized, so the present invention is not limited to above-described embodiment.The change carried out embodiment without departing from the principles and spirit of the present invention, amendment, replacement and modification still fall within the scope of protection of the present invention.

Claims (7)

1. an Embedded Relay Protector print control program, is characterized in that, arranges in a device and is used for the script engine of performance objective program and the printing script of several corresponding different print service, and records the script listing that these print script; When printing, first with reference to script listing, selecting to print script accordingly according to print service, then by described script engine, this printing script being resolved to corresponding printing control information, finally print according to described printing control information.
2. Embedded Relay Protector print control program according to claim 1; it is characterized in that; describedly carry out printing according to described printing control information and be specially: first; business datum to be printed is formatted as character string according to described printing control information by script engine; then described character string is exported to printing terminal, last printing terminal prints.
3. Embedded Relay Protector print control program according to claim 1, is characterized in that, arranges printing script concrete steps to be: first build and print script, then download and print script.
4. Embedded Relay Protector print control program according to claim 3, is characterized in that, the described printing script that builds is specially: generated by script the build tool or the manual create-rule according to printing script and print script.
5. Embedded Relay Protector print control program according to claim 4, is characterized in that, described download prints script and is specially: by specific download instrument, the printing script of generation is downloaded to embedded equipment.
6. the Embedded Relay Protector print control program according to claim 3 or 4 or 5, is characterized in that, when unloading printing script, is deleted by the printing script file in device by download tool, realizes the unloading printing script.
7. Embedded Relay Protector print control program according to claim 1, it is characterized in that, describedly select the corresponding script that prints to be specially according to print service: described script engine searches for the printing script corresponding with this business key word by business key word from described script listing; Described business key word is a kind of data embodying the form of business to be printed.
CN201510536951.5A 2015-08-27 2015-08-27 A kind of Embedded Relay Protector print control program Active CN105204790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510536951.5A CN105204790B (en) 2015-08-27 2015-08-27 A kind of Embedded Relay Protector print control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510536951.5A CN105204790B (en) 2015-08-27 2015-08-27 A kind of Embedded Relay Protector print control program

Publications (2)

Publication Number Publication Date
CN105204790A true CN105204790A (en) 2015-12-30
CN105204790B CN105204790B (en) 2018-06-19

Family

ID=54952509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510536951.5A Active CN105204790B (en) 2015-08-27 2015-08-27 A kind of Embedded Relay Protector print control program

Country Status (1)

Country Link
CN (1) CN105204790B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6999188B1 (en) * 2000-10-30 2006-02-14 Konica Minolta Printing Solutions U.S.A., Inc. Dynamically configurable printer and method of use thereof
CN102096568A (en) * 2009-12-15 2011-06-15 北大方正集团有限公司 Method and system for presenting and configuring general printing parameters under distributed environment
CN102693109A (en) * 2012-05-24 2012-09-26 深圳市开立科技有限公司 Method and device for printing
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6999188B1 (en) * 2000-10-30 2006-02-14 Konica Minolta Printing Solutions U.S.A., Inc. Dynamically configurable printer and method of use thereof
CN102096568A (en) * 2009-12-15 2011-06-15 北大方正集团有限公司 Method and system for presenting and configuring general printing parameters under distributed environment
CN102693109A (en) * 2012-05-24 2012-09-26 深圳市开立科技有限公司 Method and device for printing
CN103955345A (en) * 2014-04-23 2014-07-30 中国工商银行股份有限公司 Data printing method and system

Also Published As

Publication number Publication date
CN105204790B (en) 2018-06-19

Similar Documents

Publication Publication Date Title
CN107958057B (en) Code generation method and device for data migration in heterogeneous database
CN107678736A (en) A kind of business Page Template shows method, system and computer installation
CN101901265B (en) Objectification management system of virtual test data
CN101558405B (en) Migration apparatus which convert database of mainframe system into database of open system and method for thereof
CN104133772A (en) Automatic test data generation method
CN101122899A (en) Report generation method and device
CN101673199A (en) Terminal parameter configuration server and automatic generating method of software interface thereof
CN107203658B (en) Ship system schematic diagram rapid design method based on CAD and PDM
CN111625252A (en) Cluster upgrading maintenance method and device, electronic equipment and storage medium
CN101675415B (en) Program pattern analyzer, pattern appearance status information production method, pattern information generating device, and program
CN107766130A (en) The method and apparatus that virtual machine migrates to container
CN103971036A (en) Page field access control system and method
CN104572153A (en) Update data conversion method for vehicle updating
CN107797823A (en) Business Rule Management method, apparatus, storage medium and computer equipment
CN111428451A (en) Text online editing method and device, electronic equipment and storage medium
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN102662700B (en) A kind of issue of embedded software version and upgrade method
CN102819542B (en) Represent method and the device of instance document
CN108319466A (en) A kind of restoration methods and device of configuration information
CN100377158C (en) Method for creating library file
CN102857817B (en) Set-top box production system and method capable of realizing dynamical loading
CN105204790A (en) Printing control method of embedded type relaying protection device
JP5018176B2 (en) Environment migration server device, terminal device, environment migration method, and environment migration program
JP2006268661A (en) Data import method and data import device
CN115562993A (en) Test script recording method and device, electronic equipment and storage medium

Legal Events

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