CN113507464A - Data access method, device, equipment and storage medium based on virtual equipment - Google Patents

Data access method, device, equipment and storage medium based on virtual equipment Download PDF

Info

Publication number
CN113507464A
CN113507464A CN202110765847.9A CN202110765847A CN113507464A CN 113507464 A CN113507464 A CN 113507464A CN 202110765847 A CN202110765847 A CN 202110765847A CN 113507464 A CN113507464 A CN 113507464A
Authority
CN
China
Prior art keywords
data
equipment
data access
cloud server
virtual
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.)
Granted
Application number
CN202110765847.9A
Other languages
Chinese (zh)
Other versions
CN113507464B (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.)
Shenzhen Lucky Rfid Semiconductor Co ltd
Original Assignee
Shenzhen Lucky Rfid Semiconductor 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 Shenzhen Lucky Rfid Semiconductor Co ltd filed Critical Shenzhen Lucky Rfid Semiconductor Co ltd
Priority to CN202110765847.9A priority Critical patent/CN113507464B/en
Publication of CN113507464A publication Critical patent/CN113507464A/en
Application granted granted Critical
Publication of CN113507464B publication Critical patent/CN113507464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of virtual equipment, and discloses a data access method, a device, equipment and a storage medium based on virtual equipment, wherein the method comprises the following steps: when a data access request is received, acquiring data of first equipment according to the data access request; writing data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device; configuring data of the first device to the multi-service virtual device through a second driver, and responding to a data access request based on the multi-service virtual device; according to the method and the device, when the data access request is received, the data of the first device are configured to the multi-service virtual device, and the data of the multi-service virtual device is accessed according to the data access request, so that the data access based on the virtual device is realized.

Description

Data access method, device, equipment and storage medium based on virtual equipment
Technical Field
The present invention relates to the field of virtual device technologies, and in particular, to a data access method, apparatus, device, and storage medium based on a virtual device.
Background
With the development of computer networks, widely used data devices connected with local computers are available, the requirement of users for accessing data at the same time is increased, if the data access is realized only through a single device, queuing of the users can occur in the access process, and obviously the experience of the users can be reduced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data access method, a data access device, data access equipment and a storage medium based on virtual equipment, and aims to solve the technical problem that the prior art cannot effectively improve the data access efficiency.
In order to achieve the above object, the present invention provides a data access method based on a virtual device, which includes the following steps:
when a data access request is received, acquiring data of first equipment according to the data access request;
writing data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device;
and configuring the data of the first equipment to multi-service virtual equipment through a second driver, and responding to the data access request based on the multi-service virtual equipment so as to realize data access based on the virtual equipment.
Optionally, when receiving a data access request, acquiring data of a first device according to the data access request includes:
acquiring provider identification information and identification code information of a first device and provider identification information and identification code information of a second device when a data access request is received;
and if the supplier identification information of the first equipment is consistent with the supplier identification information of the second equipment and the identification code information of the first equipment is consistent with the identification code information of the second equipment, acquiring the data of the first equipment according to the data access request.
Optionally, before the responding, by the multi-service virtual device, to the data access request to implement data access based on a virtual device, the method further includes:
when a data access request is received, acquiring a network connection state with a target cloud server;
if the network connection state is a connection success state, generating preset data request information;
sending the preset data request information to a target cloud server so that the target cloud server can inquire and feed back corresponding equipment data according to the preset data request information;
writing the device data to a second device through a first driver;
and configuring the device data to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device to realize data access based on the virtual device.
Optionally, if the network connection status is a connection success status, after generating the preset data request information, the method further includes:
acquiring identification information of a target cloud server and historical cloud server connection information;
extracting a history cloud server set successfully connected in the history cloud server connection information;
if the identification information of the target cloud server exists in the identification information of the historical cloud server set, sending preset verification information to the target cloud server;
and if the verification success information fed back by the target cloud server is received, executing the step of sending the preset data request information to the target cloud server.
Optionally, the writing the data of the first device to the second device through the first driver includes:
acquiring equipment data fed back by a target cloud server;
if the data of the first equipment is inconsistent with the equipment data, respectively counting the number of the data of the first equipment and the number of the equipment data;
if the quantity of the data of the first equipment is smaller than that of the equipment data and the data of the first equipment belongs to the equipment data, correcting the data of the first equipment according to the equipment data;
and writing the modified data of the first device into the second device through the first driver.
Optionally, the accessing the data in the target virtual device according to the data access request in the second device to obtain a corresponding access result, so as to implement data access based on the virtual device, including:
accessing the data in the target virtual equipment according to the data access request in the second equipment to obtain a corresponding access record;
sending the access record to a target cloud server through a second application program so that the target cloud server stores the access record and feeds back a corresponding storage result;
and displaying the successfully stored data in the storage result to realize the data access based on the virtual equipment.
Optionally, after displaying the data successfully stored in the storage result to implement data access based on the virtual device, the method further includes:
carrying out real-time statistics on the successfully stored data to obtain the corresponding data quantity;
and if the data quantity is larger than the preset quantity, resetting the access record of the second equipment to receive the data access request at the next moment.
In addition, to achieve the above object, the present invention further provides a data access apparatus based on a virtual device, including:
the acquisition module is used for acquiring data of the first equipment according to the data access request when the data access request is received;
the writing module is used for writing the data of the first equipment into the second equipment through a first driver, wherein the second equipment is provided with multi-service virtual equipment;
and the configuration module is used for configuring the data of the first equipment to the multi-service virtual equipment through a second driver, and responding to the data access request based on the multi-service virtual equipment so as to realize data access based on the virtual equipment.
In addition, to achieve the above object, the present invention further provides a data access apparatus device based on a virtual device, including: a memory, a processor, and a virtual appliance based data access appliance program stored on the memory and executable on the processor, the virtual appliance based data access appliance program configured to implement the virtual appliance based data access appliance method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having a virtual device based data access apparatus program stored thereon, which when executed by a processor implements the virtual device based data access apparatus method as described above.
According to the data access method based on the virtual equipment, when a data access request is received, data of first equipment are obtained according to the data access request; writing data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device; configuring data of the first device to a multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device; according to the method and the device, when the data access request is received, the data of the first device are configured to the multi-service virtual device, and the data of the multi-service virtual device is accessed according to the data access request, so that the data access based on the virtual device is realized.
Drawings
FIG. 1 is a schematic structural diagram of a virtual device-based data access device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a data access method based on a virtual device according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a data access method based on a virtual device according to the present invention;
FIG. 4 is a schematic view of an access system according to an embodiment of the data access method based on a virtual device of the present invention;
FIG. 5 is a flowchart illustrating a data access method based on a virtual device according to a third embodiment of the present invention;
fig. 6 is a functional block diagram of a data access apparatus based on virtual devices according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a virtual device-based data access device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the virtual device-based data access device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of virtual appliance-based data access means, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a virtual device-based data access program.
In the virtual device-based data access device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the virtual device-based data access apparatus according to the present invention may be configured in a virtual device-based data access method, and the virtual device-based data access apparatus calls a virtual device-based data access program stored in the memory 1005 through the processor 1001 and executes the virtual device-based data access method according to the embodiment of the present invention.
Based on the hardware structure, the embodiment of the data access method based on the virtual device is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a data access method based on a virtual device according to a first embodiment of the present invention.
In a first embodiment, the virtual device-based data access method includes the following steps:
step S10, when receiving the data access request, acquiring data of the first device according to the data access request.
It should be noted that, the execution subject of this embodiment may be a data access device based on a virtual device, the data access device based on the virtual device may be an electronic device such as a personal computer, a mobile phone, and the like, and the data access device based on the virtual device is installed with an Application (APP) for data access, that is, a data access Application, and may also be other devices that can achieve the same or similar functions.
It should be understood that the data access request refers to a request of a data access program for accessing data in a device, the data access request may be a request sent by different data access programs at the same time or different times, the data of the first device refers to stored data of a device without a built-in virtual structure, and the stored data may be data generated by the first device during operation or data transmitted by other devices.
It can be understood that, when a data access request is obtained, the data of the first device is obtained through a driver connected to the first device, where the driver may be a driver originally connected to the first device or a driver connected to the second device, and when vendor Identification information (VID) and Identification code information (Port ID, PID) of the first device and the second device are completely consistent, the data of the first device can be accessed through both the driver of the first device and the driver of the second device, where both the VID and the PID can uniquely identify different devices.
In a specific implementation, when a data access request is received, a data access application acquires data of a first device according to the data access request.
Step S20, writing the data of the first device into a second device through a first driver, where the second device is provided with a multi-service virtual device.
It should be understood that the first driver refers to a driver connected to a second device, and after data is read from the first device through the first driver, the read data of the first device is written into the second device, where the second device is a virtual device provided with multiple services, and the services in the second device include services of all devices except the second device, where data in the second device may originate from different devices or servers, for example, may originate from devices except the second device, that is, the first device, and may also originate from a target cloud server connected to a data access program.
Further, in order to effectively improve the accuracy of the data written to the second device, step S20 includes: acquiring equipment data fed back by a target cloud server; if the data of the first equipment is inconsistent with the equipment data, respectively counting the number of the data of the first equipment and the number of the equipment data; if the quantity of the data of the first equipment is smaller than that of the equipment data and the data of the first equipment belongs to the equipment data, correcting the data of the first equipment according to the equipment data; and writing the modified data of the first device into the second device through the first driver.
It can be understood that when data in the second device is changed, the sources of the data are divided into two types, and when the data of the first device is inconsistent with the data stored in the target cloud server database, statistics needs to be performed on the data in the first device and the data stored in the target cloud server, and when the number of the data of the first device is smaller than that of the data in the target cloud server and the data of the target cloud server completely contains the data of the first device, the data of the first device is corrected and perfected through the data of the target cloud server, and the corrected data is written into the second device.
In specific implementation, a data access application program writes data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device.
Step S30, configuring, by a second driver, data of the first device to a multi-service virtual device, and responding to the data access request based on the multi-service virtual device, so as to implement data access based on the virtual device.
It should be understood that after obtaining the data of the first device, the data of the first device is configured into the multi-service virtual device through the second driver, where the second driver refers to a driver connected to the data access application and the second device, and the second driver is used to configure the data of the first device onto the multi-service virtual device, and after completing the configuration of the data, the multi-service virtual device can respond to the data access request, and the data access application can access the data in the multi-service virtual device at this time, so as to implement data access based on the virtual device.
In a specific implementation, the data access application configures the data of the first device to the multi-service virtual device through the second driver, and responds to the data access request based on the multi-service virtual device, so as to implement data access based on the virtual device.
Further, in order to effectively improve the query efficiency of the virtual device data access record, step S30 includes: responding the data access request based on the multi-service virtual equipment to obtain a corresponding access record; sending the access record to a target cloud server so that the target cloud server stores the access record and feeds back a corresponding storage result; and displaying the successfully stored data in the storage result to realize the data access based on the virtual equipment.
It can be understood that the access record refers to a record of the data access application accessing the multi-service virtual device, and the access record includes access time, specific data of access, and the like, in order to reduce a storage space of the multi-service virtual device, when the access record is obtained, the access record is transmitted to the target cloud server, the target cloud server stores the access record in the local database, and the data access application shows a storage result, so as to prevent that when the data in the multi-service virtual device is maliciously changed, the specific access object cannot be traced, and difficulty is brought to a troubleshooting work of a security department.
Further, in order to effectively improve the access efficiency of the data, after step S30, the method further includes: carrying out real-time statistics on the successfully stored data to obtain the corresponding data quantity; and if the data quantity is larger than the preset quantity, resetting the access record of the second equipment to receive the data access request at the next moment.
It should be understood that the data amount refers to the amount of data stored in the database of the target cloud server, the preset amount refers to the maximum amount of data that can be stored in the database of the target cloud server, and when the preset amount is exceeded, the database cannot store new data any more, so that the data storage of the new access record fails, and therefore, when the data amount is greater than the preset amount, the data of the access record of the second device has been shown for a long time, that is, the corresponding access record is reset, so as to provide access to the data by the data access request at the next time.
In the embodiment, when a data access request is received, data of a first device is acquired according to the data access request; writing data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device; configuring data of the first device to a multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device; when a data access request is received, the data of the first device is configured to the multi-service virtual device, and the data of the multi-service virtual device is accessed according to the data access request, so that the data access based on the virtual device is realized.
In an embodiment, as shown in fig. 3, a second embodiment of the data access method based on a virtual device according to the present invention is proposed based on the first embodiment, and the step S10 includes:
step S101, upon receiving the data access request, acquires vendor identification information and identification code information of the first device and vendor identification information and identification code information of the second device.
It should be understood that, when receiving the data access request, the data access application determines whether or not the vendor identification information and the identification code information of the first device are consistent with the vendor identification information and the identification code information of the second device, the vendor identification information refers to identification information capable of uniquely identifying the first device and the second device, the identification code information refers to identification information capable of uniquely identifying the first device and the second device, and in order to ensure that the first driver can effectively acquire the data of the first device, the dual determination is performed by the vendor identification information and the identification code information.
In a particular implementation, the data access application obtains vendor identification information and identification code information of the first device and vendor identification information and identification code information of the second device upon receiving the data access request.
Step S102, if the supplier identification information of the first device is identical to the supplier identification information of the second device and the identification code information of the first device is identical to the identification code information of the second device, acquiring data of the first device according to the data access request.
It can be understood that when the vendor identification information of the first device is identical to the vendor identification information of the second device and the identification code information of the first device is identical to the identification code information of the second device, the data of the first device is read through the first driver and the data access request, and when any one of the vendor identification information or the identification code information of the first device and the second device is not identical, the data of the first device cannot be acquired through the first driver and the data access request.
In a specific implementation, if the vendor identification information of the first device is identical to the vendor identification information of the second device and the identification code information of the first device is identical to the identification code information of the second device, the data access application program acquires the data of the first device according to the data access request.
It should be understood that, referring to fig. 4, fig. 4 is a schematic diagram of an access system according to an embodiment of the data access method based on a virtual device in the present invention, where the conversion system includes an execution subject of the method, that is, a data access application program, and specifically includes: the data access method comprises a first device, a driver, a first application program, a second device provided with a multi-service virtual device, the first driver, a second driver and a target cloud server.
The embodiment obtains the supplier identification information and the identification code information of the first device and the supplier identification information and the identification code information of the second device when receiving the data access request; if the supplier identification information of the first device is consistent with the supplier identification information of the second device and the identification code information of the first device is consistent with the identification code information of the second device, acquiring the data of the first device according to the data access request; when the supplier identification information of the first device is consistent with the supplier identification information of the second device and the identification code information of the first device is consistent with the identification code information of the second device, the data of the first device is accessed through the data request, so that the accuracy of obtaining the data of the first device can be effectively improved.
In an embodiment, as shown in fig. 5, a third embodiment of the data access method based on a virtual device according to the present invention is provided based on the first embodiment, where before the step S30, the method further includes:
step S201, when receiving the data access request, acquiring a network connection state with the target cloud server.
It can be understood that the network connection state refers to a network connection state between the data access application and the target cloud server, and includes a network state of the data access application itself and a network state of the target cloud server, and the network connection state is divided into a connection success state and a connection failure state, and only in a case where the network states of the data access application and the target cloud server are both normal, the network connection state between the data access application and the target cloud server may be the connection success state.
In a specific implementation, upon receiving a data access request, a data access application obtains a network connection state with a target cloud server.
Step S202, if the network connection state is a connection success state, generating preset data request information.
It can be understood that the preset data request information refers to information that the data access application requests the target cloud server for data query, and when the network connection between the data access application and the target cloud server is successful, the preset data request information is generated and sent to the target cloud server.
In a specific implementation, if the network connection state is a connection success state, the data access application generates preset data request information.
Step S203, sending the preset data request information to a target cloud server, so that the target cloud server queries and feeds back corresponding device data according to the preset data request information.
It should be understood that the device data refers to data that needs to be set to a multi-service virtual device in the second device, the type of the device data is the same as that of the data of the first device, after receiving the preset data request information, the target cloud server determines the data that needs to be accessed through the preset data request information, and queries in the database through the determined data to obtain corresponding device data.
In specific implementation, the data access application program sends the preset data request information to a target cloud server, so that the target cloud server queries and feeds back corresponding device data according to the preset data request information.
Further, in order to effectively improve the security of the device data transmission, after step S203, the method further includes: acquiring identification information of a target cloud server and historical cloud server connection information; extracting a history cloud server set successfully connected in the history cloud server connection information; if the identification information of the target cloud server exists in the identification information of the historical cloud server set, sending preset verification information to the target cloud server; and if the verification success information fed back by the target cloud server is received, executing the step of sending the preset data request information to the target cloud server.
It can be understood that, the historical cloud server connection information refers to connection information between the historical cloud server and the data access application program, the identification information of the target cloud server refers to identification information capable of uniquely identifying the target cloud server, and the identification information may be an ID of the target cloud server, or other identification information, this embodiment is not limited to this, and takes the ID of the target cloud server as an example for explanation, when the identification information of the historical cloud server set exists in the identification information of the target cloud server, it indicates that data interaction can be performed between the target cloud server and the data access application program, in order to ensure the security of data transmission, the data access application program further needs to send preset verification information to the target cloud server, and when verification success information fed back by the target cloud server is received, the preset data request information is sent to the target cloud server, the preset verification information refers to information for verifying whether data transmission between the data access application program and the target cloud server is safe.
And step S204, writing the device data into the second device through the first driver.
It can be understood that after the device data fed back by the target cloud server is obtained, the device data is written into the second device through the first driver, where the first driver refers to a driver connected to the data access application and the second device.
In a specific implementation, the data access application writes the device data to the second device through the first driver.
Step S205, configuring the device data to the multi-service virtual device through the second driver, and responding to the data access request based on the multi-service virtual device, so as to implement data access based on the virtual device.
It should be understood that after the device data fed back by the target cloud server is obtained, the device data is configured to the multi-service virtual device through the second driver, and after the device data configuration of the multi-service virtual device is completed, the multi-service virtual device can respond to the data access request.
In a specific implementation, the data access application configures the device data to the multi-service virtual device through the second driver, and responds to the data access request based on the multi-service virtual device, so as to implement data access based on the virtual device.
In the embodiment, when a data access request is received, the network connection state with a target cloud server is acquired; if the network connection state is a connection success state, generating preset data request information; sending the preset data request information to a target cloud server so that the target cloud server can inquire and feed back corresponding equipment data according to the preset data request information; writing the device data to a second device through a first driver; configuring the device data to multi-service virtual devices through a second driver, and responding to the data access request based on the multi-service virtual devices; when the network connection with the target cloud server is in a successful connection state, corresponding device data are obtained according to the preset data request information, configuration of the multi-service virtual device is completed according to the device data, and the data access request is responded based on the multi-service virtual device, so that the security of data access can be effectively improved.
In addition, an embodiment of the present invention further provides a storage medium, where a data access program based on a virtual device is stored on the storage medium, and when executed by a processor, the data access program based on the virtual device implements the steps of the data access method based on the virtual device as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 6, an embodiment of the present invention further provides a data access apparatus based on a virtual device, where the data access apparatus based on a virtual device includes:
the obtaining module 10 is configured to, when receiving a data access request, obtain data of a first device according to the data access request.
It should be understood that the data access request refers to a request of a data access program for accessing data in a device, the data access request may be a request sent by different data access programs at the same time or different times, the data of the first device refers to stored data of a device without a built-in virtual structure, and the stored data may be data generated by the first device during operation or data transmitted by other devices.
It can be understood that, when a data access request is obtained, the data of the first device is obtained through a driver connected to the first device, where the driver may be a driver originally connected to the first device or a driver connected to the second device, and when vendor Identification information (VID) and Identification code information (Port ID, PID) of the first device and the second device are completely consistent, the data of the first device can be accessed through both the driver of the first device and the driver of the second device, where both the VID and the PID can uniquely identify different devices.
In a specific implementation, when a data access request is received, a data access application acquires data of a first device according to the data access request.
A writing module 20, configured to write data of the first device into the second device through a first driver, where the second device is provided with a multi-service virtual device.
It should be understood that the first driver refers to a driver connected to a second device, and after data is read from the first device through the first driver, the read data of the first device is written into the second device, where the second device is a virtual device provided with multiple services, and the services in the second device include services of all devices except the second device, where data in the second device may originate from different devices or servers, for example, may originate from devices except the second device, that is, the first device, and may also originate from a target cloud server connected to a data access program.
Further, in order to effectively improve the accuracy of the data written to the second device, step S20 includes: acquiring equipment data fed back by a target cloud server; if the data of the first equipment is inconsistent with the equipment data, respectively counting the number of the data of the first equipment and the number of the equipment data; if the quantity of the data of the first equipment is smaller than that of the equipment data and the data of the first equipment belongs to the equipment data, correcting the data of the first equipment according to the equipment data; and writing the modified data of the first device into the second device through the first driver.
It can be understood that when data in the second device is changed, the sources of the data are divided into two types, and when the data of the first device is inconsistent with the data stored in the target cloud server database, statistics needs to be performed on the data in the first device and the data stored in the target cloud server, and when the number of the data of the first device is smaller than that of the data in the target cloud server and the data of the target cloud server completely contains the data of the first device, the data of the first device is corrected and perfected through the data of the target cloud server, and the corrected data is written into the second device.
In specific implementation, a data access application program writes data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device.
The configuration module 30 is configured to configure the data of the first device to the multi-service virtual device through the second driver, and respond to the data access request based on the multi-service virtual device, so as to implement data access based on the virtual device.
It should be understood that after obtaining the data of the first device, the data of the first device is configured into the multi-service virtual device through the second driver, where the second driver refers to a driver connected to the data access application and the second device, and the second driver is used to configure the data of the first device onto the multi-service virtual device, and after completing the configuration of the data, the multi-service virtual device can respond to the data access request, and the data access application can access the data in the multi-service virtual device at this time, so as to implement data access based on the virtual device.
In a specific implementation, the data access application configures the data of the first device to the multi-service virtual device through the second driver, and responds to the data access request based on the multi-service virtual device, so as to implement data access based on the virtual device.
Further, in order to effectively improve the query efficiency of the virtual device data access record, step S30 includes: responding the data access request based on the multi-service virtual equipment to obtain a corresponding access record; sending the access record to a target cloud server so that the target cloud server stores the access record and feeds back a corresponding storage result; and displaying the successfully stored data in the storage result to realize the data access based on the virtual equipment.
It can be understood that the access record refers to a record of the data access application accessing the multi-service virtual device, and the access record includes access time, specific data of access, and the like, in order to reduce a storage space of the multi-service virtual device, when the access record is obtained, the access record is transmitted to the target cloud server, the target cloud server stores the access record in the local database, and the data access application shows a storage result, so as to prevent that when the data in the multi-service virtual device is maliciously changed, the specific access object cannot be traced, and difficulty is brought to a troubleshooting work of a security department.
Further, in order to effectively improve the access efficiency of the data, after step S30, the method further includes: carrying out real-time statistics on the successfully stored data to obtain the corresponding data quantity; and if the data quantity is larger than the preset quantity, resetting the access record of the second equipment to receive the data access request at the next moment.
It should be understood that the data amount refers to the amount of data stored in the database of the target cloud server, the preset amount refers to the maximum amount of data that can be stored in the database of the target cloud server, and when the preset amount is exceeded, the database cannot store new data any more, so that the data storage of the new access record fails, and therefore, when the data amount is greater than the preset amount, the data of the access record of the second device has been shown for a long time, that is, the corresponding access record is reset, so as to provide access to the data by the data access request at the next time.
In the embodiment, when a data access request is received, data of a first device is acquired according to the data access request; writing data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device; configuring data of the first device to a multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device; when a data access request is received, the data of the first device is configured to the multi-service virtual device, and the data of the multi-service virtual device is accessed according to the data access request, so that the data access based on the virtual device is realized.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, technical details that are not described in detail in this embodiment may refer to a data access method based on a virtual device provided in any embodiment of the present invention, and are not described herein again.
In an embodiment, the obtaining module 10 is further configured to obtain, when a data access request is received, provider identification information and identification code information of a first device and provider identification information and identification code information of a second device; and if the supplier identification information of the first equipment is consistent with the supplier identification information of the second equipment and the identification code information of the first equipment is consistent with the identification code information of the second equipment, acquiring the data of the first equipment according to the data access request.
In an embodiment, the writing module 20 is further configured to obtain device data fed back by the target cloud server; if the data of the first equipment is inconsistent with the equipment data, respectively counting the number of the data of the first equipment and the number of the equipment data; if the quantity of the data of the first equipment is smaller than that of the equipment data and the data of the first equipment belongs to the equipment data, correcting the data of the first equipment according to the equipment data; and writing the modified data of the first device into the second device through the first driver.
In an embodiment, the configuration module 30 is further configured to, when receiving a data access request, acquire a network connection state with a target cloud server; if the network connection state is a connection success state, generating preset data request information; sending the preset data request information to a target cloud server so that the target cloud server can inquire and feed back corresponding equipment data according to the preset data request information; writing the device data to a second device through a first driver; and configuring the device data to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device to realize data access based on the virtual device.
In an embodiment, the configuration module 30 is further configured to obtain identification information of a target cloud server and historical cloud server connection information; extracting a history cloud server set successfully connected in the history cloud server connection information; if the identification information of the target cloud server exists in the identification information of the historical cloud server set, sending preset verification information to the target cloud server; and if the verification success information fed back by the target cloud server is received, executing the step of sending the preset data request information to the target cloud server.
In an embodiment, the configuration module 30 is further configured to obtain a corresponding access record based on the multi-service virtual device responding to the data access request; sending the access record to a target cloud server so that the target cloud server stores the access record and feeds back a corresponding storage result; and displaying the successfully stored data in the storage result to realize the data access based on the virtual equipment.
In an embodiment, the configuration module 30 is further configured to perform real-time statistics on successfully stored data to obtain a corresponding data quantity; and if the data quantity is larger than the preset quantity, resetting the access record of the second equipment to receive the data access request at the next moment.
Other embodiments or methods of implementing the virtual appliance based data access apparatus of the present invention are described with reference to the above method embodiments, and are not intended to be exhaustive.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data access method based on virtual equipment is characterized by comprising the following steps:
when a data access request is received, acquiring data of first equipment according to the data access request;
writing data of the first device into a second device through a first driver, wherein the second device is provided with a multi-service virtual device;
and configuring the data of the first equipment to multi-service virtual equipment through a second driver, and responding to the data access request based on the multi-service virtual equipment so as to realize data access based on the virtual equipment.
2. The virtual device-based data access method according to claim 1, wherein the obtaining data of the first device according to the data access request when receiving the data access request comprises:
acquiring provider identification information and identification code information of a first device and provider identification information and identification code information of a second device when a data access request is received;
and if the supplier identification information of the first equipment is consistent with the supplier identification information of the second equipment and the identification code information of the first equipment is consistent with the identification code information of the second equipment, acquiring the data of the first equipment according to the data access request.
3. The virtual device-based data access method of claim 1, wherein before the multi-service based virtual device responds to the data access request to implement virtual device-based data access, further comprising:
when a data access request is received, acquiring a network connection state with a target cloud server;
if the network connection state is a connection success state, generating preset data request information;
sending the preset data request information to a target cloud server so that the target cloud server can inquire and feed back corresponding equipment data according to the preset data request information;
writing the device data to a second device through a first driver;
and configuring the device data to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device to realize data access based on the virtual device.
4. The virtual device-based data access method according to claim 3, wherein, after generating the preset data request information if the network connection status is a connection success status, the method further comprises:
acquiring identification information of a target cloud server and historical cloud server connection information;
extracting a history cloud server set successfully connected in the history cloud server connection information;
if the identification information of the target cloud server exists in the identification information of the historical cloud server set, sending preset verification information to the target cloud server;
and if the verification success information fed back by the target cloud server is received, executing the step of sending the preset data request information to the target cloud server.
5. The virtual device-based data access method of any one of claims 1 to 4, wherein the writing of the data of the first device to the second device by the first driver comprises:
acquiring equipment data fed back by a target cloud server;
if the data of the first equipment is inconsistent with the equipment data, respectively counting the number of the data of the first equipment and the number of the equipment data;
if the quantity of the data of the first equipment is smaller than that of the equipment data and the data of the first equipment belongs to the equipment data, correcting the data of the first equipment according to the equipment data;
and writing the modified data of the first device into the second device through the first driver.
6. The virtual device-based data access method of any one of claims 1 to 4, wherein configuring data of the first device to a multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device to realize virtual device-based data access comprises:
responding the data access request based on the multi-service virtual equipment to obtain a corresponding access record;
sending the access record to a target cloud server so that the target cloud server stores the access record and feeds back a corresponding storage result;
and displaying the successfully stored data in the storage result to realize the data access based on the virtual equipment.
7. The virtual device-based data access method according to claim 6, wherein after exposing the data successfully stored in the storage result to realize the virtual device-based data access, further comprising:
carrying out real-time statistics on the successfully stored data to obtain the corresponding data quantity;
and if the data quantity is larger than the preset quantity, resetting the access record of the second equipment to receive the data access request at the next moment.
8. A data access apparatus based on a virtual device, the data access apparatus based on the virtual device comprising:
the acquisition module is used for acquiring data of the first equipment according to the data access request when the data access request is received;
the writing module is used for writing the data of the first equipment into the second equipment through a first driver, wherein the second equipment is provided with multi-service virtual equipment;
and the configuration module is used for configuring the data of the first equipment to the multi-service virtual equipment through a second driver, and responding to the data access request based on the multi-service virtual equipment so as to realize data access based on the virtual equipment.
9. A virtual device based data access device, the virtual device based data access device comprising: a memory, a processor, and a virtual device based data access program stored on the memory and executable on the processor, the virtual device based data access program configured to implement the virtual device based data access method of any of claims 1 to 7.
10. A storage medium having stored thereon a virtual device based data access program, which when executed by a processor implements the virtual device based data access method of any one of claims 1 to 7.
CN202110765847.9A 2021-07-06 2021-07-06 Data access method, device, equipment and storage medium based on virtual equipment Active CN113507464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110765847.9A CN113507464B (en) 2021-07-06 2021-07-06 Data access method, device, equipment and storage medium based on virtual equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110765847.9A CN113507464B (en) 2021-07-06 2021-07-06 Data access method, device, equipment and storage medium based on virtual equipment

Publications (2)

Publication Number Publication Date
CN113507464A true CN113507464A (en) 2021-10-15
CN113507464B CN113507464B (en) 2023-10-13

Family

ID=78011809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110765847.9A Active CN113507464B (en) 2021-07-06 2021-07-06 Data access method, device, equipment and storage medium based on virtual equipment

Country Status (1)

Country Link
CN (1) CN113507464B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313318A1 (en) * 2007-06-18 2008-12-18 Vermeulen Allan H Providing enhanced data retrieval from remote locations
CN101788961A (en) * 2009-01-23 2010-07-28 英业达集团(天津)电子技术有限公司 Data access method for carrying out asynchronous request on block equipment
US20130254326A1 (en) * 2012-03-23 2013-09-26 Egis Technology Inc. Electronic device, cloud storage system for managing cloud storage spaces, method and tangible embodied computer readable medium thereof
US20140215574A1 (en) * 2013-01-31 2014-07-31 Google Inc. Accessing objects in hosted storage
CN104205730A (en) * 2013-12-31 2014-12-10 华为技术有限公司 Network element data access method, device and network management system
CN104391737A (en) * 2014-12-15 2015-03-04 成都英力拓信息技术有限公司 Method for optimizing load balance in cloud platform
CN104811473A (en) * 2015-03-18 2015-07-29 华为技术有限公司 Virtual nonvolatile storage medium establishing method and system and management system
CN106030573A (en) * 2014-02-19 2016-10-12 斯诺弗雷克计算公司 Implementation of semi-structured data as a first-class database element
CN106021142A (en) * 2015-03-24 2016-10-12 国际商业机器公司 Method and system for sharing memory between guests
US20170031852A1 (en) * 2015-07-30 2017-02-02 Dell Products L.P. Transaction request optimization for redirected usb devices over a network
US20170054720A1 (en) * 2015-08-21 2017-02-23 International Business Machines Corporation Managing Data Storage in Distributed Virtual Environment
CN109246138A (en) * 2018-10-23 2019-01-18 深信服科技股份有限公司 Resource access method and device, VPN terminal and medium based on Virtual Private Network
US20190065277A1 (en) * 2017-08-31 2019-02-28 Vmware, Inc. Methods, systems and apparatus for client extensibility during provisioning of a composite blueprint
CN109600349A (en) * 2018-07-27 2019-04-09 北京字节跳动网络技术有限公司 A kind of shared implementation method, device, equipment and the medium of business datum
CN109710379A (en) * 2018-12-24 2019-05-03 广州供电局有限公司 Virtual operation management method, apparatus, system, computer equipment and storage medium
CN110493337A (en) * 2019-08-16 2019-11-22 武汉麦品科技有限公司 Data access method, gateway, system, storage medium and device
CN111600943A (en) * 2020-05-09 2020-08-28 上海云轴信息科技有限公司 Method and equipment for acquiring target data
WO2020259418A1 (en) * 2019-06-24 2020-12-30 华为技术有限公司 Data access method, network card and server
CN112235325A (en) * 2020-12-14 2021-01-15 中国电力科学研究院有限公司 Method and system for performing access control on functional module connected with intelligent terminal
US20210026654A1 (en) * 2019-07-26 2021-01-28 Vmware, Inc. User device compliance-profile-based access to virtual sessions and select virtual session capabilities
CN112307122A (en) * 2020-10-30 2021-02-02 杭州海康威视数字技术股份有限公司 Data lake-based data management system and method
CN113032805A (en) * 2021-03-23 2021-06-25 建信金融科技有限责任公司 Data access method and device, electronic equipment and storage medium

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313318A1 (en) * 2007-06-18 2008-12-18 Vermeulen Allan H Providing enhanced data retrieval from remote locations
CN101788961A (en) * 2009-01-23 2010-07-28 英业达集团(天津)电子技术有限公司 Data access method for carrying out asynchronous request on block equipment
US20130254326A1 (en) * 2012-03-23 2013-09-26 Egis Technology Inc. Electronic device, cloud storage system for managing cloud storage spaces, method and tangible embodied computer readable medium thereof
US20140215574A1 (en) * 2013-01-31 2014-07-31 Google Inc. Accessing objects in hosted storage
CN104205730A (en) * 2013-12-31 2014-12-10 华为技术有限公司 Network element data access method, device and network management system
CN106030573A (en) * 2014-02-19 2016-10-12 斯诺弗雷克计算公司 Implementation of semi-structured data as a first-class database element
CN106233255A (en) * 2014-02-19 2016-12-14 斯诺弗雷克计算公司 resource provisioning system and method
CN104391737A (en) * 2014-12-15 2015-03-04 成都英力拓信息技术有限公司 Method for optimizing load balance in cloud platform
CN104811473A (en) * 2015-03-18 2015-07-29 华为技术有限公司 Virtual nonvolatile storage medium establishing method and system and management system
CN106021142A (en) * 2015-03-24 2016-10-12 国际商业机器公司 Method and system for sharing memory between guests
US20170031852A1 (en) * 2015-07-30 2017-02-02 Dell Products L.P. Transaction request optimization for redirected usb devices over a network
US20170054720A1 (en) * 2015-08-21 2017-02-23 International Business Machines Corporation Managing Data Storage in Distributed Virtual Environment
US20190065277A1 (en) * 2017-08-31 2019-02-28 Vmware, Inc. Methods, systems and apparatus for client extensibility during provisioning of a composite blueprint
CN109600349A (en) * 2018-07-27 2019-04-09 北京字节跳动网络技术有限公司 A kind of shared implementation method, device, equipment and the medium of business datum
CN109246138A (en) * 2018-10-23 2019-01-18 深信服科技股份有限公司 Resource access method and device, VPN terminal and medium based on Virtual Private Network
CN109710379A (en) * 2018-12-24 2019-05-03 广州供电局有限公司 Virtual operation management method, apparatus, system, computer equipment and storage medium
WO2020259418A1 (en) * 2019-06-24 2020-12-30 华为技术有限公司 Data access method, network card and server
US20210026654A1 (en) * 2019-07-26 2021-01-28 Vmware, Inc. User device compliance-profile-based access to virtual sessions and select virtual session capabilities
CN110493337A (en) * 2019-08-16 2019-11-22 武汉麦品科技有限公司 Data access method, gateway, system, storage medium and device
CN111600943A (en) * 2020-05-09 2020-08-28 上海云轴信息科技有限公司 Method and equipment for acquiring target data
CN112307122A (en) * 2020-10-30 2021-02-02 杭州海康威视数字技术股份有限公司 Data lake-based data management system and method
CN112235325A (en) * 2020-12-14 2021-01-15 中国电力科学研究院有限公司 Method and system for performing access control on functional module connected with intelligent terminal
CN113032805A (en) * 2021-03-23 2021-06-25 建信金融科技有限责任公司 Data access method and device, electronic equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
胡志凌: "虚拟化存储技术的I/O调度研究", 《科技信息》 *
胡志凌: "虚拟化存储技术的I/O调度研究", 《科技信息》, no. 35, 15 December 2010 (2010-12-15), pages 104 - 105 *
赵国锋;葛丹凤;: "数据虚拟化研究综述", 重庆邮电大学学报(自然科学版), no. 04 *
郝继锋;任晓瑞;胡宁;: "一种基于微核架构的虚拟化设备高效访问模型", 电子技术, no. 07 *

Also Published As

Publication number Publication date
CN113507464B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US20140316990A1 (en) Application store interface for remote management of client devices
CN108718337B (en) Website account login, verification and verification information processing method, device and system
CN113079164B (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
CN114257551A (en) Distributed current limiting method and system and storage medium
CN112738021B (en) Single sign-on method, terminal, application server, authentication server and medium
KR20130008340A (en) Web-based system and method for sharing testing devices
US8621584B2 (en) Credential provider that encapsulates other credential providers
CN113259342A (en) Login verification method, device, computer equipment and medium
CN111782988A (en) Method, device, computer system and storage medium for determining source of application program
CN107517188A (en) A kind of data processing method and device based on Android system
CN114189553B (en) Flow playback method, system and computing device
CN112699034B (en) Virtual login user construction method, device, equipment and storage medium
CN109948332A (en) A kind of physical machine login password remapping method and device
CN106095886B (en) Data processing method and device
CN110673970B (en) Cross-process calling system and method based on web application
WO2020253044A1 (en) Service configuration method and apparatus, and computer device and storage medium
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN110851688A (en) Page request method, device and equipment
CN113507464A (en) Data access method, device, equipment and storage medium based on virtual equipment
CN114185804A (en) Interface testing method and device and terminal equipment
CN105519069A (en) Data processing system, center apparatus and program
CN113656378A (en) Server management method, device and medium
CN111857736A (en) Cloud computing product generation method, device, equipment and storage medium
CN112311593A (en) Cloud platform based webhook notification method, device, equipment and storage medium
CN106453388B (en) The method and device of Website login

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