CN106897037A - Intelligent terminal realizes the method and device of printing - Google Patents
Intelligent terminal realizes the method and device of printing Download PDFInfo
- Publication number
- CN106897037A CN106897037A CN201710093516.9A CN201710093516A CN106897037A CN 106897037 A CN106897037 A CN 106897037A CN 201710093516 A CN201710093516 A CN 201710093516A CN 106897037 A CN106897037 A CN 106897037A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- print command
- intelligent terminal
- printer
- built
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1209—Improving or facilitating administration, e.g. print management resulting in adapted or bridged legacy communication protocols, e.g. emulation, protocol extension
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1236—Connection management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1292—Mobile client, e.g. wireless printing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1297—Printer code translation, conversion, emulation, compression; Configuration of printer parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
Abstract
The present invention relates to the method and device that a kind of intelligent terminal realizes printing, intelligent terminal realizes that the method for printing is comprised the following steps:The bluetooth print command that mobile device sends is intercepted and parsed, the attribute information of the corresponding bluetooth equipment of bluetooth print command is obtained;According to attribute information, when it is default virtual bluetooth printer apparatus to confirm the corresponding bluetooth equipment of bluetooth print command, Bluetooth device operation interface is set up;Bluetooth print command is processed by Bluetooth device operation interface, the standard bluetooth data of mobile device transmission are obtained;Standard bluetooth data and bluetooth print command are changed respectively, obtains print data and built-in print command that the built-in printer of intelligent terminal can recognize that;According to print data and built-in print command, built-in printer is driven to be printed.Can be run on intelligent terminal with zero-clearance the invention enables existing operation business APP on the mobile apparatus, can reduces cost, avoid secondary development APP.
Description
Technical field
The present invention relates to intelligent terminal printing technique field, more particularly to a kind of intelligent terminal realize printing method and
Device.
Background technology
Paid using on line in food and drink, film, shopping etc., in the scene consumed under line, be much required for printing consumption with
Card or receipt.Current traditional approach is that APP (Application install on mobile phone in businessman:Internet firm develops and carries
The mobile applications that supply businessman is printed), then printed by blue-tooth printer, for example " being hungry " is provided with
Businessman version APP, carries out printing by connecting blue-tooth printer and takes out bill.However as the development of Internet technology, intelligence
The application of terminal (such as Android intelligent terminal) in above-mentioned scene is more and more extensive, and the feature of intelligent terminal, steady
Qualitative and specificity is incomparable mobile phone.
In implementation process, inventor has found that at least there are the following problems in conventional art:Intelligent terminal is typically built-in with
Thermal printer, but due to cost control, the interface used inside it is commonly the physical interfaces such as serial ports, USB, simultaneously because specially
With property, intelligent terminal does not follow the general print protocol specification of blue-tooth printer typically;Therefore, by current maturation suitable for hand
The businessman version APP of machine is applied to and bill printing is realized on intelligent terminal, is necessarily required to remodify APP, certainly will be caused huge
Exploitation input and version management maintenance cost.
The content of the invention
Based on this, it is necessary to regarding to the issue above, there is provided a kind of intelligent terminal realizes the method and device of printing.
To achieve these goals, on the one hand, the embodiment of the invention provides a kind of method that intelligent terminal realizes printing,
Comprise the following steps:
The bluetooth print command that mobile device sends is intercepted and parsed, the corresponding bluetooth equipment of bluetooth print command is obtained
Attribute information;Attribute information is the information of intelligent terminal registration storage when bluetooth equipment is searched for;
According to attribute information, confirming the corresponding bluetooth equipment of bluetooth print command for default virtual bluetooth printer sets
When standby, Bluetooth device operation interface is set up;
Bluetooth print command is processed by Bluetooth device operation interface, the standard bluetooth data of mobile device transmission are obtained;
Standard bluetooth data and bluetooth print command are changed respectively, the built-in printer for obtaining intelligent terminal can be known
Other print data and built-in print command;
According to print data and built-in print command, built-in printer is driven to be printed.
On the other hand, the embodiment of the present invention additionally provides the device that a kind of intelligent terminal realizes printing, including:
Attribute information element is obtained, for intercepting and the bluetooth print command that mobile device sends is parsed, bluetooth is obtained and is beaten
The attribute information of the corresponding bluetooth equipment of print instruction;Attribute information is the letter of intelligent terminal registration storage when bluetooth equipment is searched for
Breath;
Virtual bluetooth protocol realization unit, for according to attribute information, being set in the corresponding bluetooth of confirmation bluetooth print command
During for for default virtual bluetooth printer apparatus, Bluetooth device operation interface is set up;And by Bluetooth device operation interface
Reason bluetooth print command, obtains the standard bluetooth data of mobile device transmission;
Bluetooth communication unit, for being changed to standard bluetooth data and bluetooth print command respectively, obtains intelligent end
The recognizable print data of the built-in printer at end and built-in print command;And according to print data and built-in print command, drive
Dynamic built-in printer is printed.
The invention has the advantages that and beneficial effect:
Intelligent terminal of the present invention realizes the method and device of printing, on existing intelligent terminal, mobile device APP is visited
The all bluetooth equipments asked carry out interception parsing, for accessing virtual bluetooth printer, by the way that the printer of physical connection is empty
Intend into the printer of bluetooth wireless connection, there is provided Bluetooth operation interface, while the instruction that bluetooth is printed is converted into special beating
Print machine is instructed, and the serial ports/USB printer with the built-in entity of intelligent terminal is communicated, and completes whole printing process.By virtual
The realization of blue-tooth printer so that existing operation business APP on the mobile apparatus can be run with zero-clearance on intelligent terminal,
And directly invoke the built-in printer of intelligent terminal and printed, so as to replace the tradition side of current " mobile phone+blue-tooth printer "
Case, can reduces cost, avoid secondary development APP.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the embodiment of the method 1 that intelligent terminal of the present invention realizes printing;
Fig. 2 is the system framework schematic diagram of the method that intelligent terminal of the present invention realizes printing;
Fig. 3 is the structural representation of the device embodiment 1 that intelligent terminal of the present invention realizes printing.
Specific embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In accompanying drawing
Give first-selected embodiment of the invention.But, the present invention can be realized in many different forms, however it is not limited to this paper institutes
The embodiment of description.On the contrary, the purpose that these embodiments are provided be make to the disclosure more it is thorough comprehensively.
Unless otherwise defined, all of technologies and scientific terms used here by the article with belong to technical field of the invention
The implication that technical staff is generally understood that is identical.The term for being used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases
The arbitrary and all of combination of the Listed Items of pass.
Intelligent terminal of the present invention realizes the embodiment of the method 1 of printing:
Bill is carried out in order to the businessman version APP suitable for mobile phone solved current maturation cannot directly invoke intelligent terminal
The problem of printing, the invention provides the embodiment of the method 1 that a kind of intelligent terminal realizes printing;Fig. 1 is intelligent terminal of the present invention
Realize the schematic flow sheet of the embodiment of the method 1 of printing;As shown in figure 1, may comprise steps of:
Step S110:The bluetooth print command that mobile device sends is intercepted and parsed, bluetooth print command is obtained corresponding
The attribute information of bluetooth equipment;Attribute information is the information of intelligent terminal registration storage when bluetooth equipment is searched for;
Step S120:According to attribute information, confirming that the corresponding bluetooth equipment of bluetooth print command is default virtual indigo plant
During tooth printer apparatus, Bluetooth device operation interface is set up;
Step S130:Bluetooth print command is processed by Bluetooth device operation interface, the standard of mobile device transmission is obtained
Blue-teeth data;
Step S140:Standard bluetooth data and bluetooth print command are changed respectively, obtains the built-in of intelligent terminal
The recognizable print data of printer and built-in print command;
Step S150:According to print data and built-in print command, built-in printer is driven to be printed.
Specifically, intelligent terminal is typically built-in with thermal printer, but due to cost control, the interface used inside it
It is commonly the physical interfaces such as serial ports, USB;Further, can be by taking Android intelligent terminal as an example, businessman version APP is typically used
Bluetooth general print protocol ECS POS specifications control blue-tooth printer to print, and the print command that intelligent terminal is used because
Its specificity does not follow ECS POS instruction specifications mostly, it is impossible to compatible.The present invention on the basis of existing intelligent terminal, by thing
The printer for managing connection invents the printer of bluetooth wireless connection, while the instruction that bluetooth is printed is converted into special printing
Machine is instructed so that the existing APP for operating in mobile phone terminal can be run with zero-clearance in Android intelligent terminal, and by virtual
Blue-tooth printer successful print, so as to replace this scheme of current " mobile phone+blue-tooth printer ", reaches reduces cost, avoids
The purpose of secondary development APP.
It should be noted that " the mobile phone terminal APP " that is related in each implementation of the present invention, the similar statement such as " businessman edition APP ",
Refer to Internet firm to develop and be supplied to businessman, for the Mobile solution printed in the mobile devices such as mobile phone
Program or software driver;Invent " mobile device ", " intelligent terminal " being related in each implementation and refer to different two kinds and set
It is standby, wherein, mobile device can include mobile phone, and intelligent terminal refers to being built-in with printer (including thermal printer, serial ports
Printer and USB printer etc.) terminal device.
Additionally, for the bluetooth print command mentioned in step S110, in actual applications, intelligence in various embodiments of the present invention
Can the actual life of terminal can intercept and parse all kinds of Bluetooth operations instruction that mobile device sends (connection can be included, match and
Disconnect etc.), and when confirming that Bluetooth operation instruction is directed to default virtual bluetooth printer, based on what is set up in step S120
Bluetooth device operation interface is processed Bluetooth operation instruction, that is, complete implementing for Bluetooth protocol.
In a specific embodiment, step S110 intercepting and parse the bluetooth print command that mobile device sends,
Can also include step before the step of obtaining the attribute information of bluetooth print command corresponding bluetooth equipment:
When intelligent terminal search bluetooth equipment is listened to, default virtual bluetooth printer apparatus are virtually generated;
Default virtual bluetooth printer apparatus are initialized, the category of default virtual bluetooth printer apparatus is generated
Property information.
Specifically, action (the Android intelligence that Android intelligent terminal is opened and searches for bluetooth equipment can be monitored
Terminal can be performed and open and search for the dynamic of bluetooth equipment when the instruction of the opened bluetooth function that mobile device sends is received
Make);When intelligent terminal searches for bluetooth equipment, (i.e. default virtual bluetooth is beaten to fictionalize a blue-tooth printer equipment
Print machine equipment), while initialize the title of the virtual bluetooth printer, signal, MAC Address, and by these attribute informations according to
Android intelligent terminal finds that the flow of bluetooth equipment is reported, while these attribute informations are registered into Android intelligence
Terminal;The attribute information of all of bluetooth equipment that will be searched according to certain combining form by intelligent terminal is saved in internal memory
In.
In a specific embodiment, bluetooth print command is changed in step S140, obtain built-in printing and refer to
The step of making can include:
The current built-in printer of monitoring intelligent terminal, obtains the print command form of current built-in printer identification;
Bluetooth print command is changed according to print command form, obtains built-in print command.
Specifically, because businessman version APP is mostly using the ECS POS print commands of standard, and adopted for intelligent terminal
For built-in serial ports/USB printer, there are its specific print command form or Method of Data Organization, the present invention will beat
Print instruction is converted to the instruction format or data of actual built-in printer identification.So as to compatible difference built-in printer, side
Just intelligent terminal internal hardware is changed, and realizes uniformity.
In a specific embodiment, step S150 calls intelligent terminal according to print data and built-in print command
Built-in printer can include the step of printed:
Obtain the data communication passage of current built-in printer;
The transmission of print data is carried out by data communication passage, is driven according to the built-in print command of institute and is stated built-in printer
Printed.
Specifically, the present invention can realize the physical channel transfer function of printing, and line number is entered by built-in printer
According to transmission and device status monitoring, for different built-in printers, communicated by corresponding passage, such as beaten using serial ports
Print machine, can carry out transmitting-receiving process to serial ports channel data, using USB printer, transmitting-receiving process be carried out to USB channel datas.
To realize that final printing function and print result return to user, while reporting equipment status information.So as to be that APP can be controlled
Intelligent terminal processed drives the different built-in printers of its compatibility, facilitates intelligent terminal internal hardware to change, and realizes uniformity.
In a specific embodiment, bluetooth equipment can include entity blue-tooth printer equipment and default virtual indigo plant
Tooth printer apparatus;
Step S110 intercepts and parses the bluetooth print command that mobile device sends, and obtains the corresponding indigo plant of bluetooth print command
Step can also be included after the step of attribute information of tooth equipment:
According to attribute information, when it is entity blue-tooth printer equipment to confirm the corresponding bluetooth equipment of bluetooth print command,
Call the standard bluetooth operate interface of intelligent terminal to process bluetooth print command, drive entity blue-tooth printer equipment to be beaten
Print.
Specifically, using businessman's version APP operation bluetooth equipments when, by taking Android intelligent terminal as an example, intelligence is eventually
Holding all of Bluetooth operation sent to businessman version APP carries out intercept analysis (Bluetooth operation can include bluetooth print command),
The bluetooth equipment information in internal memory is being registered by the MAC Address to be accessed (being used for unique mark bluetooth equipment)
(i.e. bluetooth equipment attribute information) is filtered, if the blue-tooth printer equipment of entity, all of operation is transmitted to
The Bluetooth operation interface of android system;I.e. the present invention carries out interception parsing by all bluetooth equipments accessed APP, right
In the bluetooth equipment of entity, the Bluetooth operation interface of android system standard is directly invoked.
Intelligent terminal of the present invention realizes each embodiment of the method for printing, on existing intelligent terminal, to mobile device
All bluetooth equipments that APP is accessed carry out interception parsing, for accessing virtual bluetooth printer, by by the printing of physical connection
Machine invents the printer of bluetooth wireless connection, there is provided Bluetooth operation interface, while the instruction that bluetooth is printed is converted to special
Printer instructions, the serial ports/USB printer with the built-in entity of intelligent terminal communicated, and completes whole printing process.Pass through
The realization of virtual bluetooth printer so that existing operation business APP on the mobile apparatus can be with zero-clearance on intelligent terminal
Run, and directly invoke the built-in printer of intelligent terminal and printed, so as to replace the biography of current " mobile phone+blue-tooth printer "
System scheme, can reduces cost, avoid secondary development APP.
Intelligent terminal of the present invention realizes that the system framework parsing of the method for printing is illustrated:
In order to be further elaborated on technical scheme, while in order to solve current maturation suitable for mobile phone
Businessman version APP cannot directly invoke intelligent terminal and carry out the problem of bill printing, present invention also offers being applied to Android
The system framework parsing explanation of the method for the realization printing of intelligent terminal;Fig. 2 is the method that intelligent terminal of the present invention realizes printing
System framework schematic diagram;As shown in Fig. 2 the present invention can be on the basis of traditional intelligence terminal technology, based on corresponding mould
Block program realizes that above-mentioned intelligent terminal realizes each embodiment of the method for printing, can specifically include:
Bluetooth policy management element 210, for carrying out bluetooth equipment information registering and the distribution of bluetooth access interception;Specifically
For, when user or APP opened bluetooth functions, bluetooth policy management element is initialized, and intelligent terminal is searched for
Carry out information registering registration to all of entity bluetooth equipment and virtual bluetooth printer apparatus, including bluetooth equipment title,
The attribute informations such as signal value, MAC Address, and these information are saved in the internal memory of intelligent terminal according to specified combining form
In.
Further, when user operates bluetooth equipment using APP, bluetooth policy management element intercept analysis user
(i.e. businessman version APP) all of Bluetooth operation, by the MAC Address to be accessed (being used for unique mark bluetooth equipment)
The bluetooth equipment information registered in internal memory is filtered, if the blue-tooth printer equipment of entity, bluetooth tactical management
All of operation is transmitted to unit the Bluetooth operation interface of android system;For specific MAC Address, i.e., default void
Intend the Bluetooth address of blue-tooth printer equipment, all of operation is transmitted to virtual bluetooth unit 220 by bluetooth policy management element
Processed.
Virtual bluetooth unit 220 can include virtual bluetooth EM equipment module 222, virtual bluetooth protocol module 224 and void
Intend bluetooth communication module 226.
Wherein, virtual bluetooth EM equipment module can carry out virtual bluetooth equipment and report, and virtual bluetooth EM equipment module monitors intelligence
The action of bluetooth equipment is opened and searched for energy terminal android system, when intelligent terminal searches for bluetooth equipment, virtual indigo plant
Tooth EM equipment module fictionalizes a blue-tooth printer equipment, while initializing the title of the virtual bluetooth printer, signal, MAC
These information are found that the flow of bluetooth equipment is reported by address according to Android, while by these information registerings to virtual
Bluetooth policy management element 210.Can ensure that intelligent terminal can when the Bluetooth function of intelligent terminal android system is opened
To search a blue-tooth printer for existing always, and can be matched, be connected and disconnected from.
Virtual bluetooth EM equipment module can realize the correlation function of virtual bluetooth equipment operation;Specifically, virtual bluetooth
EM equipment module treatment user to each generic operation of bluetooth equipment, including connection, is matched and break function by businessman version APP.Together
When call virtual bluetooth protocol module 224, will connection, pairing, disconnect and be converted to the request of corresponding Bluetooth operation, to connecting and disconnected
Drive the application and release of row resource into, pairing password is verified, the interface of standard bluetooth equipment operation is provided upwards.
Virtual bluetooth protocol module 224 realizes standard Bluetooth protocol;Specifically, virtual bluetooth protocol module can be processed
Operations of the APP to bluetooth equipment, and framework read/write channel, provide consistent bluetooth access interface upwards.Virtual bluetooth agreement mould
Block can by framework realize including the acquisition of information of bluetooth equipment, state renewal, connection request, disconnection request, pairing request,
The series of standards Bluetooth protocols such as read/write channel foundation.The standard that virtual bluetooth protocol module sends businessman version APP simultaneously
Blue-teeth data form enters row format conversion, virtual bluetooth communication module 226 is forwarded to, in turn, by virtual bluetooth communication module
226 data for transmitting are converted to the data form of standard bluetooth transmission, are sent to businessman version APP, that is, carry out blue-teeth data
Form is changed.Virtual bluetooth protocol module can ensure APP after virtual bluetooth printer is connected to, and APP is to blue-tooth printer
Operation actually pass the operation become after the treatment of virtual bluetooth protocol module to built-in printer.
Virtual bluetooth communication module 226, on the one hand can carry out print command conversion, because APP mostly uses standard
ECS POS print commands, and for built-in serial ports/USB printer that intelligent terminal is used, there is its specific print command
Form or Method of Data Organization, are changed by virtual bluetooth communication module to print command, become actual built-in printing
The instruction format or data of machine identification.For compatible difference built-in printer, facilitate intelligent terminal internal hardware to change, realize one
Cause property.
Another aspect virtual bluetooth communication module can realize the physical channel transmission of printing;Virtual bluetooth communication module pair
Built-in printer carries out data transmission and device status monitoring, and for different built-in printers, opening corresponding passage is carried out
Communication, such as use serial printer, this module needs to carry out transmitting-receiving process to serial ports channel data, using USB printer, it is necessary to
Transmitting-receiving process is carried out to USB channel datas.To realize final printing function and print result return, while reporting equipment state
Information.
Intelligent terminal of the present invention realizes each embodiment of the method for printing, can be by virtual bluetooth EM equipment module in intelligence
A blue-tooth printer is fictionalized in terminal;Bluetooth policy unit is set up so that Android systems by intelligent terminal system
System supports that the framework of the access of virtual bluetooth equipment is realized;Bluetooth policy unit can be accessed true, virtual bluetooth equipment
Data are intercepted and distributed;And passing through virtual bluetooth protocol module and virtual bluetooth EM equipment module can complete to bluetooth equipment
The Virtual Realization of standard operation;Further, the compatibility to different built-in printers is realized by virtual bluetooth communication module.
Intelligent terminal of the present invention realizes each embodiment of the method for printing, can successfully replace " mobile phone+bluetooth printing at present
The scheme of machine ";Allow that the APP for running on mobile phone originally is run directly on intelligent terminal without secondary development, saving is opened
Hair cost and maintenance cost;The different built-in physical printers of compatible different manufacturers so that need not be examined in the intelligent terminal development phase
Consider the complexity of application scenarios, save development cost and construction cycle.
Intelligent terminal of the present invention realizes the device embodiment 1 of printing:
The technical scheme that the method for printing is respectively implemented is realized based on above intelligent terminal, while in order to solve current maturation
The businessman version APP suitable for mobile phone cannot directly invoke intelligent terminal and carry out the problem of bill printing, present invention also offers
A kind of intelligent terminal realizes the device embodiment 1 of printing;Fig. 3 is the device embodiment 1 that intelligent terminal of the present invention realizes printing
Structural representation;As shown in figure 3, can include:
Attribute information element 310 is obtained, for intercepting and the bluetooth print command that mobile device sends is parsed, bluetooth is obtained
The attribute information of the corresponding bluetooth equipment of print command;Attribute information is intelligent terminal registration storage when bluetooth equipment is searched for
Information;
Virtual bluetooth protocol realization unit 320, for according to attribute information, confirming the corresponding bluetooth of bluetooth print command
When equipment is default virtual bluetooth printer apparatus, Bluetooth device operation interface is set up;And by Bluetooth device operation interface
Treatment bluetooth print command, obtains the standard bluetooth data of mobile device transmission;
Bluetooth communication unit 330, for being changed to standard bluetooth data and bluetooth print command respectively, obtains intelligence
The recognizable print data of the built-in printer of terminal and built-in print command;And according to print data and built-in print command,
Built-in printer is driven to be printed.
In a specific embodiment, intelligent terminal of the present invention realizes that the device of printing can also include:
Virtual bluetooth unit 340, for when intelligent terminal search bluetooth equipment is listened to, virtually generating default
Virtual bluetooth printer apparatus;And default virtual bluetooth printer apparatus are initialized, generate default virtual bluetooth
The attribute information of printer apparatus.
In a specific embodiment, bluetooth communication unit 330 can include:
Monitoring module 332, for the current built-in printer of monitoring intelligent terminal, obtains current built-in printer identification
Print command form;
Instruction modular converter 334, for being changed to bluetooth print command according to print command form, obtains built-in beating
Print instruction.
In a specific embodiment, bluetooth communication unit 330 can also include:
Acquisition channel module 336, the data communication passage for obtaining current built-in printer;
Print module 338, the transmission for carrying out print data by data communication passage, according to the built-in print command of institute
Driving is stated built-in printer and is printed.
In a specific embodiment, bluetooth equipment includes that entity blue-tooth printer equipment and default virtual bluetooth are beaten
Print machine equipment;
Intelligent terminal realizes that the device of printing can also include:
Standard Bluetooth protocol realizes unit 350, for according to attribute information, confirming the corresponding bluetooth of bluetooth print command
When equipment is entity blue-tooth printer equipment, call the standard bluetooth operate interface of intelligent terminal to process bluetooth print command, drive
Dynamic entity blue-tooth printer equipment is printed.
It should be noted that intelligent terminal of the present invention realizes the unit module in each embodiment of device of printing, can be right
The method and step in each embodiment of method of above-mentioned intelligent terminal realization printing should be realized, it is no longer repeated herein.
Intelligent terminal of the present invention realizes each embodiment of device of printing, on existing intelligent terminal, to mobile device APP
The all bluetooth equipments for accessing carry out interception parsing, for accessing virtual bluetooth printer, by by the printer of physical connection
The printer of bluetooth wireless connection is invented, there is provided Bluetooth operation interface, while the instruction that bluetooth is printed is converted to special
Printer instructions, the serial ports/USB printer with the built-in entity of intelligent terminal is communicated, and completes whole printing process.By void
Intend the realization of blue-tooth printer so that existing operation business APP on the mobile apparatus can be transported with zero-clearance on intelligent terminal
OK, and directly invoke the built-in printer of intelligent terminal and printed, so as to replace the tradition of current " mobile phone+blue-tooth printer "
Scheme, can reduces cost, avoid secondary development APP.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of method that intelligent terminal realizes printing, it is characterised in that comprise the following steps:
The bluetooth print command that mobile device sends is intercepted and parsed, the corresponding bluetooth equipment of the bluetooth print command is obtained
Attribute information;The attribute information is the information of intelligent terminal registration storage when bluetooth equipment is searched for;
According to the attribute information, confirming the corresponding bluetooth equipment of the bluetooth print command for default virtual bluetooth is printed
During machine equipment, Bluetooth device operation interface is set up;
The bluetooth print command is processed by the Bluetooth device operation interface, the standard blue of the mobile device transmission is obtained
Tooth data;
The standard bluetooth data and the bluetooth print command are changed respectively, is obtained the built-in of the intelligent terminal and is beaten
The recognizable print data of print machine and built-in print command;
According to the print data and the built-in print command, the built-in printer is driven to be printed.
2. the method that intelligent terminal according to claim 1 realizes printing, it is characterised in that set intercepting and parsing movement
Before the step of bluetooth print command that preparation goes out, attribute information of the acquisition bluetooth print command corresponding bluetooth equipment also
Including step:
When the intelligent terminal search bluetooth equipment is listened to, the default virtual bluetooth printer apparatus are virtually generated;
The default virtual bluetooth printer apparatus are initialized, the default virtual bluetooth printer apparatus are generated
Attribute information.
3. the method that intelligent terminal according to claim 1 and 2 realizes printing, it is characterised in that printed to the bluetooth
Instruction is changed, and is included the step of obtain built-in print command:
The current built-in printer of the intelligent terminal is monitored, the print command lattice of the current built-in printer identification are obtained
Formula;
The bluetooth print command is changed according to the print command form, obtains the built-in print command.
4. the method that intelligent terminal according to claim 3 realizes printing, it is characterised in that according to the print data and
The built-in print command, includes the step of drive the built-in printer to be printed:
Obtain the data communication passage of the current built-in printer;
The transmission of the print data is carried out by the data communication passage, is driven in described according to the built-in print command
Printer is put to be printed.
5. the method that intelligent terminal according to claim 1 and 2 realizes printing, it is characterised in that the bluetooth equipment bag
Include entity blue-tooth printer equipment and the default virtual bluetooth printer apparatus;
The bluetooth print command that mobile device sends is intercepted and parsed, the corresponding bluetooth equipment of the bluetooth print command is obtained
Also include step after the step of attribute information:
According to the attribute information, confirming that the corresponding bluetooth equipment of the bluetooth print command is the entity blue-tooth printer
During equipment, call the standard bluetooth operate interface of the intelligent terminal to process the bluetooth print command, drive the entity blue
Tooth printer apparatus are printed.
6. a kind of intelligent terminal realizes the device of printing, it is characterised in that including:
Attribute information element is obtained, for intercepting and the bluetooth print command that mobile device sends is parsed, the bluetooth is obtained and is beaten
The attribute information of the corresponding bluetooth equipment of print instruction;The attribute information is intelligent terminal registration storage when bluetooth equipment is searched for
Information;
Virtual bluetooth protocol realization unit, for according to the attribute information, confirming the corresponding indigo plant of the bluetooth print command
When tooth equipment is default virtual bluetooth printer apparatus, Bluetooth device operation interface is set up;And grasped by the bluetooth equipment
Make interface and process the bluetooth print command, obtain the standard bluetooth data of the mobile device transmission;
Bluetooth communication unit, for being changed to the standard bluetooth data and the bluetooth print command respectively, obtains institute
State print data and built-in print command that the built-in printer of intelligent terminal can recognize that;And according to the print data and described
Built-in print command, drives the built-in printer to be printed.
7. intelligent terminal according to claim 6 realizes the device of printing, it is characterised in that also include:
Virtual bluetooth unit, it is described default for when the intelligent terminal search bluetooth equipment is listened to, virtually generating
Virtual bluetooth printer apparatus;And the default virtual bluetooth printer apparatus are initialized, generate described default
Virtual bluetooth printer apparatus attribute information.
8. the intelligent terminal according to claim 6 or 7 realizes the device of printing, it is characterised in that the bluetooth communication list
Unit includes:
Monitoring module, the built-in printer current for monitoring the intelligent terminal obtains the current built-in printer and knows
Other print command form;
Instruction modular converter, for being changed to the bluetooth print command according to the print command form, obtains described
Built-in print command.
9. intelligent terminal according to claim 8 realizes the device of printing, it is characterised in that the bluetooth communication unit is also
Including:
Acquisition channel module, the data communication passage for obtaining the current built-in printer;
Print module, the transmission for carrying out the print data by the data communication passage, according to the built-in printing
Built-in printer is printed described in order-driven.
10. the intelligent terminal according to claim 6 or 7 realizes the device of printing, it is characterised in that the bluetooth equipment bag
Include entity blue-tooth printer equipment and the default virtual bluetooth printer apparatus;
The intelligent terminal realizes that the device of printing also includes:
Standard Bluetooth protocol realizes unit, for according to the attribute information, confirming the corresponding indigo plant of the bluetooth print command
When tooth equipment is the entity blue-tooth printer equipment, the standard bluetooth operate interface of the intelligent terminal is called to process the indigo plant
Tooth print command, drives the entity blue-tooth printer equipment to be printed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710093516.9A CN106897037A (en) | 2017-02-21 | 2017-02-21 | Intelligent terminal realizes the method and device of printing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710093516.9A CN106897037A (en) | 2017-02-21 | 2017-02-21 | Intelligent terminal realizes the method and device of printing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106897037A true CN106897037A (en) | 2017-06-27 |
Family
ID=59184198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710093516.9A Pending CN106897037A (en) | 2017-02-21 | 2017-02-21 | Intelligent terminal realizes the method and device of printing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897037A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107578579A (en) * | 2017-08-08 | 2018-01-12 | 福州汇思博信息技术有限公司 | A kind of method and POS terminal of shared printing device |
CN107613483A (en) * | 2017-09-25 | 2018-01-19 | 福州汇思博信息技术有限公司 | Method and smart machine based on virtual bluetooth equipment communication between process |
CN107978102A (en) * | 2017-12-06 | 2018-05-01 | 福建新大陆支付技术有限公司 | A kind of intelligent POS machine and its Method of printing for realizing simulation bluetooth printing |
CN107977175A (en) * | 2017-11-06 | 2018-05-01 | 厦门盈趣科技股份有限公司 | A kind of wireless printer and its control method of information protection mechanism |
CN108229184A (en) * | 2017-12-22 | 2018-06-29 | 沈阳通用软件有限公司 | A kind of reliable Print auditing method based on android system |
CN110198240A (en) * | 2019-05-31 | 2019-09-03 | 口碑(上海)信息技术有限公司 | In the method and device of businessman's management equipment addition printer |
CN110503786A (en) * | 2019-08-27 | 2019-11-26 | 深圳大趋智能科技有限公司 | A kind of intelligence POS machine realizes the method and device of virtual bluetooth printer |
CN110531941A (en) * | 2019-08-07 | 2019-12-03 | 北京数衍科技有限公司 | Printer based on android system |
CN112633827A (en) * | 2020-12-18 | 2021-04-09 | 浪潮云信息技术股份公司 | Law enforcement printing system based on intelligent mobile terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020114002A1 (en) * | 2001-02-19 | 2002-08-22 | Toshiyuki Mitsubori | Data processing device, data processing method, and data processing program |
CN101623959A (en) * | 2008-07-10 | 2010-01-13 | 江门市得实计算机外部设备有限公司 | Print and scanning all-in-one machine, print and scanning certification all-in-one system and operating method thereof |
CN103257835A (en) * | 2013-04-12 | 2013-08-21 | 博韩伟业(北京)科技有限公司 | Printing system with Bluetooth function and working method of printing system with Bluetooth function |
CN103279311A (en) * | 2013-05-15 | 2013-09-04 | 江苏奇异点网络有限公司 | Method for completing printing by accessing special network |
CN103838530A (en) * | 2014-02-27 | 2014-06-04 | 广州网乐广告有限公司 | Method and device for printing order in wireless mode |
CN106354445A (en) * | 2016-08-30 | 2017-01-25 | 福建联迪商用设备有限公司 | Printing method and printing system based on virtual Bluetooth device |
-
2017
- 2017-02-21 CN CN201710093516.9A patent/CN106897037A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020114002A1 (en) * | 2001-02-19 | 2002-08-22 | Toshiyuki Mitsubori | Data processing device, data processing method, and data processing program |
CN101623959A (en) * | 2008-07-10 | 2010-01-13 | 江门市得实计算机外部设备有限公司 | Print and scanning all-in-one machine, print and scanning certification all-in-one system and operating method thereof |
CN103257835A (en) * | 2013-04-12 | 2013-08-21 | 博韩伟业(北京)科技有限公司 | Printing system with Bluetooth function and working method of printing system with Bluetooth function |
CN103279311A (en) * | 2013-05-15 | 2013-09-04 | 江苏奇异点网络有限公司 | Method for completing printing by accessing special network |
CN103838530A (en) * | 2014-02-27 | 2014-06-04 | 广州网乐广告有限公司 | Method and device for printing order in wireless mode |
CN106354445A (en) * | 2016-08-30 | 2017-01-25 | 福建联迪商用设备有限公司 | Printing method and printing system based on virtual Bluetooth device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107578579A (en) * | 2017-08-08 | 2018-01-12 | 福州汇思博信息技术有限公司 | A kind of method and POS terminal of shared printing device |
CN107613483A (en) * | 2017-09-25 | 2018-01-19 | 福州汇思博信息技术有限公司 | Method and smart machine based on virtual bluetooth equipment communication between process |
CN107977175A (en) * | 2017-11-06 | 2018-05-01 | 厦门盈趣科技股份有限公司 | A kind of wireless printer and its control method of information protection mechanism |
CN107978102A (en) * | 2017-12-06 | 2018-05-01 | 福建新大陆支付技术有限公司 | A kind of intelligent POS machine and its Method of printing for realizing simulation bluetooth printing |
CN108229184A (en) * | 2017-12-22 | 2018-06-29 | 沈阳通用软件有限公司 | A kind of reliable Print auditing method based on android system |
CN108229184B (en) * | 2017-12-22 | 2023-10-03 | 三六零数字安全科技集团有限公司 | Reliable printing audit method based on Android system |
CN110198240A (en) * | 2019-05-31 | 2019-09-03 | 口碑(上海)信息技术有限公司 | In the method and device of businessman's management equipment addition printer |
CN110531941A (en) * | 2019-08-07 | 2019-12-03 | 北京数衍科技有限公司 | Printer based on android system |
CN110503786A (en) * | 2019-08-27 | 2019-11-26 | 深圳大趋智能科技有限公司 | A kind of intelligence POS machine realizes the method and device of virtual bluetooth printer |
CN112633827A (en) * | 2020-12-18 | 2021-04-09 | 浪潮云信息技术股份公司 | Law enforcement printing system based on intelligent mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106897037A (en) | Intelligent terminal realizes the method and device of printing | |
CN101895508B (en) | Radio communications system | |
CN103108294B (en) | Data transmission disposal method, gateway device and communication system | |
CN104640058B (en) | The control method of communication equipment and communication equipment | |
CN105068947B (en) | Method for processing serial port communication based on driver layer | |
CN102711282A (en) | Method for accessing zero-input wireless equipment into network and zero-input wireless equipment | |
CN106330573A (en) | Method for automatically corresponding terminals and templates based on FTTH | |
CN108255754B (en) | A kind of I3C main equipment of compatible I2C, I3C master-slave equipment communication system and method | |
TWI769246B (en) | Method for uplink signal transmission, terminal, and network equipment | |
US20150326504A1 (en) | Apparatus and method for encoding mdio into sgmii transmissions | |
CN111953777B (en) | Internet of things platform access equipment management system | |
CN109291661A (en) | A kind of printing imaging system | |
CN209336297U (en) | A kind of printing imaging system | |
US20190200290A1 (en) | Hybrid low power network device | |
CN104468558B (en) | The method, apparatus and terminal of data safety management | |
CN109649304A (en) | A kind of method, equipment and the system of long-range control vehicle | |
CN108604996A (en) | A kind of strategy transmission method and apparatus in NFV systems | |
CN112181806A (en) | Embedded software testing device and method based on TFTP protocol | |
CN202750089U (en) | Bluetooth device and integrated peripheral devices | |
CN106453282A (en) | Method and system for controlling ATM equipment | |
CN102625424A (en) | Power saving method, access point device, and terminal station device | |
CN101388796B (en) | Information sending processing method, communication equipment and communication system | |
CN101360050A (en) | Method and apparatus setting flow control mode | |
CN108880761A (en) | Server network card information obtains system | |
Antoniou et al. | NFC-based mobile middleware for intuitive user interaction with security in smart homes. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170627 |