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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap