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, scanne

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

Example Embodiment

[0047] Example one

[0048] Such as figure 1 As shown, a cross-browser peripheral call method includes the steps:

[0049] S1: Receive peripheral operation requests sent by the B / S system website via HTTP protocol;

[0050] S2: Parse the peripheral 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] Since the present invention converts all requests to peripherals through browser plug-ins to data requests based on HTTP protocol, with the aid of the browser's good support for HTTP protocol, the friendly access of B / S system to peripherals is completed. The B / S system's access to peripherals is like calling resources under another URL domain name. No browser is required to install any plug-ins. The browser's native JavaScript programming language can complete the interaction between the B / S ...

Example Embodiment

[0061] Example two

[0062] Such as image 3 As shown, a cross-browser peripheral invocation device using the method of the first embodiment includes:

[0063] Receiving module: receiving peripheral operation requests sent by B / S system website via HTTP protocol;

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

[0065] Operation module: Operate peripheral hardware devices and receive the operation results of peripheral hardware devices;

[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 that are called across browser peripherals are started at the same time.

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

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

[0070] Judging unit: Judging the safety of the source;

[0071] Pr...

Example Embodiment

[0074] Example three

[0075] Such as Image 6 As shown, using the cross-browser peripheral invoking method of the first embodiment and / or the cross-browser peripheral invoking device application of the second embodiment, the installation program is run, and the peripheral device and the Web communication solution are installed. Set the communication port and set those website domain names to access peripherals. When the program is installed, a web service will be started on the machine. This web service will be started at the same time as the operating system. The web service will run on the port set by the user and receive peripheral operation requests from the B / S system. Convert HTTP protocol requests into hardware operation requests that can be recognized by hardware peripherals. When the hardware operation processing is completed, the hardware operation result is converted into HTTP protocol and returned to the B / S program.

[0076] Browser: A browser is a software that ca...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products