[go: up one dir, main page]

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
file
information
area network
local area
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

本发明公开了一种基于局域网的设备文件打印的方法和系统,所述方法包括:第一设备向局域网中第二设备发送上线信息;第二设备根据上线信息向第一设备反馈应答信息;第一设备接收打印指令,根据应答信息选择与安装有打印机的第二设备之一建立通信连接,并通过通信连接通道将携带有自身的IP地址、端口号、待打印文件路径的数据信息传输至所选第二设备;所选第二设备根据数据信息从第一设备中获取待打印的文件,驱动打印所述文件。本发明提供的方法和系统,在没有移动存储设备和/或不能通过第三应用程序将第一设备的文件发送至安装有打印机的第二设备的情况下,仍能由该第二设备驱动打印第一设备中待打印的文件,提高了用户的体验效果。

Figure 201310289295

The invention discloses a method and system for printing device files based on a local area network. The method includes: a first device sends online information to a second device in the local area network; the second device feeds back response information to the first device according to the online information; A device receives the printing instruction, selects to establish a communication connection with one of the second devices installed with the printer according to the response information, and transmits the data information carrying its own IP address, port number, and path of the file to be printed to the selected device through the communication connection channel. Select the second device; 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. The method and system provided by the present invention can still be driven by the second device to print when there is no removable storage device and/or the file of the first device cannot be sent to the second device installed with the printer through the third application program The files to be printed in the first device improve user experience.

Figure 201310289295

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.一种基于局域网的设备文件打印的方法,其特征在于,包括:1. A method for local area network-based device file printing, characterized in that, comprising: 第一设备通过路由器向局域网中的第二设备发送上线信息;The first device sends online information to the second device in the local area network through the router; 第二设备根据上线信息通过所述路由器向第一设备反馈应答信息;The second device feeds back response information to the first device through the router according to the online information; 第一设备接收打印指令,根据应答信息选择与安装有打印机的第二设备之一建立通信连接;The first device receives the printing instruction, and selects to establish a communication connection with one of the second devices installed with the printer according to the response information; 第一设备通过所述通信连接通道将携带有自身的IP地址、端口号、待打印文件路径的数据信息传输至所选第二设备;The first device transmits the data information carrying its own IP address, port number, and path of the file to be printed to the selected second device through the communication connection channel; 所选第二设备根据所述数据信息从第一设备中获取待打印的文件,驱动自身安装的打印机打印所述文件。The selected second device obtains the file to be printed from the first device according to the data information, and drives the printer installed on itself to print the file. 2.根据权利要求1所述的基于局域网的设备文件打印的方法,其特征在于,2. the method for device file printing based on local area network according to claim 1, is characterized in that, 所述上线信息包括:第一设备的IP地址、端口号;The online information includes: the IP address and port number of the first device; 所述应答信息包括:第二设备的IP地址、端口号;The response information includes: the IP address and port number of the second device; 所述第二设备根据上线信息中的IP地址、端口号向第一设备反馈所述应答信息;The second device feeds back the response information to the first device according to the IP address and port number in the online information; 所述第一设备根据第一设备的IP地址、端口号,以及所选第二设备的IP地址、端口号,建立与所选第二设备的通信连接。The first device establishes a communication connection with the selected second device according to the IP address and port number of the first device and the IP address and port number of the selected second device. 3.根据权利要求2所述的基于局域网的设备文件打印的方法,其特征在于,3. the method for the device file printing based on local area network according to claim 2, is characterized in that, 所述应答信息还包括:第二设备的类型信息;The response information also includes: type information of the second device; 所述第二设备的类型包括:普通PC类型、安装有打印机的PC类型、智能类型;The type of the second device includes: common PC type, PC type installed with a printer, and smart type; 所述第一设备根据应答信息选择与安装有打印机的第二设备之一建立通信连接具体包括:The first device selecting to establish a communication connection with one of the second devices installed with a printer according to the response information specifically includes: 第一设备根据每个第二设备反馈的应答信息中的第二设备的类型信息,确定每个第二设备的类型,并选择与安装有打印机的PC类型的第二设备之一建立通信连接。The first device determines the type of each second device according to the type information of the second device in the response information fed back by each second device, and selects to establish a communication connection with one of the PC-type second devices installed with a printer. 4.根据权利要求1所述的基于局域网的设备文件打印的方法,其特征在于,所选第二设备驱动自身安装的打印机打印所述文件之后还包括:4. The method for printing a device file based on a local area network according to claim 1, wherein, after the selected second device drives the printer installed by itself to print the file, it also includes: 所选第二设备删除从第一设备中获取的待打印的文件。The selected second device deletes the file to be printed obtained from the first device. 5.根据权利要求1所述的基于局域网的设备文件打印的方法,其特征在于,所述第一设备与所选第二设备建立通信连接之后还包括:5. The method for printing a device file based on a local area network according to claim 1, wherein, after the first device establishes a communication connection with the selected second device, it further comprises: 第一设备向局域网中的第二设备发送下线信息;The first device sends offline information to the second device in the local area network; 所选第二设备根据所述下线信息断开与第一设备的通信连接。The selected second device disconnects the communication connection with the first device according to the offline information. 6.根据权利要求1至5任一项所述的基于局域网的设备文件打印的方法,其特征在于,所述第一设备与所选第二设备之间建立的通信连接为Socket连接或者为HTTP连接。6. The method for printing a device file based on a local area network according to any one of claims 1 to 5, wherein the communication connection established between the first device and the selected second device is a Socket connection or an HTTP connect. 7.一种基于局域网的设备文件打印的系统,其特征在于,包括:7. A system based on local area network device file printing, characterized in that it comprises: 第一设备,用于通过路由器向局域网中的第二设备发送上线信息;接收打印指令,根据第二设备反馈的应答信息选择与安装有打印机的第二设备之一建立通信连接;并通过所述通信连接通道将携带有自身的IP地址、端口号、待打印文件路径的数据信息传输至所选第二设备;The first device is configured to send online information to the second device in the local area network through the router; receive the printing instruction, and select to establish a communication connection with one of the second devices installed with the printer according to the response information fed back by the second device; and through the said The communication connection channel transmits the data information carrying its own IP address, port number, and path of the file to be printed to the selected second device; 第二设备,用于根据第一设备发送的上线信息通过所述路由器向第一设备反馈应答信息;当一第二设备安装有打印机,被选为与第一设备建立通信连接,并接收到第一设备传输的所述数据信息,则该所选第二设备还用于根据所述数据信息从第一设备中获取待打印的文件,驱动自身安装的打印机打印所述文件。The second device is used to feed back response information to the first device through the router according to the online information sent by the first device; when a second device is installed with a printer, it is selected to establish a communication connection with the first device and receives the second The data information transmitted by a device, the selected second device is also used to obtain the file to be printed from the first device according to the data information, and drive the printer installed on itself to print the file. 8.根据权利要求7所述的基于局域网的设备文件打印的系统,其特征在于,8. The system of device file printing based on local area network according to claim 7, characterized in that, 所述上线信息包括:第一设备的IP地址、端口号;The online information includes: the IP address and port number of the first device; 所述应答信息包括:第二设备的IP地址、端口号;The response information includes: the IP address and port number of the second device; 所述第二设备,具体还用于根据上线信息中的IP地址、端口号向第一设备反馈所述应答信息;The second device is specifically further configured to feed back the response information to the first device according to the IP address and port number in the online information; 所述第一设备,具体还用于根据自身的IP地址、端口号,以及所选第二设备的IP地址、端口号与所选第二设备建立通信连接。The first device is specifically further configured to establish a communication connection with the selected second device according to its own IP address and port number and the IP address and port number of the selected second device. 9.根据权利要求8所述的基于局域网的设备文件打印的系统,其特征在于,9. The system of device file printing based on local area network according to claim 8, characterized in that, 所述应答信息还包括:第二设备的类型信息;The response information also includes: type information of the second device; 所述第二设备的类型包括:普通PC类型、安装有打印机的PC类型、智能类型;The type of the second device includes: common PC type, PC type installed with a printer, and smart type; 所述第一设备,具体还用于根据每个第二设备反馈的应答信息中的第二设备的类型信息,确定每个第二设备的类型,并选择与安装有打印机的PC类型的第二设备之一建立通信连接。The first device is further configured to determine the type of each second device according to the type information of the second device in the response information fed back by each second device, and select the second device of the type corresponding to the PC installed with the printer. One of the devices establishes a communication connection. 10.根据权利要求7所述的基于局域网的设备文件打印的系统,其特征在于,所选第二设备,还用于在自身安装的打印机打印所述文件之后,删除所述文件。10. The device file printing system based on a local area network according to claim 7, wherein the selected second device is further used to delete the file after the printer installed on itself prints the file. 11.根据权利要求7所述的基于局域网的设备文件打印的系统,其特征在于,11. The system of device file printing based on LAN according to claim 7, characterized in that, 第一设备,还用于向局域网中的第二设备发送下线信息;The first device is further configured to send offline information to the second device in the local area network; 所选第二设备,用于在与第一设备建立通信连接之后,根据第一设备发送的下线信息断开与第一设备的通信连接。The selected second device is configured to disconnect the communication connection with the first device according to the offline information sent by the first device after establishing the communication connection with the first device. 12.根据权利要求7至11任一项所述的基于局域网的设备文件打印的系统,其特征在于,所述第一设备与所选第二设备之间建立的通信连接为Socket连接或者为HTTP连接。12. The device file printing system based on a local area network according to any one of claims 7 to 11, wherein the communication connection established between the first device and the selected second device is a Socket connection or an HTTP connect.
CN201310289295.4A 2013-07-10 2013-07-10 Method and system for device file printing based on local area network Expired - Fee Related CN103412728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310289295.4A CN103412728B (en) 2013-07-10 2013-07-10 Method and system for device file printing based on local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310289295.4A CN103412728B (en) 2013-07-10 2013-07-10 Method and system for device file printing based on local area network

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 Expired - Fee Related CN103412728B (en) 2013-07-10 2013-07-10 Method and system for device file printing based on local area network

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
US9891867B2 (en) Protocol for interaction between wireless devices and other devices
CN102447958B (en) Image processing system, image processing method, image processing equipment and trunking
US20140047322A1 (en) Method and system for browsing things of internet of things on ip using web platform
US9734437B2 (en) Communication relaying technology and communication relaying apparatus
CN103813046B (en) Control server, data processing device, and control device for data processing device
JP6098423B2 (en) Terminal device and printer
CN103412728A (en) Method and system for device file printing based on local area network
JP2008186270A (en) Network printing system
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
JP2016115198A (en) Printing system, print out device, and program
JP4710468B2 (en) Print request apparatus, print system, and print request method
JP2019070981A (en) Image processing apparatus, control method and program for image processing apparatus
JP6393475B2 (en) Communication adapter device, communication system, tunnel communication method, and program
CN103139413B (en) Intermediary server and communication equipment
CN105630434A (en) Synergetic printing method and device
JP2016066265A (en) Information processing device, communication system, and program
JP5739724B2 (en) Image processing system
JP2006018430A (en) Information processor, network system, program, data structure and storage medium
JP4797054B2 (en) Data relay apparatus and data relay method
CN105847450B (en) The method that privately owned application synchronously handles official business with bitcom is realized by file
JP6477108B2 (en) Image forming apparatus, image forming system, and program
WO2015072169A1 (en) Access control apparatus, access control system, access control method, and program
JP6008664B2 (en) Output instruction device, output device, and content output system
JP2007034886A (en) Image output device, image output method, and network connection device
CN103150131A (en) Transmission printing system based on WiFi (wireless fidelity) and the like on Android platform

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170725