CN105812613B - The communication means of terminal and the terminal and printing device - Google Patents
The communication means of terminal and the terminal and printing device Download PDFInfo
- Publication number
- CN105812613B CN105812613B CN201410854201.8A CN201410854201A CN105812613B CN 105812613 B CN105812613 B CN 105812613B CN 201410854201 A CN201410854201 A CN 201410854201A CN 105812613 B CN105812613 B CN 105812613B
- Authority
- CN
- China
- Prior art keywords
- printing device
- connection
- driving element
- terminal
- driving
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses the communication means of a kind of terminal and the terminal and printing device, communication means includes: the physical connection established between terminal and printing device;Terminal obtains the connection type of printing device by established physical connection, connection element corresponding with the connection type is searched in printing device communication pool, and carry out software connection using the corresponding connection protocol of the connection element searched and printing device;And obtain the attribute information of printing device, judge that the driving element in printing device communication pool concentrates the driving element with the presence or absence of the attribute information corresponding to the printing device, if there is, then printing device is driven to print using the driving element, wherein, printing device communication pool includes connection element collection and driving element collection, the corresponding connection protocol of each connection element that wherein connection element is concentrated, the corresponding printing device supplier driving of each driving element that driving element is concentrated.In this way, realizing the quick connection with printing device.
Description
Technical field
The present invention relates to the communications fields, and in particular, to the communication means of a kind of terminal and the terminal and printing device.
Background technique
The use of printing device is more and more important in the work and life of people, such as issues system by network invoice
Terminal (terminal such as operated in android system) carries out opening invoice, then printing device printing invoice is driven to come out.This
The printing device for just needing that terminal is connected with printing device and enables the terminal to driving to connect.Currently, printing is set
Standby is many kinds of, their connection type is also varied, for example, bluetooth connection mode, serial ports connection type, USB connection
Mode, Wifi connection type etc., and the driver of the printing device of different printing device suppliers is also general different.Mesh
Before, terminal one printing device of every connection just needs to install connection and the driver of the printer, in this way, providing to vast number
Printing device support, be a very big workload for terminal.
Summary of the invention
The object of the present invention is to provide the communication means of a kind of terminal and the terminal and printing device, which is easy to
Realize from the connection of different printing devices, it is easy to maintain and can reduce development cost.
To achieve the goals above, the present invention provides the communication means of a kind of terminal and printing device, the communication party
Method includes: the physical connection established between the terminal and the printing device;The terminal passes through established physical connection
The connection type for obtaining the printing device searches for connection element corresponding with the connection type in printing device communication pool,
And software connection is carried out using the corresponding connection protocol of the connection element searched and the printing device;And described in obtaining
The attribute information of printing device judges that the driving element in the printing device communication pool is concentrated with the presence or absence of corresponding to the printing
The driving element of the attribute information of equipment, if it is present the printing device is driven to print using the driving element,
In, the printing device communication pool includes connection element collection and driving element collection, wherein each company that the connection element is concentrated
The corresponding connection protocol of element is connect, the corresponding printing device supplier of each driving element that the driving element is concentrated drives
It is dynamic.
Preferably, the communication means further include: establish printing device communication pool in the terminal.
Preferably, the communication means further include: there is no correspond to the printing to set if the connection element is concentrated
The connection element of standby connection type then concentrates creation corresponding to the connection element of the connection type in the connection element;With
And there is no the driving elements of the attribute information corresponding to the printing device if the driving element is concentrated, in the drive
Driving element of the creation for the attribute information corresponding to the printing device in dynamic element set.
Preferably, the connection protocol include it is following at least one: serial ports connection protocol, parallel port connection protocol, USB connection
Agreement, Wifi connection protocol, bluetooth connection agreement.
Preferably, the printing device be it is following at least one: serially printing equipment, port printing equipment, USB printing set
Standby, Wifi printing device, bluetooth printing device.
Preferably, the attribute information of the printing device include it is following at least one: the model of printing device, equipment supply
Side, type.
Correspondingly, the terminal includes: that connection connects the present invention also provides a kind of terminal communicated with printing device
Mouthful, it is used to provide the described the physical connection of terminal and printing device;Printing device communication pool, including connection element collection and driving member
Element collection, wherein the corresponding connection protocol of each connection element that the connection element is concentrated, the driving element are concentrated every
The corresponding printing device supplier driving of a driving element;And processor, the processor are used for: utilizing the connecting interface
The connection type that the printing device is obtained with the established physical connection of the printing device, in the printing device communication pool
Corresponding with the connection type connection element of middle search, and the corresponding connection protocol of connection element that searches of utilization with it is described
Printing device carries out software connection;And the attribute information of the printing device is obtained, it is to judge that the driving element is concentrated
The no driving element that there is the attribute information for corresponding to the printing device, if it is present using the driving element to drive
State printing device printing.
Preferably, the processor is also used to: if the connection element is concentrated, there is no correspond to the printing device
Connection type connection element, then the connection element concentrate creation correspond to the connection type connection element;And
If the driving element is concentrated, there is no the driving elements of the attribute information corresponding to the printing device, in the driving
Driving element of the creation for the attribute information corresponding to the printing device in element set.
Preferably, the connecting interface include it is following at least one: serial ports, parallel port, USB interface, Wifi interface, bluetooth connect
Mouthful.
Preferably, the connection protocol include it is following at least one: serial ports connection protocol, parallel port connection protocol, USB connection
Agreement, Wifi connection protocol, bluetooth connection agreement.
Preferably, the attribute of the printing device include it is following at least one: model, producer, the type of printing device.
Through the above technical solutions, the printing device communication pool including connection element collection and driving element collection is established, with benefit
It is connect with the connection element for the connection type for corresponding to printing device with the printing device, and utilizes the category for corresponding to printing device
Property information driving element come drive the printing device print.It so, it is possible to realize the quick connection with printing device.
Other features and advantages of the present invention will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
The drawings are intended to provide a further understanding of the invention, and constitutes part of specification, with following tool
Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the communication means provided by the present invention for terminal and printing device.
Specific embodiment
Below in conjunction with attached drawing, detailed description of the preferred embodiments.It should be understood that this place is retouched
The specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
Fig. 1 is the flow chart of the communication means provided by the present invention for terminal and printing device.As shown in Figure 1, being mentioned
The communication means for terminal and printing device supplied may include: to establish the terminal at step 11 and set with the printing
Physical connection between standby;At step 12, the terminal obtains the company of the printing device by established physical connection
Connect type;At step 13, connection element corresponding with the connection type is searched in printing device communication pool;In step 14
Place carries out software connection using the corresponding connection protocol of the connection element searched and the printing device;At step 15, obtain
Take the attribute information of the printing device;At step 16, judge that the driving element concentration in the printing device communication pool is
The no driving element that there is the attribute information for corresponding to the printing device;If it is present step 17 place is gone to, using the driving
Member usually drives the printing device to print.Wherein, the printing device communication pool includes connection element collection and driving element collection,
The corresponding connection protocol of each connection element that wherein connection element is concentrated, each driving that the driving element is concentrated
The corresponding printing device supplier driving of element.
Through the above technical solutions, using the printing device communication pool for including connection element collection and driving element collection, with benefit
It is connect with the connection element for the connection type for corresponding to printing device with the printing device, and utilizes the category for corresponding to printing device
Property information driving element come drive the printing device print.It so, it is possible to realize the quick connection with printing device, be easy to tie up
It protects and development cost is lower.
Communication means provided by the present invention can also include: to establish printing device communication pool in the terminal.
In addition, communication means provided by the present invention can also include: at step 13, if set in the printing established
Connection element corresponding with the connection type is not searched in standby communication pool, i.e., the described connection element, which is concentrated to be not present, corresponds to institute
The connection element of the connection type of printing device is stated, then concentrates creation corresponding to the connection of the connection protocol in the connection element
Element;And at step 16, if the driving element is concentrated, there is no the attribute informations corresponding to the printing device
Driving element then concentrates creation for the driving element of the attribute information corresponding to the printing device in the driving element.
Wherein, connection element may include the connection protocol and/or connection type of printing device, can be to identical company
The different printing devices for connecing type or agreement realize connection between terminal and printing device using identical connection element,
In embodiment, for the printing device of different brands, if these printing devices using same connection type (for example,
USB), then they are very possible also using identical agreement (for example, USB 2.0, USB 3.0 etc.), therefore can not consider to beat
The brand of printing apparatus or manufacturer, after the connection type (or nexus element) for determining printing device such as serial ports connection, selection
Connection protocol corresponding with the nexus element establishes the connection of terminal and printing device.Connection in the present invention in embodiments
Element can be connection protocol itself.Driving element may include the driving agreement and print command of printing device.Ordinary circumstance
Under, a series of same (for example, laser printing apparatus is serial, ink jet printing device series) printing device meetings of same brand or manufacturer
Using same or similar driver (or driving agreement).In consideration of it, can be to identical supplier with a series of or identical
The printing device of type (for example, laser type, heat-sensitive type or ink jet type) is driven using identical driving agreement.Therefore, when
After the attribute information (for example, supplier's title, printing device series etc.) for identifying printing device, accordingly it can select and belong to
The property corresponding driving element of information drives printing device to print.The driving element in the present invention can be drive in embodiments
Dynamic program or driving agreement itself.The connection protocol may include it is following at least one: serial ports connection protocol, parallel port connection association
View, USB connection protocol, Wifi connection protocol, bluetooth connection agreement.Correspondingly, printing device can for it is following at least one: string
Mouth printing device, port printing equipment, USB printing device, Wifi printing device, bluetooth printing device.
In addition, the attribute information of the printing device include it is following at least one: the model of printing device, equipment supply
Side, type.
Communication means provided by the invention is handled by the decoupling of bridge mode, is established to fast and flexible terminal and is set with printing
Connection between standby.For example, printing device A and printing device B are that two suppliers are produced, the drive command of the two is
Difference, but its connection type is consistent (for example, being bluetooth printing device), corresponds to if the connection element of terminal is concentrated to exist
In the connection element of bluetooth connection type (for example, bluetooth 3.0), then the existing company corresponding to bluetooth connection type can be multiplexed
It connects member usually to connect with printing device A and printing device B, if there is no the connection element for corresponding to bluetooth connection type, then
Creation corresponds to the connection element of bluetooth connection type;Then the attribute information of available printing device A and printing device B,
And judge that driving element concentrates the driving element with the presence or absence of the attribute information for corresponding respectively to printing device A and printing device B,
To realize that terminal and the software of printing device A and printing device B are connect;If there is the attribute information for corresponding to printing device A
Driving element, but there is no corresponding to printing device B attribute information driving element, then be multiplexed the driving element to drive
In addition printing device A printing concentrates creation corresponding to the driving element of the attribute information of printing device B in driving element.
Correspondingly, the present invention provides a kind of terminal communicated with printing device, the terminal includes: that connection connects
Mouthful, for realizing the physical connection with the printing device;Printing device communication pool, including connection element collection and driving element
Collection, wherein the corresponding connection protocol of each connection element that the connection element is concentrated, each of described driving element concentration
The corresponding printing device supplier driving of driving element;And processor, the processor are used for: using the connecting interface with
The established physical connection of printing device obtains the connection type of the printing device, in the printing device communication pool
Connection element corresponding with the connection type is searched for, and is beaten using the corresponding connection protocol of connection element searched with described
Printing apparatus carries out software connection;And the attribute information of the printing device is obtained, whether to judge the driving element concentration
In the presence of the driving element for the attribute information for corresponding to the printing device, if it is present being driven using the driving element described
Printing device printing.
Wherein, the connecting interface may include it is following at least one: serial ports, parallel port, USB interface, Wifi interface, bluetooth
Interface.
The detail and benefit of the terminal provided by the present invention communicated with printing device are communicated with above-mentioned be directed to
The details and benefit of method are identical, repeat no more in this.
It is described the prefered embodiments of the present invention in detail above in conjunction with attached drawing, still, the present invention is not limited to above-mentioned realities
The detail in mode is applied, within the scope of the technical concept of the present invention, a variety of letters can be carried out to technical solution of the present invention
Monotropic type, these simple variants all belong to the scope of protection of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the present invention to it is various can
No further explanation will be given for the combination of energy.
In addition, various embodiments of the present invention can be combined randomly, as long as it is without prejudice to originally
The thought of invention, it should also be regarded as the disclosure of the present invention.
Claims (10)
1. a kind of communication means for terminal and printing device, which is characterized in that the communication means is applied to terminal, described
Communication means includes:
The physical connection between the printing device is established, wherein the terminal includes printing device communication pool;
The connection type that the printing device is obtained based on established physical connection is determined in the printing device communication pool
Connection element corresponding with the connection type, and the corresponding connection protocol of the identified connection element is utilized to beat with described
Printing apparatus carries out software connection;And
The attribute information for obtaining the printing device judges that the driving element concentration in the printing device communication pool whether there is
The driving element of attribute information corresponding to the printing device, if it is present driving the printing using the driving element
Equipment printing,
Wherein, the printing device communication pool includes connection element collection and driving element collection, wherein what the connection element was concentrated
The corresponding connection protocol of each connection element, the corresponding printing device of each driving element that the driving element is concentrated supply
It should just drive.
2. communication means according to claim 1, which is characterized in that the communication means further include:
If the connection element is concentrated, there is no the connection elements of the connection type corresponding to the printing device, described
Connection element concentrates creation corresponding to the connection element of the connection type;And
If the driving element is concentrated, there is no the driving elements of the attribute information corresponding to the printing device, described
Driving element concentrates creation for the driving element of the attribute information corresponding to the printing device.
3. communication means according to claim 1 or 2, which is characterized in that the connection protocol include it is following at least one:
Serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection agreement.
4. communication means according to claim 1 or 2, which is characterized in that the printing device be it is following at least one: string
Mouth printing device, port printing equipment, USB printing device, Wifi printing device, bluetooth printing device.
5. communication means according to claim 1 or 2, which is characterized in that the attribute information of the printing device include with
Descend at least one: the model of printing device, equipment supplier, type.
6. a kind of terminal communicated with printing device, which is characterized in that the terminal includes:
Connecting interface is used to provide the described the physical connection of terminal Yu the printing device;
Printing device communication pool, including connection element collection and driving element collection, wherein each connection that the connection element is concentrated
Element corresponds to a connection protocol, and the corresponding printing device supplier of each driving element that the driving element is concentrated drives
It is dynamic;And
Processor, the processor are used for:
The connection type of the printing device is obtained using the connecting interface and the established physical connection of the printing device,
Connection element corresponding with the connection type is determined in the printing device communication pool, and utilizes identified connection element
Corresponding connection protocol and the printing device carry out software connection;And
The attribute information of the printing device is obtained, to judge that the driving element is concentrated with the presence or absence of corresponding to the printing device
Attribute information driving element, if it is present the printing device is driven to print using the driving element.
7. terminal according to claim 6, which is characterized in that the processor is also used to:
If the connection element is concentrated, there is no the connection elements of the connection type corresponding to the printing device, described
Connection element concentrates creation corresponding to the connection element of the connection type;And
If the driving element is concentrated, there is no the driving elements of the attribute information corresponding to the printing device, described
Driving element concentrates creation for the driving element of the attribute information corresponding to the printing device.
8. terminal according to claim 7, which is characterized in that the connecting interface include it is following at least one: serial ports, simultaneously
Mouth, USB interface, Wifi interface, blue tooth interface.
9. terminal a method according to any one of claims 6-8, which is characterized in that the connection protocol includes following at least one
Person: serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection agreement.
10. terminal a method according to any one of claims 6-8, which is characterized in that the attribute of the printing device include with
Descend at least one: model, producer, the type of printing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410854201.8A CN105812613B (en) | 2014-12-31 | 2014-12-31 | The communication means of terminal and the terminal and printing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410854201.8A CN105812613B (en) | 2014-12-31 | 2014-12-31 | The communication means of terminal and the terminal and printing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105812613A CN105812613A (en) | 2016-07-27 |
CN105812613B true CN105812613B (en) | 2019-01-08 |
Family
ID=56464900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410854201.8A Active CN105812613B (en) | 2014-12-31 | 2014-12-31 | The communication means of terminal and the terminal and printing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105812613B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110198240B (en) * | 2019-05-31 | 2023-01-20 | 口碑(上海)信息技术有限公司 | Method and device for adding printer to merchant management equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1190838A (en) * | 1997-02-14 | 1998-08-19 | 佳能株式会社 | Data communication device and method |
CN1472642A (en) * | 2002-09-13 | 2004-02-04 | 联想(北京)有限公司 | Method for automatic loading printer drive programme |
CN101840317A (en) * | 2009-03-18 | 2010-09-22 | 鸿富锦精密工业(深圳)有限公司 | Device and method for automatically configuring print driver |
CN102970200A (en) * | 2012-11-30 | 2013-03-13 | 中国科学院自动化研究所 | Mine internet of things integrated communication system, switch and host computer |
-
2014
- 2014-12-31 CN CN201410854201.8A patent/CN105812613B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1190838A (en) * | 1997-02-14 | 1998-08-19 | 佳能株式会社 | Data communication device and method |
CN1472642A (en) * | 2002-09-13 | 2004-02-04 | 联想(北京)有限公司 | Method for automatic loading printer drive programme |
CN101840317A (en) * | 2009-03-18 | 2010-09-22 | 鸿富锦精密工业(深圳)有限公司 | Device and method for automatically configuring print driver |
CN102970200A (en) * | 2012-11-30 | 2013-03-13 | 中国科学院自动化研究所 | Mine internet of things integrated communication system, switch and host computer |
Also Published As
Publication number | Publication date |
---|---|
CN105812613A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2008110051A (en) | CONNECTING WITH NETWORKS OF DIFFERENT TYPES OF NETWORKS THROUGH A GENERAL USER INTERFACE | |
CN104386094B (en) | Method and device for generating rail transit station line diagram | |
MX2017005607A (en) | Vehicle mode scheduling with learned user preferences. | |
CN104484145B (en) | A kind of method and device for the mapping point for determining LED box | |
BRPI0601316A (en) | sending value identifiers using short message service (sms) | |
ATE465616T1 (en) | COMMUNICATION SYSTEM WITH PORTABLE MASTER AND SLAVE DEVICES | |
CN103927288B (en) | Information transfer and shared method and system between a kind of mobile device | |
JP2016046797A (en) | Bluetooth pairing method using wired connection | |
CN104463449A (en) | Student schoolwork supervising system | |
WO2014038082A1 (en) | Manufacturing facility operator instruction system | |
CN103795680A (en) | Communication method supporting multiple communication protocols, and electric energy meter | |
CN105812613B (en) | The communication means of terminal and the terminal and printing device | |
CN103488598B (en) | A kind of multimode terminal and realize USB share method | |
AR093988A1 (en) | METHOD, LEGIBLE ENVIRONMENT BY COMPUTER AND SYSTEM TO COMMUNICATE WITH AN APPLICATION THROUGH A NETWORK ROADING | |
CN101815018A (en) | Moonlet multi-bus multi-passage communication monitoring device and monitoring method thereof | |
CN102902574B (en) | Cooperative processing method and device of multiple information flow nodes | |
US20100023922A1 (en) | Linking uml activity diagram nodes to uml class diagram nodes by using properties from applied stereotypes | |
DE60314543D1 (en) | IDENTIFYING A COMPATIBLE COMBINATION FOR A THERMAL PRINTER | |
RU2008139873A (en) | METHOD FOR PROVIDING CERTAIN INFORMATION | |
US20150206420A1 (en) | Alarm system | |
ATE404908T1 (en) | INTEGRATED CARRIER WITH MULTI-MOTOR REGULATOR | |
WO2011142904A3 (en) | Planner in communication device | |
CN205121636U (en) | Processing system of on -vehicle electronic product machine code and bar code | |
DK201370152A (en) | System and method for communicating with a plurality of devices | |
CN105072177A (en) | Electric power construction engineering data synchronization equipment |
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 |