[go: up one dir, main page]

CN105812613A - Terminal and communication method for terminal and printing equipment - Google Patents

Terminal and communication method for terminal and printing equipment Download PDF

Info

Publication number
CN105812613A
CN105812613A CN201410854201.8A CN201410854201A CN105812613A CN 105812613 A CN105812613 A CN 105812613A CN 201410854201 A CN201410854201 A CN 201410854201A CN 105812613 A CN105812613 A CN 105812613A
Authority
CN
China
Prior art keywords
printing device
connection
driving element
terminal
protocol
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
CN201410854201.8A
Other languages
Chinese (zh)
Other versions
CN105812613B (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201410854201.8A priority Critical patent/CN105812613B/en
Publication of CN105812613A publication Critical patent/CN105812613A/en
Application granted granted Critical
Publication of CN105812613B publication Critical patent/CN105812613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a terminal and a communication method for the terminal and printing equipment. The communication method comprises the steps: building a physical connection between the terminal and the printing equipment; enabling the terminal to obtain the connection type of the printing equipment through the built physical connection, searching a connection element, corresponding to the connection type, in a printing equipment communication library, and carrying out the software connection with the printing equipment through a connection protocol corresponding to the searched connection element; obtaining the attribute information of the printing equipment, and judging whether there is a drive element, corresponding to the attribute information of the printing equipment, in a drive element set in the printing equipment communication library or not, wherein the printing equipment communication library comprises a connection element set and the drive element set, each connection element in the connection element set is corresponding to one connection protocol, and each drive element in the drive element set is corresponding to one printing equipment supplier drive. Therefore, the method achieves the quick connection with the printing equipment.

Description

The communication means of terminal and this terminal and printing device
Technical field
The present invention relates to the communications field, in particular it relates to the communication means of a kind of terminal and this terminal and printing device.
Background technology
Using in the work and life of people of printing device is more and more important, for instance opens system terminal (as the terminal operating in android system) by invoice and carries out opening invoice, then drives printing device printing invoice out.This is accomplished by being connected terminal with printing device and enable the terminal to drive the printing device being connected.At present, printing device of a great variety, their connected mode is also varied, such as, bluetooth connected mode, serial ports connected mode, USB connected mode, Wifi connected mode etc., and the driver of the printing device of different printing device supplier is also general different.At present, terminal often connects a printing device just need to install connection and the driver of this printer, so, it is provided that the support to the printing device of vast number, is a very big workload for terminal.
Summary of the invention
It is an object of the invention to provide the communication means of a kind of terminal and this terminal and printing device, this communication means is easily achieved and the connection of different printing devices, it is easy to safeguards and can reduce development cost.
To achieve these goals, the present invention provides the communication means of this terminal a kind of and printing device, and described communication means includes: set up the physical connection between described terminal and described printing device;Described terminal obtains the connection type of described printing device by the physical connection set up, printing device communication pool searches for the connection element corresponding with this connection type, and connection protocol corresponding to the connection element that searches of utilization carries out software with described printing device and be connected;And obtain the attribute information of described printing device, judge that the driving element in described printing device communication pool concentrates the driving element that whether there is the attribute information corresponding to this printing device, if existed, then apply this driving element to drive described printing device to print, wherein, described printing device communication pool includes connection element collection and driving element collection, the corresponding connection protocol of each connection element that wherein said connection element is concentrated, each driving element that described driving element is concentrated a corresponding printing device supplier drive.
Preferably, described communication means also includes: set up printing device communication pool in described terminal.
Preferably, described communication means also includes: if described connection element concentrates the connection element being absent from the connection type corresponding to described printing device, then concentrate at described connection element and create the connection element corresponding to this connection type;And if described driving element concentration is absent from the driving element of the attribute information corresponding to described printing device, then concentrating the driving element created for the attribute information corresponding to this printing device at described driving element.
Preferably, described connection protocol includes following at least one: serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection protocol.
Preferably, described printing device is following at least one: serially printing equipment, port printing equipment, USB printing device, Wifi printing device, bluetooth printing device.
Preferably, the attribute information of described printing device includes following at least one: the model of printing device, supply of equipment side, type.
Accordingly, the present invention also provides for a kind of terminal communicated with printing device, and described terminal includes: connect interface, for providing the physical connection of described terminal and printing device;Printing device communication pool, including connection element collection and driving element collection, the corresponding connection protocol of each connection element that wherein said connection element is concentrated, each driving element that described driving element is concentrated a corresponding printing device supplier drive;And processor, this processor is used for: utilize the physical connection that described connection interface and described printing device have been set up to obtain the connection type of described printing device, described printing device communication pool searches for the connection element corresponding with this connection type, and connection protocol corresponding to the connection element that searches of utilization carries out software with described printing device and be connected;And obtaining the attribute information of described printing device, the driving element that whether there is the attribute information corresponding to this printing device to judge described driving element to concentrate, if it is present apply this driving element to drive described printing device to print.
Preferably, described processor is additionally operable to: if described connection element concentrates the connection element being absent from the connection type corresponding to described printing device, then concentrate at described connection element and create the connection element corresponding to this connection type;And if described driving element concentration is absent from the driving element of the attribute information corresponding to described printing device, then concentrating the driving element created for the attribute information corresponding to this printing device at described driving element.
Preferably, described connection interface includes following at least one: serial ports, parallel port, USB interface, Wifi interface, blue tooth interface.
Preferably, described connection protocol includes following at least one: serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection protocol.
Preferably, the attribute of described printing device includes following at least one: the model of printing device, producer, type.
Pass through technique scheme, set up the printing device communication pool including connection element collection and driving element collection, to utilize the connection element corresponding to the connection type of printing device to be connected with this printing device, and the driving element corresponding to the attribute information of printing device is utilized to drive this printing device to print.So, it is possible to realize being connected with the quick of printing device.
Other features and advantages of the present invention will be described in detail in detailed description of the invention part subsequently.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and constitutes the part of description, is used for explaining the present invention, but is not intended that limitation of the present invention together with detailed description below.In the accompanying drawings:
Fig. 1 is the flow chart for terminal Yu the communication means of printing device provided by the invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.It should be appreciated that detailed description of the invention described herein is merely to illustrate and explains the present invention, it is not limited to the present invention.
Fig. 1 is the flow chart for terminal Yu the communication means of printing device provided by the invention.As it is shown in figure 1, the communication means for terminal Yu printing device provided may include that in step 11 place, set up the physical connection between described terminal and described printing device;In step 12 place, described terminal obtains the connection type of described printing device by the physical connection set up;In step 13 place, printing device communication pool is searched for the connection element corresponding with this connection type;In step 14 place, the connection protocol utilizing the connection element searched corresponding carries out software with described printing device and is connected;In step 15 place, obtain the attribute information of described printing device;In step 16 place, it is judged that the driving element in described printing device communication pool concentrates the driving element that whether there is the attribute information corresponding to this printing device;If it is present go to step 17 place, apply this driving element to drive described printing device to print.Wherein, described printing device communication pool includes connection element collection and driving element collection, and the corresponding connection protocol of each connection element that wherein said connection element is concentrated, each driving element that described driving element is concentrated a corresponding printing device supplier drive.
Pass through technique scheme, utilize the printing device communication pool including connection element collection and driving element collection, to utilize the connection element corresponding to the connection type of printing device to be connected with this printing device, and the driving element corresponding to the attribute information of printing device is utilized to drive this printing device to print.So, it is possible to realize being connected with the quick of printing device, it is easy to safeguard and development cost is relatively low.
Communication means provided by the present invention can also include: sets up printing device communication pool in described terminal.
Additionally, communication means provided by the present invention can also include: in step 13 place, if not searching the connection element corresponding with this connection type in the printing device communication pool set up, namely described connection element concentrates the connection element being absent from the connection type corresponding to described printing device, then concentrate at described connection element and create the connection element corresponding to this connection protocol;And in step 16 place, if described driving element concentrates the driving element being absent from the attribute information corresponding to described printing device, then concentrate the driving element created for the attribute information corresponding to this printing device at described driving element.
Wherein, connection element can include connection protocol and/or the connection type of printing device, the different printing devices with identical connection type or agreement can be adopted the connection to realize between terminal and printing device of the identical connection element, in embodiments, printing device for different brands, if these printing devices adopt same connection type (such as, USB), then they are probably also adopted by identical agreement (such as, USB2.0, USB3.0 etc.), therefore brand or the manufacturer of printing device can be left out, after connected mode (or nexus element) the such as serial ports determining printing device connects, the connection protocol corresponding with this nexus element is selected to set up the connection of terminal and printing device.Connection element in the present invention can be connection protocol itself in embodiments.Driving element can include driving agreement and the print command of printing device.Generally, same a series of (such as, laser printing apparatus is serial, ink jet printing device is serial) printing device of same brand or manufacturer can adopt same or similar driver (or driving agreement).In consideration of it, identical driving agreement can be adopted to be driven the printing device of the same a series of of identical supplier or same type (such as, laser type, heat-sensitive type or ink jet type).Therefore, when after the attribute information (such as, supplier's title, printing device series etc.) identifying printing device, it is possible to select the driving element corresponding with attribute information to drive printing device to print accordingly.Driving element in the present invention can be driver or drive agreement itself in embodiments.Described connection protocol can include following at least one: serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection protocol.Correspondingly, printing device can be following at least one: serially printing equipment, port printing equipment, USB printing device, Wifi printing device, bluetooth printing device.
It addition, the attribute information of described printing device includes following at least one: the model of printing device, supply of equipment side, type.
Communication means provided by the invention is processed by the decoupling of bridge mode, sets up the connection between terminal and printing device fast and flexible.Such as, printing device A and printing device B is that two suppliers are produced, the drive command of the two is different, but its connection type is consistent (such as, it is bluetooth printing device), exist corresponding to bluetooth connection type (such as if the connection element of terminal is concentrated, bluetooth 3.0) connection element, then can be connected with printing device A and printing device B by the existing connection element corresponding to bluetooth connection type of multiplexing, if there is no corresponding to the connection element of bluetooth connection type, then the connection element corresponding to bluetooth connection type is created;Then the attribute information of printing device A and printing device B can be obtained, and judge driving element concentrates whether there is the driving element of the attribute information corresponding respectively to printing device A and printing device B, it is connected with the software of printing device A and printing device B realizing terminal;If there is the driving element of the attribute information corresponding to printing device A, but it is absent from the driving element of attribute information corresponding to printing device B, then this driving element of multiplexing drives printing device A to print, and additionally concentrates the driving element creating the attribute information corresponding to printing device B at driving element.
Correspondingly, the invention provides a kind of terminal communicated with printing device, described terminal includes: connect interface, for realizing and the physical connection of described printing device;Printing device communication pool, including connection element collection and driving element collection, the corresponding connection protocol of each connection element that wherein said connection element is concentrated, each driving element that described driving element is concentrated a corresponding printing device supplier drive;And processor, this processor is used for: utilize the physical connection that described connection interface and described printing device have been set up to obtain the connection type of described printing device, described printing device communication pool searches for the connection element corresponding with this connection type, and connection protocol corresponding to the connection element that searches of utilization carries out software with described printing device and be connected;And obtaining the attribute information of described printing device, the driving element that whether there is the attribute information corresponding to this printing device to judge described driving element to concentrate, if it is present apply this driving element to drive described printing device to print.
Wherein, described connection interface can include following at least one: serial ports, parallel port, USB interface, Wifi interface, blue tooth interface.
The detail of the terminal communicated with printing device provided by the present invention and benefit and the above-mentioned details for communication means and benefit are identical, repeat no more in this.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing; but; the present invention is not limited to the detail in above-mentioned embodiment; in the technology concept of the present invention; technical scheme can being carried out multiple simple variant, these simple variant belong to protection scope of the present invention.
It is further to note that, each concrete technical characteristic described in above-mentioned detailed description of the invention, in reconcilable situation, it is possible to be combined by any suitable mode, in order to avoid unnecessary repetition, various possible compound modes are no longer illustrated by the present invention separately.
Additionally, can also carry out combination in any between the various different embodiment of the present invention, as long as it is without prejudice to the thought of the present invention, it should be considered as content disclosed in this invention equally.

Claims (11)

1. the communication means for terminal with printing device, it is characterised in that described communication means includes:
Set up the physical connection between described terminal and described printing device;
Described terminal obtains the connection type of described printing device by the physical connection set up, printing device communication pool searches for the connection element corresponding with this connection type, and connection protocol corresponding to the connection element that searches of utilization carries out software with described printing device and be connected;And
Obtain the attribute information of described printing device, it is judged that the driving element in described printing device communication pool concentrates the driving element that whether there is the attribute information corresponding to this printing device, if it is present apply this driving element to drive described printing device to print,
Wherein, described printing device communication pool includes connection element collection and driving element collection, and the corresponding connection protocol of each connection element that wherein said connection element is concentrated, each driving element that described driving element is concentrated a corresponding printing device supplier drive.
2. communication means according to claim 1, it is characterised in that described communication means also includes: set up printing device communication pool in described terminal.
3. communication means according to claim 1, it is characterised in that described communication means also includes:
If described connection element concentrates the connection element being absent from the connection type corresponding to described printing device, then concentrate at described connection element and create the connection element corresponding to this connection type;And
If described driving element concentrates the driving element being absent from the attribute information corresponding to described printing device, then concentrate the driving element created for the attribute information corresponding to this printing device at described driving element.
4. the communication means described in claim any one of claim 1-3, it is characterised in that described connection protocol includes following at least one: serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection protocol.
5. the communication means described in claim any one of claim 1-3, it is characterised in that described printing device is following at least one: serially printing equipment, port printing equipment, USB printing device, Wifi printing device, bluetooth printing device.
6. the communication means described in claim any one of claim 1-3, it is characterised in that the attribute information of described printing device includes following at least one: the model of printing device, supply of equipment side, type.
7. the terminal communicated with printing device, it is characterised in that described terminal includes:
Connect interface, for providing the physical connection of described terminal and described printing device;
Printing device communication pool, including connection element collection and driving element collection, the corresponding connection protocol of each connection element that wherein said connection element is concentrated, each driving element that described driving element is concentrated a corresponding printing device supplier drive;And
Processor, this processor is used for:
The physical connection that described connection interface and described printing device have been set up is utilized to obtain the connection type of described printing device, described printing device communication pool searches for the connection element corresponding with this connection type, and connection protocol corresponding to the connection element that searches of utilization carries out software with described printing device and be connected;And
Obtaining the attribute information of described printing device, the driving element that whether there is the attribute information corresponding to this printing device to judge described driving element to concentrate, if it is present apply this driving element to drive described printing device to print.
8. terminal according to claim 7, it is characterised in that described processor is additionally operable to:
If described connection element concentrates the connection element being absent from the connection type corresponding to described printing device, then concentrate at described connection element and create the connection element corresponding to this connection type;And
If described driving element concentrates the driving element being absent from the attribute information corresponding to described printing device, then concentrate the driving element created for the attribute information corresponding to this printing device at described driving element.
9. terminal according to claim 8, it is characterised in that described connection interface includes following at least one: serial ports, parallel port, USB interface, Wifi interface, blue tooth interface.
10. the terminal described in claim any one of claim 7-9, it is characterised in that described connection protocol includes following at least one: serial ports connection protocol, parallel port connection protocol, USB connection protocol, Wifi connection protocol, bluetooth connection protocol.
11. the terminal described in claim any one of claim 7-9, it is characterised in that the attribute of described printing device includes following at least one: the model of printing device, producer, type.
CN201410854201.8A 2014-12-31 2014-12-31 The communication means of terminal and the terminal and printing device Active CN105812613B (en)

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 true CN105812613A (en) 2016-07-27
CN105812613B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198240A (en) * 2019-05-31 2019-09-03 口碑(上海)信息技术有限公司 In the method and device of businessman's management equipment addition printer

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198240A (en) * 2019-05-31 2019-09-03 口碑(上海)信息技术有限公司 In the method and device of businessman's management equipment addition printer
CN110198240B (en) * 2019-05-31 2023-01-20 口碑(上海)信息技术有限公司 Method and device for adding printer to merchant management equipment

Also Published As

Publication number Publication date
CN105812613B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN104124768B (en) The wireless power supply system receiving terminal recognition methods of multi-coil arrays formula and system
RU2008110051A (en) CONNECTING WITH NETWORKS OF DIFFERENT TYPES OF NETWORKS THROUGH A GENERAL USER INTERFACE
CN104216840B (en) The method and device that a kind of USB sets and operated to external equipment
BRPI0601316A (en) sending value identifiers using short message service (sms)
CA2593132A1 (en) A system and method for monitoring consumable usage in packaging machines
WO2012168133A3 (en) Battery system, motor vehicle comprising said battery system, and method for producing a ready status for a motor vehicle comprising said battery system
CN102862513A (en) System and method for simulating running sound of motor vehicle
EP2490118A3 (en) Printing control terminal device and printing control method
RU2017134515A (en) POWERED DEVICES ON THE ETHERNET NETWORK POWER SYSTEM AND METHODS FOR IT
CN110888767A (en) Interface multiplexing module verification platform architecture and quick expansion implementation method
CN103373229A (en) Method and apparatus for displaying energy flow in hybrid vehicle
EP2663104A3 (en) Wireless communication system
CN105812613A (en) Terminal and communication method for terminal and printing equipment
ATE518397T1 (en) METHOD, APPARATUS AND SYSTEM FOR OBTAINING MIH SERVICE INFORMATION
CN102709879A (en) Automatic identification method of relay protection device
WO2008120368A1 (en) Communication apparatus and communication apparatus control method
CN103440334B (en) Driver matching method and device of mobile terminal
WO2015176366A1 (en) Universal serial bus drive method, computer and composite device
WO2011144104A3 (en) Method, apparatus and optical module for software upgrade
WO2013167309A3 (en) Selection unit for selecting the configuration of an electric motor, transport machine and associated method
EP2725480A3 (en) Image forming apparatus and controlling method thereof
US20150206420A1 (en) Alarm system
CN102266612B (en) Judgment method and device of piston motion, and breathing machine
RU2012149962A (en) METHOD AND DEVICE FOR CONTROLLING DRIVE MECHANISM IN ELECTRIC VEHICLE
DE602005016236D1 (en) Context-sensitive data handling

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