CN116708643A - Quick connection method of Bluetooth printer and Bluetooth printer - Google Patents
Quick connection method of Bluetooth printer and Bluetooth printer Download PDFInfo
- Publication number
- CN116708643A CN116708643A CN202310605768.0A CN202310605768A CN116708643A CN 116708643 A CN116708643 A CN 116708643A CN 202310605768 A CN202310605768 A CN 202310605768A CN 116708643 A CN116708643 A CN 116708643A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- nfc
- mac address
- card reader
- printer
- 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
-
- 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
-
- 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/1211—Improving printing performance
-
- 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
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0029—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10297—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Computer Security & Cryptography (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
技术领域technical field
本申请涉及打印技术领域,具体涉及一种蓝牙打印机的快速连接方法及蓝牙打印机。The present application relates to the technical field of printing, in particular to a quick connection method of a Bluetooth printer and the Bluetooth printer.
背景技术Background technique
在打印机中,蓝牙打印机是一种可通过蓝牙技术连接到配对设备的打印机。与传统的打印机相比,蓝牙打印机具有更加便捷的无线连接方式,可以通过具有蓝牙功能的移动设备(如手机、平板电脑等)进行打印操作,在商业和工业领域有着广泛的应用场景;Among printers, a Bluetooth printer is a printer that can be connected to a paired device via Bluetooth technology. Compared with traditional printers, Bluetooth printers have a more convenient wireless connection method, and can be printed through mobile devices with Bluetooth functions (such as mobile phones, tablet computers, etc.), and have a wide range of application scenarios in commercial and industrial fields;
然而,目前市面上很多蓝牙打印机连接移动设备时,需要在移动设备端打开蓝牙,再搜索机型名,再连接打印机,很多时候用户并不知道蓝牙打印机的机型名还要通过查看蓝牙打印机的打印自检页的方式,手动查询相关MAC地址信息和名称信息,并在移动设备端进行连接,导致蓝牙打印机的连接效率低下,影响用户体验,且认为输入相关MAC地址信息和名称信息,容易导致蓝牙连接因人为因素而错连,进而影响蓝牙连接的速度和准确度。However, when many Bluetooth printers on the market are connected to mobile devices, they need to turn on Bluetooth on the mobile device, search for the model name, and then connect to the printer. Many times, users do not know the model name of the The method of printing the self-test page, manually querying the relevant MAC address information and name information, and connecting on the mobile device end leads to low connection efficiency of the Bluetooth printer and affects the user experience, and it is believed that inputting the relevant MAC address information and name information is easy to cause The Bluetooth connection is misconnected due to human factors, which affects the speed and accuracy of the Bluetooth connection.
发明内容Contents of the invention
本申请实施例提供一种蓝牙打印机的快速连接方法及蓝牙打印机,至少能保证,本申请方案能通过主控芯片和NFC读卡器将蓝牙模块的MAC地址信息和名称信息传输至NFC标签,以使用户可以通过使蓝牙设备触碰所述NFC标签的方式,快速有效的建立蓝牙设备与所述蓝牙打印机的蓝牙连接。The embodiment of the present application provides a quick connection method of a Bluetooth printer and a Bluetooth printer, which can at least ensure that the scheme of this application can transmit the MAC address information and name information of the Bluetooth module to the NFC tag through the main control chip and the NFC card reader, so as to The user can quickly and effectively establish a bluetooth connection between the bluetooth device and the bluetooth printer by touching the bluetooth device to the NFC tag.
第一方面,本申请实施例提供了一种蓝牙打印机的快速连接方法,所述方法应用于蓝牙打印机,所述蓝牙打印机包括NFC标签、NFC读卡器、蓝牙模块和主控芯片,所述方法包括:In the first aspect, the embodiment of the present application provides a quick connection method of a Bluetooth printer, the method is applied to a Bluetooth printer, and the Bluetooth printer includes an NFC tag, an NFC card reader, a Bluetooth module and a main control chip, and the method include:
所述主控芯片获取所述蓝牙模块的MAC地址信息和名称信息;The main control chip obtains the MAC address information and name information of the Bluetooth module;
所述主控芯片将所述MAC地址信息和所述名称信息传输至所述NFC读卡器;The main control chip transmits the MAC address information and the name information to the NFC card reader;
所述NFC读卡器将所述MAC地址信息和所述名称信息至所述NFC标签,以使在蓝牙设备触碰所述NFC标签时,所述蓝牙设备通过所述NFC标签获取所述MAC地址信息和所述名称信息,并建立与所述蓝牙打印机的蓝牙连接。The NFC card reader sends the MAC address information and the name information to the NFC tag, so that when the Bluetooth device touches the NFC tag, the Bluetooth device obtains the MAC address through the NFC tag information and the name information, and establish a bluetooth connection with the bluetooth printer.
在一些实施例中,所述主控芯片将所述MAC地址信息和所述名称信息传输至所述NFC读卡器,包括:In some embodiments, the main control chip transmits the MAC address information and the name information to the NFC card reader, including:
所述主控芯片通过串行外设接口协议将所述MAC地址信息和所述名称信息传输至所述NFC读卡器。The main control chip transmits the MAC address information and the name information to the NFC card reader through the serial peripheral interface protocol.
在一些实施例中,所述NFC读卡器将所述MAC地址信息和所述名称信息至所述NFC标签,包括:In some embodiments, the NFC card reader sends the MAC address information and the name information to the NFC tag, including:
所述NFC读卡器通过近场通信协议将所述MAC地址信息和名称信息传输至所述NFC标签。The NFC card reader transmits the MAC address information and name information to the NFC tag through a near field communication protocol.
在一些实施例中,所述主控芯片获取所述蓝牙模块的MAC地址信息和名称信息之前,还包括:In some embodiments, before the main control chip obtains the MAC address information and name information of the Bluetooth module, it also includes:
所述主控芯片获取NFC控制指令,并根据NFC控制指令为所述NFC读卡器进行供电。The main control chip acquires NFC control instructions, and supplies power to the NFC card reader according to the NFC control instructions.
在一些实施例中,所述NFC读卡器将所述MAC地址信息和所述名称信息至所述NFC标签之后,还包括:In some embodiments, after the NFC card reader adds the MAC address information and the name information to the NFC tag, it also includes:
所述主控芯片停止为所述NFC读卡器进行供电。The main control chip stops supplying power to the NFC card reader.
在一些实施例中,所述NFC读卡器将所述MAC地址信息和所述名称信息至所述NFC标签时,所述NFC读卡器和所述NFC标签的工作频率设置为13.56MHz,所述NFC标签设置在所述蓝牙打印机内侧,所述NFC标签与所述NFC读卡器之间的距离小于或者等于10厘米。In some embodiments, when the NFC card reader sends the MAC address information and the name information to the NFC tag, the operating frequency of the NFC card reader and the NFC tag is set to 13.56MHz, so The NFC tag is arranged inside the Bluetooth printer, and the distance between the NFC tag and the NFC card reader is less than or equal to 10 centimeters.
在一些实施例中,所述蓝牙设备包括智能终端,所述智能终端上设置有预设程序,所述NFC读卡器将所述MAC地址信息和所述名称信息至所述NFC标签之后,还包括:In some embodiments, the Bluetooth device includes a smart terminal, and a preset program is set on the smart terminal, and the NFC card reader sends the MAC address information and the name information to the NFC tag, and then include:
所述NFC标签根据所述MAC地址信息和所述名称信息生成NFC数据;The NFC tag generates NFC data according to the MAC address information and the name information;
在所述智能终端触碰所述NFC标签时,所述NFC标签将所述NFC数据发送至所述智能终端;When the smart terminal touches the NFC tag, the NFC tag sends the NFC data to the smart terminal;
所述智能终端通过所述预设程序解析所述NFC数据,以获取所述MAC地址信息和所述名称信息,并建立与所述蓝牙打印机中蓝牙模块的蓝牙连接。The intelligent terminal parses the NFC data through the preset program to obtain the MAC address information and the name information, and establishes a Bluetooth connection with the Bluetooth module in the Bluetooth printer.
第二方面,本申请实施例提供了一种蓝牙打印机,所述蓝牙打印机包括NFC标签、NFC读卡器、蓝牙模块和主控芯片;In a second aspect, the embodiment of the present application provides a bluetooth printer, the bluetooth printer includes an NFC tag, an NFC card reader, a bluetooth module, and a main control chip;
所述主控芯片用于获取所述蓝牙模块的MAC地址信息和名称信息,并将所述MAC地址信息和所述名称信息传输至所述NFC读卡器;The main control chip is used to obtain the MAC address information and name information of the Bluetooth module, and transmit the MAC address information and the name information to the NFC card reader;
所述NFC读卡器用于将所述MAC地址信息和所述名称信息至所述NFC标签,以使在蓝牙设备触碰所述NFC标签时,所述蓝牙设备通过所述NFC标签获取所述MAC地址信息和所述名称信息,并建立与所述蓝牙打印机的蓝牙连接。The NFC card reader is used to transfer the MAC address information and the name information to the NFC tag, so that when the Bluetooth device touches the NFC tag, the Bluetooth device obtains the MAC address through the NFC tag address information and the name information, and establish a Bluetooth connection with the Bluetooth printer.
第三方面,本申请实施例提供了一种控制器,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面中任意一项实施例所述的蓝牙打印机的快速连接方法。In a third aspect, the embodiment of the present application provides a controller, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, Realize the quick connection method of the bluetooth printer described in any one embodiment in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行如第一方面中任意一项实施例所述的蓝牙打印机的快速连接方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to implement the quick connection of the Bluetooth printer described in any one of the embodiments in the first aspect. method.
本申请至少具有以下有益效果:本申请应用于蓝牙打印机,所述蓝牙打印机包括NFC标签、NFC读卡器、蓝牙模块和主控芯片,所述方法包括:所述主控芯片获取所述蓝牙模块的MAC地址信息和名称信息;所述主控芯片将所述MAC地址信息和所述名称信息传输至所述NFC读卡器;所述NFC读卡器将所述MAC地址信息和所述名称信息至所述NFC标签,以使在蓝牙设备触碰所述NFC标签时,所述蓝牙设备通过所述NFC标签获取所述MAC地址信息和所述名称信息,并建立与所述蓝牙打印机的蓝牙连接,其中,通过主控芯片和NFC读卡器将蓝牙模块的MAC地址信息和名称信息传输至NFC标签,简化了蓝牙连接过程,通过NFC技术,使手机等蓝牙设备和打印机之间可以快速配对,以使用户可以通过使蓝牙设备触碰所述NFC标签的方式,快速有效的建立蓝牙设备与所述蓝牙打印机的蓝牙连接,并且避免了人为因素的错连,使连接速度和准确度得到提高。The application at least has the following beneficial effects: the application is applied to a bluetooth printer, and the bluetooth printer includes an NFC tag, an NFC card reader, a bluetooth module and a main control chip, and the method includes: the main control chip acquires the bluetooth module MAC address information and name information; the main control chip transmits the MAC address information and the name information to the NFC card reader; the NFC card reader transmits the MAC address information and the name information to the NFC tag, so that when the Bluetooth device touches the NFC tag, the Bluetooth device obtains the MAC address information and the name information through the NFC tag, and establishes a Bluetooth connection with the Bluetooth printer Among them, the MAC address information and name information of the Bluetooth module are transmitted to the NFC tag through the main control chip and the NFC card reader, which simplifies the Bluetooth connection process. Through NFC technology, the mobile phone and other Bluetooth devices can be quickly paired with the printer. The user can quickly and effectively establish the Bluetooth connection between the Bluetooth device and the Bluetooth printer by making the Bluetooth device touch the NFC tag, and avoids the wrong connection due to human factors, so that the connection speed and accuracy are improved.
附图说明Description of drawings
图1为本申请一实施例提出的蓝牙打印机的快速连接方法的流程图;FIG. 1 is a flow chart of a quick connection method for a Bluetooth printer proposed in an embodiment of the present application;
图2为本申请另一实施例提出的蓝牙打印机的快速连接方法中,将所述MAC地址信息和所述名称信息传输至所述NFC读卡器的流程图;Fig. 2 is a flow chart of transmitting the MAC address information and the name information to the NFC card reader in the quick connection method of the Bluetooth printer proposed by another embodiment of the present application;
图3为本申请另一实施例提出的蓝牙打印机的快速连接方法中,将所述MAC地址信息和所述名称信息至所述NFC标签的流程图;Fig. 3 is a flow chart of transferring the MAC address information and the name information to the NFC tag in the quick connection method for a Bluetooth printer proposed in another embodiment of the present application;
图4为本申请另一实施例提出的蓝牙打印机的快速连接方法中,为所述NFC读卡器进行供电的流程图;FIG. 4 is a flow chart of supplying power to the NFC card reader in the quick connection method for a Bluetooth printer proposed in another embodiment of the present application;
图5为本申请另一实施例提出的蓝牙打印机的快速连接方法中,停止为所述NFC读卡器进行供电的流程图;Fig. 5 is a flow chart of stopping power supply for the NFC card reader in the quick connection method of the Bluetooth printer proposed by another embodiment of the present application;
图6为本申请另一实施例提出的蓝牙打印机的快速连接方法中,智能终端建立与所述蓝牙打印机中蓝牙模块的蓝牙连接的流程图;6 is a flow chart of establishing a Bluetooth connection between the smart terminal and the Bluetooth module in the Bluetooth printer in the quick connection method for the Bluetooth printer proposed by another embodiment of the present application;
图7为本申请另一实施例提出的控制器的示意图。FIG. 7 is a schematic diagram of a controller proposed in another embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.
在一些实施例中,虽然在系统示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于系统中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语第一、第二等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。In some embodiments, although functional modules are divided in the schematic diagram of the system, and the logical order is shown in the flowchart, in some cases, the division of modules in the system or the order in the flowchart may be different Perform the steps shown or described. The terms first, second, etc. in the specification and claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
此外,除非另有明确的规定和限定,术语“连接/相连”应做广义理解,例如,可以是固定连接或活动连接,也可以是可拆卸连接或不可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连。In addition, unless otherwise clearly stipulated and limited, the term "connected/connected" should be understood in a broad sense, for example, it can be fixed or movable, detachable or non-detachable, or integrally connected; it can be A mechanical connection can also be an electrical connection or can communicate with each other; it can be a direct connection or an indirect connection through an intermediary.
在本申请实施例的描述中,参考术语“一个实施例/实施方式”、“另一实施例/实施方式”或“某些实施例/实施方式”、“在上述实施例/实施方式”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请公开的至少两个实施例或实施方式中。在本申请公开中,对上述术语的示意性表述不一定指的是相同的示实施例或实施方式。需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。In the description of the embodiments of the present application, reference is made to the terms "one embodiment/implementation", "another embodiment/embodiment" or "certain embodiments/embodiments", "in the foregoing embodiments/embodiments", etc. The description means that the specific features, structures, materials or features described in conjunction with the embodiments or examples are included in at least two embodiments or implementations disclosed in the present application. In the present disclosure, schematic representations of the above terms do not necessarily refer to the same exemplary embodiment or implementation. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than in the flowchart.
目前,在打印机中,蓝牙打印机是一种可通过蓝牙技术连接到配对设备的打印机。与传统的打印机相比,蓝牙打印机具有更加便捷的无线连接方式,可以通过具有蓝牙功能的移动设备(如手机、平板电脑等)进行打印操作,在商业和工业领域有着广泛的应用场景;然而,目前市面上很多蓝牙打印机连接移动设备时,需要在移动设备端打开蓝牙,再搜索机型名,再连接打印机,很多时候用户并不知道蓝牙打印机的机型名还要通过查看蓝牙打印机的打印自检页的方式,手动查询相关MAC地址信息和名称信息,并在移动设备端进行连接,导致蓝牙打印机的连接效率低下,影响用户体验,且认为输入相关MAC地址信息和名称信息,容易导致蓝牙连接因人为因素而错连,进而影响蓝牙连接的速度和准确度。Currently, among printers, a Bluetooth printer is a printer that can be connected to a paired device via Bluetooth technology. Compared with traditional printers, Bluetooth printers have a more convenient wireless connection method, and can be printed through mobile devices with Bluetooth functions (such as mobile phones, tablet computers, etc.), and have a wide range of application scenarios in commercial and industrial fields; however, At present, when many Bluetooth printers on the market are connected to mobile devices, they need to turn on Bluetooth on the mobile device, search for the model name, and then connect to the printer. Many times, users do not know the model name of the Bluetooth printer and have to check the printout of the Bluetooth printer. The method of page inspection, manually query the relevant MAC address information and name information, and connect on the mobile device side, resulting in low connection efficiency of the Bluetooth printer and affecting the user experience, and it is believed that inputting the relevant MAC address information and name information will easily lead to Bluetooth connection Misconnection due to human factors will affect the speed and accuracy of the Bluetooth connection.
为至少解决上述问题,本申请公开了一种蓝牙打印机的快速连接方法及蓝牙打印机,本申请应用于蓝牙打印机,蓝牙打印机包括NFC标签、NFC读卡器、蓝牙模块和主控芯片,方法包括:主控芯片获取蓝牙模块的MAC地址信息和名称信息;主控芯片将MAC地址信息和名称信息传输至NFC读卡器;NFC读卡器将MAC地址信息和名称信息至NFC标签,以使在蓝牙设备触碰NFC标签时,蓝牙设备通过NFC标签获取MAC地址信息和名称信息,并建立与蓝牙打印机的蓝牙连接,其中,通过主控芯片和NFC读卡器将蓝牙模块的MAC地址信息和名称信息传输至NFC标签,简化了蓝牙连接过程,通过NFC技术,使手机等蓝牙设备和打印机之间可以快速配对,以使用户可以通过使蓝牙设备触碰NFC标签的方式,快速有效的建立蓝牙设备与蓝牙打印机的蓝牙连接,并且避免了人为因素的错连,使连接速度和准确度得到提高。In order to at least solve the above problems, this application discloses a quick connection method for a Bluetooth printer and a Bluetooth printer. This application is applied to a Bluetooth printer. The Bluetooth printer includes an NFC tag, an NFC card reader, a Bluetooth module, and a main control chip. The method includes: The main control chip obtains the MAC address information and name information of the Bluetooth module; the main control chip transmits the MAC address information and name information to the NFC card reader; the NFC card reader sends the MAC address information and name information to the NFC tag, so that in the Bluetooth When the device touches the NFC tag, the Bluetooth device obtains the MAC address information and name information through the NFC tag, and establishes a Bluetooth connection with the Bluetooth printer. Transmission to NFC tags simplifies the Bluetooth connection process. Through NFC technology, Bluetooth devices such as mobile phones and printers can be quickly paired, so that users can quickly and effectively establish Bluetooth devices and printers by touching the NFC tag with the Bluetooth device. The bluetooth connection of the bluetooth printer avoids the wrong connection of human factors, so that the connection speed and accuracy are improved.
下面结合附图,对本申请实施例作进一步描述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
参考图1,图1为本申请一实施例提出的蓝牙打印机的快速连接方法的流程图,在一些实施例中,本申请实施例提供了一种蓝牙打印机的快速连接方法,方法应用于蓝牙打印机,蓝牙打印机包括NFC标签、NFC读卡器、蓝牙模块和主控芯片,方法包括但不限于有以下步骤S110、步骤S120和步骤S130;Referring to Fig. 1, Fig. 1 is a flow chart of a method for quick connection of a Bluetooth printer proposed by an embodiment of the present application. In some embodiments, an embodiment of the present application provides a method for quick connection of a Bluetooth printer, and the method is applied to a Bluetooth printer The bluetooth printer includes an NFC tag, an NFC card reader, a bluetooth module and a main control chip, and the method includes but is not limited to the following steps S110, S120 and S130;
步骤S110,主控芯片获取蓝牙模块的MAC地址信息和名称信息;Step S110, the main control chip obtains the MAC address information and name information of the Bluetooth module;
步骤S120,主控芯片将MAC地址信息和名称信息传输至NFC读卡器;Step S120, the main control chip transmits the MAC address information and name information to the NFC card reader;
步骤S130,NFC读卡器将MAC地址信息和名称信息至NFC标签,以使在蓝牙设备触碰NFC标签时,蓝牙设备通过NFC标签获取MAC地址信息和名称信息,并建立与蓝牙打印机的蓝牙连接。Step S130, the NFC card reader sends the MAC address information and name information to the NFC tag, so that when the Bluetooth device touches the NFC tag, the Bluetooth device obtains the MAC address information and name information through the NFC tag, and establishes a Bluetooth connection with the Bluetooth printer .
在一些实施例中,蓝牙设备包括具有蓝牙功能的移动设备(如手机、平板电脑等)。In some embodiments, the Bluetooth device includes a Bluetooth-enabled mobile device (such as a mobile phone, a tablet computer, etc.).
在一些实施例中,蓝牙的MAC地址(Media Access Control Address)是一个48位的唯一标识符,它用于标识蓝牙设备的硬件地址。MAC地址是由厂商在设备制造过程中设置的,并且在整个设备的生命周期内都保持不变,蓝牙协议规定,MAC地址的前24位是设备的厂商ID,后24位是该厂商设备的顺序编号;蓝牙的名称用于标识蓝牙设备,蓝牙设备的名称可以由设备制造商在生产过程中预设,也可以由用户在配对设备时自定义;当外部的蓝牙设备与蓝牙打印机进行配对时,蓝牙打印机中蓝牙模块可以进行蓝牙广播,向外发送蓝牙名称和MAC地址,以便蓝牙设备能够发现和连接蓝牙模块,而蓝牙设备可以通过获取蓝牙打印机中蓝牙模块的MAC地址进行识别和验证,从而进行蓝牙连接;现有技术是通过收到输入的方式使蓝牙设备获取蓝牙名称和MAC地址,效率较低,故本申请通过NFC技术,在蓝牙设备触碰NFC标签时,将MAC地址信息和名称信息发送至蓝牙设备,蓝牙设备和打印机之间可以快速配对,无需一系列繁琐的步骤,可以提高连接速度和准确度,使得蓝牙设备和打印机之间的通信更加顺畅。In some embodiments, the Bluetooth MAC address (Media Access Control Address) is a 48-bit unique identifier, which is used to identify the hardware address of the Bluetooth device. The MAC address is set by the manufacturer during the device manufacturing process and remains unchanged throughout the life cycle of the device. The Bluetooth protocol stipulates that the first 24 bits of the MAC address are the manufacturer ID of the device, and the last 24 bits are the device ID of the manufacturer. Sequential numbering; the name of Bluetooth is used to identify the Bluetooth device, the name of the Bluetooth device can be preset by the device manufacturer during the production process, or can be customized by the user when pairing the device; when an external Bluetooth device is paired with a Bluetooth printer , the bluetooth module in the bluetooth printer can perform bluetooth broadcast, and send the bluetooth name and MAC address to the outside, so that the bluetooth device can discover and connect to the bluetooth module, and the bluetooth device can identify and verify by obtaining the MAC address of the bluetooth module in the bluetooth printer, thus Bluetooth connection; the existing technology is to make the Bluetooth device obtain the Bluetooth name and MAC address by receiving input, which is inefficient. Therefore, this application uses NFC technology to transfer the MAC address information and name when the Bluetooth device touches the NFC tag. The information is sent to the Bluetooth device, and the Bluetooth device and the printer can be paired quickly without a series of tedious steps, which can improve the connection speed and accuracy, and make the communication between the Bluetooth device and the printer smoother.
在一些实施例中,本申请通过在打印机集成NFC读卡器、蓝牙模块及主控芯片,将打印机蓝牙MAC地址和蓝牙名称通过NFC协议传输到NFC标签中,在打印机内侧贴上有标识的NFC标签。用户只需用支持NFC功能的手机触碰NFC标签,即可快速连接打印机,无需打开蓝牙、搜索机型、打印自检页,从而实现了蓝牙连接的自动化、高效性和准确度的提高,并避免了人为因素导致的错连,此外,还需要安装公司定制的APP工具以解释NFC指令和启动配对蓝牙。In some embodiments, the application integrates an NFC card reader, a Bluetooth module, and a main control chip in the printer, transmits the printer's Bluetooth MAC address and Bluetooth name to the NFC label through the NFC protocol, and affixes a marked NFC on the inside of the printer. Label. Users only need to touch the NFC tag with their NFC-enabled mobile phone to quickly connect to the printer without turning on Bluetooth, searching for models, and printing a self-test page, thereby realizing the automation, efficiency, and accuracy of Bluetooth connections. Misconnection caused by human factors is avoided. In addition, the company's customized APP tool needs to be installed to interpret NFC commands and start pairing with Bluetooth.
在一些实施例中,NFC代表近场通讯(Near Field Communication),是一种短距离无线通讯技术,用于与支持该技术的设备进行通讯,本申请通过NFC技术将MAC地址信息和名称信息发送至蓝牙设备,以使手机等具有蓝牙功能的移动设备和蓝牙打印机之间可以快速配对。In some embodiments, NFC stands for Near Field Communication (Near Field Communication), which is a short-distance wireless communication technology for communicating with devices supporting this technology. This application sends MAC address information and name information through NFC technology to a Bluetooth device for quick pairing between a Bluetooth-enabled mobile device such as a mobile phone and a Bluetooth printer.
在一些实施例中,NFC标签支持存储142个字节,支持NFCA协议,适配NFC读卡器,NFCA协议是指NFC Forum Type A协议,是NFC设备之间数据交换的一种标准方式,NFC标签可以通过NFCA协议与其他NFC设备之间进行通信。In some embodiments, the NFC tag supports storage of 142 bytes, supports the NFCA protocol, and is adapted to the NFC card reader. The NFCA protocol refers to the NFC Forum Type A protocol, which is a standard way of data exchange between NFC devices. NFC Tags can communicate with other NFC devices through the NFCA protocol.
在一些实施例中,当蓝牙设备触碰NFC标签时,NFC使用电磁感应原理,有源NFC元件可以在无源元件中感应出电流和发送数据,这意味着无源设备不需要自己的电源,即蓝牙设备端可接收到解释的NFC协议的数据,蓝牙设备端APP解释对应指令,启动配对蓝牙,其中,当蓝牙设备触碰NFC标签时,蓝牙设备内置的NFC芯片会发出一种高频电磁场,这个电磁场会激励NFC标签内的一部分电路,由于这个NFC标签是被动式的(无源设备),NFC标签会从这个电磁场中吸取一部分电能,并利用这部分电能去驱动内部的电路,产生反向电磁场。经过一定的处理,反向电磁场就可以被接收到手机内置的NFC芯片所解读,达到无需在NFC标签中嵌入电池或其他独立的电源即可使其保持正常工作的效果。In some embodiments, when the Bluetooth device touches the NFC tag, NFC uses the principle of electromagnetic induction, and the active NFC component can induce current and send data in the passive component, which means that the passive device does not need its own power supply, That is, the Bluetooth device end can receive the data of the NFC protocol explained, and the Bluetooth device end APP interprets the corresponding command and starts pairing Bluetooth. Among them, when the Bluetooth device touches the NFC tag, the built-in NFC chip of the Bluetooth device will emit a high-frequency electromagnetic field , this electromagnetic field will excite a part of the circuit in the NFC tag. Since the NFC tag is passive (passive device), the NFC tag will absorb part of the electric energy from the electromagnetic field, and use this part of the electric energy to drive the internal circuit to generate reverse electromagnetic field. After certain processing, the reverse electromagnetic field can be interpreted by the NFC chip built into the mobile phone, so that it can keep working normally without embedding batteries or other independent power sources in the NFC tag.
而当蓝牙设备接收到解读过的NFC标签数据后,它会根据标签类型和读卡器配置等信息来解析该NFC标签数据,其中,蓝牙设备端的APP可以提前配置用于解析的协议,以便将其用于与蓝牙打印机之间建立通信,达到快速有效的建立蓝牙设备与蓝牙打印机的蓝牙连接的效果。When the Bluetooth device receives the decoded NFC tag data, it will parse the NFC tag data according to the tag type and card reader configuration. It is used to establish communication with the Bluetooth printer to achieve the effect of quickly and effectively establishing the Bluetooth connection between the Bluetooth device and the Bluetooth printer.
此外,本申请通过NFC对蓝牙打印机和蓝牙设备进行配对,使得蓝牙打印机可以在更大范围内、更灵活的场景下与手机等蓝牙设备通信,而由于蓝牙设备端的APP可以提前配置用于解析的协议,该用于解析的协议可与蓝牙打印机为同一厂家开发设置,使得NFC指令与APP中解析协议相匹配,达到设备授权的效果,进而提高了蓝牙设备的安全性能,避免了其他非授权设备的攻击。In addition, this application uses NFC to pair the Bluetooth printer with the Bluetooth device, so that the Bluetooth printer can communicate with Bluetooth devices such as mobile phones in a wider range and more flexible scenarios, and because the APP on the Bluetooth device side can be configured in advance for parsing Protocol, the protocol for parsing can be developed and set by the same manufacturer as the Bluetooth printer, so that the NFC command matches the parsing protocol in the APP to achieve the effect of device authorization, thereby improving the security performance of the Bluetooth device and avoiding other unauthorized devices s attack.
参考图2,图2为本申请另一实施例提出的蓝牙打印机的快速连接方法中,将MAC地址信息和名称信息传输至NFC读卡器的流程图;主控芯片将MAC地址信息和名称信息传输至NFC读卡器,至少包括以下步骤:With reference to Fig. 2, Fig. 2 is the flow chart of transmitting MAC address information and name information to the NFC card reader in the quick connection method of the Bluetooth printer proposed by another embodiment of the present application; the main control chip transmits the MAC address information and name information Transmission to the NFC card reader, at least including the following steps:
步骤S210,主控芯片通过串行外设接口协议将MAC地址信息和名称信息传输至NFC读卡器。Step S210, the main control chip transmits the MAC address information and the name information to the NFC card reader through the serial peripheral interface protocol.
在一些实施例中,首主控芯片是在电子产品中负责控制和管理其他芯片和外设的中央处理器,而串行外设接口协议是指一种用于串行数据通信的协议,串行外设接口协议可以将数据从一个设备传输到另一个设备并保证传输的可靠性,主控芯片通过串行外设接口协议,可以将MAC地址和名称信息以二进制数的形式传输给NFC读卡器,以使NFC读卡器需要获取该地址在后续步骤中实现快速、便捷的设备配对功能。In some embodiments, the main control chip is a central processing unit responsible for controlling and managing other chips and peripherals in electronic products, and the serial peripheral interface protocol refers to a protocol for serial data communication. The serial peripheral interface protocol can transmit data from one device to another and ensure the reliability of the transmission. The main control chip can transmit the MAC address and name information in the form of binary numbers to the NFC reader through the serial peripheral interface protocol. Card reader, so that the NFC card reader needs to obtain the address to achieve fast and convenient device pairing in subsequent steps.
参考图3,图3为本申请另一实施例提出的蓝牙打印机的快速连接方法中,将MAC地址信息和名称信息至NFC标签的流程图;NFC读卡器将MAC地址信息和名称信息至NFC标签,至少包括以下步骤:With reference to Fig. 3, Fig. 3 is the flow chart of sending MAC address information and name information to NFC tag in the quick connection method of bluetooth printer proposed in another embodiment of the present application; NFC card reader sends MAC address information and name information to NFC label, including at least the following steps:
步骤S310,NFC读卡器通过近场通信协议将MAC地址信息和名称信息传输至NFC标签。Step S310, the NFC card reader transmits the MAC address information and the name information to the NFC tag through the near field communication protocol.
在一些实施例中,NFC标签通常是一种被动的设备,其内部包含一个集成电路和天线,用于存储和传输数据;NFC标签可以通过近场通信的方式与NFC读卡器相互交换数据,在进行通信前,可以通过将的NFC读卡器天线放置在NFC标签附近来建立连接,以使MAC地址信息和名称信息能传输至NFC标签,以使在蓝牙设备触碰NFC标签时,蓝牙设备通过NFC标签获取MAC地址信息和名称信息,并建立与蓝牙打印机的蓝牙连接。In some embodiments, the NFC tag is generally a passive device, which contains an integrated circuit and an antenna for storing and transmitting data; the NFC tag can exchange data with the NFC card reader through near-field communication, Before communication, the connection can be established by placing the NFC reader antenna near the NFC tag, so that the MAC address information and name information can be transmitted to the NFC tag, so that when the Bluetooth device touches the NFC tag, the Bluetooth device Obtain MAC address information and name information through NFC tags, and establish a Bluetooth connection with a Bluetooth printer.
参考图4,图4为本申请另一实施例提出的蓝牙打印机的快速连接方法中,为NFC读卡器进行供电的流程图;主控芯片获取蓝牙模块的MAC地址信息和名称信息之前,至少包括以下步骤:Referring to Fig. 4, Fig. 4 is a flow chart of supplying power to the NFC card reader in the quick connection method of the Bluetooth printer proposed by another embodiment of the present application; before the main control chip obtains the MAC address information and the name information of the Bluetooth module, at least Include the following steps:
步骤S410,主控芯片获取NFC控制指令,并根据NFC控制指令为NFC读卡器进行供电。Step S410, the main control chip acquires the NFC control command, and supplies power to the NFC card reader according to the NFC control command.
可以想到的是,在主控芯片获取蓝牙模块的MAC地址信息和名称信息之前,根据NFC控制指令为NFC读卡器进行供电,以保证主控芯片将MAC地址信息和名称信息传输至NFC读卡器时,NFC读卡器能将MAC地址信息和名称信息至NFC标签。It is conceivable that before the main control chip obtains the MAC address information and name information of the Bluetooth module, it supplies power to the NFC card reader according to the NFC control command to ensure that the main control chip transmits the MAC address information and name information to the NFC card reader. NFC reader can send MAC address information and name information to NFC tag when it is connected to the reader.
可以想到是,在打印机出厂时,出厂时可能会进行一些初始化配置,包括通过NFC指令记录一些初始配置信息,以保证用户使用打印机的便利性和初始配置的正确性。因此,生产人员发送操作NFC指令到打印机的目的是为了在出厂时设置一些打印机的默认配置,以便用户可以更轻松地使用打印机。同时,打印机在出厂时首先打开NFC读卡器供电,是为了保证使用NFC读卡器功能时,这部分硬件已经准备完毕。It is conceivable that when the printer leaves the factory, some initial configuration may be performed, including recording some initial configuration information through NFC commands, so as to ensure the convenience of the user in using the printer and the correctness of the initial configuration. Therefore, the purpose of the production personnel to send the operation NFC command to the printer is to set some default configurations of the printer at the factory, so that the user can use the printer more easily. At the same time, the printer first turns on the power supply of the NFC card reader when it leaves the factory to ensure that this part of the hardware has been prepared when the NFC card reader function is used.
在一些实施例中,NFC控制指令为用于配置蓝牙打印机NFC设置的自定义NFC指令,主控芯片获取NFC控制指令后,根据NFC控制指令进行NFC配置,该自定义NFC指令存在配套的APP工具,该配套的APP工具设置在要与蓝牙打印机进行连接的蓝牙设备上,配套的APP工具用于通过内置协议参数解析蓝牙打印机发出的NFC数据,以使蓝牙设备解析蓝牙打印机发出的NFC数据,获取蓝牙模块的MAC地址信息和名称信息,进而高效的建立蓝牙设备与蓝牙打印机的蓝牙连接,同时由于外部的蓝牙设备需要安装配套的APP工具才能解析NFC数据,可进一步提高蓝牙打印机的快速连接方法的安全性,防止未授权(未安装配套的APP工具)的设备的蓝牙连接。In some embodiments, the NFC control command is a custom NFC command for configuring the NFC settings of the Bluetooth printer. After the main control chip obtains the NFC control command, NFC configuration is performed according to the NFC control command. There is a supporting APP tool for the custom NFC command , the supporting APP tool is set on the Bluetooth device to be connected with the Bluetooth printer, and the supporting APP tool is used to analyze the NFC data sent by the Bluetooth printer through the built-in protocol parameters, so that the Bluetooth device can analyze the NFC data sent by the Bluetooth printer and obtain The MAC address information and name information of the Bluetooth module, and then efficiently establish the Bluetooth connection between the Bluetooth device and the Bluetooth printer. At the same time, because the external Bluetooth device needs to install a supporting APP tool to analyze the NFC data, it can further improve the fast connection method of the Bluetooth printer. Security, preventing Bluetooth connection of unauthorized devices (without installing the matching APP tools).
参考图5,图5为本申请另一实施例提出的蓝牙打印机的快速连接方法中,停止为NFC读卡器进行供电的流程图;NFC读卡器将MAC地址信息和名称信息至NFC标签之后,至少包括以下步骤:With reference to Fig. 5, Fig. 5 is in the quick connection method of bluetooth printer that another embodiment of the present application proposes, the flow chart of stopping to supply power for NFC card reader; NFC card reader sends MAC address information and name information to NFC tag after , including at least the following steps:
步骤S510,主控芯片停止为NFC读卡器进行供电。Step S510, the main control chip stops supplying power to the NFC card reader.
可以想到的是,在NFC读卡器将MAC地址信息和名称信息至NFC标签之后,NFC读卡器的作用以及实现,故此时通过主控芯片停止为NFC读卡器进行供电,防止NFC读卡器一直工作发热,影响蓝牙打印机正常运行。It is conceivable that after the NFC card reader sends the MAC address information and name information to the NFC tag, the function and realization of the NFC card reader, so at this time the main control chip stops supplying power to the NFC card reader to prevent NFC card reading The device has been working and heating, which affects the normal operation of the Bluetooth printer.
在一些实施例中,NFC读卡器将MAC地址信息和名称信息至NFC标签时,NFC读卡器和NFC标签的工作频率设置为13.56MHz,NFC标签设置在蓝牙打印机内侧,NFC标签与NFC读卡器之间的距离小于或者等于10厘米。In some embodiments, when the NFC card reader sends the MAC address information and name information to the NFC tag, the operating frequency of the NFC card reader and the NFC tag is set to 13.56MHz, the NFC tag is set inside the Bluetooth printer, and the NFC tag and NFC reader The distance between the card holders is less than or equal to 10 cm.
其中,NFC在13.56MHz的无线电频率上运行,这是NFC工作频率为13.56MHz,NFC标签与NFC读卡器之间的距离小于或者等于10厘米,以使NFC的工作范围在10厘米以内,以保证NFC信息传输的有效性。Among them, NFC operates on a radio frequency of 13.56MHz, which means that the working frequency of NFC is 13.56MHz, and the distance between the NFC tag and the NFC card reader is less than or equal to 10 centimeters, so that the working range of NFC is within 10 centimeters. Ensure the validity of NFC information transmission.
参考图6,图6为本申请另一实施例提出的蓝牙打印机的快速连接方法中,智能终端建立与蓝牙打印机中蓝牙模块的蓝牙连接的流程图;蓝牙设备包括智能终端,智能终端上设置有预设程序,NFC读卡器将MAC地址信息和名称信息至NFC标签之后,至少包括以下步骤:Referring to Fig. 6, Fig. 6 is a flow chart of a bluetooth connection between an intelligent terminal and a bluetooth module in a bluetooth printer in a quick connection method for a bluetooth printer proposed by another embodiment of the present application; the bluetooth device includes an intelligent terminal, and the intelligent terminal is provided with The preset program, after the NFC card reader sends the MAC address information and name information to the NFC tag, at least includes the following steps:
步骤S610,NFC标签根据MAC地址信息和名称信息生成NFC数据;Step S610, the NFC tag generates NFC data according to the MAC address information and the name information;
步骤S620,在智能终端触碰NFC标签时,NFC标签将NFC数据发送至智能终端;Step S620, when the smart terminal touches the NFC tag, the NFC tag sends NFC data to the smart terminal;
步骤S630,智能终端通过预设程序解析NFC数据,以获取MAC地址信息和名称信息,并建立与蓝牙打印机中蓝牙模块的蓝牙连接。In step S630, the smart terminal parses the NFC data through a preset program to obtain MAC address information and name information, and establishes a Bluetooth connection with the Bluetooth module in the Bluetooth printer.
在一些实施例中,智能终端上设置有预设程序,预设程序即为用户公司定制APP工具,因为NFC指令是用户公司自定义,所以需要下载专用的APP工具,保证智能终端APP能解析对应NFC数据,启动配对蓝牙。In some embodiments, a preset program is set on the smart terminal, and the preset program is an APP tool customized by the user company. Because the NFC command is customized by the user company, it is necessary to download a dedicated APP tool to ensure that the smart terminal APP can resolve the corresponding NFC data, start pairing Bluetooth.
具体的,在一些实施例中,蓝牙打印机集成了主控芯片STM32MP157DAA1和NFC读卡器芯片ST25r3911、蓝牙模块AW-CM358。在打印机出厂时候,生产人员发送操作NFC指令到打印机,打印机端首先开启NFC读卡器供电,同时主控芯片会读取当前蓝牙的MAC和蓝牙名称,通过SPI方式传输到NFC读卡器中,以使NFC读卡器将蓝牙MAC和蓝牙名称,通过NFC协议传输到NFC标签中,并在传输完成后,程序会关闭NFC读卡器供电,以防NFC读卡器一直工作发热。Specifically, in some embodiments, the Bluetooth printer integrates the main control chip STM32MP157DAA1, the NFC card reader chip ST25r3911, and the Bluetooth module AW-CM358. When the printer leaves the factory, the production staff sends the operation NFC command to the printer, and the printer first turns on the power supply of the NFC card reader. At the same time, the main control chip will read the current Bluetooth MAC and Bluetooth name, and transmit it to the NFC card reader through SPI. Make the NFC card reader transmit the Bluetooth MAC and Bluetooth name to the NFC tag through the NFC protocol, and after the transmission is completed, the program will turn off the power supply of the NFC card reader to prevent the NFC card reader from working and heating.
其中,STM32MP157DAA1是意法半导体推出的一款多用途和高集成度应用处理器,主频高达650MHz,并具有丰富的外围设备资源,能有效提高本申请中蓝牙打印机的控制信号处理速度;ST25R3911是一款专门用于NFC读卡应用的芯片,具有高度的集成度和灵活度的特点,能够实现多种操作模式;AW-CM358是一款低功耗、高度集成的蓝牙模块,具有与各种外围设备相连接的灵活性,适用于各种蓝牙应用场景,是本申请中的蓝牙打印机能快速有效的建立与蓝牙设备的蓝牙连接。Among them, STM32MP157DAA1 is a multi-purpose and highly integrated application processor launched by STMicroelectronics. A chip specially used for NFC card reading applications, with the characteristics of high integration and flexibility, can realize a variety of operation modes; AW-CM358 is a low-power, highly integrated Bluetooth module, with a variety of The flexibility of connecting peripheral devices is applicable to various bluetooth application scenarios, so that the bluetooth printer in this application can quickly and effectively establish a bluetooth connection with bluetooth devices.
其中,主控芯片、NFC读卡器芯片以及蓝牙模块,分别负责控制打印机的各种功能。其中,主控芯片打印机的主要控制单元,负责处理打印机的各种指令和信号,控制和协调其他芯片和外设的工作;NFC读卡器芯片是打印机的近场通信模块,可以通过NFC协议与其他NFC设备交换数据;在打印机出厂时,生产人员通常会向打印机发送操作NFC指令记录到NFC标签中,以方便用户通过NFC标签配置一些参数或者功能,而当用户通过外部设备靠近NFC标签时,打印机会监听到NFC信号,此时就会通过NFC读卡器捕获到此信号,并识别出此信号携带的指令,打印机会执行相应的操作,比如打印、设置网络参数、发送任务等等;蓝牙模块使打印机可以通过蓝牙连接到各种移动设备,以便用户可以无线传输打印任务给打印机,并且可以对打印机进行管理和控制。Among them, the main control chip, NFC card reader chip and Bluetooth module are respectively responsible for controlling various functions of the printer. Among them, the main control unit of the main control chip printer is responsible for processing various instructions and signals of the printer, controlling and coordinating the work of other chips and peripherals; the NFC card reader chip is the near field communication module of the printer, which can communicate with the printer through the NFC protocol. Other NFC devices exchange data; when the printer leaves the factory, the production personnel usually send the NFC command to the printer to record it in the NFC tag, so that the user can configure some parameters or functions through the NFC tag, and when the user approaches the NFC tag through an external device, The printer will listen to the NFC signal, and will capture the signal through the NFC card reader at this time, and recognize the instructions carried by the signal, and the printer will perform corresponding operations, such as printing, setting network parameters, sending tasks, etc.; Bluetooth The module enables the printer to connect to various mobile devices via Bluetooth, so that users can wirelessly transmit printing tasks to the printer, and manage and control the printer.
参考图7,图7是本申请实施例提供的控制器的结构示意图。Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a controller provided by an embodiment of the present application.
本申请的一些实施例提供了一种控制器,控制器包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述任意一项实施例的蓝牙打印机的快速连接方法,例如,执行以上描述的图1中的方法步骤S110至步骤S130、图2中的方法步骤S210、图3中的方法步骤S310、图4中的方法步骤S410、图5中的方法步骤S510、图6中的方法步骤S610至步骤S630。Some embodiments of the present application provide a controller. The controller includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, any one of the above-mentioned embodiments is realized. The quick connection method of the bluetooth printer, for example, execute the method step S110 to step S130 in Fig. 1 described above, the method step S210 in Fig. 2, the method step S310 in Fig. 3, the method step S410 in Fig. 4, Fig. 5 The method step S510 in FIG. 6 , and the method step S610 to step S630 in FIG. 6 .
本申请实施例的控制器700包括一个或多个处理器710和存储器720,图7中以一个处理器710及一个存储器720为例。The controller 700 in the embodiment of the present application includes one or more processors 710 and memory 720 , one processor 710 and one memory 720 are taken as an example in FIG. 7 .
处理器710和存储器720可以通过总线或者其他方式连接,图7中以通过总线连接为例。The processor 710 and the memory 720 may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 7 .
存储器720作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器720可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。As a non-transitory computer-readable storage medium, the memory 720 can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
在一些实施方式中,存储器720可选包括相对于处理器710远程设置的存储器720,这些远程存储器可以通过网络连接至控制器700,同时,上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。In some implementations, the memory 720 may optionally include a memory 720 remotely located relative to the processor 710, and these remote memories may be connected to the controller 700 through a network. Local area network, mobile communication network and their combination.
在一些实施例中,处理器执行计算机程序时按照预设间隔时间执行上述任意一项实施例的蓝牙打印机的快速连接方法。In some embodiments, when the processor executes the computer program, it executes the quick connection method for the Bluetooth printer in any one of the above embodiments at preset intervals.
本领域技术人员可以理解,图7中示出的系统结构并不构成对控制器700的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the system structure shown in FIG. 7 does not constitute a limitation to the controller 700, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
在图7所示的控制器700中,处理器710可以用于调用存储器720中储存的蓝牙打印机的快速连接方法,从而实现蓝牙打印机的快速连接方法。In the controller 700 shown in FIG. 7 , the processor 710 can be used to call the quick connection method of the Bluetooth printer stored in the memory 720 , so as to realize the quick connection method of the Bluetooth printer.
基于上述控制器700的硬件结构,提出本申请的蓝牙打印机系统的各个实施例,同时,实现上述实施例的蓝牙打印机的快速连接方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例的蓝牙打印机的快速连接方法。Based on the hardware structure of the above-mentioned controller 700, various embodiments of the Bluetooth printer system of the present application are proposed. At the same time, the non-transitory software programs and instructions required to realize the fast connection method of the Bluetooth printer in the above-mentioned embodiments are stored in the memory. When executed by the processor, the quick connection method for the Bluetooth printer in the above embodiment is executed.
此外,本申请实施例的还提供了一种蓝牙打印机系统,该蓝牙打印机系统包括由上述的控制器。In addition, an embodiment of the present application also provides a bluetooth printer system, which includes the above-mentioned controller.
在一些实施例中,由于本申请实施例的蓝牙打印机系统具有上述实施例的控制器,并且上述实施例的控制器能够执行上述实施例的蓝牙打印机的快速连接方法,因此,本申请实施例的蓝牙打印机系统的具体实施方式和技术效果,可以参照上述任一实施例的蓝牙打印机的快速连接方法的具体实施方式和技术效果。In some embodiments, since the bluetooth printer system of the embodiment of the present application has the controller of the above-mentioned embodiment, and the controller of the above-mentioned embodiment can execute the quick connection method of the bluetooth printer of the above-mentioned embodiment, therefore, the embodiment of the present application For the specific implementation and technical effects of the Bluetooth printer system, reference may be made to the specific implementation and technical effects of the quick connection method for a Bluetooth printer in any of the above-mentioned embodiments.
本申请实施例的还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于执行上述的蓝牙打印机的快速连接方法,例如,可使得上述一个或多个处理器执行上述方法实施例中的蓝牙打印机的快速连接方法,例如,执行以上描述的图1中的方法步骤S110至步骤S130、图2中的方法步骤S210、图3中的方法步骤S310、图4中的方法步骤S410、图5中的方法步骤S510、图6中的方法步骤S610至步骤S630。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned quick connection method for a Bluetooth printer, for example, the above-mentioned One or more processors execute the quick connection method of the Bluetooth printer in the above method embodiment, for example, execute the method steps S110 to S130 in FIG. 1 described above, the method step S210 in FIG. 2 , and the method in FIG. 3 Step S310 , method step S410 in FIG. 4 , method step S510 in FIG. 5 , method step S610 to step S630 in FIG. 6 .
综上,本申请中的蓝牙打印机的快速连接方法及蓝牙打印机至少具有以下有益效果:To sum up, the quick connection method of the Bluetooth printer and the Bluetooth printer in this application have at least the following beneficial effects:
1)有效提高连接速度和准确度:通过NFC技术,手机和打印机之间可以快速配对,无需一系列繁琐的步骤。这样可以提高连接速度和准确度,使得手机和打印机之间的通信更加顺畅。1) Effectively improve connection speed and accuracy: Through NFC technology, mobile phones and printers can be paired quickly without a series of tedious steps. This improves connection speed and accuracy, allowing for smoother communication between the phone and printer.
2)有效简化连接过程:这个技术方案简化了连接过程,减少了用户操作的复杂度。用户只需要打开NFC功能,并将手机碰触打印机上的NFC标签即可完成配对。这样可以提高用户体验,降低使用门槛。2) Effectively simplify the connection process: this technical solution simplifies the connection process and reduces the complexity of user operations. Users only need to turn on the NFC function and touch the mobile phone to the NFC tag on the printer to complete the pairing. This can improve user experience and lower barriers to use.
3)有效避免人为因素的错连:传统的蓝牙连接需要用户查找设备并确认连接,容易出现人为操作失误,导致连接失败或连接到错误的设备。而基于NFC快速配对的方式,避免了这个问题,能够实现自动化蓝牙连接,提高连接的准确性。3) Effectively avoid wrong connections due to human factors: Traditional Bluetooth connections require users to search for devices and confirm connections, which is prone to human error, resulting in connection failure or connection to the wrong device. The NFC-based fast pairing method avoids this problem, and can realize automatic Bluetooth connection and improve the accuracy of connection.
4)有效提高设备安全性:通过自定义NFC指令和配套的APP工具,可以提高设备的安全性,减少设备的被非法连接的风险。4) Effectively improve device security: By customizing NFC commands and supporting APP tools, the security of the device can be improved and the risk of illegal connection of the device can be reduced.
以上所描述的系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络节点上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network nodes. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机可读存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机可读存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储系统、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those skilled in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and an appropriate combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer readable storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer-readable storage medium includes both volatile and non-volatile media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, or other data. Volatile, removable and non-removable media. Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage systems, Or any other medium that can be used to store desired information and that can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation, and those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the present application. Any modification or substitution is included within the scope defined by the claims of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310605768.0A CN116708643A (en) | 2023-05-25 | 2023-05-25 | Quick connection method of Bluetooth printer and Bluetooth printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310605768.0A CN116708643A (en) | 2023-05-25 | 2023-05-25 | Quick connection method of Bluetooth printer and Bluetooth printer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116708643A true CN116708643A (en) | 2023-09-05 |
Family
ID=87830447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310605768.0A Pending CN116708643A (en) | 2023-05-25 | 2023-05-25 | Quick connection method of Bluetooth printer and Bluetooth printer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116708643A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105392114A (en) * | 2015-12-03 | 2016-03-09 | 北京握奇智能科技有限公司 | NFC based rapid Bluetooth connection system and method |
CN205986870U (en) * | 2016-04-28 | 2017-02-22 | 许建华 | Adopt NFC identity validation's wireless sound amplification system,sound reinforcing system of bluetooth |
CN112394890A (en) * | 2020-11-06 | 2021-02-23 | 厦门喵宝科技有限公司 | Printing method of intelligent terminal, label printing method and portable thermosensitive label printer |
CN114339698A (en) * | 2020-09-30 | 2022-04-12 | 华为技术有限公司 | Method for establishing wireless connection through equipment touch, electronic equipment and chip |
CN115988465A (en) * | 2022-12-05 | 2023-04-18 | 海信冰箱有限公司 | Intelligent household equipment and Bluetooth pairing method |
CN219028938U (en) * | 2023-01-07 | 2023-05-16 | 广东研科智能设备有限公司 | Miniature printer |
-
2023
- 2023-05-25 CN CN202310605768.0A patent/CN116708643A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105392114A (en) * | 2015-12-03 | 2016-03-09 | 北京握奇智能科技有限公司 | NFC based rapid Bluetooth connection system and method |
CN205986870U (en) * | 2016-04-28 | 2017-02-22 | 许建华 | Adopt NFC identity validation's wireless sound amplification system,sound reinforcing system of bluetooth |
CN114339698A (en) * | 2020-09-30 | 2022-04-12 | 华为技术有限公司 | Method for establishing wireless connection through equipment touch, electronic equipment and chip |
CN112394890A (en) * | 2020-11-06 | 2021-02-23 | 厦门喵宝科技有限公司 | Printing method of intelligent terminal, label printing method and portable thermosensitive label printer |
CN115988465A (en) * | 2022-12-05 | 2023-04-18 | 海信冰箱有限公司 | Intelligent household equipment and Bluetooth pairing method |
CN219028938U (en) * | 2023-01-07 | 2023-05-16 | 广东研科智能设备有限公司 | Miniature printer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6080548B2 (en) | COMMUNICATION DEVICE, INFORMATION TERMINAL, ITS CONTROL METHOD, PROGRAM | |
JP6138184B2 (en) | Multiple application management method and system in near field communication | |
US9806768B2 (en) | Methods and device for controlling power transmission using NFC | |
KR101442618B1 (en) | Method and apparatus for activating device | |
CN103503323B (en) | Radio frequency communication method, device, and terminal equipment for near field communication | |
EP2858259B1 (en) | NFC tag, communication method and system | |
JP6140357B2 (en) | Connection handover method and corresponding apparatus based on short-range wireless communication | |
KR20150014317A (en) | Image forming apparatus and mobile device for performing wireless configuration using near field communication | |
CN103973340B (en) | Near field communication method and near-field communication equipment | |
CN108199931A (en) | A kind of household electric appliance control method and system | |
US20110111698A1 (en) | Electronic apparatus and access control method | |
JP6730135B2 (en) | Power transmission device, power reception device, power supply system, and power transmission method | |
US8300565B2 (en) | Multi mode host interface for and remote register and memory access of a wireless communication module | |
WO2019179093A1 (en) | Method for obtaining device identifier in nb-iot, and device | |
CN108012305A (en) | Smart machine matches somebody with somebody network method, system and smart machine | |
CN107636982B (en) | Data frame routing processing method, near field communication controller and terminal | |
CN101305585A (en) | Near field communication host controller interface | |
JP5527022B2 (en) | COMMUNICATION DEVICE, READER DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMMUNICATION DEVICE | |
CN104081679B (en) | Near field communication method and near-field communication equipment | |
CN116708643A (en) | Quick connection method of Bluetooth printer and Bluetooth printer | |
CN207664994U (en) | A kind of appliance control system | |
US12216952B2 (en) | Method for printing a Zigbee install code and corresponding systems and devices | |
JP6381695B2 (en) | COMMUNICATION DEVICE, INFORMATION TERMINAL, ITS CONTROL METHOD, PROGRAM | |
WO2015180112A1 (en) | Mobile radio frequency card and method for controlling data thereof | |
CN119996198A (en) | Air interface number writing device, method and equipment for narrowband Internet of Things equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |