[go: up one dir, main page]

CN115291819A - Airborne printing method and system based on file queue mode - Google Patents

Airborne printing method and system based on file queue mode Download PDF

Info

Publication number
CN115291819A
CN115291819A CN202210932499.4A CN202210932499A CN115291819A CN 115291819 A CN115291819 A CN 115291819A CN 202210932499 A CN202210932499 A CN 202210932499A CN 115291819 A CN115291819 A CN 115291819A
Authority
CN
China
Prior art keywords
file
print job
queue
temporary
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210932499.4A
Other languages
Chinese (zh)
Inventor
陈柯龙
辜迎佳
唐明哲
杨勋
徐崇浪
彭美康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC Avionics Co Ltd
Original Assignee
CETC Avionics 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 CETC Avionics Co Ltd filed Critical CETC Avionics Co Ltd
Priority to CN202210932499.4A priority Critical patent/CN115291819A/en
Publication of CN115291819A publication Critical patent/CN115291819A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1229Printer resources management or printer maintenance, e.g. device status, power levels
    • G06F3/1232Transmitting printer device capabilities, e.g. upon request or periodically
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/128Direct printing, e.g. sending document file, using memory stick, printing from a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses an airborne printing method and system based on a file queue mode, which relate to the technical field of airborne printing and are used for receiving printing operation messages of all airborne members and carrying out standardized processing on the printing operation messages; assembling the printing operation data in each printing operation message into a temporary file and numbering the temporary file; carrying out cache judgment according to the printing job file queue state of each current onboard printer; caching each temporary file into a corresponding printing operation file queue according to the cache judgment result to sequentially print the temporary files; the onboard member does not directly interact with the onboard printer to exchange messages, and the process of managing the file queue through generating temporary files and then performing cache judgment improves the efficiency of processing a plurality of print job tasks by a single onboard member system, and reduces the complexity of processing the print job tasks by the onboard printer and the onboard member system when the plurality of onboard member systems compete for the same onboard printer at the same time.

Description

一种基于文件队列模式的机载打印方法及系统Airborne printing method and system based on file queue mode

技术领域technical field

本发明涉及机载打印技术领域,具体涉及一种基于文件队列模式的机载打印方法及系统。The invention relates to the technical field of airborne printing, in particular to an airborne printing method and system based on a file queue mode.

背景技术Background technique

在目前的机载打印作业环境中,机载成员系统通常直接连接到机载打印机的以太网接口或ARINC429接口,通过向机载打印机发送打印消息,以实现文件的打印。In the current airborne printing operation environment, the airborne member system is usually directly connected to the Ethernet interface or ARINC429 interface of the airborne printer, and realizes the printing of files by sending a print message to the airborne printer.

机载打印机在进行打印作业的时候存在送纸、喷墨等机械动作,以及受到机载打印机软件、硬件技术、经济因素等等的限制,机载打印机的(文字、图像)打印速度通常远落后于机载成员系统打印消息的发送速度。对于单个机载成员系统而言,由于需要打印的内容越来越多,当存在多份打印作业时,要在当前打印作业完成数据的传输后才能进行下一份打印作业的传输。因此,在下一份打印作业等待传输的过程中会大大浪费掉机载成员系统运行所需要的CPU、内存等资源。Airborne printers have mechanical actions such as paper feeding and inkjet when printing jobs, and are limited by airborne printer software, hardware technology, economic factors, etc., the printing speed of airborne printers (text, image) is usually far behind Speed at which messages are printed from onboard member systems. For a single onboard member system, since more and more content needs to be printed, when there are multiple print jobs, the transmission of the next print job cannot be performed until the data transmission of the current print job is completed. Therefore, resources such as CPU and memory required for the operation of the onboard member system will be greatly wasted while the next print job is waiting to be transmitted.

同时,随着飞机对各种电子设备和软件功能需求的增多,机载成员系统也逐渐增多,导致出现了多个机载成员系统同一时间段争用同一个机载打印机而导致打印效率不高、处理打印任务复杂性加剧的问题。为了解决多个机载成员系统对打印作业的需求,也可以适当增加机载打印机,但是机载打印机数量的增加以及型号的不同,也加剧了机载打印作业环境对打印设备的管理复杂性。At the same time, with the increasing demand for various electronic devices and software functions of the aircraft, the number of onboard member systems has gradually increased, resulting in multiple airborne member systems competing for the same onboard printer at the same time, resulting in low printing efficiency , Handle the problem of increased complexity of printing tasks. In order to meet the print job requirements of multiple on-board member systems, on-board printers can also be appropriately added, but the increase in the number of on-board printers and the differences in models also exacerbate the complexity of the management of printing devices in the on-board printing environment.

当前,一些非机载的通用打印架构或方案相较于机载的打印要求又过于复杂,比如Microsoft Windows打印体系结构为了满足多种设备的打印要求就包含了打印后台处理程序和打印机驱动程序两大部分,通过调用与设备无关的函数,应用程序可以创建打印作业,再将其发送到打印设备。同时,机载打印机和机载服务器多为飞机上的专用设备,且通信协议的与非机载设备不同,也导致了通用的打印架构或方案不能直接应用于其上。At present, some non-airborne general printing architectures or solutions are too complicated compared with airborne printing requirements. For example, the Microsoft Windows printing architecture includes both a print spooler and a printer driver to meet the printing requirements of multiple devices Mostly, by calling device-independent functions, an application can create a print job and send it to a printing device. At the same time, airborne printers and airborne servers are mostly dedicated equipment on the aircraft, and the communication protocol is different from that of non-airborne equipment, which also leads to the fact that general printing architectures or solutions cannot be directly applied to them.

发明内容Contents of the invention

本发明所要解决的技术问题是:机载打印机打印速度较慢与打印作业消息发送速度较快、打印作业数量较多之间的矛盾,以及降低多个机载打印机存在情况下的打印作业任务和打印设备的管理复杂性;本发明目的在于提供一种基于文件队列模式的机载打印方法及系统,机载成员不直接与机载打印机交互消息,而是通过生成临时文件再经过缓存判断对文件队列进行管理的过程,提高了单个机载成员系统处理多个打印作业任务的效率,降低了多个机载成员系统同时争用同一机载打印机时机载打印机和机载成员系统处理打印作业任务的复杂性。The technical problem to be solved by the present invention is: the contradiction between the slow printing speed of the airborne printer, the fast sending speed of the print job message, and the large number of print jobs, and the reduction of the printing job tasks and The management complexity of printing equipment; the object of the present invention is to provide a kind of airborne printing method and system based on file queue mode, airborne members do not directly exchange messages with the airborne printer, but judge the file by generating temporary files and then through the cache The process of queue management improves the efficiency of a single on-board member system in processing multiple print job tasks, and reduces the simultaneous competition of multiple on-board member systems for the same on-board printer when the on-board printer and on-board member systems process print jobs complexity.

本发明通过下述技术方案实现:The present invention realizes through following technical scheme:

本发明提供一种基于文件队列模式的机载打印方法,包括步骤:The present invention provides a kind of airborne printing method based on file queue mode, comprising steps:

T1、接收各机载成员的打印作业消息,并对打印作业消息进行标准化处理;T1. Receive the print job messages of each airborne member, and standardize the print job messages;

T2、将每个打印作业消息中的打印作业数据组装成临时文件,并对临时文件进行编号;T2. Assemble the print job data in each print job message into a temporary file, and number the temporary file;

T3、基于临时文件的编号及当前各机载打印机的打印作业文件队列状态进行缓存判断;T3. Perform cache judgment based on the serial number of the temporary file and the current print job file queue status of each onboard printer;

T4、根据缓存判断结果将各临时文件缓存至相应的打印作业文件队列中;T4. Caching each temporary file into a corresponding print job file queue according to the caching judgment result;

T5、各机载打印机按照其对应的打印作业文件队列依次进行临时文件的打印。T5. Each of the onboard printers prints the temporary files sequentially according to their corresponding print job file queues.

本方案工作原理:机载打印机打印速度较慢与打印作业消息发送速度较快、打印作业数量较多之间的矛盾,以及降低多个机载打印机存在情况下的打印作业任务和打印设备的管理复杂性;本方案提供一种基于文件队列模式的机载打印方法,机载成员打印作业的发送速度不再受限于机载打印机的性能,能够通过快速生成作为机载成员系统和机载打印机之间桥梁的临时文件来完成打印作业,解决了机载成员系统打印消息发送速度较快与机载打印机打印速度较慢的矛盾,通过生成临时文件,解决了单个机载成员在上一个打印作业还未完成情况下,下一个打印作业就不能开始的问题,提高了单个机载成员处理多个打印作业任务的效率,减少了机载成员处理多个打印作业时占用CPU、内存等资源的时间;通过缓存判断对打印作业文件队列进行管理,实现了对打印作业任务的统一推送处理,提高了多个机载成员系统存在情况下的打印效率,降低了多个机载成员系统同时争用同一机载打印机时机载打印机和机载成员系统处理打印作业任务的复杂性。The working principle of this solution: the contradiction between the slow printing speed of the onboard printer and the fast sending speed of the print job message, the large number of print jobs, and the reduction of the print job task and the management of the printing device in the presence of multiple onboard printers Complexity; this solution provides an airborne printing method based on the file queue mode. The sending speed of the airborne member print job is no longer limited by the performance of the airborne printer. It can be used as an airborne member system and an airborne printer The temporary file of the bridge between the bridges is used to complete the printing job, which solves the contradiction between the fast sending speed of the printing message of the airborne member system and the slow printing speed of the airborne printer. The problem that the next print job cannot be started before it is completed improves the efficiency of a single onboard member in processing multiple print jobs, and reduces the time that the onboard member occupies CPU, memory and other resources when processing multiple print jobs ;Manage the print job file queue through cache judgment, realize the unified push processing of print job tasks, improve the printing efficiency in the presence of multiple airborne member systems, and reduce the simultaneous contention of multiple airborne member systems for the same Onboard Printers When onboard printers and onboard member systems handle the complexity of print job tasks.

进一步优化方案为,所述标准化处理包括将各机载成员的通信协议进行统一处理。A further optimization solution is that the standardized processing includes uniformly processing the communication protocols of each airborne member.

进一步优化方案为,所述打印作业消息包括:标签字段、打印作业命令、打印作业内容和打印作业文件的页面布局信息。A further optimization solution is that the print job message includes: label field, print job command, print job content and page layout information of the print job file.

进一步优化方案为,所述临时文件包括打印作业内容和打印作业文件的页面布局信息。A further optimization solution is that the temporary file includes print job content and page layout information of the print job file.

进一步优化方案为,T2包括过程:The further optimization scheme is that T2 includes the process:

解析标准化处理后的打印作业消息;Parse the standardized print job message;

将打印作业消息中的打印作业内容和打印作业文件的页面布局信息生成一个PDF临时文件;Generate a temporary PDF file from the print job content in the print job message and the page layout information of the print job file;

将打印作业消息中的标签字段的值就作为PDF临时文件的编号,所述标签字段填充有指定机载打印机地址标签或一个值为0b11111111的8位二进制数。The value of the label field in the print job message is used as the serial number of the PDF temporary file, and the label field is filled with an address label specifying the onboard printer or an 8-bit binary number with a value of 0b11111111.

进一步优化方案为,T3包括以下子步骤:The further optimization scheme is that T3 includes the following sub-steps:

S1:读取临时文件的编号;S1: read the number of the temporary file;

S2:判断是否存在与临时文件的编号相对应的打印作业文件队列,若是则进入S3,否则进入S4;S2: Determine whether there is a print job file queue corresponding to the number of the temporary file, if so, enter S3, otherwise enter S4;

S3:将当前临时文件缓存到相对应的打印作业文件队列的队尾,结束;S3: Cache the current temporary file to the tail of the corresponding print job file queue, end;

S4:判断临时文件的编号是否为0b11111111,若是则进入S5,否则结束并进行错误提示;S4: judge whether the serial number of the temporary file is 0b11111111, if so, enter S5, otherwise end and give an error message;

S5:判断排队最短的打印作业文件队列是否唯一,若是则将当前临时文件缓存到排队最短的打印作业文件队列的队尾,结束;否则将当前临时文件缓存到任意一个排队最短的打印作业文件队列的队尾,结束。S5: Determine whether the print job file queue with the shortest queue is unique, if so, cache the current temporary file to the end of the print job file queue with the shortest queue, and end; otherwise, cache the current temporary file to any print job file queue with the shortest queue The end of the queue, the end.

进一步优化方案为,临时文件的打印过程包括:A further optimization scheme is that the printing process of the temporary file includes:

按照打印作业文件队列中临时文件缓存的先后顺序从队首到队尾依次发送临时文件到机载打印机进行打印;Send temporary files to the on-board printer for printing sequentially from the head to the end of the queue according to the order of the temporary file cache in the print job file queue;

机载打印机在完成一个临时文件的打印后,删除该临时文件,再进行下一个临时文件的打印,直到打印完所有的临时文件为止。After printing a temporary file, the airborne printer deletes the temporary file, and then prints the next temporary file until all the temporary files are printed.

每个机载打印机都会有一个标识唯一身份的8位二进制数地址标签,叫做机载打印机地址标签;当机载成员发送打印作业消息时,打印作业消息中会携带有一个标签字段,标签字段填充一个机载打印机地址标签或者一个值为0b11111111的8位二进制数,该机载成员发送的标签字段的值就作为临时文件的编号。Each onboard printer will have an 8-bit binary number address label that identifies a unique identity, called the onboard printer address label; when the onboard member sends a print job message, the print job message will carry a label field, and the label field is filled An onboard printer address label or an 8-bit binary number with a value of 0b11111111, the value of the label field sent by the onboard member is used as the number of the temporary file.

本方案还提供一种基于文件队列模式的机载打印系统,应用于上述基于文件队列模式的机载打印方法,包括:作业接收和标准化处理模块、打印作业文件生成模块、打印作业文件推送模块和打印作业文件队列及发送模块;This solution also provides an airborne printing system based on the file queue mode, which is applied to the above-mentioned airborne printing method based on the file queue mode, including: a job receiving and standardized processing module, a print job file generation module, a print job file push module and Print job file queue and sending module;

所述作业接收和标准化处理模块用于接收各机载成员的打印作业消息,并对打印作业消息进行标准化处理;The job receiving and standardization processing module is used to receive the print job messages of each airborne member, and standardize the print job messages;

所述打印作业文件生成模块用于将每个打印作业消息中的打印作业数据组装成临时文件,并对临时文件进行编号;The print job file generating module is used to assemble the print job data in each print job message into a temporary file, and number the temporary file;

所述打印作业文件推送模块用于基于临时文件的编号及当前各机载打印机的打印作业文件队列状态进行缓存判断,并将临时文件和缓存判断结果推送至打印作业文件队列及发送模块;The print job file push module is used to perform cache judgment based on the serial number of the temporary file and the print job file queue status of each onboard printer, and push the temporary file and the cache judgment result to the print job file queue and the sending module;

所述打印作业文件队列及发送模块用于根据缓存判断结果将各临时文件缓存至相应的打印作业文件队列中;The print job file queue and the sending module are used to cache each temporary file into the corresponding print job file queue according to the cache judgment result;

所述打印作业文件队列及发送模块还用于与各机载打印机进行交互,按照对应的打印作业文件队列依次进行临时文件的打印。The print job file queue and the sending module are also used to interact with each onboard printer, and print temporary files sequentially according to the corresponding print job file queue.

在本方案中,机载成员不直接与机载打印机交互消息,而是由安装在机载服务器上的作业接收和协议处理模块按照标准的机载打印消息协议代为接收与回复打印消息;在经过消息的交互,并对原有通信协议消息的数据进行解析后,由打印作业文件生成模块根据消息中的打印数据生成一个PDF格式的临时文件;该临时文件除了包含所要打印的文件内容信息,还包含了打印作业文件的页面布局信息,与机载打印机打印出来的文件内容和页面布局完全一致。In this scheme, the on-board members do not directly exchange messages with the on-board printer, but the job receiving and protocol processing module installed on the on-board server receives and replies the printing message according to the standard on-board printing message protocol; message interaction, and after analyzing the data of the original communication protocol message, the print job file generation module generates a temporary file in PDF format according to the print data in the message; the temporary file not only contains the content information of the file to be printed, but also It contains the page layout information of the print job file, which is completely consistent with the file content and page layout printed by the onboard printer.

打印作业文件推送模块在启动时,会根据当前机载打印作业环境中机载打印机的数量为每个机载打印机生成一个对应的打印作业文件队列,使得机载打印机与打印作业文件队列为一一对应的关系;每个打印作业文件队列都会有一个编号,该编号就是与之对应的机载打印机地址标签。打印作业生成模块生成临时文件后,将其发送到打印作业文件推送模块,打印作业文件推送模块通过对临时文件的编号以及当前打印作业文件队列状态的判断,将生成的临时文件缓存到指定的打印作业文件队列。若打印作业文件队列中缓存了多个临时文件,则表明打印作业文件推送模块将从队首到队尾依次取出临时文件推送到相应的机载打印机进行打印。When the print job file push module is started, it will generate a corresponding print job file queue for each onboard printer according to the number of onboard printers in the current onboard print job environment, so that the onboard printer and the print job file queue are one by one Corresponding relationship; each print job file queue will have a number, which is the corresponding onboard printer address label. After the print job generation module generates the temporary file, it sends it to the print job file push module, and the print job file push module caches the generated temporary file to the specified print job by judging the number of the temporary file and the status of the current print job file queue. Job file queue. If multiple temporary files are cached in the print job file queue, it indicates that the print job file pushing module will sequentially take out the temporary files from the head to the tail of the queue and push them to the corresponding onboard printers for printing.

进一步优化方案为,各机载成员通过以太网接口、ARINC429接口或AFDX接口与作业接收和标准化处理模块连接;The further optimization scheme is that each airborne member is connected to the job receiving and standardized processing module through the Ethernet interface, ARINC429 interface or AFDX interface;

打印作业文件队列及发送模块通过以太网接口或ARINC429接口与各机载打印机连接。The print job file queuing and sending module is connected with each onboard printer through an Ethernet interface or an ARINC429 interface.

进一步优化方案为,所述打印作业文件队列及发送模块中包含有多个打印作业文件队列,每个打印作业文件队列对应一个机载打印机,打印作业文件队列与对应的机载打印机之间通过以太网接口或ARINC429接口进行交互。A further optimization solution is that the print job file queue and the sending module include a plurality of print job file queues, each print job file queue corresponds to an onboard printer, and the print job file queue and the corresponding onboard printer are connected via Ethernet Network interface or ARINC429 interface for interaction.

本发明与现有技术相比,具有如下的优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

本发明提供的一种基于文件队列模式的机载打印方法及系统,机载成员不直接与机载打印机交互消息,而是通过生成临时文件再经过缓存判断对文件队列进行管理的过程,提高了单个机载成员系统处理多个打印作业任务的效率,降低了多个机载成员系统同时争用同一机载打印机时机载打印机和机载成员系统处理打印作业任务的复杂性。In the airborne printing method and system based on the file queue mode provided by the present invention, the airborne members do not directly exchange messages with the airborne printer, but manage the file queue by generating temporary files and then judging by caching, which improves the efficiency of printing. The efficiency of a single on-board member system for processing multiple print job tasks reduces the complexity of the on-board printer and the on-board member system for processing print job tasks when multiple on-board member systems compete for the same on-board printer at the same time.

附图说明Description of drawings

为了更清楚地说明本发明示例性实施方式的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。在附图中:In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention. Therefore, it should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained according to these drawings without creative work. In the attached picture:

图1为基于文件队列模式的机载打印方法流程示意图;Fig. 1 is a schematic flow chart of an airborne printing method based on a file queue mode;

图2为临时文件组装过程示意图;Fig. 2 is a schematic diagram of the temporary file assembly process;

图3为缓存判断过程示意图;FIG. 3 is a schematic diagram of a cache judgment process;

图4为临时文件的打印过程示意图;Fig. 4 is the schematic diagram of the printing process of temporary file;

图5为基于文件队列模式的机载打印系统示意图;Fig. 5 is a schematic diagram of an airborne printing system based on a file queue mode;

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下面结合实施例和附图,对本发明作进一步的详细说明,本发明的示意性实施方式及其说明仅用于解释本发明,并不作为对本发明的限定。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the examples and accompanying drawings. As a limitation of the present invention.

实施例1Example 1

本实施例提供一种基于文件队列模式的机载打印方法,如图1所示,包括步骤:This embodiment provides an airborne printing method based on the file queue mode, as shown in Figure 1, including steps:

T1、接收各机载成员的打印作业消息,并对打印作业消息进行标准化处理;T1. Receive the print job messages of each airborne member, and standardize the print job messages;

T2、将每个打印作业消息中的打印作业数据组装成临时文件,并对临时文件进行编号;T2. Assemble the print job data in each print job message into a temporary file, and number the temporary file;

T3、基于临时文件的编号及当前各机载打印机的打印作业文件队列状态进行缓存判断;T3. Perform cache judgment based on the serial number of the temporary file and the current print job file queue status of each onboard printer;

T4、根据缓存判断结果将各临时文件缓存至相应的打印作业文件队列中;T4. Caching each temporary file into a corresponding print job file queue according to the caching judgment result;

T5、各机载打印机按照其对应的打印作业文件队列依次进行临时文件的打印。T5. Each of the onboard printers prints the temporary files sequentially according to their corresponding print job file queues.

所述标准化处理包括将各机载成员的通信协议进行统一处理。The standardized processing includes uniformly processing the communication protocols of each airborne member.

所述打印作业消息包括:标签字段、打印作业命令、打印作业内容和打印作业文件的页面布局信息。The print job message includes: label field, print job command, print job content and page layout information of the print job file.

所述临时文件包括打印作业内容和打印作业文件的页面布局信息。The temporary file includes print job content and page layout information of the print job file.

如图2所示,T2包括过程:As shown in Figure 2, T2 includes the process:

解析标准化处理后的打印作业消息;Parse the standardized print job message;

将打印作业消息中的打印作业内容和打印作业文件的页面布局信息生成一个PDF临时文件;Generate a temporary PDF file from the print job content in the print job message and the page layout information of the print job file;

将打印作业消息中的标签字段的值就作为PDF临时文件的编号,所述标签字段填充有指定机载打印机地址标签或一个值为0b11111111的8位二进制数。The value of the label field in the print job message is used as the serial number of the PDF temporary file, and the label field is filled with an address label specifying the onboard printer or an 8-bit binary number with a value of 0b11111111.

如图3所示,T3包括以下子步骤:As shown in Figure 3, T3 includes the following sub-steps:

S1:读取临时文件的编号;S1: read the number of the temporary file;

S2:判断是否存在与临时文件的编号相对应的打印作业文件队列,若是则进入S3,否则进入S4;S2: Determine whether there is a print job file queue corresponding to the number of the temporary file, if so, enter S3, otherwise enter S4;

S3:将当前临时文件缓存到相对应的打印作业文件队列的队尾,结束;S3: Cache the current temporary file to the tail of the corresponding print job file queue, end;

S4:判断临时文件的编号是否为0b11111111,若是则进入S5,否则结束并进行错误提示;S4: judge whether the serial number of the temporary file is 0b11111111, if so, enter S5, otherwise end and give an error message;

S5:判断排队最短的打印作业文件队列是否唯一,若是则将当前临时文件缓存到排队最短的打印作业文件队列的队尾,结束;否则将当前临时文件缓存到任意一个排队最短的打印作业文件队列的队尾,结束。S5: Determine whether the print job file queue with the shortest queue is unique, if so, cache the current temporary file to the end of the print job file queue with the shortest queue, and end; otherwise, cache the current temporary file to any print job file queue with the shortest queue The end of the queue, the end.

当临时文件的编号与某个机载打印机的地址标签相同时,表明机载成员系统希望临时文件由该机载打印机来打印;因此,生成的临时文件直接被打印作业文件推送模块推送到编号与之相同的打印作业文件队列,缓存在打印作业文件队列的队尾。When the number of the temporary file is the same as the address label of an on-board printer, it indicates that the on-board member system expects the temporary file to be printed by the on-board printer; therefore, the generated temporary file is directly pushed to the number and The same print job file queue is buffered at the end of the print job file queue.

若临时文件编号的二进制值为0b11111111,表明生成的临时文件可由系统中任意一个机载打印机来打印,机载成员系统对打印作业文件推送模块选择哪个机载打印机进行临时文件打印不做强制要求;此时,打印作业文件推送模块将根据打印作业文件队列及发送模块上报的所有打印作业文件队列当前排队状态来指定临时文件被推送的队列,其又可分为如下两种情况:If the binary value of the temporary file number is 0b11111111, it indicates that the generated temporary file can be printed by any on-board printer in the system, and the on-board member system does not make mandatory requirements on which on-board printer is selected by the print job file push module to print the temporary file; At this point, the print job file push module will specify the queue to which the temporary file is pushed according to the print job file queue and the current queuing status of all print job file queues reported by the sending module, which can be divided into the following two situations:

当临时文件排队数量最少的打印作业文件队列有且只有一个时,将临时文件推送到该打印作业文件队列,缓存在打印作业文件队列的队尾;When there is only one print job file queue with the least number of temporary files queued, the temporary file is pushed to the print job file queue and cached at the end of the print job file queue;

当临时文件排队数量最少的打印作业文件队列大于等于一个时,利用随机化算法将临时文件随机推送到某个排队数量最少的打印作业文件队列,缓存在打印作业文件队列的队尾。When the print job file queue with the least queued number of temporary files is greater than or equal to one, the randomized algorithm is used to randomly push the temporary files to a print job file queue with the smallest queued number, and cache them at the end of the print job file queue.

如图4所示,临时文件的打印过程包括:As shown in Figure 4, the printing process of temporary files includes:

按照打印作业文件队列中临时文件缓存的先后顺序从队首到队尾依次发送临时文件到机载打印机进行打印;Send temporary files to the on-board printer for printing sequentially from the head to the end of the queue according to the order of the temporary file cache in the print job file queue;

机载打印机在完成一个临时文件的打印后,删除该临时文件,再进行下一个临时文件的打印,直到打印完所有的临时文件为止。After printing a temporary file, the airborne printer deletes the temporary file, and then prints the next temporary file until all the temporary files are printed.

当打印作业文件队列中存在排队的临时文件时,打印作业文件队列及发送模块会根据机载打印机的类型按照标准文件打印协议(比如Arinc744、Arinc744A、LPR/LPD等)主动与打印作业文件队列对应的机载打印机进行打印消息的交互,实现文件的打印。打印作业文件队列按照临时文件缓存的先后顺序从队首到队尾依次发送临时文件到机载打印机。在完成一个临时文件的打印后,删除对应的临时文件,再进行下一个临时文件的打印,直到所有的临时文件都被打印完成为止。When there are queued temporary files in the print job file queue, the print job file queue and sending module will actively correspond to the print job file queue according to the standard file printing protocol (such as Arinc744, Arinc744A, LPR/LPD, etc.) according to the type of the onboard printer The on-board printer interacts with printing messages to realize the printing of files. The print job file queue sends temporary files to the on-board printer sequentially from the head to the tail of the queue according to the sequence of the temporary file cache. After printing a temporary file, delete the corresponding temporary file, and then print the next temporary file until all the temporary files are printed.

实施例2Example 2

一种基于文件队列模式的机载打印系统,如图5所示,应用于上一实施例所述的基于文件队列模式的机载打印方法,包括:作业接收和标准化处理模块、打印作业文件生成模块、打印作业文件推送模块和打印作业文件队列及发送模块;An airborne printing system based on the file queue mode, as shown in Figure 5, is applied to the airborne printing method based on the file queue mode described in the previous embodiment, including: a job receiving and standardized processing module, and a print job file generation module, print job file push module and print job file queue and sending module;

所述作业接收和标准化处理模块用于接收各机载成员的打印作业消息,并对打印作业消息进行标准化处理;The job receiving and standardization processing module is used to receive the print job messages of each airborne member, and standardize the print job messages;

所述打印作业文件生成模块用于将每个打印作业消息中的打印作业数据组装成临时文件,并对临时文件进行编号;The print job file generating module is used to assemble the print job data in each print job message into a temporary file, and number the temporary file;

所述打印作业文件推送模块用于基于临时文件的编号及当前各机载打印机的打印作业文件队列状态进行缓存判断,并将临时文件和缓存判断结果推送至打印作业文件队列及发送模块;The print job file push module is used to perform cache judgment based on the serial number of the temporary file and the print job file queue status of each onboard printer, and push the temporary file and the cache judgment result to the print job file queue and the sending module;

所述打印作业文件队列及发送模块用于根据缓存判断结果将各临时文件缓存至相应的打印作业文件队列中;The print job file queue and the sending module are used to cache each temporary file into the corresponding print job file queue according to the cache judgment result;

所述打印作业文件队列及发送模块还用于与各机载打印机进行交互,按照对应的打印作业文件队列依次进行临时文件的打印。The print job file queue and the sending module are also used to interact with each onboard printer, and print temporary files sequentially according to the corresponding print job file queue.

各机载成员通过以太网接口、ARINC429接口或AFDX接口与作业接收和标准化处理模块连接;Each airborne member is connected to the job receiving and standardization processing module through the Ethernet interface, ARINC429 interface or AFDX interface;

打印作业文件队列及发送模块通过以太网接口或ARINC429接口与各机载打印机连接。The print job file queuing and sending module is connected with each onboard printer through an Ethernet interface or an ARINC429 interface.

所述打印作业文件队列及发送模块中包含有多个打印作业文件队列,每个打印作业文件队列对应一个机载打印机,打印作业文件队列与对应的机载打印机之间通过以太网接口或ARINC429接口进行交互。The print job file queue and the sending module include a plurality of print job file queues, each print job file queue corresponds to an onboard printer, and the print job file queue and the corresponding onboard printer are connected through an Ethernet interface or an ARINC429 interface to interact.

本发明提出通过解析机载成员系统发送的打印协议消息中的数据生成包含打印文件内容和页面布局的临时文件;同时设计了对临时文件和打印作业文件队列进行编号的方法。根据临时文件的编号,设计了将临时文件推送到打印作业文件队列的算法,包括指定机载打印机的临时文件推送和未指定机载打印机的临时文件推送。解决了机载成员系统打印消息发送速度较快与机载打印机打印速度较慢的矛盾,提高了单个机载成员系统处理多个打印作业任务的效率,减少了机载成员系统处理多个打印作业时占用CPU、内存等资源的时间;通过对文件队列进行管理,实现了对打印作业任务的统一推送处理,提高了多个机载成员系统存在情况下的打印效率,降低了多个机载成员系统同时争用同一机载打印机时机载打印机和机载成员系统处理打印作业任务的复杂性,降低了对多个机载打印机进行管理的复杂性。The invention proposes to generate temporary files including print file content and page layout by analyzing the data in the print protocol message sent by the on-board member system; meanwhile, a method for numbering the temporary files and print job file queues is designed. According to the numbers of the temporary files, an algorithm is designed to push the temporary files to the print job file queue, including the temporary file push of the specified onboard printer and the temporary file push of the unspecified onboard printer. It solves the contradiction between the fast printing speed of the on-board member system and the slow printing speed of the on-board printer, improves the efficiency of a single on-board member system in processing multiple print jobs, and reduces the need for the on-board member system to process multiple print jobs It takes time for resources such as CPU and memory; through the management of file queues, the unified push processing of print job tasks is realized, which improves the printing efficiency when multiple onboard member systems exist, and reduces the number of onboard member systems. When the system competes for the same on-board printer at the same time, the on-board printer and the on-board member system process the complexity of printing job tasks, reducing the complexity of managing multiple on-board printers.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (10)

1. An airborne printing method based on a file queue mode is characterized by comprising the following steps:
t1, receiving printing operation messages of all airborne members, and carrying out standardized processing on the printing operation messages;
t2, assembling the print job data in each print job message into a temporary file, and numbering the temporary file;
t3, performing cache judgment based on the number of the temporary file and the printing job file queue state of each current onboard printer;
t4, caching each temporary file into a corresponding print job file queue according to a cache judgment result;
and T5, sequentially printing the temporary files by each onboard printer according to the corresponding print job file queue.
2. The method according to claim 1, wherein the standardization process comprises a uniform process of communication protocols of each onboard member.
3. The method of claim 1, wherein the print job message comprises: a tag field, a print job command, print job content, and page layout information of the print job file.
4. The method of claim 3, wherein the temporary document includes print job content and page layout information of the print job document.
5. The method according to claim 3, wherein T2 comprises:
analyzing the print job information after the standardized processing;
generating a PDF temporary file by the printing operation content in the printing operation message and the page layout information of the printing operation file;
the value of the tag field in the print job message, which is filled with the 8-bit binary number specifying the onboard printer address tag or a value of 0b11111111, is taken as the number of the PDF temporary file.
6. The method for printing on-board a document queue mode according to claim 5, wherein T3 comprises the following sub-steps:
s1: reading the number of the temporary file;
s2: judging whether a print job file queue corresponding to the number of the temporary file exists, if so, entering S3, and otherwise, entering S4;
s3: caching the current temporary file to the tail of the corresponding printing operation file queue, and ending;
s4: judging whether the number of the temporary file is 0b11111111, if so, entering S5, and otherwise, finishing and carrying out error prompt;
s5: judging whether the printing operation file queue with the shortest queuing is unique, if so, caching the current temporary file to the tail of the printing operation file queue with the shortest queuing, and ending; otherwise, the current temporary file is cached to the tail of any print job file queue with the shortest queue, and the process is finished.
7. The method according to claim 1, wherein the temporary document printing process comprises:
sequentially sending the temporary files from the head of the queue to the tail of the queue to an onboard printer for printing according to the sequence of temporary file cache in the printing operation file queue;
after the on-board printer finishes printing one temporary file, the temporary file is deleted, and then the next temporary file is printed until all the temporary files are printed.
8. An onboard printing system based on a file queue mode is applied to the onboard printing method based on the file queue mode, and comprises the following steps: the system comprises a job receiving and standardization processing module, a print job file generating module, a print job file pushing module and a print job file queue and sending module;
the operation receiving and standardization processing module is used for receiving the printing operation messages of all airborne members and carrying out standardization processing on the printing operation messages;
the printing operation file generation module is used for assembling the printing operation data in each printing operation message into a temporary file and numbering the temporary file;
the printing operation file pushing module is used for carrying out cache judgment based on the serial number of the temporary file and the printing operation file queue state of each current onboard printer, and pushing the temporary file and the cache judgment result to the printing operation file queue and sending module;
the printing operation file queue and sending module is used for caching each temporary file into the corresponding printing operation file queue according to the caching judgment result;
and the printing job file queue and sending module is also used for interacting with each onboard printer and sequentially printing the temporary files according to the corresponding printing job file queue.
9. The on-board printing system based on the file queue mode as claimed in claim 8, wherein each on-board member is connected with the job receiving and standardization processing module through an ethernet interface, an ARINC429 interface or an AFDX interface;
the printing operation file queue and sending module is connected with each machine-mounted printer through an Ethernet interface or an ARINC429 interface.
10. The file queue mode-based airborne printing system of claim 9, wherein the print job file queue and sending module comprises a plurality of print job file queues, each print job file queue corresponds to an airborne printer, and the print job file queues interact with the corresponding airborne printer through an ethernet interface or an ARINC429 interface.
CN202210932499.4A 2022-08-04 2022-08-04 Airborne printing method and system based on file queue mode Pending CN115291819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210932499.4A CN115291819A (en) 2022-08-04 2022-08-04 Airborne printing method and system based on file queue mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210932499.4A CN115291819A (en) 2022-08-04 2022-08-04 Airborne printing method and system based on file queue mode

Publications (1)

Publication Number Publication Date
CN115291819A true CN115291819A (en) 2022-11-04

Family

ID=83825335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210932499.4A Pending CN115291819A (en) 2022-08-04 2022-08-04 Airborne printing method and system based on file queue mode

Country Status (1)

Country Link
CN (1) CN115291819A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129337A (en) * 1993-11-04 1995-05-19 Fuji Xerox Co Ltd Multiprinter managing system
CN1525305A (en) * 2003-01-03 2004-09-01 Document generation, on customer side, for printout in the computer network
CN103279310A (en) * 2011-12-28 2013-09-04 株式会社理光 Information processing apparatus, and information processing method
JP2015075822A (en) * 2013-10-07 2015-04-20 株式会社リコー Print control system, print control method, and program
US20160277602A1 (en) * 2015-03-19 2016-09-22 Ricoh Company, Ltd. Information processing apparatus, information processing method, and information processing system
CN113961155A (en) * 2021-10-14 2022-01-21 中电科航空电子有限公司 On-board printing interface protocol extension and printing job automatic scheduling method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129337A (en) * 1993-11-04 1995-05-19 Fuji Xerox Co Ltd Multiprinter managing system
CN1525305A (en) * 2003-01-03 2004-09-01 Document generation, on customer side, for printout in the computer network
CN103279310A (en) * 2011-12-28 2013-09-04 株式会社理光 Information processing apparatus, and information processing method
JP2015075822A (en) * 2013-10-07 2015-04-20 株式会社リコー Print control system, print control method, and program
US20160277602A1 (en) * 2015-03-19 2016-09-22 Ricoh Company, Ltd. Information processing apparatus, information processing method, and information processing system
CN113961155A (en) * 2021-10-14 2022-01-21 中电科航空电子有限公司 On-board printing interface protocol extension and printing job automatic scheduling method and device

Similar Documents

Publication Publication Date Title
US8861010B2 (en) Notifying a print client of an end of an image process on print data
JPH11175294A (en) Network system, printer and information storage medium
US8711390B2 (en) Method and apparatus for executing load distributed printing
US20070171467A1 (en) Authenticated printing apparatus and method and authenticated printing system
JPH0934670A (en) Image formation device
EP1122634A1 (en) Network system and network interface card
US7170620B2 (en) Print job management apparatus
US8270001B2 (en) Printing apparatus and canceling method
US6552816B1 (en) Printing system and printer
CN115291819A (en) Airborne printing method and system based on file queue mode
JP3817387B2 (en) Information processing apparatus, printing apparatus, information processing method, and storage medium capable of instructing cancellation of print job
CN101140506B (en) Grating processing method and device
JP2009178942A (en) Printer selection system
JP4285474B2 (en) Printing system, method and printer
US7233417B2 (en) Print job management apparatus
JP2007310450A (en) High-speed rasterizing system by distributed rip processing
JP4730201B2 (en) Print control apparatus, print system, print control method and program
US8072628B2 (en) Printing apparatus, network device, printing control method, and printing control program capable of transmitting print image data to printing hardware prior to registration of print job
JP2007022085A (en) Printing device
JP3897083B2 (en) Print processing apparatus and print processing method
JP2004127310A (en) Network system, printer and information storage medium
JP4065539B2 (en) Image forming system, image forming apparatus, and control method thereof
US9268515B2 (en) Information processing apparatus, information processing system, and information processing method, for transmitting print jobs to a printing control apparatus
JP4243831B2 (en) Printer and printer job data transfer method
JP4035304B2 (en) Digital information output system

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