CN104199625A - Method, device and system for converting and outputting print data - Google Patents

Method, device and system for converting and outputting print data Download PDF

Info

Publication number
CN104199625A
CN104199625A CN201410474538.6A CN201410474538A CN104199625A CN 104199625 A CN104199625 A CN 104199625A CN 201410474538 A CN201410474538 A CN 201410474538A CN 104199625 A CN104199625 A CN 104199625A
Authority
CN
China
Prior art keywords
data
print
print data
buffer area
receive
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
CN201410474538.6A
Other languages
Chinese (zh)
Other versions
CN104199625B (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.)
BEIJING CONTNET COMPUTING (GUIZHOU)
Original Assignee
BEIJING CONTNET COMPUTING (GUIZHOU)
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 BEIJING CONTNET COMPUTING (GUIZHOU) filed Critical BEIJING CONTNET COMPUTING (GUIZHOU)
Priority to CN201410474538.6A priority Critical patent/CN104199625B/en
Publication of CN104199625A publication Critical patent/CN104199625A/en
Application granted granted Critical
Publication of CN104199625B publication Critical patent/CN104199625B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a method, a device and a system for converting and outputting print data and aims to convert print data which a control device outputs, into electronic documents convenient to remotely check and view. The method includes the steps: print data which a data acquisition device acquires and which the control device transmits to a printer is received and is written into a data cache area; whether the print data is completely received or not is judged, if not, the print data is continuously received, if yes, the print data in the data cache area is stored, and the data cache area is emptied; the stored print data is divided into control data, character data and image data according to a printing protocol; the character data or the image data is converted into intermediate-formatted data according to the control data, the intermediate-formatted data is output and displayed in an image output area, and display data corresponding to the print data is generated.

Description

A kind of by method, the Apparatus and system of print data conversion output
Technical field
The present invention relates to control system technical field, be specifically related to a kind of by method, the Apparatus and system of print data conversion output.
Background technology
At present, in electric power, road, bridge construction, railway, numerically-controlled machine processing and other fields, have a lot of opertaing devices, these equipment itself have very high precision, reliability and functional.In the prior art, the information output of these opertaing device running statuses and service data is generally a stylus printer, and opertaing device is connected with printer, and the information of running status and service data is directly by printer printout.But, this mode needs manually to remove to judge opertaing device state to the information of device context reader-printer output, need to spend a large amount of costs of labor, and to these opertaing devices carry out telemanagement and information reform also more difficult, at present also do not have a kind of technology to realize the Output rusults of opertaing device carried out to long-range consulting efficiently.
Summary of the invention
In view of this, the invention provides a kind of method, Apparatus and system that print data conversion is exported, need to device context, the Output rusults of opertaing device to be consulted to solve in prior art, understand the technical matters of a large amount of human cost of ancillary cost.
For addressing the above problem, technical scheme provided by the invention is as follows:
By a method for print data conversion output, described method comprises:
The opertaing device that reception data acquisition equipment collects is sent to the print data of printing device, by described print data data writing buffer area;
Judge whether described print data finishes receiving, if print data does not finish receiving, the opertaing device that continuation reception data acquisition equipment collects is sent to the print data of printing device, if print data finishes receiving, preserve the described print data in described data buffer area, and empty described data buffer area;
According to print protocol, the described print data of preserving is divided into and controls data, character data and view data;
According to described control data, described character data or described view data are converted to intermediate form data, described intermediate form data are carried out to output display at image output area, generate demonstration data corresponding to described print data.
Accordingly, describedly judge that whether print data finishes receiving, and comprising:
Judge whether to exceed threshold time and do not continue to receive described print data;
Judge that whether described data buffer area is full;
Judge whether to receive default print command;
Do not continue to receive that described print data, described data buffer area are full or receive default print command if exceed threshold time, determining that described print data finishes receiving; If in threshold time, continue to receive described print data, described data buffer area less than and do not receive default print command, determine that described print data does not finish receiving.
Accordingly, describedly according to described control data, described character data or described view data are converted to intermediate form data, comprise:
Read corresponding described character data or described view data according to described control data order, add in the raw data attribute in described intermediate form data, and the data type of described character data or described view data is added in the data type attribute in described intermediate form data;
Determine output position information and the display mode information of described character data or described view data according to the print command in described control data, add to respectively in the positional information attribute and display type attribute in described intermediate form data.
Accordingly, described method also comprises:
If print data finishes receiving, judge in described print data whether comprise default Data Identification, if so, preserve the described print data in described data buffer area, and empty described data buffer area, if not, outputting alarm information;
And/or according to data integrity strategy, data stipulations strategy, data verification strategy, described demonstration data are audited automatically, the described demonstration data that examination & verification is passed through are carried out Macro or mass analysis.
By a device for print data conversion output, described device comprises:
Receiving element, is sent to the print data of printing device, by described print data data writing buffer area for receiving opertaing device that data acquisition equipment collects;
The first judging unit, be used for judging whether described print data finishes receiving, do not finish receiving if the judged result of described the first judging unit is print data, return to described receiving element and continue to receive opertaing device that data acquisition equipment collects and be sent to the print data of printing device;
Storage unit, if be that print data finishes receiving for the judged result of described the first judging unit, preserve the described print data in described data buffer area, and empties described data buffer area;
Division unit, for being divided into the described print data of preserving to control data, character data and view data according to print protocol;
Converting unit, for being converted to intermediate form data according to described control data by described character data or described view data;
Output unit, for described intermediate form data are carried out to output display at image output area, generates demonstration data corresponding to described print data.
Accordingly, described the first judging unit comprises:
The first judgment sub-unit, for judging whether that exceeding threshold time does not continue to receive described print data;
The second judgment sub-unit, whether full for judging described data buffer area;
The 3rd judgment sub-unit, for judging whether to receive default print command;
Result is determined subelement, if do not continue to receive that described print data, described data buffer area are full or receive default print command for exceeding threshold time, determines that described print data finishes receiving; If in threshold time, continue to receive described print data, described data buffer area less than and do not receive default print command, determine that described print data does not finish receiving.
Accordingly, described converting unit comprises:
The first adding device, for reading corresponding described character data or described view data according to described control data order, add in the raw data attribute in described intermediate form data, and the data type of described character data or described view data is added in the data type attribute in described intermediate form data;
The second adding device, for determine output position information and the display mode information of described character data or described view data according to the print command of described control data, add to respectively in the positional information attribute and display type attribute in described intermediate form data.
Accordingly, described device also comprises:
The second judging unit, if finished receiving for print data, judge and in described print data, whether comprise default Data Identification, if the judged result of described the second judging unit is yes, enter described storage unit and preserve the described print data in described data buffer area, and empty described data buffer area;
Alarm Unit, if be no for the judged result of described the second judging unit, outputting alarm information;
And/or examination & verification unit, for according to data integrity strategy, data stipulations strategy, data verification strategy, described demonstration data being audited automatically, the described demonstration data that examination & verification is passed through are carried out Macro or mass analysis.
By a system for print data conversion output, described system comprises:
Change server and data acquisition equipment;
Described data acquisition equipment, bypass is connected on the path between opertaing device and printing device, is sent to the print data of described printing device for gathering described opertaing device, and described print data is sent to described change server;
Described change server is the above-mentioned device that print data conversion is exported.
Accordingly, described system also comprises buffer circuit, for reducing the interference of described data acquisition equipment to the path between described opertaing device and described printing device;
Described buffer circuit comprises photoisolator, and one end of described photoisolator is connected with the path between described opertaing device and described printing device, and the other end of described photoisolator is connected with described data acquisition equipment;
Or, described buffer circuit comprises a RS232/RS485 converter and the 2nd RS232/RS485 converter, one end of a described RS232/RS485 converter is connected with described opertaing device, the other end of a described RS232/RS485 converter is connected with one end of described the 2nd RS232/RS485 converter and is connected with described data acquisition equipment, and the other end of described the 2nd RS232/RS485 converter is connected with described printing device.
As can be seen here, the embodiment of the present invention has following beneficial effect:
The embodiment of the present invention is sent to the print data of printing device by gathering opertaing device, the print data collecting is converted to character information and image information, and carry out output display by these information at image output area, generate demonstration data corresponding to described print data, the demonstration data that generate can long-rangely be consulted, no longer need the Output rusults to opertaing device to scene to consult, can save a large amount of human costs, and compare with printing device print file by the file demonstration result after conversion, character and picture material show correct, file layout structure can be consistent, sharpness is better than the result of printing device, slewing rate is far away higher than the print speed of printing device.
Brief description of the drawings
Fig. 1 is system equipment syndeton schematic diagram in the embodiment of the present invention;
The process flow diagram of print data being changed to the embodiment of the method for output of Fig. 2 for providing in the embodiment of the present invention;
Fig. 3 is the schematic diagram of data conversion process in the embodiment of the present invention;
Fig. 4 is by the result schematic diagram of print data conversion output in the embodiment of the present invention;
The schematic diagram of print data being changed to the device embodiment of output of Fig. 5 for providing in the embodiment of the present invention;
The schematic diagram of print data being changed to the system embodiment one of output of Fig. 6 for providing in the embodiment of the present invention;
The schematic diagram of print data being changed to the system embodiment two of output of Fig. 7 for providing in the embodiment of the present invention;
The schematic diagram of print data being changed to the system embodiment three of output of Fig. 8 for providing in the embodiment of the present invention;
The schematic diagram of print data being changed to the system embodiment four of output of Fig. 9 for providing in the embodiment of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the embodiment of the present invention is described in further detail.
The method that print data conversion is exported providing in the embodiment of the present invention, Apparatus and system, to be generally a stylus printer for the information output of opertaing device running status and service data in prior art, need manually to remove to judge opertaing device state to the information of device context reader-printer output, understand the technical matters of a large amount of human cost of ancillary cost, propose to gather the print data from opertaing device to printing device, adopt particular algorithm to change to print data, generation can be in long-range demonstration data of consulting, save on-the-spot human cost of consulting result, thereby realize the function of opertaing device being carried out information reform and electronic remote printing in the situation that not affecting equipment security of operation.
The embodiment of the present invention will be described from the design factors of print data conversion output, and the device of this print data conversion output specifically can be integrated in change server.Shown in Figure 1, first embodiment of the present invention system equipment syndeton is described.The embodiment of the present invention is transformed original opertaing device way of output, data acquisition equipment and change server on the basis of original output mode, are increased, between opertaing device and printing device, add a data acquisition equipment, data acquisition equipment is connected to data intercept the circuit of printer from opertaing device, and forwarding the print data being truncated to change server, change server is used for realizing reception data, analyzes the functions such as data, translation data, storage data.In actual applications, data acquisition equipment can be connected to the path between printing device by printing connection and opertaing device, and data acquisition equipment can be connected with change server by ethernet line.
The function below change server being realized, the method by print data conversion output providing in the embodiment of the present invention is specifically described.Shown in Figure 2, the embodiment of the method by print data conversion output providing in the embodiment of the present invention can comprise the following steps:
Step 201: the opertaing device that reception data acquisition equipment collects is sent to the print data of printing device, by print data data writing buffer area.
First the information that data acquisition equipment can adopt the mode of bypass data collection to send to stylus printing to opertaing device is caught, owing to will ensure can not affect the normal work of printing device in image data, so need to print data in the process of printing device in opertaing device transmission, set up a branch node, from the data stream of opertaing device transmission print data, copy a print data, by buffering, strengthen and drive, print data is transferred to data acquisition equipment by the circuit such as photoelectricity isolation, the data that are sent to printer with the correct also guarantee of print data that ensures to intercept do not change, thereby reach correct data intercept and do not affect the requirement that legacy data transmits.
Data acquisition equipment can be transmitted to change server after gathering print data, change server is opened PORT COM and is monitored, in snoop procedure, judge whether to receive valid data, if do not receive that data just continue to monitor, if the data of receiving, just the data data writing buffer zone of receiving, it is the print data that change server can receive opertaing device that data acquisition equipment collects and be sent to printing device, and by print data data writing buffer area, the size of data buffer area can arrange according to practical situations.
Step 202: judge whether print data finishes receiving, if print data does not finish receiving, return to step 201 and continue to receive the opertaing device that collects of data acquisition equipment and be sent to the print data of printing device.
Step 203: if print data finishes receiving, the print data in save data buffer area, and empty data buffer area.
Change server judges in the process of data writing buffer zone whether print data finishes receiving, just continue to receive if do not finished receiving, if finished receiving, just the print data in data buffer is preserved to the data that simultaneously clear data in buffer zone.
Above step is that change server receives data link, in this link, key is real-time and the accuracy of requirement to each data acquisition, the factor such as print data size, delivery time that sends printing device due to opertaing device to is uncertain, need to considering the problems such as frequency acquisition, acquisition time, data integrity, for how judging whether print data finishes receiving will in subsequent embodiment, describe in detail.
Step 204: the print data of preservation is divided into and controls data, character data and view data according to print protocol.
Shown in Figure 3, after data receiver link, enter data-switching link, data-switching link is first carried out initial work, import the print data of preserving, then print data is analyzed, print data is divided into and controls data, character data and view data, then these data-switching are become to intermediate form data, then the output conversion of intermediate form data is generated and shows the data preservation of classifying.
First data-switching link imports the print data that data receiver link is preserved, and then according to stylus printing agreement, the print data importing is divided into and controls data, character data and view data.For example: run into 1B 2A order in the time importing image data time, just represent that print data enters image model, then obtaining print data according to this command format parsing is 1B 2A m n1 n2 d1 d2 ... di, wherein m presentation video output density, n1 n2 indicates how many view data, total columns N=n1+n2*256 of image, di represents the view data of input, for 24 dot patterns, every row need the data of 3 bytes, therefore 3 of columns times is required view data byte number, then extract corresponding data according to view data byte number and be divided into view data, the control commands such as 1B 2A are divided into control data.In like manner, character data is also to separate according to print protocol.
Step 205: according to controlling data, character data or view data are converted to intermediate form data, intermediate form data are carried out to output display at image output area, generate demonstration data corresponding to print data.
Consider that printing device is to print line by line in the time printing, therefore in the time being converted to electronic document demonstration, can be also to show line by line, show before data output being converted to like this, Various types of data can be converted to conveniently and carries out the intermediate data format of output display at image output area, and then progressively change demonstration according to the mode of serial.
In some embodiments of the invention, can comprise according to controlling the specific implementation that character data or view data be converted to intermediate form data by data:
Read corresponding character data or view data according to controlling data order, add in the raw data attribute in intermediate form data, and the data type of character data or view data is added in the data type attribute in intermediate form data;
Determine output position information and the display mode information of character data or view data according to the print command in control data, add to respectively in the positional information attribute and display type attribute in intermediate form data.
Also be that intermediate form data comprise the attributes such as positional information, data type, raw data, display type, character data or view data itself is as the raw data of intermediate form data, data type represents that this raw data is character data or view data, then can for example amplify the print position of the raw data of definite correspondence such as printing, line feed printing according to the print command of controlling in data, according to definite display type such as such as dual density printing of print command, single density printing of controlling in data.
In actual applications, the realization of data-switching link can be: import the print data of preserving; Distribute and control array variable space, data field, array variable space, character data district, array variable space, image data area; According to print protocol, the print data importing is separated, then the data that separate are deposited in respectively and control data field array variable, character data district array variable, image data area array variable; Distribute array variable space, intermediate form data field, intermediate form data have the following attribute: positional information, data type, raw data, display type; By controlling data array variable order, corresponding character data or view data are deposited in the array variable raw data attribute of intermediate form data field, according to controlling data command, corresponding positional information, data type, display type are also deposited in the array variable attribute of intermediate form data field simultaneously.Owing to having view data and character data in print data simultaneously, so can not, by the mode of text, can only show by the mode of picture, can show data according to the conversion in painting canvas of intermediate form data field data order in the time showing data.
Shown in Figure 4, be the result schematic diagram that the embodiment of the present invention generates demonstration data corresponding to print data.Show that by the file after conversion result compares with printing device print file, character and picture material show correct, and file layout structure can be consistent, and sharpness is better than the result of printing device, and slewing rate is far away higher than the print speed of printing device.
Like this, demonstration data can be consulted for long-range, and user can conduct interviews by united portal or client-side program, and user can consult demonstration data by browser mode or client.The embodiment of the present invention is sent to the print data of printing device by gathering opertaing device, the print data collecting is converted to character information and image information, and carry out output display by these information at image output area, generate demonstration data corresponding to described print data, the demonstration data that generate can long-rangely be consulted, no longer need the Output rusults to opertaing device to scene to consult, can save a large amount of human costs.
Above-described embodiment has illustrated real-time and the accuracy that need to ensure to receive print data in reception data link, and in DRP data reception process, how to judge that whether print data receives complete is a difficult point, this is there is no obvious opening flag and end mark because opertaing device sends to the print data of printing device, is difficult to judge whether to receive a complete packet; Meanwhile, it is serial data that opertaing device sends to the print data of printing device, and data are transmissions, will cause whole Data Analysis failure if wherein there is a data to make a mistake.
For this reason in some embodiments of the invention, propose the specific implementation that judges whether print data finishes receiving, can comprise:
Judge whether to exceed threshold time and do not continue to receive print data;
Judge that whether data buffer area is full;
Judge whether to receive default print command;
Do not continue to receive that print data, data buffer area are full or receive default print command if exceed threshold time, determining that print data finishes receiving; If in threshold time, continue to receive print data, data buffer area less than and do not receive default print command, determine that print data does not finish receiving.
Also judge the tactful following points whether print data finishes receiving:
The first, time strategy.Because sending to a complete print data of printing device, opertaing device can within the relatively short time, send continuously, this threshold time, in reality test, find it is generally in 10 seconds, so, for example, if wait for that exceeding threshold time (10 seconds) also does not continue to receive print data, just thinks and has received a complete print data.
The second, buffer zone strategy.Can set in advance data buffer size, when data buffer data are completely time, just think a complete print data, then receive a print data more, the full content before just preserving in data buffer, then empties data buffer.For example, data buffer size is set to print the print data size of one page content, and data buffer area is full thinks that a complete print data preserves.
The 3rd, print command strategy.If receive OA, OB, OC, OD, when the print commands such as 4A, represents that next print data starts, and the data of data buffer can be preserved, and then empties data buffer.
In order to reach the effect of correct reception print data, can tackle according to above-mentioned strategy, in actual use procedure, also can constantly adjust simultaneously.
In some embodiments of the invention, the method by print data conversion output providing in the embodiment of the present invention can also comprise:
If print data finishes receiving, judge in print data whether comprise default Data Identification, if so, the print data in save data buffer area, and empty data buffer area, and if not, outputting alarm information.
Also need the data to receiving to verify, whether the data that judgement is received are correct, the impact that can be subject to various factors due to print data in the process of transmission causes loss of data or mistake, because sending to the print data of printing device, opertaing device there is no effect position again, therefore can not carry out by effect position the correctness of verification msg, the mode that adopted is in embodiments of the present invention to receive that whether after print data, can carry out verification msg according to the fixing Data Labels of some of print data correct, for example, judge whether to comprise default control word etc., if the data of receiving do not have these fixing Data Labelses, what just explanation was received is misdata, need to carry out alarm prompt.
In addition, in some embodiments of the invention, can also automatically audit showing data according to data integrity strategy, data stipulations strategy, data verification strategy, the demonstration data that examination & verification is passed through are carried out Macro or mass analysis.
Like this, the embodiment of the present invention is sent to the print data of printing device by gathering opertaing device, the print data collecting is converted to character information and image information, and carry out output display by these information at image output area, generate demonstration data corresponding to described print data, the demonstration data that generate can long-rangely be consulted, and no longer need the Output rusults to opertaing device to scene to consult, and can save a large amount of human costs.
Accordingly, shown in Figure 5, be provide in the embodiment of the present invention a kind of by the device of print data conversion output, can comprise:
Receiving element 501, is sent to the print data of printing device, by print data data writing buffer area for receiving opertaing device that data acquisition equipment collects.
The first judging unit 502, be used for judging whether print data finishes receiving, do not finish receiving if the judged result of the first judging unit is print data, return to receiving element and continue to receive the opertaing device that collects of data acquisition equipment and be sent to the print data of printing device.
Storage unit 503, if be that print data finishes receiving for the judged result of the first judging unit, the print data in save data buffer area, and empty data buffer area.
Division unit 504, for being divided into the print data of preservation to control data, character data and view data according to print protocol.
Converting unit 505, for being converted to intermediate form data according to controlling data by character data or view data.
Output unit 506, for intermediate form data are carried out to output display at image output area, generates demonstration data corresponding to print data.
In some embodiments of the invention, the first judging unit can comprise:
The first judgment sub-unit, for judging whether that exceeding threshold time does not continue to receive print data;
The second judgment sub-unit, whether full for judging data buffer area;
The 3rd judgment sub-unit, for judging whether to receive default print command;
Result is determined subelement, if do not continue to receive that print data, data buffer area are full or receive default print command for exceeding threshold time, determines that print data finishes receiving; If in threshold time, continue to receive print data, data buffer area less than and do not receive default print command, determine that print data does not finish receiving.
In some embodiments of the invention, converting unit can comprise:
The first adding device, for reading corresponding character data or view data according to controlling data order, add in the raw data attribute in intermediate form data, and the data type of character data or view data is added in the data type attribute in intermediate form data;
The second adding device, for determine output position information and the display mode information of character data or view data according to the print command of controlling data, adds to respectively in the positional information attribute and display type attribute in intermediate form data.
In some embodiments of the invention, the device by print data conversion output providing in the embodiment of the present invention can also comprise:
The second judging unit, if finish receiving for print data, judge in print data whether comprise default Data Identification, if the judged result of the second judging unit is yes, enter the print data in storage unit save data buffer area, and empty data buffer area.
Alarm Unit, if be no for the judged result of the second judging unit, outputting alarm information.
And/or examination & verification unit, for automatically auditing showing data according to data integrity strategy, data stipulations strategy, data verification strategy, the demonstration data that examination & verification is passed through are carried out Macro or mass analysis.
Shown in Figure 6, what in the embodiment of the present invention, also provide is a kind of by the system of print data conversion output, can comprise:
Change server 601 and data acquisition equipment 602.
Wherein, data acquisition equipment, bypass is connected on the path between opertaing device and printing device, is sent to the print data of printing device for gathering opertaing device, and print data is sent to change server.
Change server can be the device that print data conversion is exported in above-described embodiment.
When opertaing device transmits print data to printing device, what adopt is RS-232C serial communication bus, and RS-232C interface is the EIA of EIA (Electronic Industries Association) and the standard for serial communication of combining the common formulation of Bell System, modulator-demodular unit producer and terminal manufacturer.Because RS232 is single-ended input and output, when diplex operation, at least need digital ground wire, send line and receive three lines of line (asynchronous transmission), can also add other control line and complete the functions such as synchronous.Exist the transmission cable length need to be lower than 50 feet, noise and can not suppress the problems such as common mode interference altogether, so when the mode that adopts bypass to gather, easily cause the problem that receives error in data when transmission line is greater than 50 feet.
In order to address this problem, in some embodiments of the invention, the system by print data conversion output providing in the embodiment of the present invention can also comprise buffer circuit, for reducing the interference of data acquisition equipment to the path between opertaing device and printing device.The connected mode of buffer circuit has at least following two kinds:
Shown in Figure 7, be the first line interface mode, buffer circuit can comprise photoisolator, and one end of photoisolator is connected with the path between opertaing device and printing device, and the other end of photoisolator is connected with data acquisition equipment.This mode is generally used in the situation of short range transmission circuit, carrying out when bypass gathers for example, having added photoelectricity xegregating unit at data acquisition equipment (gathering adapter) front end, has solved the impact of bypass collection on original circuit.
Shown in Figure 8, it is the second line interface mode, buffer circuit can comprise a RS232/RS485 converter and the 2nd RS232/RS485 converter, one end of the one RS232/RS485 converter is connected with opertaing device, the other end of the one RS232/RS485 converter is connected with one end of the 2nd RS232/RS485 converter and is connected with data acquisition equipment, and the other end of the 2nd RS232/RS485 converter is connected with printing device.
In the time carrying out long-distance transmissions, adopt the mode of RS-232C in conjunction with RS-485, strengthen the flexible and reliability of communication bus.The maximum transmission distance standard value of RS-485 interface is 4000 feet, in fact can reach 3000 meters, and RS-232C interface only allows to connect 1 transceiver, i.e. single station ability in bus in addition.And RS-485 interface is to allow to connect nearly 128 transceivers in bus, there is multistation ability, can utilize so single RS-485 interface to set up easily device network.Because RS-485 interface has good noise immunity, the long above-mentioned advantage such as transmission range and multistation ability.
By special converter, RS-232C signal is converted to RS-485 signal, again RS-485 signal is converted to RS-232C signal and send to printing device, in the time that image data equipment is not supported RS-485 signal, also need to convert RS-485 signal to RS-232C signal and send to image data equipment, so just greatly improved reliability and the accuracy of data transmission procedure.
The embodiment of the present invention not only can realize the conversion output of the print data to separate unit opertaing device, also can concentrate and receive and change in real time output the print data of many opertaing devices simultaneously.Shown in Figure 9, be the system embodiment of the another kind of print data conversion output that provides in the embodiment of the present invention.
Data acquisition equipment (for example gathering adapter) can extract the print data of many opertaing devices simultaneously, if opertaing device quantity is many, also can configure many data acquisition equipments and gather, the change server that then these data acquisition equipments can be pushed to appointment the print data collecting by Ethernet by configuration is analyzed, changes and stores.And manage, configuration, data message can deposit database server in, then by client-side program and the WEB program of exploitation, these information carried out to unified Management and application, user can be by the long-range demonstration data of consulting after conversion of client.
Data acquisition equipment (for example gathering adapter) has the function of multi pass acquisition, and generally gathering adapter has 8 tunnels, 16 tunnels, the 32 several models in tunnel, can gather 8 tunnels, 16 tunnels, 32 circuit-switched data simultaneously; Distribute a port can in collection adapter each acquisition interface, be that different acquisition interface possesses different port numbers, gather like this adapter and send when data and this port information can be sended over to change server, change server can know that what receive is the raw data of which opertaing device like this.
The concrete function of native system embodiment is summarized as follows:
(1) data acquisition
Data acquisition equipment is for example, interface concentration access to printing device (stylus printer) opertaing device, then by general serial port protocol, gather the print data of these equipment, then automatically these print datas are sent in change server, change server carries out the print data receiving to be automatically saved in database or file after pre-service automatically.In order to ensure the efficiency of data acquisition, in data acquisition equipment collection, metadata is not resolved, but again data are resolved by change server.
(2) data-switching
Data converting function is that pretreated print data is analyzed, these print datas are divided into and control data, character data, view data, these data-switching are become to intermediate form data, then intermediate form data-switching is become to the preservation of classifying after specified format data.The explanation of data-switching part can, referring to above-described embodiment, not repeat them here.
(3) acquisition management
Can arrange acquisition tasks by UI interface.The information such as serial ports parameter by the configurable each data acquisition equipment of this function, IP address, communication pattern, alert mode, simultaneity factor can be monitored all kinds of acquisition tasks, all kinds of acquisition tasks can record the task daily record of oneself, for the alarm occurring in gatherer process or abnormal, system can send to relevant managerial personnel the message of alarm by modes such as notes.
(4) data examination & verification processing
To changing the examination & verification of rear data, the strategy set according to system, as the integrality strategy of data, data stipulations strategy, data verification strategy etc., the data after conversion are audited automatically, only have the data of auditing by data just can carry out statistical study.The data of auditing by data, can according to data type, data usable range, statistical indicator classification etc. mode gather, the data after gathering generally need to carry out just can be used for statistical study after processing and sorting.
Data after gathering by data, can according to statistical study need to carry out processing and sorting to these data, to improve the efficiency of data statistics.
(5) data management
Can be divided into again administer data in classification: system is carried out Classification Management to the data that gather, and the classification of data can be undertaken by modes such as the data types of unit, equipment, collection.Data file management: owing to being that mode according to structural data and unstructured data is stored after data receiver, for unstructured data, it is data file, can carry out Classification Management according to modes such as data file memory location, time, data file class, and the mode by data pointer is shone upon in system, to can rapidly and efficiently find data file.Raw data inquiry: in order to meet dissimilar user's demand, system provides raw data query function, and user can be according to condition query raw data such as unit, equipment, data type, times.Data file inquiry: in order to meet dissimilar user's demand, system provides data file query function, and user can be according to condition query data files such as unit, equipment, data type, times.
(6) statistical report form
Statistical report form provides the function of the Classification Management of all kinds of forms in system, maintenance, inquiry.For all kinds of statistical report forms, can customize by user's demand.
(7) system management
System management is mainly configuration and the management to system organization mechanism, role-security, user and each parameter of any subsystem.Organizational structure's management: system is encoded by unified standard to use departments at different levels and personnel.The functions such as keeper can increase these codings and institutional hierarchical relationship, amendment, deletion.Account management: system provides the maintenance management function of account, the keeper only with corresponding authority just can carry out the operations such as newly-built, amendment, deletion to account, all can carry out record, and query function is provided to each step operating system of account; The username and password of account is according to the requirement of security strategy, and system can be carried out automatic Verification and be reminded, and as Password Length requires to be greater than 8, and requires to have digital and alphabetical combination etc. at least; User forgets Password, and can pass through keeper's initialization password.Rights management: system can, according to user of service's different role, be distributed different system managements and rights of using, realizes the function of rights management; System right management adopts the mode of differentiated control, and upper level can arrange the administration authority of next stage; The flexible configuration of supporting rights parameters, provides the management function to classification configurations rights of using parameters such as system, function, option and even data; Support the rights management function based on role, the operations such as system managers at different levels can increase affiliated role, amendment, deletion; Can be by all kinds of authority setting new roles of combination.System maintenance: amendment and the configuration of all kinds of parameters of the normal operation of system are provided, mainly contain the maintenance of equipment dictionary, parameter of any subsystem configuring maintenance, system journal maintenance, help maintenance etc.
Like this, the embodiment of the present invention is sent to the print data of printing device by gathering opertaing device, the print data collecting is converted to character information and image information, and carry out output display by these information at image output area, generate demonstration data corresponding to described print data, the demonstration data that generate can long-rangely be consulted, and no longer need the Output rusults to opertaing device to scene to consult, and can save a large amount of human costs.And show that by the file after conversion result compares with printing device print file, character and picture material show correct, and file layout structure can be consistent, and sharpness is better than the result of printing device, slewing rate is far away higher than the print speed of printing device.
In addition, user can view desired information fast by system, realizes the trackability of device data.System has not only realized the Real-time Collection of print data and conversion fast, and can realize the real-time Transmission of field data to data center through the configuration of network, the print data of opertaing device has been realized to unified management and storage, reduce the waste of original human and material resources, improved production efficiency and the efficiency of management of applying unit.
It should be noted that, in this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed system of embodiment or device, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates referring to method part.
Also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiment, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. by a method for print data conversion output, it is characterized in that, described method comprises:
The opertaing device that reception data acquisition equipment collects is sent to the print data of printing device, by described print data data writing buffer area;
Judge whether described print data finishes receiving, if print data does not finish receiving, the opertaing device that continuation reception data acquisition equipment collects is sent to the print data of printing device, if print data finishes receiving, preserve the described print data in described data buffer area, and empty described data buffer area;
According to print protocol, the described print data of preserving is divided into and controls data, character data and view data;
According to described control data, described character data or described view data are converted to intermediate form data, described intermediate form data are carried out to output display at image output area, generate demonstration data corresponding to described print data.
2. method according to claim 1, is characterized in that, describedly judges that whether print data finishes receiving, and comprising:
Judge whether to exceed threshold time and do not continue to receive described print data;
Judge that whether described data buffer area is full;
Judge whether to receive default print command;
Do not continue to receive that described print data, described data buffer area are full or receive default print command if exceed threshold time, determining that described print data finishes receiving; If in threshold time, continue to receive described print data, described data buffer area less than and do not receive default print command, determine that described print data does not finish receiving.
3. method according to claim 1, is characterized in that, describedly according to described control data, described character data or described view data is converted to intermediate form data, comprising:
Read corresponding described character data or described view data according to described control data order, add in the raw data attribute in described intermediate form data, and the data type of described character data or described view data is added in the data type attribute in described intermediate form data;
Determine output position information and the display mode information of described character data or described view data according to the print command in described control data, add to respectively in the positional information attribute and display type attribute in described intermediate form data.
4. method according to claim 1, is characterized in that, described method also comprises:
If print data finishes receiving, judge in described print data whether comprise default Data Identification, if so, preserve the described print data in described data buffer area, and empty described data buffer area, if not, outputting alarm information;
And/or according to data integrity strategy, data stipulations strategy, data verification strategy, described demonstration data are audited automatically, the described demonstration data that examination & verification is passed through are carried out Macro or mass analysis.
5. by a device for print data conversion output, it is characterized in that, described device comprises:
Receiving element, is sent to the print data of printing device, by described print data data writing buffer area for receiving opertaing device that data acquisition equipment collects;
The first judging unit, be used for judging whether described print data finishes receiving, do not finish receiving if the judged result of described the first judging unit is print data, return to described receiving element and continue to receive opertaing device that data acquisition equipment collects and be sent to the print data of printing device;
Storage unit, if be that print data finishes receiving for the judged result of described the first judging unit, preserve the described print data in described data buffer area, and empties described data buffer area;
Division unit, for being divided into the described print data of preserving to control data, character data and view data according to print protocol;
Converting unit, for being converted to intermediate form data according to described control data by described character data or described view data;
Output unit, for described intermediate form data are carried out to output display at image output area, generates demonstration data corresponding to described print data.
6. device according to claim 5, is characterized in that, described the first judging unit comprises:
The first judgment sub-unit, for judging whether that exceeding threshold time does not continue to receive described print data;
The second judgment sub-unit, whether full for judging described data buffer area;
The 3rd judgment sub-unit, for judging whether to receive default print command;
Result is determined subelement, if do not continue to receive that described print data, described data buffer area are full or receive default print command for exceeding threshold time, determines that described print data finishes receiving; If in threshold time, continue to receive described print data, described data buffer area less than and do not receive default print command, determine that described print data does not finish receiving.
7. device according to claim 5, is characterized in that, described converting unit comprises:
The first adding device, for reading corresponding described character data or described view data according to described control data order, add in the raw data attribute in described intermediate form data, and the data type of described character data or described view data is added in the data type attribute in described intermediate form data;
The second adding device, for determine output position information and the display mode information of described character data or described view data according to the print command of described control data, add to respectively in the positional information attribute and display type attribute in described intermediate form data.
8. device according to claim 5, is characterized in that, described device also comprises:
The second judging unit, if finished receiving for print data, judge and in described print data, whether comprise default Data Identification, if the judged result of described the second judging unit is yes, enter described storage unit and preserve the described print data in described data buffer area, and empty described data buffer area;
Alarm Unit, if be no for the judged result of described the second judging unit, outputting alarm information;
And/or examination & verification unit, for according to data integrity strategy, data stipulations strategy, data verification strategy, described demonstration data being audited automatically, the described demonstration data that examination & verification is passed through are carried out Macro or mass analysis.
9. by a system for print data conversion output, it is characterized in that, described system comprises:
Change server and data acquisition equipment;
Described data acquisition equipment, bypass is connected on the path between opertaing device and printing device, is sent to the print data of described printing device for gathering described opertaing device, and described print data is sent to described change server;
Described change server is the device that print data conversion is exported described in described claim 5-8.
10. system according to claim 9, is characterized in that, described system also comprises buffer circuit, for reducing the interference of described data acquisition equipment to the path between described opertaing device and described printing device;
Described buffer circuit comprises photoisolator, and one end of described photoisolator is connected with the path between described opertaing device and described printing device, and the other end of described photoisolator is connected with described data acquisition equipment;
Or, described buffer circuit comprises a RS232/RS485 converter and the 2nd RS232/RS485 converter, one end of a described RS232/RS485 converter is connected with described opertaing device, the other end of a described RS232/RS485 converter is connected with one end of described the 2nd RS232/RS485 converter and is connected with described data acquisition equipment, and the other end of described the 2nd RS232/RS485 converter is connected with described printing device.
CN201410474538.6A 2014-09-17 2014-09-17 Method, device and system for converting and outputting print data Expired - Fee Related CN104199625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410474538.6A CN104199625B (en) 2014-09-17 2014-09-17 Method, device and system for converting and outputting print data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410474538.6A CN104199625B (en) 2014-09-17 2014-09-17 Method, device and system for converting and outputting print data

Publications (2)

Publication Number Publication Date
CN104199625A true CN104199625A (en) 2014-12-10
CN104199625B CN104199625B (en) 2017-04-26

Family

ID=52084923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410474538.6A Expired - Fee Related CN104199625B (en) 2014-09-17 2014-09-17 Method, device and system for converting and outputting print data

Country Status (1)

Country Link
CN (1) CN104199625B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932848A (en) * 2015-06-16 2015-09-23 深圳供电局有限公司 Printing transmission data acquisition device and method for power system relay protection equipment
CN104993915A (en) * 2015-08-07 2015-10-21 上海斐讯数据通信技术有限公司 Method and system for transmitting optical network unit management control information
CN105048419A (en) * 2015-07-31 2015-11-11 南京荣桓电力自动化有限公司 Digital display method for print information of relay protection device
CN107402728A (en) * 2016-05-19 2017-11-28 北大方正集团有限公司 A kind of file printing method and system
CN107863140A (en) * 2017-11-06 2018-03-30 贵阳朗玛信息技术股份有限公司 The processing method and processing device of DICOM file
CN112486910A (en) * 2020-11-23 2021-03-12 天津津航计算技术研究所 Method for rapidly analyzing mass data files
WO2021102821A1 (en) * 2019-11-28 2021-06-03 Orange Method for generating electronic document and corresponding device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611347B1 (en) * 1996-12-20 2003-08-26 Canon Kabushiki Kaisha Print control apparatus, print control method, storage medium, and computer readable program performing a form overlay process
CN1932794A (en) * 2006-09-30 2007-03-21 符伟 Electronic reading device
CN102555547A (en) * 2010-11-02 2012-07-11 兄弟工业株式会社 Printing apparatus
CN103507448A (en) * 2012-06-29 2014-01-15 山东新北洋信息技术股份有限公司 Printing control method and printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611347B1 (en) * 1996-12-20 2003-08-26 Canon Kabushiki Kaisha Print control apparatus, print control method, storage medium, and computer readable program performing a form overlay process
CN1932794A (en) * 2006-09-30 2007-03-21 符伟 Electronic reading device
CN102555547A (en) * 2010-11-02 2012-07-11 兄弟工业株式会社 Printing apparatus
CN103507448A (en) * 2012-06-29 2014-01-15 山东新北洋信息技术股份有限公司 Printing control method and printer

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932848A (en) * 2015-06-16 2015-09-23 深圳供电局有限公司 Printing transmission data acquisition device and method for power system relay protection equipment
CN104932848B (en) * 2015-06-16 2018-08-10 深圳供电局有限公司 A kind of relay protection of power system equipment printing transmission data harvester and method
CN105048419A (en) * 2015-07-31 2015-11-11 南京荣桓电力自动化有限公司 Digital display method for print information of relay protection device
CN105048419B (en) * 2015-07-31 2017-11-10 南京荣桓电力自动化有限公司 The Digital Display method of protective relaying device type information
CN104993915A (en) * 2015-08-07 2015-10-21 上海斐讯数据通信技术有限公司 Method and system for transmitting optical network unit management control information
CN104993915B (en) * 2015-08-07 2018-02-13 上海斐讯数据通信技术有限公司 Transmit the method and system of optical network unit managing control information
CN107402728A (en) * 2016-05-19 2017-11-28 北大方正集团有限公司 A kind of file printing method and system
CN107863140A (en) * 2017-11-06 2018-03-30 贵阳朗玛信息技术股份有限公司 The processing method and processing device of DICOM file
WO2021102821A1 (en) * 2019-11-28 2021-06-03 Orange Method for generating electronic document and corresponding device
CN112486910A (en) * 2020-11-23 2021-03-12 天津津航计算技术研究所 Method for rapidly analyzing mass data files

Also Published As

Publication number Publication date
CN104199625B (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN104199625A (en) Method, device and system for converting and outputting print data
EP2943859B1 (en) System, method, and computer-readable medium for managing edge devices
CN107038258B (en) Groundwater monitoring data acquisition release management system
CN102368261A (en) Expandable running maintenance report generation method
CN102932195B (en) A kind of business diagnosis method for supervising of protocal analysis Network Based and system
CN104102652B (en) Unstructured data storage system and method
CN108492028A (en) Demand data standardized method and standardized system
CN104657903A (en) Compressive guarantee system for equipment based on IETM
CN107392829A (en) Water power Emigration in Water Conservancy Project evaluation information system
CN102164050A (en) Log parsing method and log parsing node device
CN105956987A (en) Road traffic engineering test detection data acquisition and evaluation system
CN101917489A (en) Remote transmission and network publishing method of well field information
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
CN106251092A (en) Field operation managing and control system based on operation template
CN108536435A (en) A method of automatically generating CAN communication code
CN101309178B (en) Parsing method and apparatus for automatic exchanging optical network systematic log information
CN114153920A (en) Big data edge platform and method
CN115617776A (en) Data management system and method
CN104202328B (en) A kind of method, configuration module and the subscription end of subscription GOOSE/SMV messages
CN101227327B (en) Method for concentrating network managing system and uploading lower level alarm information
CN106302485B (en) The bi-directional conversion system of OPC standard and power remote agreement
CN204288199U (en) Printing device LPT data virtual system
CN107784097A (en) A kind of database table data transmission method, system and client, service end
CN103957119A (en) Method for managing network devices through MIB file and browser
CN202111739U (en) Well site information remote transmission and network publishing system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170426

Termination date: 20210917

CF01 Termination of patent right due to non-payment of annual fee