It is a kind of to call NFC's during printing device Auto Power On and bluetooth automatic matching
Method
Technical field
It is specifically a kind of automatic in printing device Auto Power On and bluetooth the present invention relates to high frequency wireless communication technology field
The method that NFC is called during pairing.
Background technology
Near-field communication(NFC)Also known as wireless near field communication allows to carry out non-connect in ten centimetres between electronic equipment
Touch Point-to-Point Data Transmission exchanges data, is being developed by non-contact radio-frequency identification technology.Current near-field communication technology
It is mainly used in the public services such as mobile-phone payment and ticket, cash register.
The booting of existing printing device and Bluetooth pairing are typically all artificial manual mode, and the booting of printing device is generally
It is switched on by mechanical switch, button or long-press, Bluetooth pairing needs artificial bluetooth discovery, Password Input and with the multiple steps of equity
Suddenly, equipment search hunting time is more long, due to artificial Password Input, so will appear unpaired feelings during password pairing
Condition extends the time of bluetooth connection.
Bluetooth pairing flow generally comprises following steps:1. inquiry scan:Matched by equipment response policy is queried
Set the influence of the factors such as power, communication distance, the annoyance level of parameter and radiofrequency signal, it is possible to which hundreds of milliseconds are scanned for target
Equipment, it is also possible to which time-out was still scanned less than generally surveying within the scope of unobstructed 3 meters could inquire in 2-3 seconds in more than ten seconds
To bluetooth equipment;2. link layer connects, the Signalling exchange of pure baseband module, just completed within 100 milliseconds;3. Password Input is used
Family interface inputs PIN code, clicks and confirms that the option of pairing exists simultaneously Password Input since the time artificially inputted is unknowable
Mistake generally takes at 5-20 seconds or so;4. pairing, general 100 milliseconds or so of the order flow of pairing, the long time is not defeated
Membership sentences time-out and fails to match;5. service is established, determined depending on top service various types, it is generally time-consuming also shorter,
100 milliseconds or so.In conclusion most fast conventional Bluetooth pairing takes and probably needs 15 seconds or so, the specific time is uncontrollable, together
When there is connection time-out the case where can not connecting, it is inconvenient to use.
Invention content
That the purpose of the present invention is to provide a kind of speed is fast, it is easy to use using near-field communication make equipment Auto Power On and
The method of bluetooth automatic matching, to solve the problems mentioned in the above background technology.
To achieve the above object, the present invention provides the following technical solutions:
A method of it calling NFC during printing device Auto Power On and bluetooth automatic matching, is as follows:
1)By the mobile phone with near-field communication module close to printing device, printing device is detected by near-field communication module
Near-field communication field strength, the GPO pins of near field communications chip export a low level interrupt signal to printing device in printing device
Power-supply system and microprocessor;
2)The microprocessor receives comes stabilized power source system after the low level interrupt signal to power-supply system input signal
Level on system, to make printing device be switched on;
3)When the mobile phone with near-field communication module is close to printing device, if being equipped with print application in mobile phone
APP, then print application APP obtains the uniform resource identifier near field communications chip by near-field communication module in mobile phone
URI, if on uniform resource identifier URI and mobile phone near field communications chip print application APP configurations unified resource
Identifiers, URIs are consistent, then print application APP is automatically opened, and print application APP obtains the indigo plant near field communications chip
Tooth paired data simultaneously executes Bluetooth pairing connection;
4)When the mobile phone with near-field communication module is close to printing device, if print application is not installed in mobile phone
The uniform resource identifier URI of the print application APP installed on APP or mobile phone and the unified resource near field communications chip
Identifiers, URIs are inconsistent, then on mobile phone automatic spring using the uniform resource identifier URI near field communications chip as download address
Application APP download interface, carry out application APP download;
5)It downloads and pacifies as the application APP of download address using the uniform resource identifier URI near field communications chip
After the completion of dress, print application APP is automatically opened, and the bluetooth that print application APP is obtained near field communications chip is matched
To data and execute Bluetooth pairing connection.
As a further solution of the present invention:Uniform resource identifier URI burnings in the near field communications chip are close
On the communication chip of field.
As a further solution of the present invention:The GPO pins of the near field communications chip are separately connected power-supply system and micro-
The GPIO pins of processor.
As a further solution of the present invention:The printing device realizes that the time of Auto Power On is 500ms-1s.
As further scheme of the invention:The bluetooth of the printing device realizes that the time of automatic matching connection is little
In 2.5s.
Compared with prior art, the beneficial effects of the invention are as follows:
Auto Power On printing device may be implemented in the present invention, automatic to carry out Bluetooth pairing connection and match precisely, low-power consumption,
It is of low cost, data transmission security is stable, data-link quickly connects, function intelligence, shorten the time of booting and Bluetooth pairing,
It is easy to use.
Description of the drawings
Fig. 1 is the structural schematic diagram of printing device 2 in the present invention.
Fig. 2 is the flow diagram that bluetooth automatic matching is carried out in the present invention.
In figure:1- mobile phones;2- printing devices;3- near-field communication modules;4- near field communications chips;5- power-supply systems;6- is micro-
Processor.
Specific implementation mode
The technical solution of this patent is described in more detail With reference to embodiment.
- 2 are please referred to Fig.1, a method of calling NFC during printing device Auto Power On and bluetooth automatic matching,
It is as follows:
1)By the mobile phone 1 with near-field communication module 3 close to printing device 2, printing device 2 passes through near-field communication module 3
Detect near-field communication field strength, in printing device 2 the GPO pins of near field communications chip 4 export a low level interrupt signal to
The power-supply system 5 and microprocessor 6 of printing device 2;
2)The microprocessor 6 receives carrys out stabilized power source after the low level interrupt signal to 5 input signal of power-supply system
Level in system 5, to make printing device 2 be switched on, this makes device power-up more convenient and intelligent, to printing device 2
There is no limit as long as the smart mobile phone 1 with near-field communication module 3 can be incited somebody to action close to printing device 2 for placement position and space
Printing device 2 is opened, and without manual booting, the printing device 2 realizes that the time of Auto Power On is 500ms-1s, the near field
The GPO pins of communication chip 4 are separately connected the GPIO pins of power-supply system 5 and microprocessor 6;
3)When the mobile phone 1 with near-field communication module 3 is close to printing device 2, if being equipped with print application in mobile phone 1
Program APP, then print application APP obtains the unified money near field communications chip 4 by near-field communication module 3 in mobile phone 1
Source identifier URI, if print application APP configurations on uniform resource identifier URI and mobile phone 1 near field communications chip 4
Uniform resource identifier URI it is consistent, then print application APP is automatically opened, and print application APP obtains near-field communication
Bluetooth pairing data in chip 4 simultaneously execute Bluetooth pairing connection, and the uniform resource identifier URI near field communications chip 4 is burnt
Record is near field communications chip 4;
4)When the mobile phone 1 with near-field communication module 3 is close to printing device 2, if not installing print application in mobile phone 1
The uniform resource identifier URI of the print application APP installed on program APP or mobile phone 1 and the system near field communications chip 4
One resource identifiers, URIs are inconsistent, then automatic spring is with the uniform resource identifier URI near field communications chip 4 on mobile phone 1
The application APP of download address downloads interface, carries out application APP download;
5)It downloads and pacifies as the application APP of download address using the uniform resource identifier URI near field communications chip 4
After the completion of dress, print application APP is automatically opened, and the bluetooth that print application APP is obtained near field communications chip 4 is matched
To data and Bluetooth pairing connection is executed, the bluetooth of the printing device 2 realizes that the time of automatic matching connection is not more than 2.5s.
The mobile phone 1 with near-field communication module 3 close to printing device 2 can not need to input pairing password automatically at
Work(connection pairing, the process that Bluetooth pairing eliminates manual search, Password Input and pairing, very big journey are carried out by near-field communication
The speed that Bluetooth pairing is improved on degree simplifies pairing process so that Bluetooth pairing is faster so that user can be rapidly performed by
Data transmission and printing.
Auto Power On printing device 2 may be implemented in the present invention, automatic to carry out Bluetooth pairing connection and match accurate, low work(
Consumption, of low cost, data transmission security is stable, data-link quickly connect, function is intelligent, shorten booting and Bluetooth pairing when
Between, it is easy to use.
The better embodiment of this patent is explained in detail above, but this patent is not limited to above-mentioned embodiment party
Formula, one skilled in the relevant art within the scope of knowledge, can also be under the premise of not departing from this patent objective
Various changes can be made.