CN103412728B - The method and system of device file printing based on LAN - Google Patents
The method and system of device file printing based on LAN Download PDFInfo
- Publication number
- CN103412728B CN103412728B CN201310289295.4A CN201310289295A CN103412728B CN 103412728 B CN103412728 B CN 103412728B CN 201310289295 A CN201310289295 A CN 201310289295A CN 103412728 B CN103412728 B CN 103412728B
- Authority
- CN
- China
- Prior art keywords
- equipment
- file
- lan
- information
- printer
- 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and system of the device file printing based on LAN, methods described includes:First equipment, second equipment into LAN sends information of reaching the standard grade;Second equipment feeds back response message according to information of reaching the standard grade to the first equipment;First equipment receiving printing orders, select one of second equipment with being provided with printer to set up according to response message to communicate to connect, and the data information transfer of the IP address, port numbers, file to be printed path of itself will be carried to selected second equipment by communicating to connect passage;Selected second equipment obtains file to be printed, the driving printing file according to data message from the first equipment.The method and system that the present invention is provided, without movable storage device and/or the file of the first equipment can not be being sent by the 3rd application program in the case of being provided with the second equipment of printer, remain to print file to be printed in the first equipment by second device drives, improve the experience effect of user.
Description
Technical field
The present invention relates to local area network technology field, more particularly, to a kind of method of the device file printing based on LAN
And system.
Background technology
With the popularization of intelligent movable equipment, usually it is stored with smart mobile phone, tablet personal computer even intelligent television important
File, when needing to come out these file printouts, it is necessary first to by movable storage device by these equipment text to be printed
Part, which is copied to, to be connected with printing device computer, and passing through connected printing device by computer comes out file printout.
The mode of file brings very big inconvenience to user in above-mentioned this printing smart machine, when user does not move at hand
Storage device, when can not send file to computer by third party application again, then the file in these smart machines can not
Printing.
The content of the invention
It is a primary object of the present invention to provide a kind of method and system of the device file printing based on LAN, do not having
There is movable storage device and/or can not be sent smart machine file to being provided with setting for printer by third party application
In the case of standby, the printer that can still be by the equipment installation goes out corresponding file printout in the equipment of file to be printed
Come, improve the experience effect of user.
The present invention proposes a kind of method of the device file printing based on LAN, including:
First equipment sends information of reaching the standard grade by the second equipment of the router into LAN;
Second equipment feeds back response message by the router according to information of reaching the standard grade to the first equipment;
First equipment receiving printing orders, select one of second equipment with being provided with printer to set up according to response message
Communication connection;
First equipment will carry the IP address, port numbers, file to be printed road of itself by the communication connection passage
The data information transfer in footpath is to selected second equipment;
Selected second equipment obtains file to be printed according to the data message from the first equipment, drives and itself installs
Printer print the file.
Preferably, the information of reaching the standard grade includes:IP address, the port numbers of first equipment;
The response message includes:IP address, the port numbers of second equipment;
IP address, port numbers of second equipment in information of reaching the standard grade feed back the response message to the first equipment;
IP address, port numbers of first equipment according to the first equipment, and selected second equipment IP address, port
Number, set up the communication connection with selected second equipment.
Preferably, the response message also includes:The type information of second equipment;
The type of second equipment includes:Common PC types, the PC types for being provided with printer, intelligent type;
First equipment selects one of second equipment with being provided with printer to set up communication connection according to response message
Specifically include:
The type information of the second equipment in the response message that first equipment is fed back according to each second equipment, it is determined that each
The type of second equipment, and select to set up communication connection with being provided with one of second equipment of PC types of printer.
Preferably, the printer that selected second device drives itself are installed also includes after printing the file:
Selected second equipment deletes the file to be printed obtained from the first equipment.
Preferably, first equipment is set up after communication connection with selected second equipment and also included:
Second equipment of first equipment into LAN sends offline information;
Selected second equipment disconnects the communication connection with the first equipment according to the offline information.
Preferably, the communication connection set up between first equipment and selected second equipment is Socket connections or is
HTTP connections.
The present invention separately proposes a kind of system of the device file printing based on LAN, including:
First equipment, for sending information of reaching the standard grade by second equipment of the router into LAN;Receiving printing orders,
One of second equipment of the response message selection fed back according to the second equipment with being provided with printer, which is set up, to be communicated to connect;And pass through
The communication connection passage will carry the data information transfer of the IP address, port numbers, file to be printed path of itself to institute
Select the second equipment;
Second equipment, the information of reaching the standard grade for being sent according to the first equipment should to the first equipment feedback by the router
Answer information;When one second equipment is provided with printer, it is chosen as setting up communication connection with the first equipment, and receive the first equipment
The data message of transmission, then selected second equipment, which is additionally operable to be obtained from the first equipment according to the data message, waits to beat
The file of print, drives the printer itself installed to print the file.
Preferably, the information of reaching the standard grade includes:IP address, the port numbers of first equipment;
The response message includes:IP address, the port numbers of second equipment;
Second equipment, is specifically additionally operable to the IP address in information of reaching the standard grade, port numbers and feeds back institute to the first equipment
State response message;
First equipment, be specifically additionally operable to IP address, the port numbers according to itself, and selected second equipment IP
Location, port numbers are set up with selected second equipment and communicated to connect.
Preferably, the response message also includes:The type information of second equipment;
The type of second equipment includes:Common PC types, the PC types for being provided with printer, intelligent type;
First equipment, the class for the second equipment being specifically additionally operable in the response message according to each second equipment feedback
Type information, it is determined that the type of each second equipment, and select with being provided with the foundation of one of second equipment of PC types of printer
Communication connection.
Preferably, selected second equipment, is additionally operable to after the printer that itself is installed prints the file, deletes described
File.
Preferably, first equipment, the second equipment being additionally operable into LAN sends offline information;
Selected second equipment, for being set up with the first equipment after communication connection, according to the offline of the first equipment transmission
Information disconnects the communication connection with the first equipment.
Preferably, the communication connection set up between first equipment and selected second equipment is Socket connections or is
HTTP connections.
A kind of method and system of device file printing based on LAN provided by the present invention, needs the of mimeograph documents
One equipment is sent after information of reaching the standard grade, receiving printing orders by the second equipment into LAN, is fed back according to the second equipment
Response message selects to set up communication connection with being provided with one of second equipment of printer;And will be carried by communication connection passage
IP address, port numbers, the data information transfer in file to be printed path to selected second equipment of itself;So that selected second sets
It is standby to obtain file to be printed from the first equipment according to data message, and the mode of the printer printing file is driven,
There is no movable storage device and/or can not be sent the first device file to being provided with the of printer by the 3rd application program
In the case of two equipment, remain to print text to be printed in the first equipment by the second device drives printer for being provided with printer
Part, improves the experience effect of user.
Brief description of the drawings
Fig. 1 is the flow chart of the method preferred embodiment of the printing of the device file based on LAN of the present invention;
Fig. 2 is the structural representation of the System Preferred embodiments of the printing of the device file based on LAN of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of method preferred embodiment of device file printing based on LAN of the present invention, institute
The method of stating includes:
Step S101, the first equipment send information of reaching the standard grade by the second equipment of the router into LAN.
In this step, the information of reaching the standard grade includes:IP address, the port numbers of first equipment.Certainly other can also be included
Information, can be sent, the UDP messages are specially with the form of UDP messages:
UDP->IP:255.255.255.255 port:6544
Data contents:“
version:X
packetNo:xx
senderName:xx
senderHost:xx
commandNo:1
additionalSection:xx\0”;
Wherein, " packetNo " is the bag name named with system time in the Data fields of UDP messages;“senderName”
It is implementor name;" senderHost " is the title for sending main frame;" commandNo " is order code word;
" additionalSection " is extra information field, such as device type." 1 " is the life that equipment is reached the standard grade defined in this message
Make code word;It is the offline order code word of equipment to define " 2 ", and it is the order code word that response confirms to define " 3 ", and Data contents are every
Be between individual field by ":" connection, and " 0 " be end mark burst of data.
Step S102, the second equipment feed back response message by the router according to information of reaching the standard grade to the first equipment.
In this step, the response message includes:IP address, the port numbers of second equipment.Wherein, the second equipment tool
Body is that IP address, port numbers in information of reaching the standard grade feed back the response message to the first equipment.
Step S103, the first equipment receiving printing orders, set according to response message selection with being provided with the second of printer
It is one of standby to set up communication connection.
The response message also includes:The type information of second equipment.The type of second equipment includes:Common PC classes
Type, the PC types for being provided with printer, intelligent type.Second equipment is other in addition to the first equipment of the LAN
Equipment.
First equipment in this step, first according to each second equipment feed back response message in the second equipment
Type information, it is determined that the type of each second equipment, determine which the second equipment is the PC types for being provided with printer
Two equipment, and select to set up communication connection with being provided with one of second equipment of PC types of printer.
In addition, the communication connection that first equipment sets up with selected second equipment is specially:First equipment is according to itself
IP address, port numbers, and the IP address of selected second equipment, port numbers set up the communication connection with selected second equipment.
In the present embodiment, the response message that the second equipment is fed back to the first equipment also includes other information, specific such as first
The information of reaching the standard grade that equipment is sent is the same, can also the forms of UDP messages send, the corresponding UDP messages of the response message are specially:
UDP->IP:192.168.0.101 port:6544
Data field contents:
“version:1:
packetNo:xx:
senderName:xx:
senderHost:xx:
commandNo:3:
additionalSection:xx\0”。
Wherein, " IP:192.168.0.101 " obtained for selected second equipment from the information of reaching the standard grade that the first equipment is sent
The IP address of first equipment;“Port:6544 " be the identical port of the first equipment and selected second equipment both sides oneself definition
Number.
The first equipment end is received after selected second equipment response message i.e. in the present embodiment, just can be obtained from response message
To the implementor name and IP address of selected second equipment;It is simultaneously selected with this using the IP address and port numbers of selected second equipment
Second equipment is communicated.So far the mutual discovery procedure of the first equipment and selected second equipment is completed.
When the first equipment is needed by selected second equipment mimeograph documents, the first equipment after receiving printing orders with
Selected second equipment sets up communication connection, to realize the first equipment and the second equipment room data transfer.
Step S104, the first equipment will carry the IP address, port numbers, text to be printed of itself by communicating to connect passage
The data information transfer in part path is to selected second equipment.
Wherein, the data message gives the first equipment with the format transmission of url data bag, and first equipment sets for intelligence
It is standby, such as can be smart mobile phone, intelligence TV, Pad equipment.Such as the first equipment is smart mobile phone, and the smart mobile phone needs to beat
The prettygril.jpg files under the Picture files in SD card are printed, its then corresponding url data bag of the data message
Form is:
http://192.168.1.127:7983/mnt/sdcard/Picture/prettygirl.jpg
Step S105, selected second equipment obtain file to be printed according to the data message from the first equipment, drive
Move the printer itself installed and print the file.
In this step, selected second equipment receives and the data message is parsed after the data message, and utilizes
Http protocol downloads corresponding file from the first equipment according to analysis result in corresponding file path to be printed, then adjusts
The printer installed with printing interface function drive itself prints the file.
Further, in the embodiment of the method for the above-mentioned device file printing based on LAN, selected second device drives
The printer itself installed also includes following processing after printing the file:Selected second equipment is deleted and obtained from the first equipment
The file to be printed taken, is printed again with the printer after preventing the file from being driven, while reducing selected second equipment
The occupancy of resource.
Further, it is above-mentioned based on LAN device file printing embodiment of the method, first equipment with it is selected
Second equipment, which is set up, also includes following processing after communication connection:Second equipment of first equipment into LAN sends offline letter
Breath.Selected second equipment disconnects the communication connection with the first equipment according to the offline information.I.e. when the user of the first equipment thinks
It is offline, input lower line to the first equipment, the lower line that the first equipment is inputted according to user is into LAN other the
Two equipment send offline information.Before the first equipment sends offline information, the first equipment has selected and has been provided with printer
One of second equipment of PC types sets up communication connection, and selected second equipment is received after the offline information, then under
Line information disconnects the communication connection with the first equipment.When the first equipment needs mimeograph documents again, it is necessary to again with selected second
Equipment sets up communication connection.
In above example, the communication connection set up between first equipment and selected second equipment is Socket connections
Or be HTTP connections.The Socket connections have the mode of following two transmission data:TCP transmission mode and UDP transmission
Mode.Wherein, TCP transmission mode can ensure that the data being transmitted are not lost, and UDP transmission means is it cannot be guaranteed that be transmitted
Data are not lost.TCP transmission mode described in scheme provided by the present invention and UDP transmission means can be used, but in order to
Ensure that the data message that the first equipment is transmitted by the communication port of foundation to the second selected equipment is not lost, preferably just
Formula is that Socket connections are set up between the first equipment and selected second equipment, and passes through foundation using TCP modes between the two
Socket interface channels transmit data.
In addition, equipment all in LAN in the present embodiment includes first equipment and all second device interiors all
Maintenance has the relevant information that interior LAN all devices are recorded in a list of devices, the list of devices.Each equipment is received
After the offline information that other equipment is sent in LAN, then by the phase of corresponding offline equipment in the list of devices of self maintained
Close information deletion.Wherein described offline information equally uses UDP message formats, its UDP message format corresponding with information of reaching the standard grade
Similar, simply " commandNo " order code word is replaced with " 2 " by " 1 ".
Further, in the embodiment of the method for the above-mentioned device file printing based on LAN, first equipment is to office
The second equipment in the net of domain also includes following processing before sending information of reaching the standard grade:The first equipment establishment file server, will
All Files is shared into this document server in the External memory equipment of first equipment.That is the first equipment is added after LAN,
All Files is shared into this document server in establishment file server, and the External memory equipment of itself immediately.So as to protect
Selected second equipment of card can access and download the All Files in the External memory equipment of the first equipment.Wherein, it is described all
File includes the file that can be printed and the file that cannot be printed.The file that can wherein print has WORD documents, PDF texts
The files such as shelves, picture, photo.The file that cannot be printed has the files such as video, music.In above-described embodiment in data message
File path to be printed is the path in the file server.
The method for the printing of the device file based on LAN that above example is provided, first equipment is by local
The second equipment in net is sent after information of reaching the standard grade, receiving printing orders, the response message selection fed back according to the second equipment and peace
One of second equipment equipped with printer sets up communication connection;And itself IP address, end will be carried by communication connection passage
Slogan, the data information transfer in file to be printed path are to selected second equipment;So that selected second equipment is according to data message
File to be printed is obtained from the first equipment, and drives printer to print the mode of the file, is set in no mobile storage
It is standby and/or can not be sent the first device file to the situation for the second equipment for being provided with printer by the 3rd application program
Under, remain to print file to be printed in the first equipment by the second device drives printer for being provided with printer, improve use
The experience effect at family.
Referring to Fig. 2, Fig. 2 is a kind of preferred embodiment of the system of the device file printing based on LAN of the present invention, institute
Stating system 100 includes the first equipment 110, the equipment 130 of router 120 and second.Wherein, first equipment 110, for passing through
Second equipment 130 of the router 120 into LAN sends information of reaching the standard grade;Receiving printing orders, feed back according to the second equipment 130
Response message selection be provided with one of second equipment 130 of printer set up communication connection;And connected by communication link
Road will carry the data information transfer of the IP address, port numbers, file to be printed path of itself to selected second equipment 130.
Second equipment 130, for according to the first equipment 110 send reach the standard grade information by the router 120 to
First equipment 110 feeds back response message.When one second equipment 130 is provided with printer, it is chosen as setting up logical with the first equipment 110
Letter connection, and receive the data message of the first equipment 110 transmission, then selected second equipment 130 is additionally operable to according to institute
State data message and obtain file to be printed from the first equipment 110, drive the printer itself installed to print the file.
In the present embodiment, the information of reaching the standard grade includes:IP address, the port numbers of first equipment 110.Certainly it can also include
Other information, can be sent, the UDP messages are specially with the form of UDP messages:
UDP->IP:255.255.255.255 port:6544
Data contents:“
version:X
packetNo:xx
senderName:xx
senderHost:xx
commandNo:1
additionalSection:xx\0”;
Wherein, " packetNo " is the bag name named with system time in the Data fields of UDP messages;“senderName”
It is implementor name;" senderHost " is the title for sending main frame;" commandNo " is order code word;
" additionalSection " is extra information field, such as device type." 1 " is the life that equipment is reached the standard grade defined in this message
Make code word;It is the offline order code word of equipment to define " 2 ", and it is the order code word that response confirms to define " 3 ", and Data contents are every
Be between individual field by ":" connection, and " 0 " be end mark burst of data.
The response message includes:IP address, the port numbers of second equipment 130.Wherein, second equipment 130, specifically
For the IP address in information of reaching the standard grade, port numbers the 110 feedbacks response message is set to first.
In addition, the response message also includes:The type information of second equipment 130.The type bag of second equipment 130
Include:Common PC types, the PC types for being provided with printer, intelligent type.Second equipment 130 is that the LAN removes first
Other equipment beyond equipment 110.
First equipment 110, is specifically additionally operable to the in the response message that is fed back first according to each second equipment 130
The type information of two equipment 130, it is determined which the second equipment 130 is the type of each second equipment 130, determine to be provided with printing
Second equipment 130 of the PC types of machine, and select the foundation of one of second equipment 130 of PC types with being provided with printer to communicate
Connection.
In addition, first equipment 110, is specifically additionally operable to IP address, the port numbers according to itself, and selected second sets
Set up and be connected with the Socket of selected second equipment 130 for 130 IP address, port numbers.
In the present embodiment, the response message that the second equipment 130 is fed back to the first equipment 110 also includes other information, specifically
The information of reaching the standard grade sent such as the first equipment 110, can also the forms of UDP messages send, the response message corresponding UDP reports
Text is specially:
UDP->IP:192.168.0.101 port:6544
Data field contents:
“version:1:
packetNo:xx:
senderName:xx:
senderHost:xx:
commandNo:3:
additionalSection:xx\0”。
Wherein, " IP:192.168.0.101 " in the information of reaching the standard grade sent for selected second equipment 130 from the first equipment 110
The IP address of the first equipment 110 obtained;“Port:6544 " be that the first equipment 110 and the selected both sides oneself of second equipment 130 are fixed
The identical port numbers of justice.
The first equipment 110 is received after the selected response message of second equipment 130 i.e. in the present embodiment, just can be from response message
Get the implementor name and IP address of selected second equipment 130;While IP address and port using selected second equipment 130
Number communicated with selected second equipment 130, so far complete first and set, 110 mutually found with selected second equipment 130
Journey.
In the present embodiment, when the first equipment 110 is needed by selected second 130 mimeograph documents of equipment, the first equipment 110
Set up and communicate to connect with selected second equipment 130 after receiving printing orders, to realize the first equipment 110 and the second equipment
130 data difference transmission.
In addition, the data message is given the second equipment 130 by the first equipment 110 with the format transmission of url data bag, this
One equipment 110 is smart machine, such as can be smart mobile phone, intelligence TV, Pad equipment.Such as the first equipment 110 is intelligent hand
Machine, the smart mobile phone needs to print the prettygril.jpg files under the Picture files in SD card, then the data letter
Ceasing corresponding url data bag form is:
http://192.168.1.127:7983/mnt/sdcard/Picture/prettygirl.jpg
In the present embodiment, selected second equipment 130 receives and the data message is parsed after the data message, and
Corresponding text from the first equipment 110 is downloaded in corresponding file path to be printed according to analysis result using http protocol
Part, the printer for then calling printing interface function drive itself to install prints the file.
Further, in the embodiment of system 100 of the above-mentioned device file printing based on LAN, selected second equipment
130, it is additionally operable to after the printer that itself is installed prints the file, deletes the file.To prevent that the file from being driven
Printer after dynamic is printed again, while reducing the occupancy of the selected resource of second equipment 130.
Further, in the embodiment of system 100 of the above-mentioned device file printing based on LAN, first equipment
110, the second equipment 130 being additionally operable into LAN sends offline information.Selected second equipment 130, for being set with first
Standby 110 set up after communication connection, and the offline information sent according to the first equipment 110 disconnects the communication link with the first equipment 110
Connect.I.e. when the user of the first equipment 110 thinks offline, lower line is inputted to the first equipment 110, the first equipment 110 is according to user
The lower line of input other second equipment 130 into LAN send offline information.When the first equipment 110 sends offline letter
Before breath, the first equipment 110 has selected and has been provided with one of second equipment 130 of the PC types of printer and set up communication connection.
Selected second equipment 130 is received after the offline information, then disconnects the communication link with the first equipment 110 according to offline information
Connect.Communicated to connect when the first equipment 110 needs mimeograph documents again, it is necessary to be set up again with selected second equipment 130.
In above example, the communication connection set up between first equipment and selected second equipment is Socket connections
Or be HTTP connections.The Socket connections have the mode of following two transmission data:TCP transmission mode and UDP transmission
Mode.Wherein, TCP transmission mode can ensure that the data being transmitted are not lost, and UDP transmission means is it cannot be guaranteed that be transmitted
Data are not lost.TCP transmission mode described in scheme provided by the present invention and UDP transmission means can be used, but in order to
Ensure that the data message that the first equipment is transmitted by the communication port of foundation to the second selected equipment is not lost, preferably just
Formula is that Socket connections are set up between the first equipment and selected second equipment, and passes through foundation using TCP modes between the two
Socket interface channels transmit data.
In addition, equipment all in LAN in the present embodiment includes first equipment 110 and all second equipment 130
It is internal to safeguard there is the relevant information for being recorded in a list of devices, the list of devices and having interior LAN all devices respectively.Each
Equipment is received after the offline information that other equipment in LAN is sent, then will be corresponding in the list of devices of self maintained under
The relevant information of line equipment is deleted.Wherein described offline information equally uses UDP message formats, UDP corresponding with information of reaching the standard grade
Message format is similar, and simply " commandNo " corresponding order code word is replaced with " 2 " by " 1 ".
Further, in the embodiment of system 100 of the above-mentioned device file printing based on LAN, first equipment
110, the establishment file server after LAN is added is additionally operable to, by all texts in the External memory equipment of the first equipment 110
Part is shared into this document server.That is the first equipment 110 is added after LAN, establishment file server immediately, and by itself
External memory equipment in All Files share into this document server, so as to ensure that selected second equipment 130 can be accessed
And download the All Files in the External memory equipment of the first equipment 110.Wherein, the All Files includes the text that can be printed
Part and the file that cannot be printed.The file that can wherein print has the files such as WORD documents, PDF document, picture, photo.No
The file that can be printed has the files such as video, music.File path to be printed in data message is described in above-described embodiment
For the path in the file server.
The system 100 for the printing of the device file based on LAN that above example is provided, first equipment 110 is led to
The second equipment 130 crossed into LAN sends the response fed back after information of reaching the standard grade, receiving printing orders according to the second equipment 130
Information selects to set up communication connection with being provided with one of second equipment 130 of printer;And will be carried by communication connection passage
IP address, port numbers, the data information transfer in file to be printed path to selected second equipment 130 of itself;So that selected
Two equipment 130 obtain file to be printed according to data message from the first equipment 110, and drive printer to print the file
Mode, without movable storage device and/or can not be by the 3rd application program by file to be printed in the first equipment 110
In the case of sending to the second equipment 130 for being provided with printer, remain to be driven by the second equipment 130 for being provided with printer and beat
Print machine prints file to be printed in the first equipment 110, improves the experience effect of user.
This BEN is it should be appreciated that these are only the preferred embodiments of the present invention, it is impossible to therefore the patent of the limitation present invention
Scope, equivalent structure or equivalent flow conversion that every utilization description of the invention and accompanying drawing content are made, or directly or indirectly
Other related technical fields are used in, are included within the scope of the present invention.
Claims (10)
1. a kind of method of the device file printing based on LAN, it is characterised in that including:
First equipment establishment file server, All Files in the External memory equipment of the first equipment is shared to this document service
In device;
First equipment sends information of reaching the standard grade by the second equipment of the router into LAN;
Second equipment feeds back response message by the router according to information of reaching the standard grade to the first equipment;
First equipment receiving printing orders, select one of second equipment with being provided with printer to set up and communicate according to response message
Connection;
First equipment will carry the IP address, port numbers, file to be printed path of itself by the communication connection passage
Data information transfer is to selected second equipment;
Selected second equipment obtains file to be printed according to the data message from the first equipment, drives that itself installs to beat
Print machine prints the file;
The response message includes:The type information of second equipment;
The type of second equipment includes:Common PC types, the PC types for being provided with printer;
It is specific that first equipment selects one of second equipment with being provided with printer to set up communication connection according to response message
Including:
The type information of the second equipment in the response message that first equipment is fed back according to each second equipment, it is determined that each second
The type of equipment, and select to set up communication connection with being provided with one of second equipment of PC types of printer.
2. the method for the device file printing according to claim 1 based on LAN, it is characterised in that
The information of reaching the standard grade includes:IP address, the port numbers of first equipment;
The response message includes:IP address, the port numbers of second equipment;
IP address, port numbers of second equipment in information of reaching the standard grade feed back the response message to the first equipment;
IP address, port numbers of first equipment according to the first equipment, and selected second equipment IP address, port numbers,
Set up the communication connection with selected second equipment.
3. the method for the device file printing according to claim 1 based on LAN, it is characterised in that selected second sets
The standby printer for driving itself to install also includes after printing the file:
Selected second equipment deletes the file to be printed obtained from the first equipment.
4. the method for the device file printing according to claim 1 based on LAN, it is characterised in that described first sets
Standby set up with selected second equipment after communication connection also includes:
Second equipment of first equipment into LAN sends offline information;
Selected second equipment disconnects the communication connection with the first equipment according to the offline information.
5. the method for the printing of the device file based on LAN according to any one of Claims 1-4, it is characterised in that
The communication connection set up between first equipment and selected second equipment is Socket connections or is HTTP connections.
6. a kind of system of the device file printing based on LAN, it is characterised in that including:
First equipment, for the establishment file server after LAN is added, by institute in the External memory equipment of the first equipment
There is file-sharing into this document server;Information of reaching the standard grade is sent by second equipment of the router into LAN;Reception is beaten
Print instruction, the response message fed back according to the second equipment selects one of second equipment with being provided with printer to set up communication link
Connect;And the data message of the IP address, port numbers, file to be printed path of itself will be carried by the communication connection passage
Transmit to selected second equipment;
Second equipment, the information of reaching the standard grade for being sent according to the first equipment is fed back response to the first equipment by the router and believed
Breath;When one second equipment is provided with printer, it is chosen as setting up communication connection with the first equipment, and receive the transmission of the first equipment
The data message, then selected second equipment be additionally operable to obtain to be printed from the first equipment according to the data message
File, drives the printer itself installed to print the file;
The response message includes:The type information of second equipment;
The type of second equipment includes:Common PC types, the PC types for being provided with printer;
First equipment, the type letter for the second equipment being specifically additionally operable in the response message according to each second equipment feedback
Breath, it is determined that the type of each second equipment, and selects the foundation of one of the second equipment of PC types with being provided with printer to communicate
Connection.
7. the system of the device file printing according to claim 6 based on LAN, it is characterised in that
The information of reaching the standard grade includes:IP address, the port numbers of first equipment;
The response message includes:IP address, the port numbers of second equipment;
Second equipment, is specifically additionally operable to the IP address in information of reaching the standard grade, port numbers and is answered to the first equipment feedback is described
Answer information;
First equipment, is specifically additionally operable to IP address, the port numbers according to itself, and selected second equipment IP address,
Port numbers are set up with selected second equipment and communicated to connect.
8. the system of the device file printing according to claim 6 based on LAN, it is characterised in that selected second sets
It is standby, it is additionally operable to after the printer that itself is installed prints the file, deletes the file.
9. the system of the device file printing according to claim 6 based on LAN, it is characterised in that
First equipment, the second equipment being additionally operable into LAN sends offline information;
Selected second equipment, for being set up with the first equipment after communication connection, the offline information sent according to the first equipment
Disconnect the communication connection with the first equipment.
10. the system of the printing of the device file based on LAN according to any one of claim 6 to 9, it is characterised in that
The communication connection set up between first equipment and selected second equipment is Socket connections or is HTTP connections.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310289295.4A CN103412728B (en) | 2013-07-10 | 2013-07-10 | The method and system of device file printing based on LAN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310289295.4A CN103412728B (en) | 2013-07-10 | 2013-07-10 | The method and system of device file printing based on LAN |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103412728A CN103412728A (en) | 2013-11-27 |
CN103412728B true CN103412728B (en) | 2017-07-25 |
Family
ID=49605742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310289295.4A Active CN103412728B (en) | 2013-07-10 | 2013-07-10 | The method and system of device file printing based on LAN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103412728B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834649B (en) * | 2014-02-12 | 2018-08-07 | 中国科学院声学研究所 | It can realize the smart machine and multiple-equipment team working method of more equipment collaborations |
CN104618394B (en) * | 2015-02-28 | 2018-05-18 | 小米科技有限责任公司 | The method, apparatus and router of communication connection are established among clients |
CN107888680A (en) * | 2017-11-09 | 2018-04-06 | 理光图像技术(上海)有限公司 | High in the clouds document acquisition methods, device and system |
CN109460195A (en) * | 2018-09-29 | 2019-03-12 | 先临三维科技股份有限公司 | A kind of 3D printing system based on local area network communication, control method and 3D printer |
CN112241246A (en) * | 2020-10-30 | 2021-01-19 | 珠海奔图电子有限公司 | Image formation control method, apparatus, system, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6431772B1 (en) * | 2000-04-26 | 2002-08-13 | Hitachi Koki Imaging Solutions, Inc. | Broadcast printing system and method |
CN1761259A (en) * | 2004-10-11 | 2006-04-19 | 三星电子株式会社 | Be used to use server message block protocol to come the apparatus and method of print data |
CN101807139A (en) * | 2009-02-17 | 2010-08-18 | 鸿富锦精密工业(深圳)有限公司 | Printing system and printing method thereof |
CN103179120A (en) * | 2013-03-21 | 2013-06-26 | 天闻数媒科技(北京)有限公司 | Method and system for realizing printing of mobile device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001325182A (en) * | 2000-03-10 | 2001-11-22 | Ricoh Co Ltd | Print system, print method, computer readable recording medium with program recorded therein, portable communication equipment of print system, printer, print server and client |
-
2013
- 2013-07-10 CN CN201310289295.4A patent/CN103412728B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6431772B1 (en) * | 2000-04-26 | 2002-08-13 | Hitachi Koki Imaging Solutions, Inc. | Broadcast printing system and method |
CN1761259A (en) * | 2004-10-11 | 2006-04-19 | 三星电子株式会社 | Be used to use server message block protocol to come the apparatus and method of print data |
CN101807139A (en) * | 2009-02-17 | 2010-08-18 | 鸿富锦精密工业(深圳)有限公司 | Printing system and printing method thereof |
CN103179120A (en) * | 2013-03-21 | 2013-06-26 | 天闻数媒科技(北京)有限公司 | Method and system for realizing printing of mobile device |
Also Published As
Publication number | Publication date |
---|---|
CN103412728A (en) | 2013-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103412728B (en) | The method and system of device file printing based on LAN | |
US7664135B2 (en) | Control of network plug-and-play compliant device | |
EP2302504A2 (en) | Method for printing document of mobile terminal through printer, and mobile terminal therefor | |
JP6699319B2 (en) | Advertisement providing system, print control system, advertisement providing method, and computer program | |
US20120062946A1 (en) | Print server, control method thereof, client terminal, printing system, and computer-readable medium | |
WO2012064851A1 (en) | Protocol for interaction between wireless devices and other devices | |
JPH10304013A (en) | Information transmission method | |
US8665477B2 (en) | Print system, printing apparatus, and computer program product | |
CN101807139A (en) | Printing system and printing method thereof | |
JP2007328558A (en) | Data processor, data processing system, control method of data processor, method for adding data conversion function, program and recording medium | |
CN105635513B (en) | Communication system, communication means and the equipment with gateway function | |
CN102594886A (en) | Method and device for direct communication between browsers, and communication system | |
CN105630434A (en) | Synergetic printing method and device | |
CN106648956A (en) | Data backup and system restoration method | |
JP5739724B2 (en) | Image processing system | |
JP5920180B2 (en) | Information transmitting apparatus and program | |
JP5817545B2 (en) | Print trial device, print trial program, print trial method, print control server | |
US9229665B2 (en) | Printing control server, printing control method, and printing system for controlling printing using email address | |
JP4640694B2 (en) | Portable terminal document printing system, server device, and printing method | |
JP2009104263A (en) | Electronic manual system | |
JP2006211472A (en) | Print system, network module, and storage medium | |
US20160150103A1 (en) | Printing server, printing management method, and data storage printing system | |
CN101815058B (en) | Method and device for creating print dialog based on SIP (Session Initiation Protocol) protocol in IP network | |
JP2004139205A (en) | Image processing system | |
JP4033823B2 (en) | Status notification system in printing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |