CN102566950A - Shared printing method by taking wireless router as print server - Google Patents

Shared printing method by taking wireless router as print server Download PDF

Info

Publication number
CN102566950A
CN102566950A CN2012100407875A CN201210040787A CN102566950A CN 102566950 A CN102566950 A CN 102566950A CN 2012100407875 A CN2012100407875 A CN 2012100407875A CN 201210040787 A CN201210040787 A CN 201210040787A CN 102566950 A CN102566950 A CN 102566950A
Authority
CN
China
Prior art keywords
wireless router
circuit
printing
control unit
request message
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
CN2012100407875A
Other languages
Chinese (zh)
Other versions
CN102566950B (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201210040787.5A priority Critical patent/CN102566950B/en
Publication of CN102566950A publication Critical patent/CN102566950A/en
Application granted granted Critical
Publication of CN102566950B publication Critical patent/CN102566950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a shared printing method by taking a wireless router as a print server. The method is realized based on a system, wherein the system is composed of a client host, the wireless router with a master control unit and a wireless access module, and a printer. Importantly, in the structure of the wireless router, a common unix printing system (CUPS) print server program module circuit connected with the master control unit, and a universal serial bus (USB) interface circuit, are added; and the wireless router is connected with the printer via the USB interface circuit, on that basis, shared printing is realized. The shared printing method has the following benefits that: the function of a USB print server is directly added in the wireless router, and the function of the wireless router and the function of the USB print server are integrated together for being used in a shared printing system, in this way, the cost is reduced greatly, and the printing system is convenient to maintain.

Description

A kind of with the shared Method of printing of wireless router as printing server
Technical field
The invention belongs to the printing technique field of sharing, relate to a kind ofly, specifically the printing server program module is integrated in the wireless router and a kind of shared Method of printing of realizing with the shared Method of printing of wireless router as printing server.
Background technology
Printer main flow interface is USB in the market, and USB has fast, the easy use of speed, simple, the topological bus of PCB layout can connect advantages such as a plurality of equipment; Trend such as printer has networking, resource height to share, interface standard is unified.Print in order to realize sharing; Common office uses a computing machine to do printer server separately, will increase hardware cost like this, has increased the software and hardware maintenance cost simultaneously; An independent computing machine and need take lan address and just can carry out network and share; And generally printing server all needed do not cut off the power supply and satisfied office printing demand in 24 hours, can increase the electric energy use cost like this, and the personal computer volume took usage space than conference.
Summary of the invention
The present invention uses the defective that an independent computing machine is high, difficult in maintenance as the hardware cost that printing server causes and take up room in order to solve; Designed a kind of with the shared Method of printing of wireless router as printing server; Be integrated into USB printer server function on the wireless router and realize that easily wireless sharing prints, have simultaneously be convenient for carrying, low in energy consumption, cost is low, it is little to take up room, configuration is easy to characteristics.
The technical scheme that the present invention adopts is: a kind of with the shared Method of printing of wireless router as printing server; This method is based on by client host; Have main control unit and radio access module wireless router; The system that printer makes up realizes that key is: set up the CUPS printing server program module circuit that is connected with main control unit in the structure of wireless router, reach usb circuit, wireless router is connected with printer by usb circuit; On this basis, realize comprising in the shared step of printing:
A, client host send the print request message to wireless router by network;
Main control unit in B, the wireless router receives the print request message that client host is sent by radio access module, is sent to CUPS printing server program module circuit and handles, and the result after the processing is forwarded to printer by usb circuit;
C, printer print output.
The invention has the beneficial effects as follows: like this, directly join USB printing server program module function in the wireless router, unite two into one wireless router function and USB printing server function to realize sharing and print; Reduced cost greatly, and maintained easily, simultaneously; Need in wireless router, not carry out independent network settings yet, not need extra netting twine yet, nor need extra direct supply USB printing server program module; Also save the power source conversion hardware cost; Make and the wireless router power saving more of band USB printing server function have quick practicality, characteristics such as low cost.
Description of drawings
Fig. 1 is a system architecture diagram of the present invention.
In the accompanying drawing, 1-1,1-2 ... 1-N represents client host, and the 2nd, wireless router; 2-1 is a radio access module, and 2-2 is a main control unit, and 2-3 is a usb circuit; 2-4 is a CUPS printing server program module circuit; 2-5 is a SMB service routine modular circuit, and 2-6 is a LPD service routine modular circuit, the 3rd, and printer.
Embodiment
A kind of with the shared Method of printing of wireless router as printing server; This method is based on by client host 1-1,1-2 ... 1-N; Have main control unit 2-2 and radio access module 2-1 wireless router 2; The system that printer 3 makes up realizes, importantly: set up the CUPS printing server program module circuit 2-4 that is connected with main control unit 2-2 in the structure of wireless router 2, reach usb circuit 2-3, wireless router 2 is connected with printer 3 by usb circuit 2-3; On this basis, realize comprising in the shared step of printing:
A, client host 1-1,1-2 ... 1-N sends the print request message to wireless router 2 by network;
Main control unit 2-2 in B, the wireless router 2 receives client host 1-1,1-2 by radio access module 2-1 ... The print request message that 1-N sends; Be sent to CUPS printing server program module circuit 2-4 and handle, the result after the processing is forwarded to printer 3 by usb circuit 2-3;
C, printer 3 print output.
Also comprise SMB service routine modular circuit 2-5 in the structure of described wireless router 2, reach LPD service routine modular circuit 2-6; On this basis; Main control unit 2-2 receives client host 1-1,1-2 by radio access module 2-1 among the step B ... After the print request message that 1-N sends, also set up as judging:
B1, main control unit 2-2 discern the protocol type of printing request message, if communication protocol is the SMB agreement, then skip to step B2; If be the LPR agreement, then skip to step B3; If be the IPP agreement, main control unit 2-2 is sent to CUPS printing server program module circuit 2-4 with the print request message, skips to step B4;
B2, main control unit 2-2 are sent to SMB service routine modular circuit 2-5 with the print request message, after SMB service routine modular circuit 2-5 converts the print request message to file layout, are sent to CUPS printing server program module circuit 2-4, skip to step B4;
B3, main control unit 2-2 are sent to LPD service routine modular circuit conversion 2-6 with the print request message; After LPD service routine modular circuit conversion 2-6 converts the print request message to CUPS printing server program module circuit 2-4 ability recognition data; Be sent to CUPS printing server program module circuit 2-4, skip to step B4;
B4, CUPS printing server program module circuit 2-4 handle.
Here LPD (Line Printer Daemon) is the line printer background program; It is a background program that is installed on the UNIX/Linux printing server; LPR (line printer remote) is the print protocol of linux/unix system; And LPD is a service routine of realizing receiving this agreement, and this also is a compatibility of being windows and linux.
The operating system of described wireless router 2 is Embedded linux systems.Use many embedded systems Linux to be arranged, WinCE, VxWorks at present; UC/OS, Nucleus, all there are its relative merits in each system; Each embedded system obtained promoting with different application needs in different periods, and WinCE, VxWorks; UC/OS, Nucleus are the embedded OSs of paying, and can obtain good technical support on stream.Linux system is used operating system the widest and that increase income; Its characteristics increase income exactly, freely, the convenient transplanting; Interface is unified, and has the huge tissue of increasing income can be through the forum that increases income regardless of encountering problems in actual performance history, or alternate manner is looked for solution; Particularly its powerful and ripe protocol stack support is to use the embedded Linux system on the at present big portion router.
In the specific implementation; Usb circuit 2-3 in the wireless router 2; When specifically using, be USB 2.0 interfaces (compatible USB1.1); Based on the wireless router on the embedded Linux system 2, and move into a kind of wireless router 2 of CUPS printing server program module circuit 2-4 composition with the printing server function.Its principle is that wireless router 2 adds the CUPS printing server program module circuit 2-4 that increases income; And the network printing port monitored; Join the print job formation if any print out task and change the usb circuit 2-3 to the linux system, printer 3 is accomplished with the USB printer driver of linux system and is printed then.Client host 1-1,1-2 ... What the network that 1-N uses connected is wireless network or cable network.Meet a hub USB HUB on the usb circuit 2-3 in wireless router 2 and just can realize that plurality of printers 3 is incorporated on the wireless router 2, realized that like this plurality of printers carries out network printing.
Client host 1-1,1-2 ... 1-N is main with the Windows system user, and two kinds of selections are arranged: 1, directly share with the SMB agreement and print connection; 2, support the printing function of IPP agreement; Directly use HTTP to print the transmission data; And client host is if the Unix/Linux system; Then adopt the LPR agreement to print data transmission, No. 518 ports and CUPS printing server program module circuit 2-4 that its communication interface is based on TCP carry out communication.First kind of client host uses the SMB agreement to communicate through the SMB service routine modular circuit 2-5 of network and wireless router linux system platform; SMB service routine modular circuit 2-5 converts print out task to file and is put on the temp directory; Notify CUPS printing server program module circuit 2-4 to add print queue then; Its transmission data declaration SMB adopts is that UDP 137 ports, UDP 138 ports, TCP 139 ports, TCP 445 ports in the IP agreement carry out communication, and this is a SMB agreement regulation; Second kind of client is the IPP protocol client, and this mainly is to carry out communication through TCP 631 port agreements, and IPP itself is exactly the network printing service agreement; The 3rd client is the print client program of unix system and linux system; Client host uses the LPR agreement to communicate through the LPD service routine modular circuit 2-6 of network and wireless router linux system platform; After LPD service routine modular circuit 2-6 receives print out task; Notice CUPS printing server program module circuit 2-4 adds print queue, and what this client was used is that TCP 518 ports carry out network communication.
Printer brand and model that CUPS printing server program module circuit 2-4 supports are wide; Covered the printer of existing market main flow; Also have CUPS printing server program that the printing interface of standard is provided, make application program also need not be concerned about the hardware interface of printer in local printing, extendibility is good; And simplified mining inetesity; Characteristics such as simultaneously CUPS printer server program printer drives and supports it also is fairly perfect, also is the print routine of very ripe, stable linux system, and exploitation and the cost of safeguarding are low.

Claims (3)

1. one kind with the shared Method of printing of wireless router as printing server; This method is based on by client host (1-1,1-2 ... 1-N); Have main control unit (2-2) and radio access module (2-1) wireless router (2); The system that printer (3) makes up realizes, it is characterized in that: set up the CUPS printing server program module circuit (2-4) that is connected with main control unit (2-2) in the structure of wireless router (2), reach usb circuit (2-3), wireless router (2) is connected with printer (3) by usb circuit (2-3); On this basis, realize comprising in the shared step of printing:
A, client host (1-1,1-2 ... 1-N) send the print request message to wireless router (2) by network;
Main control unit (2-2) in B, the wireless router (2) receives client host (1-1,1-2 by radio access module (2-1) ... The print request message of 1-N) sending; Be sent to CUPS printing server program module circuit (2-4) and handle, the result after the processing is forwarded to printer (3) by usb circuit (2-3);
C, printer (3) print output.
2. according to claim 1 a kind of with the shared Method of printing of wireless router as printing server; It is characterized in that: also comprise SMB service routine modular circuit (2-5) in the structure of described wireless router (2), reach LPD service routine modular circuit (2-6); On this basis; Main control unit among the step B (2-2) receives client host (1-1,1-2 by radio access module (2-1) ... After the print request message of 1-N) sending, also set up as judging:
B1, main control unit (2-2) are discerned the protocol type of printing request message, if communication protocol is the SMB agreement, then skip to step B2; If be the LPR agreement, then skip to step B3; If be the IPP agreement, main control unit (2-2) is sent to CUPS printing server program module circuit (2-4) with the print request message, skips to step B4;
B2, main control unit (2-2) are sent to SMB service routine modular circuit (2-5) with the print request message; After SMB service routine modular circuit (2-5) converts the print request message to file layout; Be sent to CUPS printing server program module circuit (2-4), skip to step B4;
B3, main control unit (2-2) are sent to LPD service routine modular circuit conversion 2-6 with the print request message); LPD service routine modular circuit conversion 2-6) with the print request message convert to CUPS printing server program module circuit (2-4) can recognition data after; Be sent to CUPS printing server program module circuit (2-4), skip to step B4;
B4, CUPS printing server program module circuit (2-4) are handled.
3. according to claim 1 a kind of with the shared Method of printing of wireless router as printing server, it is characterized in that: the operating system of described wireless router (2) is Embedded linux system.
CN201210040787.5A 2012-02-22 2012-02-22 A kind of shared Method of printing using wireless router as printing server Active CN102566950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210040787.5A CN102566950B (en) 2012-02-22 2012-02-22 A kind of shared Method of printing using wireless router as printing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210040787.5A CN102566950B (en) 2012-02-22 2012-02-22 A kind of shared Method of printing using wireless router as printing server

Publications (2)

Publication Number Publication Date
CN102566950A true CN102566950A (en) 2012-07-11
CN102566950B CN102566950B (en) 2015-11-18

Family

ID=46412472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210040787.5A Active CN102566950B (en) 2012-02-22 2012-02-22 A kind of shared Method of printing using wireless router as printing server

Country Status (1)

Country Link
CN (1) CN102566950B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019634A (en) * 2012-12-05 2013-04-03 无锡方圆环球显示技术股份有限公司 Printing system based on transmission medium such as bluetooth on Android platform
CN104375788A (en) * 2014-11-13 2015-02-25 深圳市无微不至数字技术有限公司 Wireless printer
CN105291613A (en) * 2014-07-04 2016-02-03 佳能株式会社 Information processing device, and control method for information processing device
CN106354440A (en) * 2015-07-22 2017-01-25 珠海优特电力科技股份有限公司 Method and system of printing device-sharing between intelligent electronic devices in substations
CN109542371A (en) * 2018-11-26 2019-03-29 广东中兴新支点技术有限公司 Method of printing and device based on homemade chip linux system
CN111339014A (en) * 2020-03-02 2020-06-26 芯启源(上海)半导体科技有限公司 USB equipment sharing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2621365Y (en) * 2003-06-09 2004-06-23 深圳市世纪经纬数据系统有限公司 Radio AP route apparatus
CN101676858A (en) * 2008-09-19 2010-03-24 英业达股份有限公司 Network print system and transmission method thereof
CN201623723U (en) * 2010-02-05 2010-11-03 东莞市广易电子科技有限公司 Integrated network office system
CN102147718A (en) * 2010-02-10 2011-08-10 佳能株式会社 Print job management apparatus, print job management method, and image forming apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2621365Y (en) * 2003-06-09 2004-06-23 深圳市世纪经纬数据系统有限公司 Radio AP route apparatus
CN101676858A (en) * 2008-09-19 2010-03-24 英业达股份有限公司 Network print system and transmission method thereof
CN201623723U (en) * 2010-02-05 2010-11-03 东莞市广易电子科技有限公司 Integrated network office system
CN102147718A (en) * 2010-02-10 2011-08-10 佳能株式会社 Print job management apparatus, print job management method, and image forming apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019634A (en) * 2012-12-05 2013-04-03 无锡方圆环球显示技术股份有限公司 Printing system based on transmission medium such as bluetooth on Android platform
CN105291613A (en) * 2014-07-04 2016-02-03 佳能株式会社 Information processing device, and control method for information processing device
CN104375788A (en) * 2014-11-13 2015-02-25 深圳市无微不至数字技术有限公司 Wireless printer
CN104375788B (en) * 2014-11-13 2019-03-08 深圳市无微不至数字技术有限公司 Wireless printer
CN106354440A (en) * 2015-07-22 2017-01-25 珠海优特电力科技股份有限公司 Method and system of printing device-sharing between intelligent electronic devices in substations
CN106354440B (en) * 2015-07-22 2020-01-21 珠海优特电力科技股份有限公司 Method and system for sharing printing devices among intelligent electronic devices in transformer substation
CN109542371A (en) * 2018-11-26 2019-03-29 广东中兴新支点技术有限公司 Method of printing and device based on homemade chip linux system
CN111339014A (en) * 2020-03-02 2020-06-26 芯启源(上海)半导体科技有限公司 USB equipment sharing device

Also Published As

Publication number Publication date
CN102566950B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN102566950B (en) A kind of shared Method of printing using wireless router as printing server
JP5958164B2 (en) Control apparatus, method and program, system, and information processing method
WO2017128953A1 (en) Server virtualization network sharing apparatus and method
CN203734701U (en) Security zone crossing enterprise service bus transmission system
US9197490B2 (en) System and method for providing remote management of a switching device
CN103152183A (en) Electric modem switching device and method for mutual switching of electric signals and network signals
US9176555B2 (en) Power over ethernet power harvester
WO2011137806A2 (en) Method, platform device and system for setting service single-board address
CN113645047B (en) Out-of-band management system and server based on intelligent network card
CN105099776A (en) Cloud server management system
CN112769602A (en) System and method for unified configuration management of white box switch and network operating system
WO2013189069A1 (en) Load sharing method and device, and single board
CN203554493U (en) Server remote management interface system
CN104182322A (en) PSoC-based high-density server redundancy monitoring and management method
CN106790707A (en) A kind of new cloud computing system
CN204119267U (en) A kind of compact 10,000,000,000 switch device based on SDN technology
CN103986613A (en) Remote KVM (kernel-based virtual machine) management method based on network
CN108366002B (en) Multifunctional computer network monitoring system
CN102427478A (en) Method for constructing overlay server as well as server system
CN203537418U (en) Electric-network cloud computing management system
CN110309031B (en) Load balancing micro-computing cluster architecture
CN203014835U (en) Ethernet power supply device
CN102739695A (en) Remote control method for power distributor unit
CN202353605U (en) Macro control system for cloud equipment
CN114567671B (en) ARM server and data transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant