CN113507464B - 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 PDFInfo
- Publication number
- CN113507464B CN113507464B CN202110765847.9A CN202110765847A CN113507464B CN 113507464 B CN113507464 B CN 113507464B CN 202110765847 A CN202110765847 A CN 202110765847A CN 113507464 B CN113507464 B CN 113507464B
- Authority
- CN
- China
- Prior art keywords
- data
- data access
- cloud server
- equipment
- information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45587—Isolation or security of virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
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 the virtual equipment, wherein the method comprises the following steps: when a data access request is received, acquiring data of the first device according to the data access request; writing data of the first device into the second device through the first driver, wherein the second device is provided with a multi-service virtual device; the data of the first device is configured to the multi-service virtual device through the second driver, and the data access request is responded based on the multi-service virtual device; according to the invention, when the 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, and compared with the prior art, the data access is performed through a single device, and the data access efficiency can be effectively improved.
Description
Technical Field
The present invention relates to the field of virtual devices, 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, there are widely used local computer connected data devices, where the user has an increased requirement for accessing data at the same time, if the user only accesses data through a single device, the user will queue up in the accessing process, and obviously the experience of the user will be reduced.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a data access method, device, equipment and 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, the data access method based on a virtual device comprising the steps of:
When a data access request is received, acquiring data of a first device according to the data access request;
writing the 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 device to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device so as to realize data access based on the virtual device.
Optionally, when receiving a data access request, the acquiring data of the first device according to the data access request includes:
acquiring provider identification information and identification code information of the first device and provider identification information and identification code information of the 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 multi-service based virtual device responds to the data access request to implement the data access based on the 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;
the preset data request information is sent to a target cloud server, so that the target cloud server queries according to the preset data request information and feeds back corresponding device data;
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 so as to realize data access based on the virtual device.
Optionally, after generating the preset data request information if the network connection state is a connection success state, 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 history cloud server set contains the identification information of the target cloud server, preset verification information is sent 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, by the first driver, the data of the first device to the second device includes:
acquiring equipment data fed back by a target cloud server;
if the data of the first equipment are 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 number of the data of the first device is smaller than the number of the data of the device and the data of the first device belongs to the data of the device, correcting the data of the first device according to the data of the device;
and writing the corrected 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 access to the data based on the virtual device, including:
accessing the data in the target virtual device according to the data access request in the second device to obtain a corresponding access record;
The access record is sent to the target cloud server through the 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 so as to realize the access of the data based on the virtual equipment.
Optionally, after the displaying the successfully stored data in the storage result to realize the access to the data 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, in order to achieve the above object, the present invention also proposes a data access apparatus based on a virtual device, the data access apparatus based on a virtual device comprising:
the acquisition module is used for acquiring the 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 device into the second device through a first driver, wherein the second device is provided with a multi-service virtual device;
And the configuration module is used for configuring the data of the first device to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device so as to realize the data access based on the virtual device.
In addition, to achieve the above object, the present invention also proposes a data access apparatus device based on a virtual device, the data access apparatus device based on a virtual device including: a memory, a processor, and a virtual device-based data access apparatus program stored on the memory and executable on the processor, the virtual device-based data access apparatus program configured to implement the virtual device-based data access apparatus method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a virtual device-based data access apparatus program 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 the first equipment are obtained according to the data access request; writing the 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 invention, when the 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, and compared with the prior art, the data access is performed through a single device, and the data access efficiency can be effectively improved.
Drawings
FIG. 1 is a schematic diagram of a data access device based on a virtual device of a hardware runtime environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a virtual device-based data access method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a virtual device-based data access method according to the present invention;
FIG. 4 is a schematic diagram of an access system according to an embodiment of a virtual device-based data access method of the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of a virtual device-based data access method according to the present invention;
fig. 6 is a schematic functional block diagram of a first embodiment of a data access apparatus based on a virtual device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a data access device structure based on a virtual device of a hardware running 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 (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the virtual device-based data access apparatus, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a virtual device-based data access program may be included in the memory 1005 as one storage medium.
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 in the data access apparatus based on the virtual device according to the present invention may be disposed in a data access method based on the virtual device, where the data access apparatus based on the virtual device invokes a data access program based on the virtual device stored in the memory 1005 through the processor 1001, and executes the data access method based on the virtual device according to the embodiment of the present invention.
Based on the hardware structure, the embodiment of the data access method based on the virtual equipment is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a data access method based on a virtual device according to the present invention.
In a first embodiment, the virtual device-based data access method includes the steps of:
step S10, when a data access request is received, acquiring data of a first device according to the data access request.
The execution body of the embodiment may be a data access device based on a virtual device, and the data access device based on the virtual device may be an electronic device such as a personal computer or a mobile phone, and the data access device based on the virtual device is provided with an Application (APP) for accessing data, that is, a data access Application, or may be another device capable of implementing the same or similar functions.
It should be understood that the data access request refers to a request of a data access program in a device to be accessed, where the data access request may be a request sent by different data access programs at the same or different time, and the data of the first device refers to stored data of a device without a built-in virtual structure, where the stored data may be data generated by the first device during operation, or may be data transmitted by other devices.
It can be understood that when the data access request is obtained, the data of the first device is obtained through the driver connected with the first device, wherein the driver may be the driver originally connected with the first device or may be the driver connected with the second device, and when the vendor identification information (Voltage Identification, VID) and the identification code information (Port ID, PID) of the first device and the second device are completely consistent, the data of the first device may be accessed through both the driver of the first device and the driver of the second device, wherein the VID and the PID may each uniquely identify different devices.
In a specific implementation, when a data access request is received, a data access application program obtains data of a first device according to the data access request.
And step S20, writing the 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.
It should be understood that the first driver refers to a driver connected to the second device, and after the data is read from the first device by the first driver, the read data of the first device is written to the second device, where the second device is a virtual device provided with multiple services, and the services in the second device include the services of all other devices except the second device, where the data in the second device may originate from a different device or server, for example, may originate from other devices except the second device, that is, the first device, and may also originate from a target cloud server connected to the 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 are 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 number of the data of the first device is smaller than the number of the data of the device and the data of the first device belongs to the data of the device, correcting the data of the first device according to the data of the device; and writing the corrected data of the first device into the second device through the first driver.
It can be understood that when the 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 at this time is inconsistent with the data stored in the target cloud server database, the data in the first device and the data stored in the target cloud server need to be counted, the number of the data of the first device is smaller than the number 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, the data access application program writes the data of the first device to the second device through the first driver program, wherein the second device is provided with the multi-service virtual device.
And step S30, configuring the data of the first device to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device so as to realize data access based on the virtual device.
It should be understood that after the data of the first device is obtained, the data of the first device is configured into the multi-service virtual device through the second driver, the second driver refers to a driver connected with the data access application program and the second device, the second driver is used for configuring the data of the first device onto the multi-service virtual device, after the data configuration is completed, the multi-service virtual device can respond to the data access request, and the data access application program can access the data in the multi-service virtual device at the moment so as to realize the data access based on the virtual device.
In specific implementation, the data access application program configures the data of the first device to the multi-service virtual device through the second driver, and the multi-service virtual device responds to the data access request to achieve 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: based on the multi-service virtual equipment responding to the data access request, obtaining a corresponding access record; the access records are sent to a target cloud server, so that the target cloud server stores the access records and feeds back corresponding storage results; and displaying the successfully stored data in the storage result so as to realize the access of the data based on the virtual equipment.
It can be understood that the access record refers to a record of the multi-service virtual device accessed by the data access application program, the access record includes access time, specific accessed data and the like, in order to reduce the 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 to the local database, and the data access application program displays the storage result, so that the problem that when the data in the multi-service virtual device is maliciously changed, the specific access object cannot be traced to, and difficulty is brought to the investigation work of the security department.
Further, in order to effectively improve the data access efficiency, 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 displayed for a longer time, that is, the corresponding access record is reset, so that the data access request of the next moment can access the data.
The embodiment obtains the data of the first device according to the data access request when the data access request is received; writing the 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, and compared with the prior art that the data access is performed through a single device, the data access efficiency can be effectively improved.
In an embodiment, as shown in fig. 3, a second embodiment of the virtual device-based data access method according to the present invention is provided based on the first embodiment, and the step S10 includes:
step S101, when a data access request is received, vendor identification information and identification code information of a first device and vendor identification information and identification code information of a second device are acquired.
It should be understood that, upon receiving a data access request, the data access application determines whether vendor identification information and identification code information of the first device are identical to vendor identification information and identification code information of the second device, the vendor identification information being identification information capable of uniquely identifying the first device and the second device, the identification code information being 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 data of the first device, double determination is made by the vendor identification information and the identification code information.
In a specific implementation, the data access application, upon receiving the data access request, obtains vendor identification information and identification code information of the first device and vendor identification information and identification code information of the second device.
Step S102, 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, acquiring the data of the first device according to the data access request.
It is 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 and the identification code information of the second device, the data of the first device is read by the first driver and the data access request, and when either the vendor identification information or the identification code information of the first device and the second device is inconsistent, the data of the first device cannot be acquired by 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 obtains 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 view of an access system according to an embodiment of a data access method based on a virtual device of the present invention, and the conversion system includes an execution body of the method, that is, a data access application program, specifically including: the method comprises the steps of first equipment, a driving program, a first application program, second equipment provided with multi-service virtual equipment, the first driving program, the second driving program and a target cloud server, wherein when the first equipment receives a data access request, the data access request is sent to the data access application program, the data access application program reads data of the first equipment through the first driving program, the data of the first equipment is written into the second equipment, the data of the first equipment is configured to the multi-service virtual equipment through the second driving program, and the data in the multi-service virtual equipment can also be sourced from the 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 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 information of the second device is consistent with the identification information of the first 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 virtual device-based data access method according to the present invention is provided based on the first embodiment, and before the step S30, the method further includes:
step S201, when a data access request is received, a network connection state with a target cloud server is acquired.
It can be understood that the network connection state refers to a network connection state between the data access application program and the target cloud server, including a network state of the data access application program itself and a network state of the target cloud server, where the network connection state is divided into a connection success state and a connection failure state, and only if the network states of the data access application program and the target cloud server are normal, the network connection state between the data access application program and the target cloud server is possible to be the connection success state.
In implementations, upon receiving a data access request, a data access application obtains a network connection status with a target cloud server.
Step S202, if the network connection state is a connection success state, generating preset data request information.
It may be understood that the preset data request information refers to information that the data access application program requests the target cloud server for data query, and when the network connection between the data access application program 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 program generates preset data request information.
Step S203, the preset data request information is sent 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 needing to be set to the multi-service virtual device in the second device, the device data is the same as the type of the data of the first device, after receiving the preset data request information, the target cloud server determines the data needing to be accessed through the preset data request information, and queries the database through the determined data to obtain the corresponding device data.
In a 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 data transmission of the device, 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 history cloud server set contains the identification information of the target cloud server, preset verification information is sent 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 may be understood that the connection information of the history cloud server refers to connection information of the history 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, the identification information may be an ID of the target cloud server or other identification information, this embodiment is not limited, and the ID of the target cloud server is taken as an example to describe the connection information, when the identification information of the history cloud server set includes identification information of the target cloud service, it indicates that data interaction between the target cloud server and the data access application program can be performed, in order to ensure security of data transmission, the data access application program 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 service, and 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.
In step S204, the device data is written to the second device by the first driver.
It may be understood that after obtaining the device data fed back by the target cloud server, the device data is written to the second device by the first driver, where the first driver refers to a driver connected to the data access application and the second device.
In an implementation, the data access application writes the device data to the second device through the first driver.
In step S205, the device data is configured to the multi-service virtual device through the second driver, and the multi-service virtual device is used for responding to the data access request, so as to realize the data access based on the virtual device.
It should be understood that after obtaining the device data fed back by the target cloud server, 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 specific implementation, the data access application program configures the device data to the multi-service virtual device through the second driver, and the multi-service virtual device responds to the data access request to achieve data access based on the virtual device.
In the embodiment, when a data access request is received, a network connection state with a target cloud server is obtained; if the network connection state is a connection success state, generating preset data request information; the preset data request information is sent to a target cloud server, so that the target cloud server queries according to the preset data request information and feeds back corresponding device data; writing the device data to a second device through a first driver; 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; when the network connection state with the target cloud server is in a successful state, corresponding device data is obtained according to preset data request information, the 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 safety of data access can be effectively improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a data access program based on the virtual device, and the data access program based on the virtual device realizes the steps of the data access method based on the virtual device when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted 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 acquiring module 10 is configured to acquire, when receiving a data access request, 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 in a device to be accessed, where the data access request may be a request sent by different data access programs at the same or different time, and the data of the first device refers to stored data of a device without a built-in virtual structure, where the stored data may be data generated by the first device during operation, or may be data transmitted by other devices.
It can be understood that when the data access request is obtained, the data of the first device is obtained through the driver connected with the first device, wherein the driver may be the driver originally connected with the first device or may be the driver connected with the second device, and when the vendor identification information (Voltage Identification, VID) and the identification code information (Port ID, PID) of the first device and the second device are completely consistent, the data of the first device may be accessed through both the driver of the first device and the driver of the second device, wherein the VID and the PID may each uniquely identify different devices.
In a specific implementation, when a data access request is received, a data access application program obtains data of a first device according to the data access request.
And the writing module 20 is configured to write, by using a first driver, data of the first device to the second device, 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 the second device, and after the data is read from the first device by the first driver, the read data of the first device is written to the second device, where the second device is a virtual device provided with multiple services, and the services in the second device include the services of all other devices except the second device, where the data in the second device may originate from a different device or server, for example, may originate from other devices except the second device, that is, the first device, and may also originate from a target cloud server connected to the 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 are 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 number of the data of the first device is smaller than the number of the data of the device and the data of the first device belongs to the data of the device, correcting the data of the first device according to the data of the device; and writing the corrected data of the first device into the second device through the first driver.
It can be understood that when the 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 at this time is inconsistent with the data stored in the target cloud server database, the data in the first device and the data stored in the target cloud server need to be counted, the number of the data of the first device is smaller than the number 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, the data access application program writes the data of the first device to the second device through the first driver program, wherein the second device is provided with the multi-service virtual device.
And the configuration module 30 is configured to configure the data of the first device to a multi-service virtual device through a second driver, and respond to the data access request based on the multi-service virtual device so as to realize data access based on the virtual device.
It should be understood that after the data of the first device is obtained, the data of the first device is configured into the multi-service virtual device through the second driver, the second driver refers to a driver connected with the data access application program and the second device, the second driver is used for configuring the data of the first device onto the multi-service virtual device, after the data configuration is completed, the multi-service virtual device can respond to the data access request, and the data access application program can access the data in the multi-service virtual device at the moment so as to realize the data access based on the virtual device.
In specific implementation, the data access application program configures the data of the first device to the multi-service virtual device through the second driver, and the multi-service virtual device responds to the data access request to achieve 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: based on the multi-service virtual equipment responding to the data access request, obtaining a corresponding access record; the access records are sent to a target cloud server, so that the target cloud server stores the access records and feeds back corresponding storage results; and displaying the successfully stored data in the storage result so as to realize the access of the data based on the virtual equipment.
It can be understood that the access record refers to a record of the multi-service virtual device accessed by the data access application program, the access record includes access time, specific accessed data and the like, in order to reduce the 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 to the local database, and the data access application program displays the storage result, so that the problem that when the data in the multi-service virtual device is maliciously changed, the specific access object cannot be traced to, and difficulty is brought to the investigation work of the security department.
Further, in order to effectively improve the data access efficiency, 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 displayed for a longer time, that is, the corresponding access record is reset, so that the data access request of the next moment can access the data.
The embodiment obtains the data of the first device according to the data access request when the data access request is received; writing the 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, and compared with the prior art that the data access is performed through a single device, the data access efficiency can be effectively improved.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the virtual device-based data access method provided in any embodiment of the present invention, which is not described herein.
In an embodiment, the obtaining module 10 is further configured to obtain, when receiving the data access request, vendor identification information and identification code information of the first device and vendor identification information and identification code information of the 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 are 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 number of the data of the first device is smaller than the number of the data of the device and the data of the first device belongs to the data of the device, correcting the data of the first device according to the data of the device; and writing the corrected data of the first device into the second device through the first driver.
In an embodiment, the configuration module 30 is further configured to obtain a network connection state with the target cloud server when receiving the data access request; if the network connection state is a connection success state, generating preset data request information; the preset data request information is sent to a target cloud server, so that the target cloud server queries according to the preset data request information and feeds back corresponding device data; 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 so as to realize data access based on the virtual device.
In an embodiment, the configuration module 30 is further configured to obtain identification information of the 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 history cloud server set contains the identification information of the target cloud server, preset verification information is sent 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; the access records are sent to a target cloud server, so that the target cloud server stores the access records and feeds back corresponding storage results; and displaying the successfully stored data in the storage result so as to realize the access of the data based on the virtual equipment.
In an embodiment, the configuration module 30 is further configured to perform real-time statistics on the successfully stored data to obtain a corresponding data amount; 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 of the virtual device-based data access apparatus or the implementation method thereof according to the present invention may refer to the above-mentioned method embodiments, and are not repeated here.
Furthermore, it should 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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (6)
1. A data access method based on a virtual device, wherein the data access method based on the virtual device comprises the following steps:
when a data access request is received, acquiring data of a first device according to the data access request;
when receiving a data access request, acquiring data of a first device according to the data access request, including:
acquiring provider identification information and identification code information of the first device and provider identification information and identification code information of the second device when a data access request is received;
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 data of the first device according to the data access request, wherein the supplier identification information refers to identification information capable of uniquely identifying the first device and the second device, and the identification code information refers to identification information capable of uniquely identifying the first device and the second device;
writing the 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 data of the first device is configured to a multi-service virtual device through a second driver, and the data access request is responded by the multi-service virtual device so as to realize data access based on the virtual device;
before the multi-service-based virtual device responds to the data access request to realize the data access based on the virtual device, the method further comprises the following steps:
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;
the preset data request information is sent to a target cloud server, so that the target cloud server queries according to the preset data request information and feeds back corresponding device data;
writing the device data to a second device through a first driver;
the device data is configured to the multi-service virtual device through a second driver, and the multi-service virtual device is used for responding to the data access request so as to realize data access based on the virtual device;
if the network connection state is a connection success state, after generating the preset data request information, 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 history cloud server set contains the identification information of the target cloud server, preset verification information is sent to the target cloud server;
if the verification success information fed back by the target cloud server is received, the step of sending the preset data request information to the target cloud server is executed;
the writing, by the first driver, the data of the first device to the second device includes:
acquiring equipment data fed back by a target cloud server;
if the data of the first equipment are 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 number of the data of the first equipment is smaller than the number of the data of the equipment and the data of the first equipment belongs to the data of the equipment, correcting the data of the first equipment according to the data of the equipment;
and writing the corrected data of the first device into the second device through the first driver.
2. The virtual device-based data access method of claim 1, wherein configuring the data of the first device to the multi-service virtual device by the second driver, responding to the data access request based on the multi-service virtual device, to achieve the virtual device-based data access, comprises:
based on the multi-service virtual equipment responding to the data access request, obtaining a corresponding access record;
the access records are sent to a target cloud server, so that the target cloud server stores the access records and feeds back corresponding storage results;
and displaying the successfully stored data in the storage result so as to realize the access of the data based on the virtual equipment.
3. The method for accessing data based on a virtual device according to claim 2, wherein after the displaying the successfully stored data in the storage result to realize the access to the data based on the virtual device, further comprises:
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.
4. A data access apparatus based on a virtual device, the data access apparatus based on a virtual device comprising:
the acquisition module is used for acquiring the data of the first equipment according to the data access request when the data access request is received;
the obtaining module is further configured to obtain, when receiving a data access request, data of the first device according to the data access request, where the obtaining module includes: acquiring provider identification information and identification code information of the first device and provider identification information and identification code information of the second device when a data access request is received; 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 data of the first device according to the data access request, wherein the supplier identification information refers to identification information capable of uniquely identifying the first device and the second device, and the identification code information refers to identification information capable of uniquely identifying the first device and the second device;
the writing module is used for writing the data of the first device into the second device through a first driver, wherein the second device is provided with a multi-service virtual device;
The configuration module is used for configuring the data of the first device to the multi-service virtual device through a second driver, and responding to the data access request based on the multi-service virtual device so as to realize the data access based on the virtual device;
the configuration module is further used for acquiring a network connection state with the target cloud server when the data access request is received; if the network connection state is a connection success state, generating preset data request information; the preset data request information is sent to a target cloud server, so that the target cloud server queries according to the preset data request information and feeds back corresponding device data; writing the device data to a second device through a first driver; the device data is configured to the multi-service virtual device through a second driver, and the multi-service virtual device is used for responding to the data access request so as to realize data access based on the virtual device;
the configuration module is also used for acquiring identification information of the 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 history cloud server set contains the identification information of the target cloud server, preset verification information is sent to the target cloud server; if the verification success information fed back by the target cloud server is received, the step of sending the preset data request information to the target cloud server is executed;
The writing module is also used for acquiring the equipment data fed back by the target cloud server; if the data of the first equipment are 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 number of the data of the first equipment is smaller than the number of the data of the equipment and the data of the first equipment belongs to the data of the equipment, correcting the data of the first equipment according to the data of the equipment; and writing the corrected data of the first device into the second device through the first driver.
5. 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 one of claims 1 to 3 when executed by the processor.
6. 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 3.
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 CN113507464A (en) | 2021-10-15 |
CN113507464B true 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 (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101788961A (en) * | 2009-01-23 | 2010-07-28 | 英业达集团(天津)电子技术有限公司 | Data access method for carrying out asynchronous request on block equipment |
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 |
CN106021142A (en) * | 2015-03-24 | 2016-10-12 | 国际商业机器公司 | Method and system for sharing memory between guests |
CN106030573A (en) * | 2014-02-19 | 2016-10-12 | 斯诺弗雷克计算公司 | Implementation of semi-structured data as a first-class database element |
CN109246138A (en) * | 2018-10-23 | 2019-01-18 | 深信服科技股份有限公司 | Resource access method and device, VPN terminal and medium based on Virtual Private Network |
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 |
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 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8903938B2 (en) * | 2007-06-18 | 2014-12-02 | Amazon Technologies, Inc. | Providing enhanced data retrieval from remote locations |
TWI507891B (en) * | 2012-03-23 | 2015-11-11 | Egis Technology Inc | Electronic device, cloud storage system for managing cloud storage spaces, method and computer program product thereof |
US9154502B2 (en) * | 2013-01-31 | 2015-10-06 | Google Inc. | Accessing objects in hosted storage |
US9952992B2 (en) * | 2015-07-30 | 2018-04-24 | Dell Products L.P. | Transaction request optimization for redirected USB devices over a network |
US10129357B2 (en) * | 2015-08-21 | 2018-11-13 | International Business Machines Corporation | Managing data storage in distributed virtual environment |
US11080098B2 (en) * | 2017-08-31 | 2021-08-03 | Vmware, Inc. | Methods, systems and apparatus for client extensibility during provisioning of a composite blueprint |
US11163584B2 (en) * | 2019-07-26 | 2021-11-02 | Vmware Inc. | User device compliance-profile-based access to virtual sessions and select virtual session capabilities |
-
2021
- 2021-07-06 CN CN202110765847.9A patent/CN113507464B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101788961A (en) * | 2009-01-23 | 2010-07-28 | 英业达集团(天津)电子技术有限公司 | Data access method for carrying out asynchronous request on block equipment |
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 |
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 |
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 (3)
Title |
---|
一种基于微核架构的虚拟化设备高效访问模型;郝继锋;任晓瑞;胡宁;;电子技术(第07期);全文 * |
数据虚拟化研究综述;赵国锋;葛丹凤;;重庆邮电大学学报(自然科学版)(第04期);全文 * |
虚拟化存储技术的I/O调度研究;胡志凌;《科技信息》;20101215(第35期);第104-105页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113507464A (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959430B (en) | Advertisement promotion data acquisition method, device and equipment | |
CN107656968B (en) | Method and system for exporting large-batch business data | |
US8660833B2 (en) | Method, computer program product and apparatus for providing an interactive network simulator | |
CN104348822A (en) | Method and device for authentication of Internet account number and server | |
US20080244616A1 (en) | System and method for message lifetime management | |
WO2019041759A1 (en) | Server, blockchain signature verification decoding method and storage medium | |
CN109040255B (en) | Internet of things equipment access method, device, equipment and storage medium | |
CN112631911A (en) | Automatic testing method and device, computer equipment and storage medium | |
CN110727523B (en) | Service request processing method, service request processing device and readable storage medium | |
CN113656357A (en) | File management method, device, system and storage medium | |
CN107517188A (en) | A kind of data processing method and device based on Android system | |
CN109948332A (en) | A kind of physical machine login password remapping method and device | |
CN113507464B (en) | Data access method, device, equipment and storage medium based on virtual equipment | |
CN110933070A (en) | User identification method, system, equipment and computer readable storage medium | |
CN114356970B (en) | Storage system resource caching method and device | |
CN113495498A (en) | Simulation method, simulator, device, and medium for hardware device | |
CN111124907A (en) | Mobile phone game testing method and device and server | |
CN111338642A (en) | Method, device, terminal and storage medium for determining application downloading path | |
CN116186046B (en) | Device data modification method and device, computer device and storage medium | |
CN111131369A (en) | APP use condition transmission method and device, electronic equipment and storage medium | |
CN115604041B (en) | Security agent method, system, apparatus, computer device, and storage medium | |
CN114281849B (en) | Data query method and device | |
CN112688980B (en) | Resource distribution method and device, and computer equipment | |
EP4191946A1 (en) | Cloud environment security tool | |
CN112583770B (en) | Data transmission method, device, storage medium and equipment |
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 |