CN113158166B - Peripheral calling method, system, electronic equipment and medium - Google Patents

Peripheral calling method, system, electronic equipment and medium Download PDF

Info

Publication number
CN113158166B
CN113158166B CN202110554719.XA CN202110554719A CN113158166B CN 113158166 B CN113158166 B CN 113158166B CN 202110554719 A CN202110554719 A CN 202110554719A CN 113158166 B CN113158166 B CN 113158166B
Authority
CN
China
Prior art keywords
peripheral
driver
result
call
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110554719.XA
Other languages
Chinese (zh)
Other versions
CN113158166A (en
Inventor
华润楠
王义锦
王春锋
王晨光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110554719.XA priority Critical patent/CN113158166B/en
Publication of CN113158166A publication Critical patent/CN113158166A/en
Application granted granted Critical
Publication of CN113158166B publication Critical patent/CN113158166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Computer Hardware Design (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a peripheral calling method, which may be used in the financial field or other fields, including: acquiring a peripheral calling request; forwarding a peripheral call request to a driver on a client so that the driver returns a corresponding peripheral call result based on the peripheral call request, wherein the driver is a program for driving peripheral operation; after the driver returns the corresponding peripheral calling result, the corresponding peripheral calling result is output to the server, and the client is in communication connection with the server. The disclosure also provides a peripheral calling system, an electronic device and a computer readable storage medium.

Description

Peripheral calling method, system, electronic equipment and medium
Technical Field
The disclosure relates to the technical field of calling between hardware devices, and in particular relates to a peripheral calling method, a peripheral calling system, electronic equipment and a medium.
Background
In client/server (C/S system), the server typically employs a high-performance PC, workstation or mini-computer, and employs a large database system, such as Oracle, sybase, informix or SQLServer, and the client needs to install dedicated client software. A browser, such as Internet Explorer, is installed on the client, and a database such as Mysql is installed on the server.
With the development of internet technology, drawbacks of the C/S system are more and more obvious, such as need of updating and upgrading, high cost of installing software, and great difficulty of development. Meanwhile, the B/S system is becoming popular. The current B/S system has the characteristics of no need of downloading and installation, real-time updating, simple and convenient development, convenient use and the like. However, most counter applications in a row still use a C/S system due to early development time, requiring the installation of bulky dedicated client software.
Disclosure of Invention
In order to solve the problems in the prior art, the peripheral calling method, the system, the electronic device and the storage medium provided by the embodiment of the disclosure aim to simplify the peripheral calling process and save the cost of software development.
A first aspect of the present disclosure provides a peripheral call method, including: acquiring a peripheral calling request; forwarding the peripheral call request to a driver on the client so that the driver returns a corresponding peripheral call result based on the peripheral call request, wherein the driver is a program for driving peripheral operation; and after the driver returns the corresponding peripheral calling result, outputting the corresponding peripheral calling result to the server.
Further, after the driver returns the corresponding peripheral calling result, outputting the corresponding peripheral calling result to the server, including: after the driver returns the corresponding peripheral calling result, the browser of the client displays the peripheral calling result and sends the peripheral calling result to the server through the browser.
Further, after the driver returns the corresponding peripheral calling result, outputting the corresponding peripheral calling result to the server, including: after the driver program successfully drives the peripheral, the user performs corresponding operation on the peripheral; the driver program sends the peripheral calling result to a browser on the client; the browser displays the peripheral calling result and sends the result to the server; the peripheral calling result comprises: and (5) a result of whether the peripheral call is successful or not and corresponding operation information is carried out on the peripheral by the user.
Further, after the driver returns the corresponding peripheral calling result, the corresponding peripheral calling result is output to the server, and the method further comprises: and the server verifies the effectiveness of the corresponding operation information of the user on the peripheral according to the corresponding operation information of the user on the peripheral.
Further, forwarding the peripheral call request to the driver on the client so that the driver returns a corresponding call result based on the peripheral call request, including: the driver drives the corresponding peripheral according to the peripheral calling request; if the peripheral is driven successfully, the peripheral feeds back the peripheral calling result to the driving program.
Further, before obtaining the peripheral call request, the method includes: accessing and loading a user page; the user page initiates a request for running a peripheral calling program to the server; responding to the request for running the peripheral calling program so as to enable a user to initiate a peripheral calling request.
Further, before accessing and loading the user page, the method further comprises: and adding the user page into a trusted site of the browser so that the user can access the user page through the browser.
Further, the peripheral is a cipher keyboard or a card reader.
Further, the card reader is an identity card reader or a bank card reader.
A second aspect of the present disclosure provides a peripheral call system, including: the acquisition module is used for acquiring a peripheral call request; the first processing module is used for forwarding the peripheral calling request to a driver on the client so that the driver returns a corresponding peripheral calling result based on the peripheral calling request, and the driver is a program for driving the peripheral to operate; and the output module is used for outputting the corresponding peripheral calling result to the server after the driver returns the corresponding peripheral calling result.
Further, the system further comprises: and the second processing module is used for verifying the validity of the corresponding operation information of the user on the peripheral according to the corresponding operation information of the user on the peripheral by the server.
Further, the first processing module is configured to forward the peripheral call request to a driver on the client, so that the driver returns a corresponding peripheral call result based on the peripheral call request, and includes: after the driver returns the corresponding peripheral calling result, the browser of the client displays the peripheral calling result and sends the peripheral calling result to the server through the browser.
Further, the first processing module is configured to forward the peripheral call request to a driver on the client, so that the driver returns a corresponding peripheral call result based on the peripheral call request, and includes: after the driver program successfully drives the peripheral, the user performs corresponding operation on the peripheral; the driver program sends the peripheral calling result to a browser on a client; the browser displays the peripheral calling result and sends the result to the server; the peripheral calling result comprises: and (5) a result of whether the peripheral call is successful or not and corresponding operation information is carried out on the peripheral by the user.
A third aspect of the present disclosure provides an electronic device, comprising: the peripheral call method provided in the first aspect of the present disclosure is implemented by a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program.
A fourth aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the peripheral call method provided by the first aspect of the present disclosure.
Compared with the peripheral calling technology of the C-S client, the peripheral calling method, the system, the electronic equipment and the storage medium provided by the disclosure have the advantages that various special client software is not required to be installed on the client, maintenance is not required to be carried out on the client, complicated updating synchronous operation is not required, and peripheral calling is directly carried out on the basis of a browser. Because various special client software is not involved, the method is convenient to upgrade and update, and the software development cost is saved. Meanwhile, the method and the device have the advantages that the special client software is not required to be downloaded, so that large-scale popularization and deployment can be performed only by possessing an operating environment, version management is not required, upgrading is performed one by one, and the working efficiency of each link in the research and development process is greatly improved.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a peripheral invocation method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a peripheral call method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method of initiating a peripheral call request in accordance with an embodiment of the present disclosure;
FIG. 4 schematically illustrates a method flow diagram of returning a corresponding call result, according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a flow chart of a method of outputting a peripheral call result to a server according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a flow chart of a method of outputting a peripheral call result to a server according to another embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow chart of a peripheral invocation method according to another embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a peripheral call method system according to an embodiment of the present disclosure;
FIG. 9 schematically illustrates a block diagram of a peripheral call method system according to another embodiment of the present disclosure;
Fig. 10 schematically shows a block diagram of an electronic device adapted to implement the method described above according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some of the block diagrams and/or flowchart illustrations are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, when executed by the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon, the computer program product being for use by or in connection with an instruction execution system.
The embodiment of the disclosure provides a peripheral calling method and a peripheral calling system. The peripheral calling method comprises the following steps: acquiring a peripheral calling request; forwarding the peripheral call request to a driver on the client so that the driver returns a corresponding peripheral call result based on the peripheral call request, wherein the driver is a program for driving peripheral operation; after the driver returns the corresponding peripheral calling result, the corresponding peripheral calling result is output to the server, and the client is in communication connection with the server.
According to the embodiment of the disclosure, after the driver returns the corresponding peripheral calling result, the browser of the client displays the peripheral calling result, and sends the peripheral calling result to the server through the browser, the peripheral calling is directly carried out based on the browser, the calling result is displayed through the browser, special client software is not required to be downloaded, the efficient calling of the peripheral can be completed as long as the running environment is possessed, the software development cost is effectively saved, and the working efficiency of each link in the research and development process is greatly improved.
Fig. 1 schematically illustrates an exemplary system architecture 100 that may be applied to a peripheral call method in accordance with an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include a client 10, a network 20, a server 30, and a peripheral 40. The network 20 is a medium used to provide a communication link between the client 10 and the server 30, and the client 10 may be connected to the peripheral device 40 through a usb or serial port. The network 20 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user (e.g., a developer) may interact with the server 30 via the network 20 using the client 10 to receive or send messages, etc. The client 10 may have installed thereon various communication client applications such as various language software programming systems, testing systems, web browser applications, instant messaging tools, mailbox clients, social platform software, and the like (by way of example only).
The client 10 may be a client, a user terminal device, and in particular may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smart communication devices, tablet computers, laptop and desktop computers, and the like. In the embodiment of the disclosure, at least a browser 110 and a plurality of drivers 120 for driving peripheral devices are installed on the client 10, where the browser 110 may be Internet Explorer, *** browser, QQ browser, etc., and the plurality of drivers 120 for driving peripheral devices include, but are not limited to, driving a password keyboard peripheral device, a card reader peripheral device, etc., and a developer can load each driver 120 through the browser when performing corresponding operations on the browser.
The server 30 may be a server providing various services, such as a background management server (by way of example only) that provides support for users using applications in which the client 10 is deployed. The background management server may analyze and process the received user request and the like, and may feed back the processing result (e.g., information or data and the like) to the client 10.
The peripheral 40 may be a hardware device such as a keypad or a card reader, which may be an identification card reader or a bank card reader, etc. (as examples only). The user may initiate a peripheral call request at a browser on the client, so that the driver 120 drives the peripheral 40 corresponding to the request, and then feeds back the call result to the client 10.
It should be noted that, the peripheral call method provided in the embodiments of the present disclosure may be generally executed by the server 30. Accordingly, the peripheral call system provided in embodiments of the present disclosure may be generally deployed in the server 30. The peripheral call method provided in the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 30 and is capable of communicating with the client 10 and/or the server 30. Accordingly, the peripheral call system provided in the embodiments of the present disclosure may also be provided in a server or server cluster different from the server 30 and capable of communicating with the client 10 and/or the server 30.
It should be understood that the number of clients, networks, and servers in fig. 1 is merely illustrative. There may be any number of clients, networks, and servers, as desired for implementation.
Fig. 2 schematically illustrates a flowchart of a peripheral call method according to an embodiment of the present disclosure. As shown in fig. 2, the method includes: steps S201 to S203.
In operation S201, a peripheral call request is acquired.
In embodiments of the present disclosure, the peripheral invocation method may be applied to an electronic device, which may include, but is not limited to, a server cluster, and the like. The peripheral call request may be a peripheral call request initiated by a user (e.g., a development engineer) based on a client browser requesting a server to load a resource file of a driver remotely.
Specifically, as shown in fig. 3, before the step of operation S201, the method further includes:
In operation S301, a user page is accessed and loaded.
In embodiments of the present disclosure, a development engineer opens a browser on a client in which to access and load a user page, which may be a page for accessing an application deployed on a server, or the like.
In operation S302, the user page initiates a request for running a peripheral call program to the server side.
Specifically, the user page remotely requests the resource file to the server side and loads the resource file, and the language code blocks called by the equipment in the resource file can run in the user page.
In operation S303, in response to the request to run the peripheral call program, the user is caused to initiate a peripheral call request.
According to an embodiment of the present disclosure, before accessing and loading the user page, the method further comprises: the user page is added to a trusted site of the browser so that the user can access the user page through the browser. The trusted site configuration can be performed after the Java TM platform standard version development suite is installed on the client, or can be realized in other manners, which is not limited by the embodiment of the present disclosure.
In the embodiment of the present disclosure, the development engineer may initiate the peripheral call request based on performing the operation of initiating the peripheral call request in the browser, and the manner of initiating the request may be initiated by the development engineer clicking a control on the browser, which is not limited by the embodiment of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, the language code blocks called by the device may be java language code blocks, or may be code blocks of other programming languages, for example: c++ language code blocks, android language code blocks and the like, and the programming language of the language code blocks called by the device is not limited by the present disclosure.
In operation S202, the peripheral call request is forwarded to the driver on the client, so that the driver returns a corresponding peripheral call result based on the peripheral call request, and the driver is a program for driving the peripheral to run.
In the embodiment of the present disclosure, the driver 120 is deployed on the client 10, which needs to be disposed in advance, and the driver 120 is generally provided by a hardware device provider and is used to drive a peripheral (i.e., a hardware device). The peripheral includes, but is not limited to, a keypad or a card reader, which may be an identification card reader or a bank card reader, etc.
According to an embodiment of the present disclosure, as shown in fig. 4, in operation S202, specifically includes:
In operation S401, the driver drives the peripheral according to the peripheral call request.
In operation S402, if the peripheral is driven successfully, the peripheral feeds back the peripheral call result to the driver.
The peripheral call request is forwarded to a driver on the client through a user page in the browser so as to load the driver, wherein the mode of loading the driver can be based on the mode that the user page uses an open source Java framework (such as JNA) to load the driver and the like. If a plurality of driving programs need to be loaded in one request, the corresponding driving programs are sequentially driven based on the peripheral calling request, so that the driving programs drive the corresponding peripheral, and driving results are fed back to the browser on the client.
In the embodiment of the disclosure, for example, the peripheral call request includes a call request of the password keyboard and the reader, and the driver corresponding to the password keyboard is driven by the driver corresponding to the password keyboard according to the actual application requirement, or otherwise, the driver corresponding to the password keyboard is driven by the driver corresponding to the reader, and the call sequence is determined according to the implementation requirement in the actual application, which is not limited in the embodiment of the disclosure.
In operation S203, after the driver returns the corresponding peripheral call result, the corresponding peripheral call result is output to the server, and the client is in communication connection with the server.
In the specific implementation process, the specific implementation manner of step S203 is various, and in the embodiment of the present disclosure, the following two implementation manners are mainly described.
As shown in fig. 5, the specific implementation manner of step S203 includes:
In operation S501, after the driver returns the corresponding peripheral call result, the browser of the client displays the peripheral call result.
In operation S502, the browser sends the peripheral call result to the server.
In the embodiment of the disclosure, based on a peripheral call request initiated by a browser, after a peripheral is driven by a driver, the peripheral feeds back a call result to the driver, and then the driver sends the call result to the browser, and the peripheral call result is displayed on a user page of the browser and sent to the server for subsequent operation. Wherein, according to the peripheral call result, the result of whether the peripheral call is successful can be obtained, and the subsequent operation steps can be responded based on the result.
As shown in fig. 6, another specific implementation manner of step S203 includes:
in operation S601, after the driver successfully drives the peripheral, the user performs a corresponding operation on the peripheral.
In operation S602, the driver transmits the peripheral call result to the browser on the client.
In operation S603, the browser displays the peripheral call result and transmits the result to the server. The peripheral calling result comprises: and (5) a result of whether the peripheral call is successful or not and corresponding operation information is carried out on the peripheral by the user.
In the embodiment of the disclosure, after the driver successfully drives the peripheral, a developer may perform corresponding operations on the peripheral based on a user page on the browser, for example, when verifying user login identity information, the corresponding operations may include operations of inputting a user name, user identity card information, a user bank card number, and the like. After corresponding operation input is carried out, the peripheral calling result output according to the input information at least comprises a result of whether the peripheral calling is successful or not and corresponding operation information of the peripheral by a user.
According to an embodiment of the present disclosure, as shown in fig. 7, after the step of operation S203, the method further includes:
In operation S204, the server verifies the validity of the corresponding operation information of the user on the peripheral according to the corresponding operation information of the user on the peripheral.
In the embodiment of the disclosure, if the operation information input by the developer includes the user name, the user identification card information and the user bank card number, the server verifies whether the user identification information is matched with the user identification card information and the user bank card number according to the call result fed back by the peripheral, if so, the application page jumps to the next page, if so, the matching failure is prompted, and the verification result output in the step can be output to the browser of the client through the server and displayed.
It should be noted that, in the above embodiments, the operation information of the developer is only exemplary, and it does not constitute limitation of the operation information in the embodiments of the disclosure, which is not limited by the disclosure.
Compared with the peripheral calling technology of the C-S client, the peripheral calling method provided by the disclosure does not need to install various special client software on the client, does not need to maintain the client, does not need to carry out complicated updating synchronous operation, and directly carries out peripheral calling based on a browser. Because various special client software is not involved, the driver or the peripheral is updated more conveniently, and the software development cost is saved. Meanwhile, the method and the device can be widely popularized and deployed in a large scale as long as the method and the device have an operating environment because special client software is not required to be downloaded, version management and one-by-one installation and upgrading are not required, and the working efficiency of each link in the research and development process is greatly improved.
Fig. 8 schematically illustrates a block diagram of a peripheral call system according to an embodiment of the present disclosure.
As shown in fig. 8, the peripheral call system 800 includes: an acquisition module 810, a first processing module 820, and an output module 830. The peripheral call system 800 may be used to implement the peripheral call method described with reference to fig. 2.
The obtaining module 810 is configured to obtain a peripheral call request. The obtaining module 810 may be used, for example, to perform the step S201 described above with reference to fig. 2 according to an embodiment of the present disclosure, which is not described herein.
The first processing module 820 is configured to forward the peripheral call request to a driver on the client, so that the driver returns a corresponding peripheral call result based on the peripheral call request, where the driver is a program that drives the peripheral to run. The first processing module 820 may be used, for example, to perform the step S202 described above with reference to fig. 2 according to an embodiment of the present disclosure, which is not described herein.
Specifically, the first processing module 820 specifically includes: and the driver drives the peripheral according to the peripheral calling request. And if the peripheral is driven successfully, the peripheral feeds back the peripheral calling result to the driving program.
And the output module 830 is configured to output the corresponding peripheral call result to a server after the driver returns the corresponding peripheral call result, where the client is connected to the server in a communication manner. The output module 830 may be used, for example, to perform the step S203 described above with reference to fig. 2 according to an embodiment of the present disclosure, which is not described herein.
Specifically, the output module 830 includes: after the driver returns the corresponding peripheral calling result, the browser of the client displays the peripheral calling result and sends the peripheral calling result to the server through the browser. Or after the driver program successfully drives the peripheral equipment, the user performs corresponding operation on the peripheral equipment; the driver program sends the peripheral calling result to a browser on the client; the browser displays the peripheral calling result and sends the result to the server; the peripheral calling result comprises: and (5) a result of whether the peripheral call is successful or not and corresponding operation information is carried out on the peripheral by the user.
Before the obtaining module 810 obtains the peripheral call request, the system 800 further includes: accessing and loading a user page; the user page initiates a request for running a peripheral calling program to the server; responding to the request for running the peripheral calling program so as to enable a user to initiate a peripheral calling request.
As shown in fig. 9, the system 800 further includes: and the second processing module 840 is configured to verify, according to the corresponding operation information of the user on the peripheral, the validity of the corresponding operation information of the user on the peripheral by using the server. The second processing module 840 may be used, for example, to perform the step S204 described above with reference to fig. 7, and will not be described herein.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Or one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which, when executed, may perform the corresponding functions.
For example, any of the acquisition module 810, the first processing module 820, the output module 830, and the second processing module 840 may be combined in one module to be implemented, or any one of the modules may be split into a plurality of modules. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the acquisition module 810, the first processing module 820, the output module 830, and the second processing module 840 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Or at least one of the acquisition module 810, the first processing module 820, the output module 830 and the second processing module 840 may be at least partially implemented as computer program modules which, when executed, perform the respective functions.
The peripheral calling method and the peripheral calling system provided by the disclosure can be used in the financial field or other fields, and it is to be noted that the peripheral calling method and the peripheral calling system provided by the disclosure can be used in the financial field, for example, peripheral calling of various business systems in the financial field, and also can be used in other fields except the financial field, and the application field of the peripheral calling method and the peripheral calling system provided by the disclosure is not limited.
Fig. 10 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure. The electronic device shown in fig. 10 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 10, the electronic apparatus 1000 described in the present embodiment includes: a processor 1001 which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. The processor 1001 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 1001 may also include on-board memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. The processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing programs in the ROM 1002 and/or the RAM 1003. Note that the program may be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 1000 may also include an input/output (I/O) interface 1005, the input/output (I/O) interface 1005 also being connected to the bus 1004. The electronic device 1000 may also include one or more of the following components connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1001. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
Embodiments of the present invention also provide a computer-readable storage medium that may be included in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium described above carries one or more programs that, when executed, implement the peripheral call method according to the embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In an embodiment of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 1002 and/or RAM 1003 and/or one or more memories other than ROM 1002 and RAM 1003 described above.
It should be noted that, in each embodiment of the present invention, each functional module may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such an understanding, the technical solution of the invention may be embodied essentially or partly in the form of a software product or in part in addition to the prior art.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
While the present disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. The scope of the disclosure should, therefore, not be limited to the above-described embodiments, but should be determined not only by the following claims, but also by the equivalents of the following claims.

Claims (11)

1. A peripheral call method, applied to a browser in a client, comprising:
Acquiring a peripheral calling request;
Forwarding the peripheral call request to a driver on a client so that the driver returns a corresponding peripheral call result based on the peripheral call request, wherein the driver is a program for driving the peripheral to run;
After the driver returns the corresponding peripheral calling result, outputting the corresponding peripheral calling result to a server; after the driver returns the corresponding peripheral calling result, the corresponding peripheral calling result is output to a server, including: after the driver program successfully drives the peripheral, the user performs corresponding operation on the peripheral; the driver program sends the peripheral calling result to a browser on the client; the browser displays the peripheral calling result and sends the result to the server; the peripheral calling result comprises: the result of whether the peripheral call is successful or not and the user carries out corresponding operation information on the peripheral;
After the driver returns the corresponding peripheral calling result, the corresponding peripheral calling result is output to the server, and the server verifies the validity of the corresponding operation information of the user on the peripheral according to the corresponding operation information of the user on the peripheral.
2. The peripheral call method according to claim 1, wherein after the driver returns the corresponding peripheral call result, outputting the corresponding peripheral call result to a server side includes:
after the driver returns the corresponding peripheral calling result, the browser of the client displays the peripheral calling result and sends the peripheral calling result to the server through the browser.
3. The peripheral call method according to claim 1, wherein forwarding the peripheral call request to a driver on a client to cause the driver to return a corresponding call result based on the peripheral call request comprises:
the driver drives the peripheral according to the peripheral calling request;
And if the peripheral is driven successfully, the peripheral feeds back the peripheral calling result to the driving program.
4. The peripheral call method according to claim 1, wherein before the obtaining the peripheral call request, the method comprises:
Accessing and loading a user page;
the user page initiates a request for running a peripheral calling program to the server;
responding to the request for running the peripheral calling program so as to enable a user to initiate a peripheral calling request.
5. The peripheral invocation method of claim 4, wherein prior to said accessing and loading the user page, the method further comprises:
and adding the user page into a trusted site of the browser so that a user can access the user page through the browser.
6. The peripheral invocation method of claim 1, wherein the peripheral is a keypad or a card reader.
7. The peripheral call method of claim 6, wherein the card reader is an identification card reader or a bank card reader.
8. A peripheral call system, comprising:
the acquisition module is used for acquiring a peripheral call request through a browser in the client;
The first processing module is used for forwarding the peripheral calling request to a driver on a client through the browser so that the driver returns a corresponding peripheral calling result based on the peripheral calling request, and the driver is a program for driving the peripheral to operate; the first processing module is configured to forward, by using the browser, the peripheral call request to a driver on a client, so that the driver returns a corresponding peripheral call result based on the peripheral call request, and includes: after the driver program successfully drives the peripheral, the user performs corresponding operation on the peripheral; the driver program sends the peripheral calling result to a browser on the client; the browser displays the peripheral calling result and sends the result to the server; the peripheral calling result comprises: the result of whether the peripheral call is successful or not and the user carries out corresponding operation information on the peripheral;
The output module is used for outputting the corresponding peripheral calling result to a server through the browser after the driver returns the corresponding peripheral calling result, and the client is in communication connection with the server;
And the second processing module is used for verifying the validity of the corresponding operation information of the peripheral equipment by the user according to the corresponding operation information of the peripheral equipment by the user by the server.
9. The peripheral call system of claim 8, wherein the first processing module is configured to forward the peripheral call request to a driver on a client, such that the driver returns a corresponding peripheral call result based on the peripheral call request, comprising:
after the driver returns the corresponding peripheral calling result, the browser of the client displays the peripheral calling result and sends the peripheral calling result to the server through the browser.
10. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the peripheral call method of any of claims 1 to 7 when the computer program is executed by the processor.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the peripheral invocation method of any of claims 1 to 7.
CN202110554719.XA 2021-05-20 2021-05-20 Peripheral calling method, system, electronic equipment and medium Active CN113158166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110554719.XA CN113158166B (en) 2021-05-20 2021-05-20 Peripheral calling method, system, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110554719.XA CN113158166B (en) 2021-05-20 2021-05-20 Peripheral calling method, system, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113158166A CN113158166A (en) 2021-07-23
CN113158166B true CN113158166B (en) 2024-04-19

Family

ID=76876957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110554719.XA Active CN113158166B (en) 2021-05-20 2021-05-20 Peripheral calling method, system, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113158166B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102258400A (en) * 2011-04-28 2011-11-30 华南理工大学 Health monitoring system
CN105094921A (en) * 2015-08-18 2015-11-25 刘毅 Method and device for calling peripheral in cross-browser mode
CN107172180A (en) * 2017-06-05 2017-09-15 深圳市成为信息技术有限公司 A kind of peripheral hardware plateform system and its operation method and application method
CN107239308A (en) * 2017-06-05 2017-10-10 广东西奥物联网科技股份有限公司 A kind of calling function realization method and system of browser
CN110175050A (en) * 2019-05-29 2019-08-27 深圳创龙智新科技有限公司 Peripheral device control method, device, system, electronic equipment and storage medium
CN111666524A (en) * 2020-06-16 2020-09-15 公安部交通管理科学研究所 Browser for traffic management service multi-peripheral management requirement and peripheral management method
CN111752621A (en) * 2019-03-28 2020-10-09 兆利丰股份有限公司 Web marketing management system with shared peripheral control engine
CN112083959A (en) * 2019-06-13 2020-12-15 中兴通讯股份有限公司 Service configuration management method, device, terminal and computer readable storage medium
CN112099868A (en) * 2020-08-18 2020-12-18 北京思特奇信息技术股份有限公司 Method and system for calling control across browsers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10230720B2 (en) * 2016-12-12 2019-03-12 Sap Se Authorization code flow for in-browser applications

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102258400A (en) * 2011-04-28 2011-11-30 华南理工大学 Health monitoring system
CN105094921A (en) * 2015-08-18 2015-11-25 刘毅 Method and device for calling peripheral in cross-browser mode
CN107172180A (en) * 2017-06-05 2017-09-15 深圳市成为信息技术有限公司 A kind of peripheral hardware plateform system and its operation method and application method
CN107239308A (en) * 2017-06-05 2017-10-10 广东西奥物联网科技股份有限公司 A kind of calling function realization method and system of browser
CN111752621A (en) * 2019-03-28 2020-10-09 兆利丰股份有限公司 Web marketing management system with shared peripheral control engine
CN110175050A (en) * 2019-05-29 2019-08-27 深圳创龙智新科技有限公司 Peripheral device control method, device, system, electronic equipment and storage medium
CN112083959A (en) * 2019-06-13 2020-12-15 中兴通讯股份有限公司 Service configuration management method, device, terminal and computer readable storage medium
CN111666524A (en) * 2020-06-16 2020-09-15 公安部交通管理科学研究所 Browser for traffic management service multi-peripheral management requirement and peripheral management method
CN112099868A (en) * 2020-08-18 2020-12-18 北京思特奇信息技术股份有限公司 Method and system for calling control across browsers

Also Published As

Publication number Publication date
CN113158166A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US11237844B2 (en) Method and apparatus for loading kernel module
CN110825479A (en) Page processing method and device, terminal equipment, server and storage medium
US11526431B2 (en) Systems and methods for automated provisioning of a virtual mainframe test environment
US11843674B2 (en) Virtual workspace experience visualization and optimization
CN113946425A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN113132400B (en) Business processing method, device, computer system and storage medium
CN112965916B (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN111930629A (en) Page testing method and device, electronic equipment and storage medium
CN113158166B (en) Peripheral calling method, system, electronic equipment and medium
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN113360172B (en) Application deployment method, device, computer equipment and storage medium
CN115248680A (en) Software construction method, system, device, medium, and program product
CN111859403B (en) Dependency vulnerability determination method and device, electronic equipment and storage medium
CN112506781B (en) Test monitoring method, device, electronic equipment, storage medium and program product
CN114925066A (en) Data processing method and device, electronic equipment and storage medium
CN113535590A (en) Program testing method and device
CN114780361A (en) Log generation method, device, computer system and readable storage medium
CN114035864A (en) Interface processing method, interface processing device, electronic device, and storage medium
CN113190812A (en) Login method, system, electronic equipment and storage medium
CN111818179A (en) User request processing method and device, computing equipment and medium
CN111125676B (en) Joint authorization method and device
CN113760835B (en) Log management method, middle platform system, electronic equipment and storage medium
CN113805877B (en) Project engineering construction method and device based on IDEA plug-in

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant