Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for supporting mobile equipment to perform Bluetooth printing on html page

A technology of mobile devices and bluetooth printers, applied in the direction of digital output to printing unit, input/output process of data processing, instruments, etc., can solve the problem of not being able to support bluetooth to print html pages, and achieve the effect of reducing costs

Inactive Publication Date: 2017-05-31
BEIJING SEEYON INTERNET SOFTWARE CORP
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Based on this, the object of the present invention is to provide a method and device for supporting mobile devices to print html pages via bluetooth, aiming to solve the problem that traditional printing equipment cannot support bluetooth to print html pages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for supporting mobile equipment to perform Bluetooth printing on html page
  • Method and device for supporting mobile equipment to perform Bluetooth printing on html page

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0039] Such as figure 1 As shown, the embodiment of the present invention provides a method for supporting mobile devices to print html pages via bluetooth, including the following steps, which will be described in sequence.

[0040] Step S101, turn on the bluetooth function of the mobile device, scan the bluetooth device, and obtain the scanning result.

[0041] Step S102, when the scanning result includes a bluetooth printer, establish a printing connection between the mobile device and the bluetooth printer through the js interface.

[0042] Step S103, judge whether the print connection is available, and obtain a judgment result; the judgment result includes available and unavailable.

[0043] Step S104, when the judgment result is available, generate a reset instruction; the reset instruction is used to reset the bluetooth printer. The reset instruction may be: varclearFormat=[0x1b, 0x40].

[0044] Step S105, splicing the strings to be printed on the html page, and obta...

specific Embodiment 2

[0051] Such as figure 2 As shown, the embodiment of the present invention provides an apparatus for supporting mobile devices to print html pages via bluetooth, including the following modules, which will be described in sequence.

[0052] The scanning module 201 is configured to enable the Bluetooth function of the mobile device, scan the Bluetooth device, and obtain the scanning result.

[0053] The connection module 202 is configured to establish a printing connection between the mobile device and the Bluetooth printer through the js interface when the scan result includes the Bluetooth printer.

[0054] The judging module 203 is configured to judge whether the printing connection is available, and obtain a judgment result; the judgment result includes available and unavailable.

[0055] The reset instruction generating module 204 is configured to generate a reset instruction when the judgment result is available; the reset instruction is used to reset the Bluetooth printer...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for supporting mobile equipment to perform Bluetooth printing on an html page. A js cannot directly call a Bluetooth function of the mobile equipment, so a raw code is packaged into a language which can be directly identified by the js, the Bluetooth function of the mobile equipment is called and connected to a Bluetooth printer in a pairing manner, printing data on the html page is acquired and transmitted to the Bluetooth printer, printing is performed on the Bluetooth printer, and a Bluetooth printing function of the mobile equipment on the html page is realized. According to the invention, the Bluetooth function of the mobile equipment, a printing function of the Bluetooth printer, a data transmission technology and an h5 connecting Bluetooth technology are combined, so the html page and Bluetooth printing are seamlessly connected, cross-platform Bluetooth printing is realized, and the development cost of a Bluetooth printing technology is reduced. Further, in the invention, an mui frame can be applied to call the Bluetooth function and provide a js interface.

Description

technical field [0001] The invention relates to the technical field of mobile equipment printing, in particular to a method and device for supporting mobile equipment to print HTML pages via bluetooth. Background technique [0002] Traditional printing devices either do not support Bluetooth, or only support Bluetooth printing of native pages, and cannot print the html pages in WeChat development through Bluetooth. Native interaction is not easy to maintain and upgrade. For example, the android platform and the ios platform must carry out their own development to realize Bluetooth printing. On the other hand, native apps are more technically difficult to realize Bluetooth printing. The above-mentioned problems that occur on traditional printing devices have attracted people's attention and attention, and people need printing devices that support Bluetooth printing of html pages. Contents of the invention [0003] Based on this, the object of the present invention is to pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/12
CPCG06F3/1205G06F3/1246G06F3/1292
Inventor 何荣云
Owner BEIJING SEEYON INTERNET SOFTWARE CORP