CN110531942A - Print data bridge system and bridging method based on built-in Linux - Google Patents

Print data bridge system and bridging method based on built-in Linux Download PDF

Info

Publication number
CN110531942A
CN110531942A CN201910727280.9A CN201910727280A CN110531942A CN 110531942 A CN110531942 A CN 110531942A CN 201910727280 A CN201910727280 A CN 201910727280A CN 110531942 A CN110531942 A CN 110531942A
Authority
CN
China
Prior art keywords
print
print data
superadd
printer
data
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
CN201910727280.9A
Other languages
Chinese (zh)
Other versions
CN110531942B (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 Digital Yan Technology Co Ltd
Original Assignee
Beijing Digital Yan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Digital Yan Technology Co Ltd filed Critical Beijing Digital Yan Technology Co Ltd
Priority to CN201910727280.9A priority Critical patent/CN110531942B/en
Publication of CN110531942A publication Critical patent/CN110531942A/en
Application granted granted Critical
Publication of CN110531942B publication Critical patent/CN110531942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1237Print job management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1237Print job management
    • G06F3/126Job scheduling, e.g. queuing, determine appropriate device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1285Remote printer device, e.g. being remote from client or server
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention relates to print data bridge systems and bridging method based on built-in Linux, the bridge system is mainly by embedded MCU and the FPGA connecting with MCU, interface module, communication module and memory module are constituted, the FPGA is serially connected between POS machine and printer, the bridging method uses the bridge system, the print data of POS sending is obtained by its input terminal and is sent to MCU, the MCU parses print data, superadd-print data are generated according to superadd-print configuration, the data of pursuing and attacking generated by superadd-print configuration are sent to FPGA, the FPGA by its output end will superadd-print data to printer output, it controls printer and implements printing.The present invention support comprehensively high speed, two-way string, simultaneously, the printer of net, USB interface, can be realized two dimensional code etc. and pursue and attack the superadd-print of information, and effectively prevent phenomena such as stuck occur when superadd-print.

Description

Print data bridge system and bridging method based on built-in Linux
Technical field
The present invention relates to a kind of print data bridge system and associated bridge method based on built-in Linux.
Background technique
Existing market cash register system is based primarily upon windows operating system, and host (processor) is by relevant interface and beats Print machine and display direct communication, are operated by special cashier, meet the needs of businessman to a certain extent, but with The development of information technology and the diversification of demand, this technology also show that limitation, first is that serial ports, USB port, network interface, Lack flexibility in the support of a variety of printing interfaces such as WiFi and bluetooth, second is that market is in printing receipt (or consumption receipt) When, other than needing to print the Transaction Information for being originated from POS machine, it is also necessary to two dimensional code, speech, favor information, Hui Yuanxin in printing The additional informations (pursuing and attacking information) such as breath.According to the above-mentioned prior art, above-mentioned function is realized, need to be equipped with that the device is complicated, number Big according to treating capacity, resource occupation is more, makes troubles to user.
Solved the problems, such as in the case of avoiding complex device and mass data from handling a kind of feasible thinking pursued and attacked be Bridge joint is set between host (for example, POS machine) and printer, information is pursued and attacked by bridgt circuit (bridge system) addition, but existing Having bridging technology is mostly SCM Based design scheme, and by single-chip microcontroller sending and receiving data, single-chip microcontroller receives warp by PHY chip Usb data after parsing is crossed, is not then related to the processing of USB underlying protocol in processing to printer by processing forward.Therefore It often will lead to the loss of usb data packet in processing, while there is also data forwardings to cause PC and printer logical not in time Letter is abnormal.There are four aspects for the reason of causing this problem to occur: 1) data processing fails to control usb protocol in the bottom, leads It causes inaccurate to the control of data;2) due to the limitation of single-chip microcontroller own operative frequency, the processing speed of single-chip microcontroller is slower, can not Meet the requirement of usb communication;3) pause computer end data can not be sent in the case where not influencing printer printing, frequently resulted in Computer end identifies that printer is abnormal.
Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of print data bridge system based on built-in Linux, A kind of bridging method for being adapted to the bridge system is additionally provided, to simplify treatment process, device requirement is reduced, is easy to use.
The technical scheme is that a kind of print data bridge system based on built-in Linux, mainly by embedded MCU(MicroController Unit, micro-control unit or single-chip microcontroller) and the FPGA(Field- that is connect with MCU Programmable Gate Array, field programmable gate array or field programmable gate array), it is interface module, logical Believe that module and memory module are constituted, the FPGA is serially connected between POS machine and printer, obtains POS hair by its output end Print data out is simultaneously sent to MCU, and the MCU parses print data, carries out pursuing and attacking setting according to printing configuration, will be through It crosses and pursues and attacks the print data comprising pursuing and attacking data of setting and send to FPGA, the FPGA is by its output end by superadd-print data To printer output, controls printer and implement printing.
The MCU preferably uses arm processor, is equipped with storage module, communication module and power module.
The FPGA is preferably provided with driving circuit, supports the connection with parallel port, serial ports and USB port, supports or does not support With the connection of network interface (for example, Ethernet interface).
In general, the parallel port meets IEEE1284 standard, the serial ports meets RS232 standard, and the USB meets USB 2.0 standards, the network interface are the Ethernet interface for meeting 802.3 standard of IEEE.
The MCU is equipped with embedded Linux system, and is equipped with corresponding application program.
The application program can specifically include that WEB configuration module, upgraded module, finger daemon module, network connecting module With business procedure module.
The business procedure module may be used primarily for:
1) cooperate with parallel port, serial ports, USB port, FPGA and network interface program, complete the acquisition of print data;
2) TCP communication is carried out with platform;
3) program initialization is carried out according to the configuration of local and platform;
4) upload of billing files is printed;
5) local parsing of bill and bill information upload;
6) the platform parsing of bill;
7) monitoring of tools information uploads;
8) remote control command is supported, for modifying program configuration and debugging;
9) log recording of key message and error message;
10) the two dimensional code superadd-print of local and platform push;
11) the marketing message superadd-print and update of local and platform push.
The CPU can send configuration by SPI interface or pursue and attack data to FPGA, include: preferably wherein
1) FPGA operating mode configures, and by the operating mode of this configuration FPGA, there are two types of the operating modes of the FPGA, packet It includes: a) intercepting and capturing mode;B) mode is pursued and attacked.
2) type of printer configures, and is stylus printer or thermal printer by this configuration printer;
3) bill keyword configuration data needs the bill keyword of superadd-print by this configuration;
4) signal filter delay configures, by this configuration to parallel port sampled data signal filter delay;
5) position configuration is pursued and attacked, superadd-print position is configured by this;
6) superadd-print data send the data for needing superadd-print by this configuration;
7) the cut paper configuration information filtered configures the cut paper data for sending and needing to filter by this.
The bridge system can be using any one print data bridge joint based on built-in Linux disclosed by the invention Method work.
A kind of print data bridging method based on built-in Linux, be arranged it is disclosed by the invention any one be based on it is embedding Enter the print data bridge system of formula Linux, the bridge system after receiving the print data from POS machine, beat by reading Print configuration, when needing directly printing bill, carries out bill according to these print datas control printer and beats according to printing configuration Print and/or display;When needing superadd-print to pursue and attack information, print data is saved as raw billing files, to original bill File is parsed, and print data is converted into picture or text, keyword is taken out, by MAC Address by removal control print command The format added timestamp generates the print data file after parsing, generates superadd-print data text according to the content to be pursued and attacked Part by the print data file and the printing of superadd-print data file after parsing and/or is shown as a complete bill, wherein Pursue and attack information be located at set in the bill pursue and attack region.
The printing or display that printer pursue and attack information can be controlled according to following manner: beating according to print data file Content before the tail of print or display raw billing files determines the printing pursued and attacked information in bill or display position according to printing configuration Set, when pursue and attack information in bill printing or display position be before the tail for being inserted in raw billing files between content and bill tail When, print data, foundation are pursued and attacked or shown behind content before the tail of raw billing files according to superadd-print data file Print data file prints or shows the bill tail of raw billing files pursuing and attacking behind information;When pursuing and attacking information in bill Printing or display position be behind the bill tail of raw billing files when, before the tail of raw billing files after content The bill tail of face printing or display raw billing files, foundation print data file is before the tail of raw billing files after content Face prints the bill tail of raw billing files, beats behind the bill tail of raw billing files according to superadd-print data file Information is pursued and attacked in print or display.
The FPGA can use following working method:
Step S1. is communicated with POS machine foundation;
Step S2. is communicated with printer foundation;
Step S3. receives the configuration whether ARM needs to carry out the printer data of POS superadd-print, if necessary to additional, S4 is entered step, S5 is otherwise entered step;
Step S4. superadd-print data.To the POS terminal data received, printer data is isolated, printer data is sentenced Break end tail, when being matched to rostral-caudal mark, carries out data by the way of to separated transmission partial data response NAK and cuts It is disconnected, it waits ARM to send the print data for needing superadd-print, after the print data for receiving superadd-print, these is printed into number According to transmitting to printer, waits ARM to send additional end mark and exited after receiving the addition end mark that ARM is sent Additional mode, enters step S5;
Step S5. forwards printer data.To the POS terminal data received, printer data is isolated, is beaten what is isolated Print machine data are transmitted directly to printer, keep POS and printer communication,
Step S3-S5 is repeated, until printing terminates.
The beneficial effects of the present invention are: obtaining type information in the environment of not destroying original POS machine and printer, realize Superadd-print, support comprehensively high speed, two-way string, simultaneously, the data of the printer of net, USB interface acquire and two dimensional code etc. is pursued and attacked The superadd-print function of information, realizes the simplification of equipment and data handling procedure, and effectively prevents appearance when superadd-print The phenomenon of stuck, superadd-print delay, acquisition data packetloss messy code etc., accomplishes plug and play.
Detailed description of the invention
Fig. 1 is product of the present invention usage scenario and the schematic diagram using framework;
Fig. 2 is the hardware structure schematic diagram of product of the present invention;
Fig. 3 is invention software configuration diagram.
Specific embodiment
Referring to Fig. 1 and Fig. 2, the present invention is the system of POS software and printer print data bridge joint under a kind of business environment, It is mainly made of embedded MCU and the FPGA being connect with MCU, interface module, communication module and memory module, with FPGA reality Bridge joint between existing POS machine and printer, the FPGA are equipped with corresponding driving circuit, it may be connected to parallel port, serial ports, USB Mouthful and network interface printer, by being serially connected between POS machine and printer, print data that available POS is issued and by its Standardized data formats are parsed into, while pursuing and attacking the data such as printing two dimensional code to increase the standard that will be parsed as needed Change the function that data upload to platform (for example, local area network platform or cloud platform).
The MCU can be using ARM(, that is, arm processor) as its central processing unit (CPU), form ARM and FPGA group The bridge system (shown in Figure 2) of conjunction is realized bridge interface (including parallel port, serial ports, USB port and network interface etc.).
Against the background of the prior art, kilomega network TCP protocol stack+gigabit MAC+ gigabit PHY can be integrated with by setting Chip or other suitable prior art means realize the connection of FPGA and network interface.
Against the background of the prior art, following standard can be used, the parallel port meets IEEE1284 standard, the serial ports symbol RS232 standard is closed, the USB meets 2.0 standard of USB, and the network interface is the Ethernet interface for meeting 802.3 standard of IEEE.
Parallel port, serial ports or USB interface agreement can be realized by FPGA, obtain agreement print data.FPGA can pass through Print data is sent to CPU(ARM by internal bus interface) end, bill analysis, parsing and the control to pursuing and attacking are realized by ARM Functions such as (pursuing and attacking content).
When implementation, the interfaces such as the parallel port of POS machine, serial ports, USB port and/or network interface (are arranged by the actual interface of POS machine And service condition) it is connected to the data input pin of bridge system, the data output end of bridge system is connected into parallel port, serial ports, USB port And/or network interface printer (by printer actual setting and service condition).
When POS machine prints bill (receipt), the print data of output is output to this bridge system by the corresponding interface Input terminal, the end CPU is transmitted to by FPGA, ARM according to whether pursue and attack determines how the output for carrying out print data, bridge joint Print data (bridge joint treated print data) is sent to printer by the data output end of system, is beaten by printer implementation Print.
After the print data that input terminal receives is from FPGA to CPU, business procedure can identify interception according to the bill of configuration and beat Printing later parses the bill parsing module that billing data is sent to ARM according to bill is formed, while it is flat to upload to cloud Platform.Bill parsing module can be parsed into billing data reference format, while judge whether to need superadd-print.It chases after if necessary Add printing, business procedure can pursue and attack data according to rule generation, can be sent to FPGA data are pursued and attacked later, FPGA passes through data Output end exports the print data for pursuing and attacking data and completes superadd-print to printer.
According to actual needs, can also by platform or by parsing module and platform common implementing print data parsing and Setting is pursued and attacked, bridge system uploads original print data by the communication with platform, after being parsed or including pursuing and attacking information Respective print data.
Bridge system embedded Linux system of the invention, including bootloader and Linux kernel are equipped with corresponding Application program, wherein bootloader and Linux kernel is customized by depth, including startup program and driver etc..
The application program specifically include that WEB configuration module, upgraded module, finger daemon module, network connecting module and Business procedure module.
Wherein:
The WEB configuration module is mainly used for:
1) platform connection configuration, relates generally to:
A) domain name or IP access;
B) port numbers.
2) network configuration, including cable network configuration, WiFi network configuration and mobile communications network (3G, 4G, 5G etc.) are matched It sets, wherein
The cable network configuration relates generally to:
A) DHCP;
B) static IP;
C) DNS.
The WiFi network configuration relates generally to:
A) SSID;
B) password.
3) configuration is intercepted and captured, is related generally to:
A) parallel port, serial ports, USB port, network interface;
B) each interface attributes configuration.
The upgraded module is mainly used for:
1) upgrade-system file;
2) upgrade WEB configuration module;
3) upgrade finger daemon program;
4) staging business program.
The finger daemon module is mainly used for:
1) necessary environment is created;
2) start business procedure;
3) business procedure is guarded.
The network connecting module is mainly used for:
1) internetwork connection mode is identified according to configuration file;
2) Ethernet connects;
3) WiFi connection;
4) 3G/4G is connected to the network.
The business procedure module is mainly used for:
1) cooperate with parallel port, serial ports, USB port, FPGA and network interface program, complete the acquisition of print data;
2) TCP communication is carried out with platform;
3) program initialization is carried out according to the configuration of local and platform;
4) upload of billing files is printed;
5) local parsing of bill and bill information upload;
6) the platform parsing of bill;
7) monitoring of tools information uploads;
8) remote control command is supported, for modifying program configuration and debugging;
9) log recording of key message and error message;
10) the two dimensional code superadd-print of local and platform push;
11) the marketing message superadd-print and update of local and platform push.
The CPU(ARM) configuration sent by SPI interface or pursues and attacks data to FPGA, including:
1) FPGA operating mode configures, and by the operating mode of this configuration FPGA, there are two types of the operating modes of the FPGA, packet It includes:
A) mode is intercepted and captured;
B) mode is pursued and attacked.
2) type of printer configures, and is stylus printer or thermal printer by this configuration printer;
3) bill keyword configuration data needs the bill keyword of superadd-print by this configuration;
4) signal filter delay configures, by this configuration to parallel port sampled data signal filter delay;
5) position configuration is pursued and attacked, superadd-print position is configured by this;
6) superadd-print data send the data for needing superadd-print by this configuration;
7) the cut paper configuration information filtered configures the cut paper data for sending and needing to filter by this.
The present invention can work according to following manner: after the print data (original print data) for receiving POS machine, read It takes printing to configure, according to printing configuration, when needing directly printing bill, carries out account according to these print datas control printer Singles' print and/or display;When needing superadd-print to pursue and attack information, print data is saved as raw billing files, to original Billing files are parsed, and print data is converted into picture or text, keyword is taken out, by MAC by removal control print command The format that address adds timestamp generates the print data file after parsing, generates superadd-print data according to the content to be pursued and attacked File by the print data file and the printing of superadd-print data file after parsing and/or is shown as a complete bill, In pursue and attack information be located at set in the bill pursue and attack region.
The printing or display that printer pursue and attack information can be controlled according to following manner: beating according to print data file Content before the tail of print or display raw billing files determines the printing pursued and attacked information in bill or display position according to printing configuration Set, when pursue and attack information in bill printing or display position be before the tail for being inserted in raw billing files between content and bill tail When, print data, foundation are pursued and attacked or shown behind content before the tail of raw billing files according to superadd-print data file Print data file prints or shows the bill tail of raw billing files pursuing and attacking behind information;When pursuing and attacking information in bill Printing or display position be behind the bill tail of raw billing files when, before the tail of raw billing files after content The bill tail of face printing or display raw billing files, foundation print data file is before the tail of raw billing files after content Face prints the bill tail of raw billing files, beats behind the bill tail of raw billing files according to superadd-print data file Information is pursued and attacked in print or display.
The FPGA can use following working method:
Step S1. is communicated with POS machine foundation;
Step S2. is communicated with printer foundation;
Step S3. receives the configuration whether ARM needs to carry out the printer data of POS superadd-print, if necessary to additional, S4 is entered step, S5 is otherwise entered step;
Step S4. superadd-print data.To the POS terminal data received, printer data is isolated, printer data is sentenced Break end tail, when being matched to rostral-caudal mark, carries out data by the way of to separated transmission partial data response NAK and cuts It is disconnected, it waits ARM to send the print data for needing superadd-print, after the print data for receiving superadd-print, these is printed into number According to transmitting to printer, waits ARM to send additional end mark and exited after receiving the addition end mark that ARM is sent Additional mode, enters step S5;
Step S5. forwards printer data.To the POS terminal data received, printer data is isolated, is beaten what is isolated Print machine data are transmitted directly to printer, keep POS and printer communication,
Step S3-S5 is repeated, until printing terminates.
Since the present invention is embedded in the operating system Linux of high-performance, multitask, which has source code and opens It puts, the advantages that kernel is small in size, occupying system resources are few, ensure that the reliability of system, meet the versatility demand of user, With multitasking ability, Function Extension is convenient.
Use embedded Linux system as the operating system of this product, advantage mainly has the following:
1) it can be applied to multiple hardwares platform.Linux has been transplanted to multiple hardwares platform, and prototype can be on standard platform It is transplanted to after exploitation on specific hardware, accelerates the development process of software and hardware.Linux uses a unified frame pair Hardware is managed, and the change from hardware platform to another hardware platform is unrelated with upper layer application.Linux can be random Ground configuration, does not need the cooperative relationship of any licensing or businessman, source code can be obtained freely.Embedded with network branch itself It holds, and this product is more demanding to network support.The high modularization of Linux is very easy to addition component.
2) Linux based on kernel, there is the control of complete internal storage access, support that a large amount of hardware are (existing including ARM etc. The most of chip having) etc. characteristics a kind of general-purpose operating system.Its program source code entire disclosure drives parallel port, and serial ports drives It is dynamic, USB driving, SPI driving, IIC driving, SD MMC driving, trawl performance, the driving of WIFI wireless network card, Ethernet driving etc. It is transplanted in this product linux system, application program is made to can control hardware capability.
3) linux system is with developing instrument perfect known to user, and the application software of nearly all linux system is all It has been migrated on embedded Linux system.Its powerful CompilerTools GCC, C++ etc. can also be readily available, not only at It is ripe perfect and easy to use.
POS machine or POS alleged by the present invention, also referred to as cash register, refer to transaction in for generate bill (including consumption it is small Ticket) or the print data of invoice etc. will pass through the equipment that printer or printing equipment carry out bill printing, carried on the back in the prior art Under scape, these print datas can also be shown by display screen or be sent out as e bill without being printed as paper bill, mesh Preceding this kind of device mainly uses commonly called POS machine.
It is disclosed by the invention it is each preferably with optional technological means, unless otherwise indicated and one preferably or can selecting technology hand Section is that further limiting for another technological means is outer, can form several different technical solutions in any combination.

Claims (10)

1. a kind of print data bridge system based on built-in Linux, it is characterised in that mainly by embedded MCU and with The FPGA of MCU connection, interface module, communication module and memory module are constituted, the FPGA be serially connected in POS machine and printer it Between, the print data of POS sending is obtained by its input terminal and is sent to MCU, the MCU parses print data, foundation Superadd-print configuration generates superadd-print data, and the data of pursuing and attacking generated by superadd-print configuration are sent to FPGA, described FPGA by its output end will superadd-print data to printer output, control printer and implement printing.
2. print data bridge system as described in claim 1, it is characterised in that the MCU uses arm processor, equipped with depositing Store up module, communication module and power module.
3. print data bridge system as described in claim 1, it is characterised in that the FPGA be equipped with driving circuit, support with The connection with network interface is supported or is not supported in the connection of parallel port, serial ports and USB port.
4. print data bridge system as described in claim 1, it is characterised in that the parallel port meets IEEE1284 standard, institute It states serial ports and meets RS232 standard, the USB meets 2.0 standard of USB, and the network interface is the ether for meeting 802.3 standard of IEEE Network interface.
5. print data bridge system as described in claim 1, it is characterised in that the MCU is equipped with embedded Linux system, And be equipped with corresponding application program, the application program specifically include that WEB configuration module, upgraded module, finger daemon module, Network connecting module and business procedure module.
6. print data bridge system as described in claim 1, it is characterised in that the business procedure module is mainly used for:
Cooperate with parallel port, serial ports, USB port, FPGA and network interface program, completes the acquisition of print data;
TCP communication is carried out with platform;
Program initialization is carried out according to the configuration of local and platform;
Print the upload of billing files;
The local parsing of bill and bill information upload;
The platform of bill parses;
Monitoring of tools information uploads;
Remote control command is supported, for modifying program configuration and debugging;
The log recording of key message and error message;
The two dimensional code superadd-print of local and platform push;
The marketing message superadd-print and update of local and platform push.
7. print data bridge system as described in claim 1, it is characterised in that the CPU is sent by SPI interface and configured Or pursue and attack data to FPGA, including:
The configuration of FPGA operating mode, by the operating mode of this configuration FPGA, there are two types of the operating modes of the FPGA, packet It includes: a) intercepting and capturing mode;B) mode is pursued and attacked;
Type of printer configuration is stylus printer or thermal printer by this configuration printer;
Bill keyword configuration data needs the bill keyword of superadd-print by this configuration;
Signal filter delay configuration, by this configuration to parallel port sampled data signal filter delay;
Position configuration is pursued and attacked, superadd-print position is configured by this;
Superadd-print data send the data for needing superadd-print by this configuration;
The cut paper configuration information of filtering configures the cut paper data for sending and needing to filter by this.
8. a kind of print data bridging method based on built-in Linux, it is characterised in that bridge as described in claim 1 is arranged Welding system, the bridge system reads printing configuration after receiving the print data from POS machine, according to printing configuration, In When needing directly to print bill, bill printing and/or display are carried out according to these print datas control printer;It is needing to add When information is pursued and attacked in printing, print data is saved as raw billing files, raw billing files are parsed, removal control is beaten Print data is converted into picture or text, takes out keyword by print instruction, generates parsing by the format that MAC Address adds timestamp Print data file afterwards generates superadd-print data file according to the content to be pursued and attacked, by the print data text after parsing Part and superadd-print data file print and/or are shown as a complete bill, set wherein pursuing and attacking information and being located in the bill Fixed pursues and attacks region.
9. print data bridge system as described in claim 1, it is characterised in that carried out according to following manner control printer Pursue and attack the printing or display of information: according to content before the tail of print data file printing or display raw billing files, foundation is beaten Printing or display position of the information in bill are pursued and attacked in print configuration determination, when pursuing and attacking printing or display position of the information in bill When to be inserted in front of the tail of raw billing files between content and bill tail, according to superadd-print data file in raw billing files Tail before pursue and attack or show print data behind content, pursuing and attacking printing or display information behind according to print data file The bill tail of raw billing files;It is the bill in raw billing files when pursuing and attacking printing or display position of the information in bill When behind tail, the bill tail of raw billing files, foundation are printed or shown behind content before the tail of raw billing files Print data file prints the bill tail of raw billing files before the tail of raw billing files behind content, beat according to addition Print data file, which is printed or shown behind the bill tail of raw billing files, pursues and attacks information.
10. print data bridge system as described in claim 1, it is characterised in that the FPGA can use following work side Formula:
Step S1. is communicated with POS machine foundation;
Step S2. is communicated with printer foundation;
Step S3. receives the configuration whether ARM needs to carry out the printer data of POS superadd-print, if necessary to additional, S4 is entered step, S5 is otherwise entered step;
Step S4. superadd-print data are isolated printer data, are sentenced to printer data to the POS terminal data received Break end tail, when being matched to rostral-caudal mark, carries out data by the way of to separated transmission partial data response NAK and cuts It is disconnected, it waits ARM to send the print data for needing superadd-print, after the print data for receiving superadd-print, these is printed into number According to transmitting to printer, waits ARM to send additional end mark and exited after receiving the addition end mark that ARM is sent Additional mode, enters step S5;
Step S5. forwarding printer data isolates printer data to the POS terminal data received, beats what is isolated Print machine data are transmitted directly to printer, keep POS and printer communication,
Step S3-S5 is repeated, until printing terminates.
CN201910727280.9A 2019-08-07 2019-08-07 Print data bridging system and bridging method based on embedded Linux Active CN110531942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910727280.9A CN110531942B (en) 2019-08-07 2019-08-07 Print data bridging system and bridging method based on embedded Linux

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910727280.9A CN110531942B (en) 2019-08-07 2019-08-07 Print data bridging system and bridging method based on embedded Linux

Publications (2)

Publication Number Publication Date
CN110531942A true CN110531942A (en) 2019-12-03
CN110531942B CN110531942B (en) 2023-03-28

Family

ID=68662171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910727280.9A Active CN110531942B (en) 2019-08-07 2019-08-07 Print data bridging system and bridging method based on embedded Linux

Country Status (1)

Country Link
CN (1) CN110531942B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756799A (en) * 2020-05-20 2020-10-09 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information
CN113253949A (en) * 2021-02-05 2021-08-13 深圳怡化电脑股份有限公司 Printing control method and device
CN114564158A (en) * 2022-04-24 2022-05-31 北京圣博润高新技术股份有限公司 Method, device, equipment and medium for controlling document printing under Linux system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205028396U (en) * 2015-09-11 2016-02-10 南京艾逛信息科技有限公司 Pos machine terminal print system
CN206441292U (en) * 2017-02-20 2017-08-25 威海精讯畅通电子科技有限公司 A kind of new receipt Printer Information collection and long-range additional instrument
US20170262739A1 (en) * 2016-03-09 2017-09-14 Seiko Epson Corporation Configuration of Equipment with Retailer and Geolocation Information
CN107329711A (en) * 2017-06-07 2017-11-07 上海悦商信息科技有限公司 A kind of print data collection device
CN107521237A (en) * 2016-06-20 2017-12-29 东芝泰格有限公司 Bill printer and its control method, terminal device
WO2018053558A1 (en) * 2016-09-15 2018-03-22 Seevnarayan Pravir A device and system for generating an augmented receipt

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205028396U (en) * 2015-09-11 2016-02-10 南京艾逛信息科技有限公司 Pos machine terminal print system
US20170262739A1 (en) * 2016-03-09 2017-09-14 Seiko Epson Corporation Configuration of Equipment with Retailer and Geolocation Information
CN107521237A (en) * 2016-06-20 2017-12-29 东芝泰格有限公司 Bill printer and its control method, terminal device
WO2018053558A1 (en) * 2016-09-15 2018-03-22 Seevnarayan Pravir A device and system for generating an augmented receipt
CN206441292U (en) * 2017-02-20 2017-08-25 威海精讯畅通电子科技有限公司 A kind of new receipt Printer Information collection and long-range additional instrument
CN107329711A (en) * 2017-06-07 2017-11-07 上海悦商信息科技有限公司 A kind of print data collection device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756799A (en) * 2020-05-20 2020-10-09 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information
CN111756799B (en) * 2020-05-20 2023-04-07 拉扎斯网络科技(上海)有限公司 Method and device for processing printing information
CN113253949A (en) * 2021-02-05 2021-08-13 深圳怡化电脑股份有限公司 Printing control method and device
CN114564158A (en) * 2022-04-24 2022-05-31 北京圣博润高新技术股份有限公司 Method, device, equipment and medium for controlling document printing under Linux system
CN114564158B (en) * 2022-04-24 2022-07-15 北京圣博润高新技术股份有限公司 Method, device, equipment and medium for controlling document printing under Linux system

Also Published As

Publication number Publication date
CN110531942B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN107203484B (en) PCIe and SRIO bus bridging system based on FPGA
CN110531942A (en) Print data bridge system and bridging method based on built-in Linux
Deri Improving passive packet capture: Beyond device polling
CN105868149B (en) Serial port information transmission method and device
WO2021000717A1 (en) Method and apparatus for processing io
US20070140263A1 (en) Virtual machine system and method of network communication between virtual machines
US20030131136A1 (en) Method and apparatus for emulating an OS-supported communication device to enable remote debugging
WO2018223513A1 (en) Bluetooth testing method, terminal device, and computer readable storage medium
CN103384274B (en) Public network based on http agreement connects the communication means of inner net computer
CN104506379A (en) Method and system for capturing network data
CN102387045A (en) Embedded point to point (P2P) flow monitoring system and method thereof
CN112286746A (en) Universal verification platform and method for AXI slave device interface
CN108419336B (en) LED light screen control system and implementation method thereof
CN112035899B (en) Data communication system and method based on password card
CN111600852A (en) Firewall design method based on programmable data plane
CN103092648B (en) A kind of image upgrade method, system and subscriber equipment and personal computer
CN110531941A (en) Printer based on android system
JP2001519060A (en) Controllerless modem
WO2014000299A1 (en) Serial port redirection processing method, device, and system
CN109933411B (en) System and method for modifying internal configuration of virtual machine on line
CN110517419A (en) Interception serial ports cash register print data and the method and system for pursuing and attacking additional information
CN110533848A (en) Interception parallel port cash register print data and the method and system for pursuing and attacking additional information
Nguyen et al. Scalable network monitors for high-speed links: a bottom-up approach
JPH1055332A (en) Information processing system management device, pos terminal system, and automatic structuring method for the system
CN105354055A (en) Upgrade method for electric power acquisition terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Printing Data Bridging System and Bridging Method Based on Embedded Linux

Effective date of registration: 20231212

Granted publication date: 20230328

Pledgee: Zhongguancun Branch of Bank of Beijing Co.,Ltd.

Pledgor: BEIJING DATA DRIVEN TECHNOLOGY CO.,LTD.

Registration number: Y2023980070872

PE01 Entry into force of the registration of the contract for pledge of patent right