CN109885266A - A kind of method, apparatus, system and the mobile terminal of printer network connection - Google Patents

A kind of method, apparatus, system and the mobile terminal of printer network connection Download PDF

Info

Publication number
CN109885266A
CN109885266A CN201910051211.0A CN201910051211A CN109885266A CN 109885266 A CN109885266 A CN 109885266A CN 201910051211 A CN201910051211 A CN 201910051211A CN 109885266 A CN109885266 A CN 109885266A
Authority
CN
China
Prior art keywords
printer
identification information
network connection
mobile terminal
discovery agreement
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.)
Pending
Application number
CN201910051211.0A
Other languages
Chinese (zh)
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.)
Lenovo Image Tianjin Technology Co Ltd
Original Assignee
Lenovo Image Tianjin 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 Lenovo Image Tianjin Technology Co Ltd filed Critical Lenovo Image Tianjin Technology Co Ltd
Priority to CN201910051211.0A priority Critical patent/CN109885266A/en
Publication of CN109885266A publication Critical patent/CN109885266A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses method, apparatus, system and the mobile terminals of a kind of network connection of printer, are suitable for mobile terminal, this method comprises: obtaining the first identification information of printer by the first discovery agreement;The second identification information of the printer is obtained by the second discovery agreement;Judge whether the first identification information and the second identification information match;When the first identification information and the second identification information match, connection is established by the corresponding communication network of the second discovery agreement and printer.By implementing method provided by the invention, mobile terminal identifies the facility information of printer by the first discovery agreement and the second discovery agreement respectively, it is matched, when so as to avoid mobile terminal from connecting the same printer by two kinds of different modes, the problem of can not differentiating the same printer.

Description

A kind of method, apparatus, system and the mobile terminal of printer network connection
Technical field
The present invention relates to printer technology fields, and in particular to the method, apparatus of printer network connection a kind of, system and Mobile terminal.
Background technique
More and more diversified due to internetwork connection mode, a printer is in addition to supporting wired connection, WIFI link road By device, can be attached using itself as a WIFI hot spot for other equipment, when printer by cable network or When LAN connection is added in the mode of WIFI connection router, the other equipment (such as mobile phone) being added in local area network can pass through (while printer must also be supported to correspond to for Bonjour agreement, snmp protocol or other discovery protocol discovery printer apparatus Discovery agreement).When printer is as a hot spot, other equipment (such as mobile phone) can by P2P protocol discovery printer, Then it is attached using soft AP or other means.Since the mode of two kinds of discovery printers is different, it may appear that ask below Topic: if 1, cell phone apparatus, 2 kinds of modes can find simultaneously and connect printer, due to that can not discriminate whether to beat for same Print machine, it may appear that the problem of showing 2 printer icons brings puzzlement to user's selection;2, if cell phone apparatus and printer Local area network is all had been added in, then can be directly connected to the printer inside local area network and be printed, if continuing to use soft AP is attached, and will lead to time growth used by a user;If 3, cell phone apparatus cannot support simultaneously link road by and make To route connected burse mode, then when will lead to mobile phone connection printer AP, it is necessary to disconnect WIFI link road by mode, Bad experience is brought to user
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method, apparatus of printer network connection, system and movement are whole End can not identify the same printer to solve the problem of that mobile terminal connects the same printer by two kinds of different modes.
According in a first aspect, the embodiment of the invention provides a kind of methods of printer network connection, comprising: pass through first It was found that agreement obtains the first identification information of printer;The second identification letter of the printer is obtained by the second discovery agreement Breath;Judge whether first identification information and second identification information match;When first identification information and described When two identification informations match, connection is established by the corresponding communication network of the second discovery agreement and printer.
With reference to first aspect, in first aspect first embodiment, when first identification information and described second are known When other information mismatches, the printer is connected to by Soft AP.
With reference to first aspect, in first aspect second embodiment, first identification information and the second identification information It include: at least one of unique identifier, media access control address, sequence number and the title of printer information.
With reference to first aspect, in first aspect third embodiment, the of printer is obtained by the first discovery agreement Before one identification information, further include;Obtain print job data and print parameters information;According to the print parameters information to institute It states print job data and carries out rendering processing, obtain data to be printed.Judge whether through LAN connection to the printer; When being connected to the printer, the data to be printed are sent to the printer and carry out printing.
Third embodiment with reference to first aspect is connected to the printing working as in the 4th embodiment of first aspect After when machine, comprising: judge whether to connect multiple printers;When connecting multiple printers, communication signal is selected The strongest printer sends the data to be printed.
According to second aspect, the embodiment of the invention provides a kind of devices of printer network connection, comprising: the first identification Data obtaining module, for obtaining the first identification information of printer by the first discovery agreement;Second identification information obtains mould Block, for obtaining the second identification information of printer by the second discovery agreement;Judgment module, for judging first identification Whether information and second identification information match;Link block, for when first identification information and second identification When information matches, connection is established by the corresponding communication network of the second discovery agreement and printer.
According to the third aspect, the embodiment of the invention provides a kind of mobile terminals, comprising: memory and processor, it is described Connection is communicated with each other between memory and the processor, computer instruction is stored in the memory, and the processor is logical It crosses and executes the computer instruction, thereby executing the printer network company of any one embodiment of such as first aspect or first aspect The method connect.
According to fourth aspect, the embodiment of the present invention provides a kind of system of printer network connection, comprising: such as the third aspect The mobile terminal and a few printer, an at least printer with the mobile terminal for connecting.
According to the 5th aspect, the embodiment of the invention provides a kind of computer readable storage medium, described computer-readable Storage medium is stored with computer instruction, and the computer instruction is for making the computer execute such as first aspect or first party The method of the printer network connection of any one embodiment of face.
Compared with prior art, the present invention has the following beneficial effects: being connected by implementing printer network of the invention Method, apparatus, system and the mobile terminal connect, when mobile terminal is connected to the same printer by local area network and soft AP, It finds that agreement obtains the facility information of printer by two kinds, is matched, be so as to avoid mobile terminal that from can not differentiating It is no be same printer the problem of, and the mobile terminal realize printing function operation it is convenient, save user print Time.
Detailed description of the invention
The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, and attached drawing is schematically without that should manage Solution is carries out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows the flow diagram of the method for the network connection of the printer in the embodiment of the present invention;
Fig. 2 shows the structural block diagrams of the device of the printer network connection in the embodiment of the present invention;
Fig. 3 shows the structure chart of the mobile terminal in the embodiment of the present invention;
Fig. 4 shows the structural block diagram for the system that printer is connected to the network in the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
The embodiment of the invention provides a kind of methods of printer network connection, are suitable for mobile terminal, in practical application In, which can be the mobile devices such as mobile phone, as shown in Figure 1, the method for printer network connection includes following step It is rapid:
Step S101: mobile terminal obtains the first of printer by the first discovery agreement and printer to be connect interaction Identification information, which is WIFI P2P agreement in practical applications, and mobile terminal sends Probe requst, beats Print machine increases by the first identification information in the vendor specific IE frame of Probe requst packet or other frames are replied;
Step S102: mobile terminal is interacted by the second discovery agreement with the printer in above-mentioned steps, and printer is obtained The second identification information, which is SNMP discovery agreement, Bonjour discovery agreement etc. association in practical applications View;
Step S103: mobile device is by judging whether the first identification information and the second identification information match;
Step S104: mobile device determines that mobile device passes through when the first identification information and the second identification information match The corresponding communication network of second discovery agreement and printer establish connection, prepare subsequent print job.
Method by implementing the printer network connection in the embodiment of the present invention, when mobile terminal by local area network and Soft AP is connected to the same printer, finds that agreement, Bonjour find the association such as agreement by WIFI P2P agreement and SNMP The facility information of printer is obtained, and the first identification information and the second identification information are matched, so as to avoid moving The problem of terminal can not discriminate whether as same printer
Optionally, in some embodiment of the invention, after above-mentioned steps S103, mobile terminal judge the first identification information and When second identification information mismatches, mobile terminal can not be by LAN connection to printer, and printer is as a wireless visit It asks that access point (abbreviation AP) is connected for mobile terminal, after mobile terminal establishes connection by Soft AP and printer, realizes printing Function.
Optionally, in some embodiment of the invention, the first identification information described in above-described embodiment and the second identification letter Breath includes: at least one of unique identifier, media access control address, sequence number and the title of printer facility information, It is same printer apparatus that mobile terminal can be made, which to judge whether,.
Optionally, in some embodiment of the invention, before above-mentioned steps S101, the method for printer network connection is also Including;Obtain the print job data and print parameters information of user's input;According to print parameters information to print job data Rendering processing is carried out, data to be printed are obtained;Judge whether through LAN connection to the printer;When being connected to described beat When print machine, the data to be printed are sent to the printer and carry out printing.Mobile terminal and printer are in connection When state, there is no need to establish a connection again with printer, directly data to be printed can be sent to by local area network Printer carries out print job, easy to operate, reduces the time that the printing of user is spent.
Optionally, in some embodiment of the invention, after in upper one embodiment when being connected to the printer, also Including;Mobile device judges whether to connect multiple printers;When connecting multiple printers, mobile device can select communication signal The strongest printer sends the data to be printed, avoids user from taking time to select printer, reduces user's operation.
The embodiment of the present invention also provides a kind of device of printer network connection, as shown in Fig. 2, the device includes: first Identification information obtain module 11, for by first discovery agreement obtain printer the first identification information, detailed content referring to The content of step S101 in above-described embodiment;Second identification information obtains module 12, for being beaten by the second discovery agreement acquisition Second identification information of print machine, detailed content referring to step S102 in above-described embodiment content;Judgment module 13, for judging Whether first identification information and second identification information match, detailed content is referring to step S103 in above-described embodiment Content;Link block 14, for passing through the second discovery when first identification information and second identification information matching The corresponding communication network of agreement and printer establish connection, detailed content referring to step S104 in above-described embodiment content.
The embodiment of the invention also provides a kind of mobile terminals, as shown in figure 3, the mobile terminal may include processor 51 With memory 52, wherein processor 51 can be connected with memory 52 by bus or other modes, to pass through bus in Fig. 3 For connection.
Processor 51 can be central processing unit (Central Processing Unit, CPU).Processor 51 can be with For other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 52 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non- Transient computer executable program and module, such as the journey for the method that the corresponding printer in the embodiment of the present invention is connected to the network Sequence instruction/module is (for example, the first identification information shown in Fig. 2 obtains module 11, the second identification information obtains module 12, judgement Module 13 and link block 14).Processor 51 by operation be stored in memory 52 non-transient software program, instruction and Module, thereby executing the various function application and data processing of processor, i.e. printer in realization above method embodiment The method of network connection.
Memory 52 may include storing program area and storage data area, wherein storing program area can storage program area, Application program required at least one function;It storage data area can the data etc. that are created of storage processor 51.In addition, storage Device 52 may include high-speed random access memory, can also include non-transient memory, for example, at least a magnetic disk storage Part, flush memory device or other non-transient solid-state memories.In some embodiments, it includes relative to place that memory 52 is optional The remotely located memory of device 51 is managed, these remote memories can pass through network connection to processor 51.The reality of above-mentioned network Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 52, when being executed by the processor 51, are executed The method of printer network connection in embodiment as shown in Figure 1.
Above-mentioned mobile terminal detail can correspond to corresponding associated description in embodiment referring to FIG. 1 to 3 Understood with effect, details are not described herein again.
The embodiment of the present invention also provides a kind of system of printer network connection, as shown in figure 4, the system includes: above-mentioned Mobile terminal 1 and an at least printer in embodiment, printer include: AP module 2, and mobile terminal passes through printer AP module 2 is connect with printer.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute Within the scope of restriction.

Claims (10)

1. a kind of method of printer network connection, is suitable for mobile terminal characterized by comprising
The first identification information of printer is obtained by the first discovery agreement;
The second identification information of the printer is obtained by the second discovery agreement;
Judge whether first identification information and second identification information match;
When first identification information and second identification information match, pass through the corresponding communication network of the second discovery agreement Connection is established with printer.
2. the method for printer network connection according to claim 1, which is characterized in that when first identification information and institute When stating the second identification information mismatch, the printer is connected to by Soft AP.
3. the method for printer network connection according to claim 1, which is characterized in that first identification information and second Identification information includes: at least one of unique identifier, media access control address, sequence number and title of printer letter Breath.
4. the method for printer network connection according to claim 1, which is characterized in that beaten by the first discovery agreement acquisition Before first identification information of print machine, further include;
Obtain print job data and print parameters information;
Rendering processing is carried out to the print job data according to the print parameters information, obtains data to be printed.
Judge whether through LAN connection to the printer;
When being connected to the printer, the data to be printed are sent to the printer and carry out printing.
5. the method for printer network connection according to claim 4, which is characterized in that when being connected to the printer Later, comprising:
Judge whether to connect multiple printers;
When connecting multiple printers, the strongest printer of communication signal is selected to send the data to be printed.
6. a kind of device of printer network connection characterized by comprising
First identification information obtains module, for obtaining the first identification information of printer by the first discovery agreement;
Second identification information obtains module, for obtaining the second identification information of printer by the second discovery agreement;
Judgment module, for judging whether first identification information and second identification information match;
Link block, for when first identification information and second identification information matching, passing through the second discovery agreement Corresponding communication network and printer establish connection.
7. a kind of mobile terminal characterized by comprising
Memory and processor communicate with each other connection, are stored in the memory between the memory and the processor Computer instruction, the processor is by executing the computer instruction, thereby executing printer as claimed in claims 1-5 The method of network connection.
8. a kind of system of printer network connection characterized by comprising
As claimed in claim 7 mobile terminal and an at least printer, an at least printer be used for it is described Mobile terminal connection.
9. the system of printer network connection according to claim 8, which is characterized in that the printer includes: AP mould Block;
The mobile terminal is connect by the AP module with the printer.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, the method that the computer instruction is used to that the computer to be made to execute printer network connection as claimed in claims 1-5.
CN201910051211.0A 2019-01-18 2019-01-18 A kind of method, apparatus, system and the mobile terminal of printer network connection Pending CN109885266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910051211.0A CN109885266A (en) 2019-01-18 2019-01-18 A kind of method, apparatus, system and the mobile terminal of printer network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910051211.0A CN109885266A (en) 2019-01-18 2019-01-18 A kind of method, apparatus, system and the mobile terminal of printer network connection

Publications (1)

Publication Number Publication Date
CN109885266A true CN109885266A (en) 2019-06-14

Family

ID=66926329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910051211.0A Pending CN109885266A (en) 2019-01-18 2019-01-18 A kind of method, apparatus, system and the mobile terminal of printer network connection

Country Status (1)

Country Link
CN (1) CN109885266A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986157A (en) * 2021-10-19 2022-01-28 上海汉图科技有限公司 Method and device for updating printer state, electronic equipment and storage medium
CN114779989A (en) * 2022-04-08 2022-07-22 珠海奔图电子有限公司 Image forming apparatus search display method, apparatus and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2665821Y (en) * 2002-09-29 2004-12-22 瀚霖科技股份有限公司 Automatic account number generation system and printer therefor
CN1657299A (en) * 2003-12-13 2005-08-24 三星电子株式会社 System and method for selecting printer via wireless communication network and printing data
CN103179120A (en) * 2013-03-21 2013-06-26 天闻数媒科技(北京)有限公司 Method and system for realizing printing of mobile device
CN104375788A (en) * 2014-11-13 2015-02-25 深圳市无微不至数字技术有限公司 Wireless printer
CN104836599A (en) * 2014-02-06 2015-08-12 佳能株式会社 Communication apparatus and method of controlling the same
CN106027826A (en) * 2015-03-27 2016-10-12 富士施乐株式会社 Method for searching for image forming apparatus and mobile terminal
CN106209762A (en) * 2015-05-29 2016-12-07 佳能株式会社 Information processor and the control method of information processor
CN107274597A (en) * 2017-06-16 2017-10-20 福州汇思博信息技术有限公司 POS Method of printing and its system based on LAN
CN108519864A (en) * 2018-03-12 2018-09-11 南通大学 A kind of Self-service printing system under Raspberry Pi

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2665821Y (en) * 2002-09-29 2004-12-22 瀚霖科技股份有限公司 Automatic account number generation system and printer therefor
CN1657299A (en) * 2003-12-13 2005-08-24 三星电子株式会社 System and method for selecting printer via wireless communication network and printing data
CN103179120A (en) * 2013-03-21 2013-06-26 天闻数媒科技(北京)有限公司 Method and system for realizing printing of mobile device
CN104836599A (en) * 2014-02-06 2015-08-12 佳能株式会社 Communication apparatus and method of controlling the same
CN104375788A (en) * 2014-11-13 2015-02-25 深圳市无微不至数字技术有限公司 Wireless printer
CN106027826A (en) * 2015-03-27 2016-10-12 富士施乐株式会社 Method for searching for image forming apparatus and mobile terminal
CN106209762A (en) * 2015-05-29 2016-12-07 佳能株式会社 Information processor and the control method of information processor
CN107274597A (en) * 2017-06-16 2017-10-20 福州汇思博信息技术有限公司 POS Method of printing and its system based on LAN
CN108519864A (en) * 2018-03-12 2018-09-11 南通大学 A kind of Self-service printing system under Raspberry Pi

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986157A (en) * 2021-10-19 2022-01-28 上海汉图科技有限公司 Method and device for updating printer state, electronic equipment and storage medium
CN114779989A (en) * 2022-04-08 2022-07-22 珠海奔图电子有限公司 Image forming apparatus search display method, apparatus and computer-readable storage medium

Similar Documents

Publication Publication Date Title
EP3481017A1 (en) Network slice selection method, apparatus and system
EP3585095B1 (en) Method and device for controlling qos, smf, upf, ue, pcf and an
CN103780672B (en) WI-FI P2P communication terminal and its communication means
US9008041B2 (en) Processing method supporting handover, communication apparatus, and communication system
US20100100646A1 (en) Apparatus supporting plurality of interfaces and method of setting up network connection of the same
JP6260272B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
CN102571513A (en) Portable device and method for setting operation mode
CN108023763A (en) The creation method and device of a kind of network topological diagram
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
US20220312309A1 (en) Method and Apparatus for Reporting User Plane Function Information, Storage Medium, and Electronic Apparatus
CN109885266A (en) A kind of method, apparatus, system and the mobile terminal of printer network connection
CN106506717A (en) A kind of automatic discovering method and equipment
CN107465993A (en) Information processor and method
CN102752215A (en) Processing method for VDP (vertical data processing) request messages and edge switch
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
CN109413227A (en) IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment
CN109510912A (en) Information processing unit, its control method and storage medium
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
EP3649762B1 (en) Method and apparatus for rapidly configuring network element device for plug and play
CN104754699B (en) The control method of communication device and communication device
JP7350828B2 (en) Printing device, printing device control method and program
CN110505075B (en) Device management method and related device
TWI488465B (en) Routing method with automatic detection and portable routing apparatus, and a method of panel display configuration
US11510123B2 (en) Electronic apparatus and communication control method
JP4579629B2 (en) Communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 300450 room 310, No.1 Second Street, airport international logistics zone, pilot free trade zone (Airport Economic Zone), Dongli District, Tianjin

Applicant after: Zhixiang Technology Co.,Ltd.

Address before: 300450 room 310, No.1 Second Street, airport international logistics zone, pilot free trade zone (Airport Economic Zone), Dongli District, Tianjin

Applicant before: LENOVO IMAGE (TIANJIN) TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614