Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for calling peripheral in cross-browser mode

A cross-browser and hardware device technology, applied in the field of cross-browser invoking peripherals, to improve security, save workflow, and save costs

Inactive Publication Date: 2015-11-25
刘毅
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the first problem encountered is how to link the original barcode printers, scanners, barcode scanners and other professional external equipment to the B / S architecture

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 calling peripheral in cross-browser mode
  • Method and device for calling peripheral in cross-browser mode
  • Method and device for calling peripheral in cross-browser mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] Such as figure 1 As shown, a method for cross-browser peripheral calling, including steps:

[0049] S1: Receive the peripheral device operation request sent by the B / S system website through the HTTP protocol;

[0050] S2: Analyzing the peripheral device operation request;

[0051] S3: Operate the peripheral hardware device, and receive the operation result of the peripheral hardware device;

[0052] S4: The operation result is converted into HTTP protocol and returned to the B / S system website.

[0053] Because the present invention converts all requests to the peripherals through the browser plug-in into data requests based on the HTTP protocol, with the help of the good support of the browser to the HTTP protocol, the friendly access of the B / S system to the peripherals is completed. The B / S system's access to the peripherals is like calling resources under another website domain name. It does not require any plug-ins to be installed in the browser. The interactio...

Embodiment 2

[0062] Such as image 3 As shown, a cross-browser peripheral calling device using the method of Embodiment 1 includes:

[0063] Receiving module: receiving the peripheral operation request sent by the B / S system website through the HTTP protocol;

[0064] Parsing module: parsing the peripheral device operation request;

[0065] Operation module: operate the peripheral hardware device, and receive the operation result of the peripheral hardware device;

[0066] Return module: the operation result is converted into HTTP protocol and returned to the B / S system website.

[0067] The operation module calls the peripheral hardware device SDK to receive the operation result. The device and operating system for cross-browser peripheral calls are started at the same time.

[0068] Such as Figure 4 As shown, the parsing module includes:

[0069] Decomposition unit: decompose the source of peripheral operation requests;

[0070] Judgment unit: judge the security of the source;

...

Embodiment 3

[0075] Such as Figure 6 As shown, using the method for invoking cross-browser peripherals in Embodiment 1 and / or the application of the device for invoking cross-browser peripherals in Embodiment 2, run the installation program, and install the peripheral device and Web communication solution. Set the communication port and set those website domain names to access the peripherals. After the program is installed, a web service will be started on the machine. This web service will be started simultaneously with the operating system. This web service will run on the port set by the user to receive peripheral operation requests from the B / S system. Convert HTTP protocol requests into hardware operation requests that hardware peripherals can recognize. After the hardware operation processing is completed, the hardware operation result is converted into the HTTP protocol and returned to the B / S program.

[0076] Browser: A browser refers to a software that can display the content...

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 discloses a method for calling a peripheral in a cross-browser mode. The method comprises the steps that 1, a peripheral operation request sent by a B / S system website through an HTTP protocol is received; 2, the peripheral operation request is analyzed; 3, peripheral hardware equipment is operated, and an operation result of the peripheral hardware equipment is received; 4, the operation result is converted into the HTTP protocol to be returned to the B / S system website. According to the method, all the requests for the peripheral through browser plug-ins are converted into data requests based on the HTTP protocol, the friendly access of a B / S system to the peripheral is achieved in virtue of the good support of a browser for the HTTP protocol, therefore, the browser does not need to install any plug-ins when the B / S system has access to the peripheral, all the browsers can be supported as long as a peripheral development manufacturer develops a set of programs, a B / S program developer calls the peripheral only for a set of program interfaces, and differences of the browsers do not need to be taken into account.

Description

technical field [0001] The present invention relates to the field of computer software, more specifically, to a method and device for calling peripherals across browsers. Background technique [0002] At present, more and more systems adopt the B / S (Browser / Server) system architecture. The B / S system has many advantages and has gradually become the mainstream architecture of the business system. Many existing old systems have also begun to consider migrating from the original C / S to the B / S architecture. But the first problem encountered is how to link the original barcode printers, scanners, barcode scanners and other professional external equipment to the B / S architecture. [0003] The general method is to use a browser plug-in to realize the function of communication between the browser and the peripheral device, such as the ActiveX plug-in of the IE browser, which can complete this function. However, there are many browsers on the market. If peripheral manufacturers ne...

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
IPC IPC(8): G06F9/445G06F21/57
Inventor 张思楚郭玮
Owner 刘毅
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products