CN114253629B - External device calling method and device, computer device and storage medium - Google Patents

External device calling method and device, computer device and storage medium Download PDF

Info

Publication number
CN114253629B
CN114253629B CN202111589749.0A CN202111589749A CN114253629B CN 114253629 B CN114253629 B CN 114253629B CN 202111589749 A CN202111589749 A CN 202111589749A CN 114253629 B CN114253629 B CN 114253629B
Authority
CN
China
Prior art keywords
plug
module
configuration
external device
client
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
CN202111589749.0A
Other languages
Chinese (zh)
Other versions
CN114253629A (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.)
Guangzhou Huayin Medical Laboratory Center Co Ltd
Original Assignee
Guangzhou Huayin Medical Laboratory Center Co Ltd
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 Guangzhou Huayin Medical Laboratory Center Co Ltd filed Critical Guangzhou Huayin Medical Laboratory Center Co Ltd
Priority to CN202111589749.0A priority Critical patent/CN114253629B/en
Publication of CN114253629A publication Critical patent/CN114253629A/en
Application granted granted Critical
Publication of CN114253629B publication Critical patent/CN114253629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0024Peripheral component interconnect [PCI]

Abstract

The embodiment of the invention provides an external device calling method, an external device calling device, computer equipment and a storage medium, wherein the method comprises the following steps: obtaining plug-in configuration of external equipment; based on the plug-in configuration, the registration of the external equipment is realized; responding to a call instruction input by a user on a client page, acquiring a call script, and distributing the call script to an adapter of the external device to be called so as to enable the adapter to be connected with the external device; and acquiring the data returned by the external equipment and uploading the data to a server. According to the embodiment of the invention, the client can bypass the safe sandbox of the browser, and the local code is called through the browser component page, so that the batch requirement of the client service can be supported.

Description

External device calling method and device, computer device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of mobile internet, in particular to an external device calling method, an external device calling device, computer equipment and a storage medium.
Background
At present, many clients belong to application systems based on a B/S structure, main service functions are processed on Web (World Wide Web), and the service functions also need to involve hardware devices such as cameras and the like as sources for acquiring images.
The prior art has considered developing browser-based extension plug-ins to achieve this functionality. Since many current browsers have not allowed plug-ins to invoke native code for security reasons; and because the client program is based on Windows operating system, there are some pattern incompatibility and closed source problems; furthermore, the version of the browser is dependent on the locally installed version of the browser, and unifying the browser versions makes the client difficult to operate if low version window compatibility is required. Currently popular browsers, such as Chrome, firefox, IE, safari, also support external devices such as a common printer and a camera, but the browser has a relatively large limitation of supporting the service function of a client, and is difficult to realize the mass operation of the service.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a computer device and a storage medium for calling external equipment, which are used for solving the problem that a browser component of a client is difficult to support large-batch business operation of the external equipment.
In a first aspect, an embodiment of the present invention provides an external device calling method, which is applied to a browser component of a client, and includes:
obtaining plug-in configuration of external equipment;
based on the plug-in configuration, the registration of the external equipment is realized;
responding to a call instruction input by a user on a client page, acquiring a call script, and distributing the call script to an adapter of the external device to be called so as to enable the adapter to be connected with the external device;
and acquiring the data returned by the external equipment and uploading the data to a server.
In a second aspect, an embodiment of the present invention further provides an external device calling apparatus, which is characterized in that the device includes:
the configuration acquisition module is used for acquiring plug-in configuration of the external equipment;
the registration module is used for realizing the registration of the external equipment based on the plug-in configuration;
the connection establishment module is used for responding to a call instruction input by a user on a client page, acquiring a call script and distributing the call script to an adapter of the external equipment to be called so as to enable the adapter to be connected with the external equipment;
and the external equipment data acquisition module is used for acquiring the data returned by the external equipment and uploading the data to the server.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the external device invoking method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the external device calling method according to the first aspect.
In the embodiment of the invention, the plug-in configuration of the external equipment is obtained; based on the plug-in configuration, the registration of the external equipment is realized; responding to a call instruction input by a user on a client page, acquiring a call script, and distributing the call script to an adapter of the external device to be called so as to enable the adapter to be connected with the external device; and acquiring the data returned by the external equipment and uploading the data to a server. According to the embodiment of the invention, the client can bypass the safe sandbox of the browser, and the local code is called through the browser component page, so that the batch requirement of the client service can be supported.
Drawings
FIG. 1 is a flowchart of an external device calling method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an external device calling apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of an external device calling method provided in an embodiment of the present invention, where the embodiment is applicable to solve a problem that a browser component of a client is difficult to support a large-scale service operation of an external device, the method may be performed by an external device calling apparatus, and the external device calling apparatus may be implemented by software and/or hardware, may be configured in a computer device, and so on, and specifically includes the following steps:
and 101, obtaining plug-in configuration of the external device.
A configuration file is a computer file that can configure parameters and initial settings for some computer programs.
The external device is some hardware devices connected to the client, and they can establish connection with the client to acquire or output data.
And obtaining plug-in configuration of the external equipment so as to be capable of carrying out initialization setting on the external equipment.
In some embodiments of the invention, the external device comprises at least one of a pathology microscope camera, a high-speed camera, an identity reader, a code scanner, or a sound recorder.
In some clients for medical treatment, the external device includes one of a pathology microscope camera, a high-speed camera, an identity reader, a code scanner and a recorder, and is used for acquiring information related to a user.
In some embodiments of the present invention, a pathology image of a user and related data are acquired using a pathology microscope camera as an external device.
It should be noted that, the pathology microscope camera in the above embodiment is an exemplary illustration of the external device according to the embodiment of the present invention, and in other embodiments of the present invention, the external device may be other devices, which is not limited herein.
In some embodiments of the invention, the browser component of the client is a CEF browser component.
CEF (Chromium Embedded Framework; chromium embedded framework), an open source project based on Google Chromium, is aimed at providing embeddable browser support for third party applications. CEF functions to embed a web interface at a client.
The CEF browser component can essentially implement the functionality of a classical browser Chrome, and the CEF browser component can reverse inject objects into JavaScript objects so that the pages of the browser component can call the objects directly, such that the CEF browser component causes the application to wait IoC/DI (Inversion of Control/Dependency Injection; control inversion/dependent injection) container from active to passive to create and inject its required resources, effectively separating the objects and its required external resources so that they are loosely coupled.
The CEF browser component is used for bypassing a safe sandbox of the browser, the page of the client can be normally accessed, local call from the page of the client can be received, and a user can call external equipment through the CEF browser component of the client only by opening the client to acquire or output data.
In some embodiments of the present invention, step 101 comprises:
step 1011, reading the configuration file of the client.
And reading the configuration file of the client and acquiring the relevant configuration parameters of the client. The configuration file of the client can be used for configuring a browser component and an external device.
Step 1012, instantiates the browser component based on the browser component configuration parameters in the configuration file.
Instantiation refers to the process of creating objects with classes in object-oriented programming, referred to as instantiation. Is the process of embodying an abstract conceptual class into the real object of the class.
The browser component is instantiated according to the relevant browser component configuration parameters in the configuration file, the browser accessory is initialized, and the environment of the browser component is accessed, so that the functions of the browser component can be realized in a customized mode, such as downloading, requesting, shortcut key, menu handle and the like.
It should be noted that, the functions of the browser component in the foregoing embodiments are exemplary descriptions of the embodiments of the present invention, and in other embodiments of the present invention, the functions of the browser component may also include other functions, which are not limited herein.
Step 1013, starting a plug-in module of the browser component.
And starting a plug-in module in the browser assembly to prepare for subsequent configuration of the plug-in module and access to external equipment.
Step 1014, reading the plug-in configuration of the plug-in module from the configuration file.
And reading the plug-in configuration for the plug-in module in the configuration file of the client to obtain the configuration parameters related to the plug-in module so as to facilitate the subsequent configuration of the plug-in module.
Step 102, based on plug-in configuration, registration of external equipment is achieved.
Based on the plug-in configuration file pre-stored in the client, a series of configuration and object creation are carried out on the external device, and the external device object is registered in the plug-in module, so that the external device can be associated with the browser component of the client through the plug-in module by a standardized method. When the client needs to call the external device, the registered corresponding external device can be called in time.
In some embodiments of the present invention, step 102 comprises:
step 1021, instantiating the external device based on the plug-in configuration to obtain a plug-in instantiation object of the external device.
And instantiating the external device according to the related plug-in configuration parameters in the plug-in configuration file to obtain a plug-in instantiation object of the external device, and opening up a memory space for the plug-in instantiation object.
And 1022, registering the plug-in instantiation object in the plug-in module to obtain a standard method of the registered module.
Registering the plug-in instantiation object in the plug-in module to obtain a registration module standard method which can call the plug-in instantiation object corresponding to some external device in the plug-in module, wherein the registration module standard method can at least read the address of the external device.
It should be noted that, the functions that can be implemented by the registration module standard method in the above embodiment are exemplary descriptions of the embodiments of the present invention, and in other embodiments of the present invention, the registration module standard method may further include other functions, which is not limited herein.
Step 1023, receiving a registered module standard method of plug-in module injection through an inlet of a plug-in instantiation object.
The browser component receives the registered module standard method that the plug-in module injects through the entry of the plug-in instantiation object, rather than the browser component actively creating the plug-in instantiation object, the plug-in module controls the browser component, and the plug-in module reversely injects the plug-in instantiation object required by the browser component into the browser component. The method is beneficial to function multiplexing, so that the architecture of the program becomes very flexible.
Step 103, responding to a call instruction input by a user on a client page, acquiring a call script, and distributing the call script to an adapter of the external device to be called so as to enable the adapter to be connected with the external device.
The adapter's adapter information is exchanged with the processor and the adapter-supported devices as a bridge between the two incompatible interfaces.
The method comprises the steps that a user operates a client page, a corresponding call instruction is generated by the client according to the operation of the user, a corresponding call script is called out through the call instruction, a browser component receives the call script, and the call script is distributed to an adapter corresponding to external equipment to be called according to the call instruction, so that the adapter and the external equipment are connected. The browser component acquires the external device object to be controlled, and reads the local configuration parameters to start the external device to work. Thus, a function of a user accessing the native code through the client can be realized.
The user clicks a corresponding key for obtaining the pathology image on a client page, the client calls a corresponding JavaScript call script according to the content of the key and sends the JavaScript call script to the browser component, the browser component receives the JavaScript call script from the client and distributes the script to an image acquisition adapter corresponding to the pathology microscope camera according to a call instruction, so that the image acquisition adapter can be connected with the pathology microscope camera, and the pathology microscope camera and the browser component can exchange information.
It should be noted that, clicking the corresponding key for obtaining the pathological image on the client page by the user in the above embodiment is an exemplary description of the operation of the user on the client page in the embodiment of the present invention, and in other embodiments of the present invention, the user may also input the call instruction on the client page by using other operation modes, which is not limited herein.
Step 104, obtaining data returned by the external device and uploading the data to the server.
The external device collects data in real time, and the data collected by the external device is uploaded to the server for storage by the browser component through the adaptation and the plug-in module and returned to the browser component of the client.
The pathology microscope camera is used for acquiring pathology images in real time, and the images and the image related data are returned to the CEF browser component of the client through the image acquisition adapter and the plug-in module, and the CEF browser component uploads the data to the server for storage. The data returned by the external equipment is uploaded to the server through the CEF browser component, the operation of large-batch data is not limited, the data is not required to be operated again every time, the processing of the client to large-batch business is facilitated, manpower and material resources are saved, and meanwhile, the subsequent batch printing output in other external equipment such as a printer is facilitated.
It should be noted that, the pathology microscope camera in the above embodiment is an exemplary illustration of the external device according to the embodiment of the present invention, and in other embodiments of the present invention, the external device may be other devices, which is not limited herein.
In some embodiments of the invention, further comprising:
and 105, displaying the data returned by the external device on the page of the client.
And when the browser component of the client side successfully acquires the data returned by the external equipment, displaying the data in the page of the browser.
The pathology microscope camera acquires an image of the test sample under the pathology microscope, returns the image to the browser component of the client, and displays the image at a preset position in a page of the client.
Other data returned with the image, such as shooting time, lab, etc., may also be displayed in the client page, and the invention is not limited herein.
In some embodiments of the invention, further comprising:
and 106, receiving a data uploading result returned by the server.
And when the server successfully receives the data uploaded by the external device through the browser component, returning a successful uploading result, and indicating that the uploading is completed. The browser component may perform subsequent operations according to the instructions.
And 107, if the data uploading result is failure, re-uploading the data stored on the client.
And when the browser component cannot successfully upload the data returned by the external device to the server within the preset time threshold, re-uploading the data stored on the client to the server.
It should be noted that, in the foregoing embodiment, whether the data is successfully uploaded by setting the time threshold is described as an example of the embodiment of the present invention, and in other embodiments of the present invention, whether the data is successfully uploaded to the server may also be determined by other manners, which is not limited herein.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
In the embodiment of the invention, the plug-in configuration of the external equipment is obtained; based on plug-in configuration, realizing registration of external equipment; responding to a call instruction input by a user on a client page, acquiring a call script, and distributing the call script to an adapter of external equipment to be called so as to enable the adapter to be connected with the external equipment; and acquiring data returned by the external equipment and uploading the data to the server. According to the embodiment of the invention, the client can bypass the safe sandbox of the browser, and the local code is called through the browser component page, so that the batch requirement of the client service can be supported.
Example two
Fig. 2 is a structural block diagram of an external device calling method apparatus according to a second embodiment of the present invention, which may specifically include the following modules:
a configuration obtaining module 201, configured to obtain a plug-in configuration of an external device;
a registration module 202, configured to implement registration of the external device based on the plug-in configuration;
the connection establishment module 203 is configured to obtain a call script in response to a call instruction input by a user on a client page, and distribute the call script to an adapter of the external device to be called, so that the adapter and the external device are connected;
and the external device data acquisition module 204 is used for acquiring the data returned by the external device and uploading the data to a server.
In some embodiments of the present invention, the configuration acquisition module 201 includes:
the client side configuration file reading sub-module is used for reading the configuration file of the client side;
a browser instantiation sub-module for instantiating the browser component based on the browser component configuration parameters in the configuration file;
the plug-in module starting sub-module is used for starting the plug-in module of the browser component;
and the plug-in configuration reading sub-module is used for reading the plug-in configuration of the plug-in module from the configuration file.
In some embodiments of the invention, registration module 202 includes:
an external device instantiation sub-module, configured to instantiate the external device based on the plug-in configuration, to obtain a plug-in instantiation object of the external device;
the standard method obtaining sub-module is used for registering the plug-in instantiation object in the plug-in module to obtain a registered module standard method;
and the injection sub-module is used for receiving a registration module standard method injected by the plug-in module through the inlet of the plug-in instantiation object.
In some embodiments of the invention, further comprising:
and the data display module 205 is configured to display data returned by the external device on the client page.
In some embodiments of the invention, there is provided:
a data receiving module 206, configured to receive a data uploading result returned by the server;
a re-uploading module 207, configured to re-upload the data stored on the client.
The external equipment calling method device provided by the embodiment of the invention can execute the external equipment calling method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of application of the embodiments of the invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in fig. 3, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the external device calling method provided by the embodiment of the present invention.
Example IV
The fourth embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the external device calling method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), a erasable programmable read-only memory (EPROM or flash memory), an optical fiber, 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 this document, 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.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. The method for calling the external device is characterized by being applied to a browser component of a client, and comprising the following steps:
obtaining plug-in configuration of external equipment;
based on the plug-in configuration, the registration of the external equipment is realized;
responding to a call instruction input by a user on a client page, acquiring a call script, and distributing the call script to an adapter of external equipment to be called so as to enable the adapter to be connected with the external equipment;
acquiring data returned by the external equipment and uploading the data to a server;
the method for obtaining the plug-in configuration of the external device comprises the following steps:
reading a configuration file of a client;
instantiating the browser component based on browser component configuration parameters in the configuration file;
starting a plug-in module of the browser component;
and reading the plug-in configuration of the plug-in module from the configuration file.
2. The method of claim 1, wherein the registering of the external device based on the plug-in configuration comprises:
instantiating the external device based on the plug-in configuration to obtain a plug-in instantiation object of the external device;
registering the plug-in instantiation object in a plug-in module to obtain a registration module standard method;
and receiving a registration module standard method of the plug-in module injected through the inlet of the plug-in instantiation object.
3. The method as recited in claim 1, further comprising:
and displaying the data returned by the external device on the client page.
4. The method of claim 1, further comprising, after uploading the data to a server:
receiving a data uploading result returned by the server;
and if the data uploading result is failure, re-uploading the data stored on the client.
5. The method of claim 1, wherein the external device comprises at least one of a pathology microscope camera, a high speed camera, an identity reader, a code scanner, or a voice recorder.
6. The method of claim 1, wherein the browser component of the client is a CEF browser component.
7. An external device calling apparatus, comprising:
the configuration acquisition module is used for acquiring plug-in configuration of the external equipment;
the registration module is used for realizing the registration of the external equipment based on the plug-in configuration;
the connection establishment module is used for responding to a call instruction input by a user on a client page, acquiring a call script and distributing the call script to an adapter of external equipment to be called so as to enable the adapter to be connected with the external equipment;
the external equipment data acquisition module is used for acquiring data returned by the external equipment and uploading the data to the server;
wherein, the configuration acquisition module further comprises:
the client side configuration file reading sub-module is used for reading the configuration file of the client side;
a browser instantiation sub-module for instantiating the browser component based on the browser component configuration parameters in the configuration file;
the plug-in module starting sub-module is used for starting the plug-in module of the browser component;
and the plug-in configuration reading sub-module is used for reading the plug-in configuration of the plug-in module from the configuration file.
8. A computer device, the computer device comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the external device invocation method of any of claims 1-6.
9. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the external device invoking method according to any of claims 1-6.
CN202111589749.0A 2021-12-23 2021-12-23 External device calling method and device, computer device and storage medium Active CN114253629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111589749.0A CN114253629B (en) 2021-12-23 2021-12-23 External device calling method and device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111589749.0A CN114253629B (en) 2021-12-23 2021-12-23 External device calling method and device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN114253629A CN114253629A (en) 2022-03-29
CN114253629B true CN114253629B (en) 2024-03-22

Family

ID=80797138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111589749.0A Active CN114253629B (en) 2021-12-23 2021-12-23 External device calling method and device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN114253629B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999337A (en) * 2012-11-20 2013-03-27 上海中信信息发展股份有限公司 Browser packaging system and method
CN112399025A (en) * 2020-11-20 2021-02-23 深圳市远行科技股份有限公司 Communication method and device for scanning equipment
CN113190287A (en) * 2021-04-30 2021-07-30 平安壹钱包电子商务有限公司 External device docking method and device, computer device and readable storage medium
CN113342356A (en) * 2021-05-18 2021-09-03 浪潮软件股份有限公司 Client framework operation and management configuration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999337A (en) * 2012-11-20 2013-03-27 上海中信信息发展股份有限公司 Browser packaging system and method
CN112399025A (en) * 2020-11-20 2021-02-23 深圳市远行科技股份有限公司 Communication method and device for scanning equipment
CN113190287A (en) * 2021-04-30 2021-07-30 平安壹钱包电子商务有限公司 External device docking method and device, computer device and readable storage medium
CN113342356A (en) * 2021-05-18 2021-09-03 浪潮软件股份有限公司 Client framework operation and management configuration method

Also Published As

Publication number Publication date
CN114253629A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
US20110202854A1 (en) Metadata Capture for Screen Sharing
US8863008B2 (en) Automatic removal of sensitive information from a computer screen
DE60313108T2 (en) Method and system for controlling PXE-based boot decisions from a network policy directory
US20140082511A1 (en) Method and system for emulating desktop software applications in a mobile communication network
US20170286081A1 (en) Silent Installation of Software with Dependencies
US20140059114A1 (en) Application service providing system and method and server apparatus and client apparatus for application service
KR20170113356A (en) Display and operating unit and method of operating a field instrument using a display and operating unit
CN109683889B (en) Message display frame multiplexing method and device, electronic equipment and readable storage medium
CN114253629B (en) External device calling method and device, computer device and storage medium
US20210263736A1 (en) Semantic functional wrappers of services
CN107959845B (en) Image data transmission method and device, client device and head-mounted display equipment
CN110083366A (en) The generation method of application runtime environment, calculates equipment and storage medium at device
CN111708595A (en) Remote interactive cooperation method and device based on visual interface
US10838579B2 (en) Custom list for keyboard navigation of user interface
US20150205770A1 (en) Capturing an application state in a conversation
CN111399928A (en) Application program starting method and device, electronic equipment and readable storage medium
CN115292647A (en) Non-invasive government data acquisition method
US20200344305A1 (en) Commissioning a virtualised network function
WO2022019987A1 (en) Interaction signal processing in distributed computing systems
CN104834536B (en) The method and apparatus of application program self-operating
CN109597952B (en) Webpage information processing method, system, electronic equipment and storage medium
CN112416455A (en) Data processing method, device, terminal and storage medium
CN111880775A (en) Multi-module layered architecture implementation method and device, electronic equipment and storage medium
EP4304154A1 (en) Information processing device, information processing method, program, and information processing system
CN113946386B (en) Screen capture control method and device, computer equipment and storage medium

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