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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

