CN103412728A - Method and system for device file printing based on local area network - Google Patents

Method and system for device file printing based on local area network Download PDF

Info

Publication number
CN103412728A
CN103412728A CN2013102892954A CN201310289295A CN103412728A CN 103412728 A CN103412728 A CN 103412728A CN 2013102892954 A CN2013102892954 A CN 2013102892954A CN 201310289295 A CN201310289295 A CN 201310289295A CN 103412728 A CN103412728 A CN 103412728A
Authority
CN
China
Prior art keywords
equipment
area network
local area
information
lan
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
CN2013102892954A
Other languages
Chinese (zh)
Other versions
CN103412728B (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201310289295.4A priority Critical patent/CN103412728B/en
Publication of CN103412728A publication Critical patent/CN103412728A/en
Application granted granted Critical
Publication of CN103412728B publication Critical patent/CN103412728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and system for device file printing based on a local area network. The method includes the steps that a first device sends on-line information to second devices in the local area network; the second devices feed back response information to the first device according to the on-line information; the first device receives a printing instruction, selects one of the second devices provided with printers to build communication connection according to the response information, and transmits data information carrying a self IP address, a port number and a path of a file to be printed to the selected second device through a communication connection channel; the selected second device obtains the file to be printed from the first device according to the data information and drives to print the file. According to the method and system, under the condition that a portable storage device does not exists and/or the file of the first device can not be sent to the second device provided with the printer through a third application program, the selected second device still can drive to print the file to be printed in the first device, and the experience effect of a user is improved.

Description

The method and system of printing based on the device file of LAN (Local Area Network)
Technical field
The present invention relates to the local area network technology field, especially relate to the method and system that a kind of device file based on LAN (Local Area Network) is printed.
Background technology
Along with popularizing of intelligent movable equipment, smart mobile phone, panel computer even usually store important file in intelligent television, when needs by these file printouts out, at first need by movable storage device file copy that these equipment are to be printed to being connected with in the printing device computer, cross the printing device that connects by file printout out by the computer expert.
The mode of above-mentioned this printing smart machine File is brought very big inconvenience to the user, and when the user does not have movable storage device at hand, in the time of can not passing through the third party application Transmit message to computer again, the file in these smart machines can't be printed.
Summary of the invention
The method and system that provides a kind of device file based on LAN (Local Area Network) to print is provided fundamental purpose of the present invention, in the situation that there is no movable storage device and/or can not the smart machine file be sent to by third party application to the equipment that printer is installed, still the printer that can install by described equipment by file printout corresponding in the equipment of file to be printed out, improves user's experience effect.
The present invention proposes a kind of method that device file based on LAN (Local Area Network) is printed, and comprising:
The first equipment sends to the second equipment in LAN (Local Area Network) the information of reaching the standard grade by router;
The second equipment is crossed described router to the first equipment feedback response message according to the information exchange of reaching the standard grade;
The first equipment receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to response message;
The first equipment will carry the data information transfer in IP address, port numbers, file to be printed path of self to selected the second equipment by described communication connection passage;
Selected the second equipment, drives the printer of self installing and prints described file from the first equipment, obtaining file to be printed according to described data message.
Preferably, the described information of reaching the standard grade comprises: the IP address of the first equipment, port numbers;
Described response message comprises: the IP address of the second equipment, port numbers;
Described the second equipment feeds back described response message according to the IP address in the information of reaching the standard grade, port numbers to the first equipment;
Described the first equipment is according to IP address, the port numbers of the first equipment, and IP address, the port numbers of selected the second equipment, sets up the communication connection with selected the second equipment.
Preferably, described response message also comprises: the type information of the second equipment;
The type of described the second equipment comprises: common PC type, the PC type that printer is installed, intelligent type;
Described the first equipment is selected to establish a communications link and specifically comprise with one of second equipment that printer is installed according to response message:
The first equipment, according to the type information of the second equipment in the response message of each the second equipment feedback, is determined the type of each the second equipment, and one of the second equipment of selecting and being equipped with the PC type of printer establishes a communications link.
Preferably, after the described file of printer printing that selected the second device drives self is installed, also comprise:
The to be printed file of selected the second unit deletion from obtaining the first equipment.
Preferably, described the first equipment and selected the second equipment also comprise after establishing a communications link:
The first equipment sends offline information to the second equipment in LAN (Local Area Network);
Selected the second equipment is according to the communication connection of described offline information disconnection with the first equipment.
The communication connection of preferably, setting up between described the first equipment and selected the second equipment is that Socket is connected or is that HTTP connects.
The another system that proposes a kind of printing of device file based on LAN (Local Area Network) of the present invention comprises:
The first equipment, for sending to the second equipment of LAN (Local Area Network) the information of reaching the standard grade by router; Receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to the response message of the second equipment feedback; And the data information transfer in IP address, port numbers, file to be printed path that will carry self by described communication connection passage is to selected the second equipment;
The second equipment, cross described router to the first equipment feedback response message for the information exchange of reaching the standard grade sent according to the first equipment; When one second equipment is equipped with printer, be chosen as with the first equipment and establish a communications link, and receive the described data message of the first device transmission, this selected second equipment, also for according to described data message, obtaining file to be printed from the first equipment, drives the printer of self installing and prints described file.
Preferably, the described information of reaching the standard grade comprises: the IP address of the first equipment, port numbers;
Described response message comprises: the IP address of the second equipment, port numbers;
Described the second equipment, specifically also feed back described response message for the IP address according to the information of reaching the standard grade, port numbers to the first equipment;
Described the first equipment, concrete also for IP address, port numbers according to self, and the IP address of selected the second equipment, port numbers and selected the second equipment establish a communications link.
Preferably, described response message also comprises: the type information of the second equipment;
The type of described the second equipment comprises: common PC type, the PC type that printer is installed, intelligent type;
Described the first equipment, concrete determine the type of each the second equipment also for the type information of the second equipment of the response message according to each second equipment feedback, and one of the second equipment of selecting and being equipped with the PC type of printer establishes a communications link.
Preferably, selected the second equipment, after also for the printer self installing, printing described file, delete described file.
Preferably, described the first equipment, also send offline information for the second equipment to LAN (Local Area Network);
Selected the second equipment, for after establishing a communications link with the first equipment, according to the offline information disconnection of the first equipment transmission and the communication connection of the first equipment.
The communication connection of preferably, setting up between described the first equipment and selected the second equipment is that Socket is connected or is that HTTP connects.
The method and system that a kind of device file based on LAN (Local Area Network) provided by the present invention is printed, need the first equipment of print file to send by the second equipment in LAN (Local Area Network) the information of reaching the standard grade, after receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to the response message of the second equipment feedback; And the data information transfer in IP address, port numbers, file to be printed path that will be carried self by the communication connection passage is to selected the second equipment; So that selected the second equipment according to data message from the first equipment, obtaining file to be printed, and the driving printer is printed the mode of described file, in the situation that there is no movable storage device and/or can not the first device file be sent to by the 3rd application program to the second equipment that printer is installed, still can print file to be printed in the first equipment by the second device drives printer that printer is installed, improve user's experience effect.
The accompanying drawing explanation
Fig. 1 is the process flow diagram of the method preferred embodiment of the printing of the device file based on LAN (Local Area Network) of the present invention;
Fig. 2 is the structural representation of the system preferred embodiment of the printing of the device file based on LAN (Local Area Network) of the present invention.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is the method preferred embodiment that a kind of device file based on LAN (Local Area Network) of the present invention is printed, and described method comprises:
Step S101, the first equipment send to the second equipment in LAN (Local Area Network) the information of reaching the standard grade by router.
In this step, the described information of reaching the standard grade comprises: the IP address of the first equipment, port numbers.Certainly can also comprise other information, form that can the UDP message sends, and this UDP message is specially:
UDP->IP:255.255.255.255?port:6544
The Data content: "
version:X
packetNo:xx
senderName:xx
senderHost:xx
commandNo:1
additionalSection:xx\0”;
Wherein, in the Data field of UDP message, " packetNo " is the bag name with the system time name; " senderName " is implementor name; " senderHost " is the title that sends main frame; " commandNo " is the order code word; " additionalSection " is extra information field, as device type etc.The order code word that in this message, definition " 1 " is reached the standard grade for equipment; The order code word that rolls off the production line for equipment of definition " 2 ", definition " 3 " are for replying the order code word of confirmation, and it is by ": " connection that the Data content is between each field, and “ 0 " be a string data of end mark.
Step S102, the second equipment are crossed described router to the first equipment feedback response message according to the information exchange of reaching the standard grade.
In this step, described response message comprises: the IP address of the second equipment, port numbers.Wherein, described the second equipment specifically feeds back described response message according to the IP address in the information of reaching the standard grade, port numbers to the first equipment.
Step S103, the first equipment receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to response message.
Described response message also comprises: the type information of the second equipment.The type of described the second equipment comprises: common PC type, the PC type that printer is installed, intelligent type.Described the second equipment is described LAN (Local Area Network) other equipment except the first equipment.
Described the first equipment in this step, at first according to the type information of the second equipment in the response message of each the second equipment feedback, determine the type of each the second equipment, determine which the second equipment is the second equipment that the PC type of printer is installed, and one of the second equipment of selecting and being equipped with the PC type of printer establishes a communications link.
In addition, described the first equipment is set up with the communication connection of selected the second equipment and is specially: the first equipment is according to self IP address, port numbers, and the communication connection of the IP address of selected the second equipment, port numbers foundation and selected the second equipment.
In the present embodiment, the second equipment also comprises other information to the response message of the first equipment feedback, the concrete as information of reaching the standard grade that the first equipment sends, and form transmission that also can the UDP message, the UDP message that this response message is corresponding is specially:
UDP->IP:192.168.0.101?port:6544
The Data field contents:
“version:1:
packetNo:xx:
senderName:xx:
senderHost:xx:
commandNo:3:
additionalSection:xx\0”。
Wherein, " IP:192.168.0.101 " is the IP address of selected the second equipment from the first equipment of obtaining the information of reaching the standard grade that the first equipment sends; " Port:6544 " is the identical port numbers of the first equipment and selected the second equipment both sides oneself definition.
Be after in the present embodiment, the first equipment end receives selected the second device acknowledge information, just can be from implementor name and the IP address that gets selected the second equipment response message; Can utilize simultaneously the IP address of selected the second equipment and port numbers and this selected the second equipment to communicate.So far complete the mutual discovery procedure of the first equipment and selected the second equipment.
When the first equipment need to pass through selected the second equipment print file, the first equipment established a communications link with selected the second equipment after receiving printing orders, to realize the first equipment and the second equipment room data transmission.
Step S104, the first equipment will carry the data information transfer in IP address, port numbers, file to be printed path of self to selected the second equipment by the communication connection passage.
Wherein, described data message is transferred to the first equipment with the form of url data bag, and this first equipment is smart machine, if be smart mobile phone, intelligent TV, Pad equipment etc.For example the first equipment is smart mobile phone, and this smart mobile phone need to be printed the prettygril.jpg file under the Picture file in the SD card, and its url data packet format that described data message is corresponding is:
http://192.168.1.127:7983/mnt/sdcard/Picture/prettygirl.jpg
Step S105, selected the second equipment, drive the printer of self installing and print described file from the first equipment, obtaining file to be printed according to described data message.
In this step, selected the second equipment is resolved this data message after receiving described data message, and utilize http protocol according to analysis result from file path to be printed corresponding the first equipment, downloading corresponding file, then call the printer that printing interface function drive self installs and print described file.
Further, in the embodiment of the method that above-mentioned device file based on LAN (Local Area Network) is printed, the printer that selected the second device drives self is installed is printed described file and is also comprised following processing afterwards: the to be printed file of selected the second unit deletion from obtaining the first equipment, to prevent that the printer of described file after driven from printing again, reduce simultaneously taking of selected the second device resource.
Further, the embodiment of the method that above-mentioned device file based on LAN (Local Area Network) is printed also comprises following processing after described the first equipment and selected the second equipment establish a communications link: the first equipment sends offline information to the second equipment in LAN (Local Area Network).Selected the second equipment is according to the communication connection of described offline information disconnection with the first equipment.Namely want to roll off the production line as the user of the first equipment, to the lower line of the first equipment input, the first equipment sends offline information according to the lower line of user's input to other the second equipment in LAN (Local Area Network).Before the first equipment sends offline information, the first equipment has selected one of second equipment with the PC type that printer is installed to establish a communications link, after this selected second equipment receives described offline information, according to the communication connection of offline information disconnection with the first equipment.When the first equipment needs print file again, need again with selected the second equipment, to establish a communications link.
In above embodiment, the communication connection of setting up between described the first equipment and selected the second equipment is that Socket is connected or is that HTTP connects.Described Socket connects the mode with following two kinds of transmission data: TCP transmission mode and UDP transmission mode.Wherein, the TCP transmission mode can guarantee that the data that are transmitted do not lose, and does not lose and the UDP transmission mode can not guarantee the data that are transmitted.TCP transmission mode described in scheme provided by the present invention and UDP transmission mode can adopt, but in order to guarantee that the first equipment is not lost by the communication port the set up data message to selected the second device transmission, preferably mode be the first equipment with selected the second equipment between set up Socket and be connected, and the two adopts TCP mode by Socket interface channel transmission data of setting up.
In addition, in the present embodiment in LAN (Local Area Network) all equipment comprise that described the first equipment and all the second device interiors all safeguarded a list of devices, the relevant information of LAN (Local Area Network) all devices in record in this list of devices.After each equipment receives the offline information that in LAN (Local Area Network), other equipment send, the relevant information of the equipment that rolls off the production line corresponding in the list of devices of self maintained is deleted.Wherein said offline information adopts the UDP message format equally, and its UDP message format corresponding with the information of reaching the standard grade is similar, and just " commandNo " order code word replaces with " 2 " by " 1 ".
Further, in the embodiment of the method that above-mentioned device file based on LAN (Local Area Network) is printed, described the first equipment also comprised following processing before the second equipment in LAN (Local Area Network) sends the information of reaching the standard grade: described the first equipment creates file server, and All Files in the External memory equipment of the first equipment is shared in this document server.After namely the first equipment adds LAN (Local Area Network), create immediately file server, and in the External memory equipment of self, All Files is shared in this document server.Thereby guarantee that selected the second equipment can access and download the All Files in the External memory equipment of the first equipment.Wherein, comprise can typescripts and cannot typescripts for described All Files.Wherein can the files such as WORD document, PDF document, picture, photo be arranged typescripts.Cannot the files such as video, music be arranged typescripts.File path to be printed in above-described embodiment in data message is the path in described file server.
The method that the device file based on LAN (Local Area Network) that above embodiment provides is printed, described the first equipment sends by the second equipment in LAN (Local Area Network) the information of reaching the standard grade, after receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to the response message of the second equipment feedback; And the data information transfer in IP address, port numbers, file to be printed path that will be carried self by the communication connection passage is to selected the second equipment; So that selected the second equipment according to data message from the first equipment, obtaining file to be printed, and the driving printer is printed the mode of described file, in the situation that there is no movable storage device and/or can not the first device file be sent to by the 3rd application program to the second equipment that printer is installed, still can print file to be printed in the first equipment by the second device drives printer that printer is installed, improve user's experience effect.
Referring to Fig. 2, Fig. 2 is the preferred embodiment of the system of a kind of printing of device file based on LAN (Local Area Network) of the present invention, and described system 100 comprises the first equipment 110, router one 20 and the second equipment 130.Wherein, described the first equipment 110, for sending to the second equipment 130 of LAN (Local Area Network) the information of reaching the standard grade by router one 20; Receiving printing orders, select to establish a communications link with one of second equipment 130 that printer is installed according to the response message of the second equipment 130 feedbacks; And the data information transfer in IP address, port numbers, file to be printed path that will carry self by the communication connection passage is to selected the second equipment 130.
Described the second equipment 130, cross described router one 20 to the first equipment 110 feedback response messages for the information exchange of reaching the standard grade sent according to the first equipment 110.When one second equipment 130 is equipped with printer, be chosen as with the first equipment 110 and establish a communications link, and receive the described data message of the first equipment 110 transmission, this selected second equipment 130, also for according to described data message, obtaining file to be printed from the first equipment 110, drives the printer of self installing and prints described file.
In the present embodiment, the described information of reaching the standard grade comprises: IP address, the port numbers of the first equipment 110.Certainly can also comprise other information, form that can the UDP message sends, and this UDP message is specially:
UDP->IP:255.255.255.255?port:6544
The Data content: "
version:X
packetNo:xx
senderName:xx
senderHost:xx
commandNo:1
additionalSection:xx\0”;
Wherein, in the Data field of UDP message, " packetNo " is the bag name with the system time name; " senderName " is implementor name; " senderHost " is the title that sends main frame; " commandNo " is the order code word; " additionalSection " is extra information field, as device type etc.The order code word that in this message, definition " 1 " is reached the standard grade for equipment; The order code word that rolls off the production line for equipment of definition " 2 ", definition " 3 " are for replying the order code word of confirmation, and it is by ": " connection that the Data content is between each field, and “ 0 " be a string data of end mark.
Described response message comprises: IP address, the port numbers of the second equipment 130.Wherein, described the second equipment 130, specifically establish the described response message of 110 feedback for the IP address according to the information of reaching the standard grade, port numbers to first.
In addition, described response message also comprises: the type information of the second equipment 130.The type of described the second equipment 130 comprises: common PC type, the PC type that printer is installed, intelligent type.Described the second equipment 130 is described LAN (Local Area Network) other equipment except the first equipment 110.
Described the first equipment 110, concrete also at first according to the type information of the second equipment 130 of the response message of each second equipment 130 feedback, determine the type of each the second equipment 130, determine which the second equipment 130 is the second equipment 130 for PC type that printer is installed, and one of the second equipment 130 of selecting and being equipped with the PC type of printer establishes a communications link.
In addition, described the first equipment 110, concrete also for IP address, port numbers according to self, and the IP address of selected the second equipment 130, port numbers are set up and are connected with the Socket of selected the second equipment 130.
In the present embodiment, the second equipment 130 also comprises other information to the response message of the first equipment 110 feedback, the concrete as information of reaching the standard grade that the first equipment 110 sends, and form transmission that also can the UDP message, the UDP message that this response message is corresponding is specially:
UDP->IP:192.168.0.101?port:6544
The Data field contents:
“version:1:
packetNo:xx:
senderName:xx:
senderHost:xx:
commandNo:3:
additionalSection:xx\0”。
Wherein, " IP:192.168.0.101 " is the IP address of selected the second equipment 130 from the first equipment 110 of obtaining the information of reaching the standard grade that the first equipment 110 sends; " Port:6544 " is the identical port numbers of the first equipment 110 and selected the second equipment 130 both sides oneself definition.
Be after in the present embodiment, the first equipment 110 receives selected the second equipment 130 response messages, just can be from implementor name and the IP address that gets selected the second equipment 130 response message; Can utilize simultaneously IP address and the port numbers of selected the second equipment 130 to communicate with this selected the second equipment 130, so far complete first and establish, 110 and the mutual discovery procedure of selected the second equipment 130.
In the present embodiment, when the first equipment 110 needs by selected the second equipment 130 print file, the first equipment 110 establishes a communications link with selected the second equipment 130 after receiving printing orders, to realize 130 data difference transmission of the first equipment 110 and the second equipment.
In addition, the first equipment 110 is transferred to the second equipment 130 by described data message with the form of url data bag, and this first equipment 110 is smart machine, if be smart mobile phone, intelligent TV, Pad equipment etc.For example the first equipment 110 is smart mobile phone, and this smart mobile phone need to be printed the prettygril.jpg file under the Picture file in the SD card, and the url data packet format that described data message is corresponding is:
http://192.168.1.127:7983/mnt/sdcard/Picture/prettygirl.jpg
In the present embodiment, after selected the second equipment 130 receives described data message, this data message is resolved, and utilize http protocol according to analysis result from file path to be printed corresponding the first equipment 110, downloading corresponding file, then call the printer that printing interface function drive self installs and print described file.
Further, in system 100 embodiment that above-mentioned device file based on LAN (Local Area Network) is printed, selected the second equipment 130, after also for the printer self installing, printing described file, delete described file.To prevent that the printer of described file after driven from printing again, reduce simultaneously taking of selected the second equipment 130 resources.
Further, in system 100 embodiment that above-mentioned device file based on LAN (Local Area Network) is printed, described the first equipment 110, also send offline information for the second equipment 130 to LAN (Local Area Network).Selected the second equipment 130, for after establishing a communications link with the first equipment 110, according to the offline information disconnection of the first equipment 110 transmissions and the communication connection of the first equipment 110.Namely want to roll off the production line as the user of the first equipment 110, to the lower line of the first equipment 110 input, the first equipment 110 sends offline information according to the lower line of user's input to other the second equipment 130 in LAN (Local Area Network).Before the first equipment 110 sent offline information, the first equipment 110 had selected one of second equipment 130 with the PC type that printer is installed to establish a communications link.After selected the second equipment 130 receives described offline information, according to the communication connection of offline information disconnection with the first equipment 110.When the first equipment 110 needs print file again, need again with selected the second equipment 130, to establish a communications link.
In above embodiment, the communication connection of setting up between described the first equipment and selected the second equipment is that Socket is connected or is that HTTP connects.Described Socket connects the mode with following two kinds of transmission data: TCP transmission mode and UDP transmission mode.Wherein, the TCP transmission mode can guarantee that the data that are transmitted do not lose, and does not lose and the UDP transmission mode can not guarantee the data that are transmitted.TCP transmission mode described in scheme provided by the present invention and UDP transmission mode can adopt, but in order to guarantee that the first equipment is not lost by the communication port the set up data message to selected the second device transmission, preferably mode be the first equipment with selected the second equipment between set up Socket and be connected, and the two adopts TCP mode by Socket interface channel transmission data of setting up.
In addition, in the present embodiment in LAN (Local Area Network) all equipment comprise that described the first equipment 110 and all the second equipment 130 inside have safeguarded respectively a list of devices, in this list of devices, record the relevant information of interior LAN (Local Area Network) all devices.After each equipment receives the offline information that in LAN (Local Area Network), other equipment send, the relevant information of the equipment that rolls off the production line corresponding in the list of devices of self maintained is deleted.Wherein said offline information adopts the UDP message format equally, and the UDP message format corresponding with the information of reaching the standard grade is similar, and the order code word that just " commandNo " is corresponding replaces with " 2 " by " 1 ".
Further, in system 100 embodiment that above-mentioned device file based on LAN (Local Area Network) is printed, described the first equipment 110, also, for after adding LAN (Local Area Network), creating file server, be shared to All Files in the External memory equipment of the first equipment 110 in this document server.After namely the first equipment 110 adds LAN (Local Area Network), create immediately file server, and All Files in the External memory equipment of self is shared in this document server, thereby guarantee that selected the second equipment 130 can access and download the All Files in the External memory equipment of the first equipment 110.Wherein, comprise can typescripts and cannot typescripts for described All Files.Wherein can the files such as WORD document, PDF document, picture, photo be arranged typescripts.Cannot the files such as video, music be arranged typescripts.Described in above-described embodiment in data message file path to be printed be the path in described file server.
The system 100 that the device file based on LAN (Local Area Network) that above embodiment provides is printed, described the first equipment 110 sends by the second equipment 130 in LAN (Local Area Network) the information of reaching the standard grade, and according to the response message of the second equipment 130 feedbacks, selects to establish a communications link with one of second equipment 130 that printer is installed after receiving printing orders; And the data information transfer in IP address, port numbers, file to be printed path that will be carried self by the communication connection passage is to selected the second equipment 130; So that selected the second equipment 130 according to data message from the first equipment 110, obtaining file to be printed, and the driving printer is printed the mode of described file, in the situation that there is no movable storage device and/or can not file to be printed in the first equipment 110 be sent to by the 3rd application program to the second equipment 130 that printer is installed, still can drive printer by the second equipment 130 that printer is installed and print file to be printed in the first equipment 110, improve user's experience effect.
This BEN should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (12)

1. the method that the device file based on LAN (Local Area Network) is printed, is characterized in that, comprising:
The first equipment sends to the second equipment in LAN (Local Area Network) the information of reaching the standard grade by router;
The second equipment is crossed described router to the first equipment feedback response message according to the information exchange of reaching the standard grade;
The first equipment receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to response message;
The first equipment will carry the data information transfer in IP address, port numbers, file to be printed path of self to selected the second equipment by described communication connection passage;
Selected the second equipment, drives the printer of self installing and prints described file from the first equipment, obtaining file to be printed according to described data message.
2. the method for the printing of the device file based on LAN (Local Area Network) according to claim 1, is characterized in that,
The described information of reaching the standard grade comprises: the IP address of the first equipment, port numbers;
Described response message comprises: the IP address of the second equipment, port numbers;
Described the second equipment feeds back described response message according to the IP address in the information of reaching the standard grade, port numbers to the first equipment;
Described the first equipment is according to IP address, the port numbers of the first equipment, and IP address, the port numbers of selected the second equipment, sets up the communication connection with selected the second equipment.
3. the method for the printing of the device file based on LAN (Local Area Network) according to claim 2, is characterized in that,
Described response message also comprises: the type information of the second equipment;
The type of described the second equipment comprises: common PC type, the PC type that printer is installed, intelligent type;
Described the first equipment is selected to establish a communications link and specifically comprise with one of second equipment that printer is installed according to response message:
The first equipment, according to the type information of the second equipment in the response message of each the second equipment feedback, is determined the type of each the second equipment, and one of the second equipment of selecting and being equipped with the PC type of printer establishes a communications link.
4. the method for the printing of the device file based on LAN (Local Area Network) according to claim 1, is characterized in that, the printer that selected the second device drives self is installed also comprises after printing described file:
The to be printed file of selected the second unit deletion from obtaining the first equipment.
5. the method for the printing of the device file based on LAN (Local Area Network) according to claim 1, is characterized in that, also comprises after described the first equipment and selected the second equipment establish a communications link:
The first equipment sends offline information to the second equipment in LAN (Local Area Network);
Selected the second equipment is according to the communication connection of described offline information disconnection with the first equipment.
6. the method for printing according to the described device file based on LAN (Local Area Network) of claim 1 to 5 any one, is characterized in that, the communication connection of setting up between described the first equipment and selected the second equipment is that Socket is connected or is the HTTP connection.
7. the system that the device file based on LAN (Local Area Network) is printed, is characterized in that, comprising:
The first equipment, for sending to the second equipment of LAN (Local Area Network) the information of reaching the standard grade by router; Receiving printing orders, select to establish a communications link with one of second equipment that printer is installed according to the response message of the second equipment feedback; And the data information transfer in IP address, port numbers, file to be printed path that will carry self by described communication connection passage is to selected the second equipment;
The second equipment, cross described router to the first equipment feedback response message for the information exchange of reaching the standard grade sent according to the first equipment; When one second equipment is equipped with printer, be chosen as with the first equipment and establish a communications link, and receive the described data message of the first device transmission, this selected second equipment, also for according to described data message, obtaining file to be printed from the first equipment, drives the printer of self installing and prints described file.
8. the system of the printing of the device file based on LAN (Local Area Network) according to claim 7, is characterized in that,
The described information of reaching the standard grade comprises: the IP address of the first equipment, port numbers;
Described response message comprises: the IP address of the second equipment, port numbers;
Described the second equipment, specifically also feed back described response message for the IP address according to the information of reaching the standard grade, port numbers to the first equipment;
Described the first equipment, concrete also for IP address, port numbers according to self, and the IP address of selected the second equipment, port numbers and selected the second equipment establish a communications link.
9. the system of the printing of the device file based on LAN (Local Area Network) according to claim 8, is characterized in that,
Described response message also comprises: the type information of the second equipment;
The type of described the second equipment comprises: common PC type, the PC type that printer is installed, intelligent type;
Described the first equipment, concrete determine the type of each the second equipment also for the type information of the second equipment of the response message according to each second equipment feedback, and one of the second equipment of selecting and being equipped with the PC type of printer establishes a communications link.
10. the system of the printing of the device file based on LAN (Local Area Network) according to claim 7, is characterized in that, selected the second equipment, after also for the printer self installing, printing described file, is deleted described file.
11. the system that the device file based on LAN (Local Area Network) according to claim 7 is printed, is characterized in that,
The first equipment, also send offline information for the second equipment to LAN (Local Area Network);
Selected the second equipment, for after establishing a communications link with the first equipment, according to the offline information disconnection of the first equipment transmission and the communication connection of the first equipment.
12. the system according to the described device file based on LAN (Local Area Network) of claim 7 to 11 any one is printed, is characterized in that, the communication connection of setting up between described the first equipment and selected the second equipment is that Socket is connected or is the HTTP connection.
CN201310289295.4A 2013-07-10 2013-07-10 The method and system of device file printing based on LAN Active CN103412728B (en)

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 true CN103412728A (en) 2013-11-27
CN103412728B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618394A (en) * 2015-02-28 2015-05-13 小米科技有限责任公司 Method and device for establishing communication connection between client sides and router
CN104834649A (en) * 2014-02-12 2015-08-12 中国科学院声学研究所 Intelligent equipment capable of realizing multi-equipment synergy and multi-equipment synergy working method
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029531A1 (en) * 2000-03-10 2001-10-11 Yasutoshi Ohta Wireless remote printing system and method
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029531A1 (en) * 2000-03-10 2001-10-11 Yasutoshi Ohta Wireless remote printing system and method
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834649A (en) * 2014-02-12 2015-08-12 中国科学院声学研究所 Intelligent equipment capable of realizing multi-equipment synergy and multi-equipment synergy working method
CN104834649B (en) * 2014-02-12 2018-08-07 中国科学院声学研究所 It can realize the smart machine and multiple-equipment team working method of more equipment collaborations
CN104618394A (en) * 2015-02-28 2015-05-13 小米科技有限责任公司 Method and device for establishing communication connection between client sides and router
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

Also Published As

Publication number Publication date
CN103412728B (en) 2017-07-25

Similar Documents

Publication Publication Date Title
EP2638664B1 (en) Protocol for interaction between wireless devices and other devices
EP2439658B1 (en) Image processing system, image processing method, image processing apparatus, and relay apparatus
US20140047322A1 (en) Method and system for browsing things of internet of things on ip using web platform
CN103412728A (en) Method and system for device file printing based on local area network
CN102821161A (en) Method, device and system for network security auditing
JP2017194846A (en) Advertisement providing system, print control system, advertisement providing method, and computer program
CN102811298A (en) Information processing apparatus and control method thereof, and server apparatus and control method thereof
CN104717395A (en) Print service providing apparatus and printing system
JP2007328558A (en) Data processor, data processing system, control method of data processor, method for adding data conversion function, program and recording medium
JP2008186270A (en) Network printing system
CN102404616B (en) Method and system for pushing data cloud based on digital television network
CN102594886A (en) Method and device for direct communication between browsers, and communication system
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
JP2008060695A (en) Information communication system, transmission-side device, reception-side device, transmission control program, and reception control program
JP2012226700A (en) Printing system, printing relay server, control method for controlling printing relay server, and program thereof
CN102761780A (en) Method for obtaining media metadata by intelligent remote controller to
CN105630434A (en) Synergetic printing method and device
JP5739724B2 (en) Image processing system
JP5021921B2 (en) Data conversion apparatus, data conversion system, data conversion method, program, and recording medium
JP5168398B2 (en) Apparatus, data processing method, and program
CN105847450B (en) The method that privately owned application synchronously handles official business with bitcom is realized by file
JP4797054B2 (en) Data relay apparatus and data relay method
JP2007034886A (en) Image output device, image output method, and network connection apparatus
CN108710529A (en) A kind of remote task processing method, system and wireless router
CN101815058B (en) Method and device for creating print dialog based on SIP (Session Initiation Protocol) protocol in IP network

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