Remote analysis method and system for plug-in storage device, and electronic device
Patent Information
- Application Number
- CN202510525274.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2026-10-27
AI Technical Summary
[0014]本申请提供的插拔式存储设备的远程分析方法,在插入有至少一个插拔式存储设备的第一终端中为每一插拔式存储设备安装相应的存储设备驱动程序,并将插入的插拔式存储设备添加至分享设备列表。该分享设备列表用于向第二终端进行展示,以使第二终端可以在分享设备列表中选择想要申请连接的目标存储设备并生成连接请求。第一终端基于连接请求断开目标存储设备的存储设备驱动程序,并将连接反馈发送至第二终端,以使第二终端可以创建与目标存储设备对应的虚拟目标存储设备驱动程序,并基于对虚拟目标存储设备驱动程序的操作生成访问请求。第一终端基于访问请求读取相应的目标存储设备的相应数据,并将相应数据发送至第二终端。通过上述方式,第二终端的用户可以远程访问第一终端的插拔式存储设备,获取插拔式存储设备的相应数据进行分析,从而对插拔式存储设备是否存在故障等情况进行排查,实现对插拔式存储设备的远程分析,从而提高分析维护效率。
Smart Images

Figure CN122991244A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of storage device technology, and in particular to a remote analysis method and system for a pluggable storage device, as well as an electronic device. Background Technology
[0002] Plug-in storage devices offer flexibility and scalability, allowing for flexible expansion of storage capacity in electronic devices. Currently, when a plug-in storage device fails, users can only provide the service provider with the faulty device and fault information for analysis and maintenance. This fault analysis method is severely limited by geographical location and has low efficiency. Summary of the Invention
[0003] The purpose of this application is to provide a remote analysis method, system, and electronic device for pluggable storage devices, which enables remote analysis of pluggable storage devices, thereby improving analysis and maintenance efficiency.
[0004] In a first aspect, this application provides a remote analysis method for a pluggable storage device, applied to a first terminal. The remote analysis method includes: in response to the insertion operation of at least one pluggable storage device, installing a corresponding storage device driver and adding the inserted pluggable storage device to a shared device list displayed to a second terminal, wherein the first terminal and the second terminal are connected via a server, and the first terminal and the second terminal are remote devices to each other; in response to receiving a connection request, disconnecting the corresponding storage device driver for the target storage device corresponding to the connection request, and returning connection feedback to the second terminal to enable the second terminal to create a virtual target storage device driver, wherein the connection request is a request from the second terminal to select the target storage device based on the shared device list and apply to establish a connection with the target storage device; in response to receiving an access request, reading corresponding data of the target storage device based on the access request, and returning the read corresponding data to the second terminal, wherein the access request is generated by the second terminal based on an operation on the virtual target storage device driver.
[0005] In some embodiments, the remote analysis method further includes: sending a registration request to the server; receiving a server identification code returned by the server based on the registration request, wherein the second terminal establishes a connection with the first terminal through the server based on the server identification code.
[0006] In some embodiments, adding the inserted pluggable storage device to the shared device list displayed to the second terminal includes: sending a new storage device registration request to the server so that the server adds information about the newly inserted pluggable storage device to the shared device list and displays it to the second terminal.
[0007] In some embodiments, the remote analysis method further includes: in response to detecting a sharing end state, releasing control of the target storage device and attempting to reinstall the storage device driver corresponding to the target storage device; wherein the sharing end state includes unplugging the target storage device, receiving a sharing abort command and / or a connection disconnect command.
[0008] Secondly, this application provides a remote analysis method for a pluggable storage device, applied to a second terminal. The remote analysis method includes: receiving a shared device list, wherein the shared device list includes information on at least one pluggable storage device inserted on a first terminal, the first terminal and the second terminal are connected via a server, and the first terminal and the second terminal are remote devices to each other; selecting a target storage device based on the shared device list and generating a connection request to establish a connection with the target storage device, sending the connection request to the first terminal, and creating a virtual target storage device driver based on the returned connection feedback, wherein the virtual target storage device driver is a virtual driver corresponding to the target storage device; generating an access request based on the operation of the virtual target storage device driver, sending the access request to the first terminal, and receiving corresponding data read by the first terminal from the target storage device based on the access request.
[0009] In some embodiments, the remote analysis method further includes: sending the corresponding data back to the corresponding virtual target storage driver of the corresponding target storage device.
[0010] In some embodiments, the remote analysis method further includes: deleting the corresponding virtual target storage driver for the target storage device in response to detecting a sharing end state; wherein the sharing end state includes unplugging the target storage device, receiving a sharing abort instruction, and / or a connection disconnection instruction.
[0011] Thirdly, this application provides a remote analysis method for pluggable storage devices, applied to a server. The remote analysis method includes: sending a shared device list to a second terminal, wherein the shared device list includes information on at least one pluggable storage device inserted on a first terminal, the first terminal and the second terminal are connected through the server, and the first terminal and the second terminal are remote devices to each other; receiving a connection request sent by the second terminal and sending it to the first terminal, and sending connection feedback returned by the first terminal to the second terminal, so that the second terminal creates a virtual target storage device driver based on the connection feedback, wherein the connection request is a request from the second terminal to select the target storage device based on the shared device list and apply to establish a connection with the target storage device; receiving an access request sent by the second terminal and sending it to the first terminal, and sending corresponding data returned by the first terminal to the second terminal, wherein the access request is generated by the second terminal based on the operation of the virtual target storage device driver, and the corresponding data is obtained by the first terminal reading the target storage device based on the access request.
[0012] Fourthly, this application provides a remote analysis system for pluggable storage devices, including a first terminal, a second terminal, and a server. The first terminal and the second terminal are connected through the server, and the first terminal and the second terminal are remote devices to each other. The first terminal is used to install a corresponding storage device driver in response to the insertion operation of at least one pluggable storage device, and add the inserted pluggable storage device to a shared device list displayed to the second terminal. The server is used to send the shared device list to the second terminal. The second terminal is used to select a target storage device based on the shared device list and generate a connection request to establish a connection with the target storage device, and send the connection request to the server. The server is used to send the connection request to the first terminal. The terminal is used to disconnect the corresponding storage device driver for the target storage device corresponding to the connection request and return the connection feedback to the server; the server is used to send the connection feedback to the second terminal; the second terminal is used to create a virtual target storage device driver based on the connection feedback, generate an access request based on the operation of the virtual target storage device driver, and send the access request to the server, wherein the virtual target storage device driver is a virtual driver corresponding to the target storage device; the server is used to send the access request to the first terminal; the first terminal is used to read the corresponding data of the target storage device based on the access request and return the read corresponding data to the server; the server is used to send the corresponding data to the second terminal.
[0013] Fifthly, this application provides an electronic device, comprising: a memory for storing program instructions; and a processor for executing the program instructions to implement the remote analysis method for a pluggable storage device in any of the above embodiments.
[0014] The remote analysis method for pluggable storage devices provided in this application involves installing a corresponding storage device driver for each pluggable storage device in a first terminal with at least one pluggable storage device inserted, and adding the inserted pluggable storage devices to a shared device list. This shared device list is displayed to a second terminal, allowing the second terminal to select a target storage device from the list and generate a connection request. Based on the connection request, the first terminal disconnects the storage device driver of the target storage device and sends a connection feedback to the second terminal. This allows the second terminal to create a virtual target storage device driver corresponding to the target storage device and generate an access request based on operations on the virtual target storage device driver. Based on the access request, the first terminal reads the corresponding data from the target storage device and sends the data to the second terminal. Through this method, a user on the second terminal can remotely access the pluggable storage devices on the first terminal, obtain and analyze the corresponding data, and troubleshoot any malfunctions or other issues with the pluggable storage devices. This remote analysis of the pluggable storage devices improves analysis and maintenance efficiency. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A schematic diagram of an embodiment of the remote analysis system for the pluggable storage device provided in this application.
[0017] Figure 2 This is a flowchart illustrating an embodiment of the remote analysis method for a pluggable storage device provided in this application.
[0018] Figure 3 A flowchart illustrating another embodiment of the remote analysis method for the pluggable storage device provided in this application.
[0019] Figure 4 This is a flowchart illustrating another embodiment of the remote analysis method for a pluggable storage device provided in this application.
[0020] Figure 5A timing diagram illustrating an embodiment of the remote analysis method for a pluggable storage device provided in this application.
[0021] Figure 6 A schematic diagram of the structure of an embodiment of the electronic device provided in this application. Detailed Implementation
[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0024] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0025] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0026] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0027] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0028] In the description of the embodiments of this application, unless otherwise expressly specified and limited, the technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0029] Please refer to Figure 1 , Figure 1 This is a schematic diagram of an embodiment of the remote analysis system for a pluggable storage device provided in this application. The remote analysis system 1 for the pluggable storage device includes a first terminal 11, a second terminal 12, and a server 13. The first terminal 11 and the second terminal 12 are connected through the server 13, and the first terminal 11 and the second terminal 12 are remote devices to each other. It is understood that both the first terminal 11 and the second terminal 12 are communicatively connected to the server 13, and the server 13 can relay data transmission between the first terminal 11 and the second terminal 12.
[0030] Please refer to the following: Figure 1 and Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the remote analysis method for a pluggable storage device provided in this application. The remote analysis method is applied to a first terminal 11 and includes the following steps.
[0031] In step S101, in response to the insertion operation of at least one pluggable storage device, the corresponding storage device driver is installed, and the inserted pluggable storage device is added to the shared device list displayed to the second terminal.
[0032] In response to the insertion of at least one pluggable storage device 14, the first terminal 11 installs a corresponding storage device driver for each of the at least one pluggable storage device 14. The first terminal 11 adds the inserted pluggable storage device 14 to a shared device list, which is used to display the currently inserted pluggable storage device 14 to the second terminal 12. The first terminal 11 and the second terminal 12 are connected via a server 13, and are remote devices to each other. There is a one-to-one correspondence between the first terminal 11 and the shared device list. The pluggable storage devices 14 include, but are not limited to, USB devices, Secure Digital Cards (SD cards), Solid State Drives (SSDs), and Portable Solid State Drives (PSSDs). When the pluggable storage device 14 is a USB device, the first terminal 11 can be an electronic device with USB HOST functionality, such as a computer or embedded device.
[0033] In some embodiments, after the first terminal 11 installs the storage device driver for each pluggable storage device 14, it mounts the storage device driver.
[0034] In step S102, in response to receiving a connection request, the corresponding storage device driver for the target storage device corresponding to the connection request is disconnected, and the connection feedback is returned to the second terminal so that the second terminal can create a virtual target storage device driver.
[0035] The first terminal 11 receives a connection request, which is a request from the second terminal 12 to select a target storage device based on the shared device list and apply to establish a connection with the target storage device. It is understood that the second terminal 12 can filter the pluggable storage device 14 through the shared device list, and the selected pluggable storage device 14 is the target storage device.
[0036] In response to receiving a connection request, the first terminal 11 disconnects the corresponding storage device driver for the target storage device and returns the connection feedback for the target storage device to the second terminal 12, so that the second terminal 12 can create a virtual target storage device driver corresponding to the target storage device. The connection feedback includes whether the target storage device's storage device driver has been disconnected. If the target storage device's storage device driver has been disconnected, it means that the second terminal 12 can exclusively access the target storage device; if the target storage device's storage device driver is still mounted on the first terminal 11, it means that the second terminal 12 does not have access.
[0037] Step S103: In response to receiving an access request, read the corresponding data from the target storage device based on the access request, and return the read data to the second terminal.
[0038] First terminal 11 receives an access request, which is generated by second terminal 12 based on operations on the virtual target storage device driver. In response to receiving the access request, first terminal 11 reads the corresponding data from the target storage device based on the access request and returns the read data to second terminal 12.
[0039] In some embodiments, the first terminal 11 reading the corresponding data of the target storage device based on the access request can be as follows: the first terminal 11 forwards the access request to the target storage device, and the target storage device sends the corresponding data back to the first terminal 11 based on the access request.
[0040] This application installs a corresponding storage device driver for each pluggable storage device 14 in a first terminal 11 where at least one pluggable storage device 14 is inserted, and adds the inserted pluggable storage device 14 to a shared device list. This shared device list is displayed to a second terminal 12, allowing the second terminal 12 to select the target storage device for which it wishes to connect and generate a connection request. Based on the connection request, the first terminal 11 disconnects the storage device driver of the target storage device and sends a connection feedback to the second terminal 12, enabling the second terminal 12 to create a virtual target storage device driver corresponding to the target storage device and generate an access request based on operations on the virtual target storage device driver. Based on the access request, the first terminal 11 reads the corresponding data from the target storage device and sends the data to the second terminal 12. Through this method, the first terminal 11 can remotely share the pluggable storage device 14 with the second terminal 12, allowing the second terminal 12 to obtain and analyze the corresponding data from the pluggable storage device 14, thereby troubleshooting for potential faults in the pluggable storage device 14 and achieving remote analysis of the pluggable storage device 14, thus improving analysis and maintenance efficiency.
[0041] In some embodiments, step S101, which adds the inserted pluggable storage device to the shared device list displayed to the second terminal, includes: sending a new storage device registration request to the server so that the server adds the information of the newly inserted pluggable storage device to the shared device list and displays it to the second terminal.
[0042] The first terminal 11 obtains information about the newly inserted pluggable storage device 14 and sends a new storage device registration application to the server 13, so that the server 13 adds the corresponding information to the shared device list and displays the shared device list to the second terminal 12. The new storage device registration application includes information about the newly inserted pluggable storage device 14.
[0043] In some embodiments, the remote analysis method further includes: sending a registration request to the server; and receiving a server identification code returned by the server based on the registration request.
[0044] Upon startup, the first terminal 11 sends a registration request to the server 13. The server 13 generates a server identification code corresponding to the first terminal 11 based on the registration request and sends the server identification code to the first terminal 11. Each server identification code corresponds one-to-one with the first terminal 11. The first terminal 11 receives the returned server identification code. The user of the first terminal 11 can send the server identification code to the second terminal 12 via email, message, or other means, enabling the second terminal 12 to establish a connection with the first terminal 11 through the server 13 based on the server identification code. For example, the second terminal 12 sends the server identification code to the server 13, and the server 13 matches the second terminal 12 with the corresponding first terminal 11 based on the server identification code, thus establishing a connection between the first terminal 11 and the second terminal 12. The connection established between the first terminal 11 and the second terminal 12 can be a virtual network connection.
[0045] In some embodiments, the remote analysis method further includes: in response to detecting a sharing end state, releasing control of the target storage device and attempting to reinstall the storage device driver corresponding to the target storage device.
[0046] During data transmission between the first terminal 11 and the second terminal 12 via the server 13, the first terminal 11 can detect whether a sharing end state exists. Sharing end states include unplugging the target storage device, receiving a sharing stop command, and / or a connection disconnect command. Unplugging the target storage device means the target storage device is removed from the first terminal 11; the sharing stop command can be a command generated on the first terminal 11 based on user actions; the connection disconnect command can be generated by the second terminal 12 and sent to the server 13, which then sends it to the first terminal 11.
[0047] In some embodiments, in response to detecting the receipt of a sharing abort command and / or a connection disconnect command, the first terminal 11 may remount the storage device driver of the target storage device to release control over the target storage device.
[0048] In some embodiments, in response to detecting the removal of the target storage device, the first terminal 11 may delete the storage device driver corresponding to the target storage device and attempt to reinstall the storage device driver corresponding to the target storage device.
[0049] Please refer to the following: Figure 1 and Figure 3 , Figure 3This is a flowchart illustrating another embodiment of the remote analysis method for a pluggable storage device provided in this application. The remote analysis method is applied to a second terminal 12 and includes the following steps.
[0050] Step S201: Receive the list of shared devices.
[0051] The second terminal 12 receives the shared device list. The shared device list includes information about at least one pluggable storage device 14 inserted into the first terminal 11. The first terminal 11 and the second terminal 12 are connected via a server 13, and are remote devices to each other. The information of the pluggable storage device 14 includes, but is not limited to, product information, manufacturer information, device description, vendor ID (VID) / product ID (PID), etc. To distinguish pluggable storage devices 14 that may have the same information, the information of the pluggable storage device 14 may also include the location information of the pluggable storage device 14, such as which interface the pluggable storage device 14 is inserted into on the first terminal 11.
[0052] In some embodiments, after the second terminal 12 establishes a connection with the first terminal 11 through the server 13, the server 13 sends the list of sharing devices corresponding to the first terminal 11 to the second terminal 12. Alternatively, the second terminal 12 sends a retrieval command to the server 13, and the server 13 sends the list of sharing devices corresponding to the first terminal 11 to the second terminal 12 based on the retrieval command.
[0053] Step S202: Select the target storage device based on the shared device list and generate a connection request to establish a connection with the target storage device. Send the connection request to the first terminal and create a virtual target storage device driver based on the returned connection feedback.
[0054] The second terminal 12 can learn about the pluggable storage devices 14 on the first terminal 11 through the shared device list. Based on the shared device list, the second terminal 12 selects at least one pluggable storage device 14 as the target storage device, generates a connection request to establish a connection with the target storage device, and sends the connection request to the first terminal 11 through the server 13. The connection request includes information about the target storage device.
[0055] The second terminal 12 receives the returned connection feedback and obtains the disconnected target storage device from the connection feedback. Based on the information of the disconnected target storage device, it creates a virtual target storage device driver. The virtual target storage device driver is a virtual driver corresponding to the target storage device. The virtual target storage device driver is automatically installed by the second terminal 12, eliminating the need to handle the underlying communication protocol and improving creation efficiency.
[0056] Step S203: Generate an access request based on the operation of the virtual target storage device driver, send the access request to the first terminal, and receive the corresponding data read by the first terminal from the target storage device based on the access request.
[0057] The user of the second terminal 12 can operate the virtual target storage device driver. Based on the operation of the virtual target storage device driver, the second terminal 12 generates an access request and sends the access request to the first terminal 11 via the server 13. Each access request corresponds one-to-one with a target storage device and includes at least one URB (USB request block). The second terminal 12 receives the corresponding data, which is then read from the target storage device by the first terminal 11 based on the access request.
[0058] This application obtains information about the pluggable storage device 14 inserted on the first terminal 11 by sharing a device list. Based on the shared device list, a target storage device to be connected to can be selected to generate a connection request. The second terminal 12 sends the connection request to the first terminal 11, obtains the connection feedback from the target storage device, and creates a target storage device driver based on the connection feedback. When the user of the second terminal 12 operates the virtual target storage device driver, the second terminal 12 generates an access request and sends it to the first terminal 11 to remotely access the pluggable storage device 14 on the first terminal 11 and obtain the corresponding data from the target storage device. The second terminal 12 can analyze the target storage device based on the corresponding data to troubleshoot whether the target storage device has any faults, thereby realizing remote analysis of the pluggable storage device 14 and improving analysis and maintenance efficiency.
[0059] In some embodiments, the remote analysis method further includes: sending the corresponding data back to the corresponding virtual target storage driver of the corresponding target storage device.
[0060] The second terminal 12 sends the received data back to the virtual target storage driver corresponding to the target storage device.
[0061] In some embodiments, the remote analysis method further includes: deleting the corresponding virtual target storage driver for the target storage device in response to detecting a sharing end state.
[0062] During data transmission between the first terminal 11 and the second terminal 12 via the server 13, the second terminal 12 can detect whether a sharing termination state exists. Sharing termination states include unplugging the target storage device, receiving a sharing abort command, and / or a connection disconnect command. Unplugging the target storage device means the target storage device is removed from the first terminal 11, and the first terminal 11 can notify the second terminal 12 via connection feedback. The sharing abort command can be generated by the first terminal 11 and sent to the server 13, which then sends it to the second terminal 12. The connection disconnect command can be generated by the second terminal 12 based on a failed access request, or it can be generated by the second terminal 12 based on user actions.
[0063] In response to detecting the end-of-share status, the second terminal 12 deletes the corresponding virtual target storage driver for the target storage device. Unless the virtual target storage driver for the target storage device is recreated, the second terminal 12 can no longer remotely access the target storage device.
[0064] Please refer to the following: Figure 1 and Figure 4 , Figure 4 This is a flowchart illustrating another embodiment of the remote analysis method for a pluggable storage device provided in this application. The remote analysis method is applied to server 13 and includes the following steps.
[0065] Step S301: Send the list of shared devices to the second terminal.
[0066] Server 13 sends a list of shared devices to the second terminal 12. The list of shared devices includes information on at least one pluggable storage device 14 inserted on the first terminal 11. The first terminal 11 and the second terminal 12 are connected through server 13, and the first terminal 11 and the second terminal 12 are remote devices to each other.
[0067] In some embodiments, in response to a new storage device registration request sent by the first terminal 11, the server 13 adds the corresponding information to the shared device list to update the shared device list.
[0068] Step S302: Receive the connection request sent by the second terminal and send it to the first terminal, and send the connection feedback returned by the first terminal to the second terminal, so that the second terminal can create a virtual target storage device driver based on the connection feedback.
[0069] Server 13 receives a connection request from second terminal 12 and forwards the request to first terminal 11. The connection request is a request from second terminal 12 to select a target storage device based on the shared device list and to establish a connection with the target storage device.
[0070] Server 13 receives connection feedback returned by first terminal 11 and sends the connection feedback to second terminal 12, so that second terminal 12 creates a virtual target storage device driver based on the connection feedback.
[0071] Step S303: Receive the access request sent by the second terminal and send it to the first terminal, and send the corresponding data returned by the first terminal to the second terminal.
[0072] Server 13 receives an access request from second terminal 12 and forwards the access request to first terminal 11. The access request is generated by second terminal 12 based on its operation of the virtual target storage device driver.
[0073] Server 13 receives the corresponding data returned by first terminal 11 and sends the corresponding data to second terminal 12. The corresponding data is obtained by first terminal 11 from the target storage device based on the access request.
[0074] This application establishes a network connection between a first terminal 11 and a second terminal 12 through a server 13. The server 13 maintains the pluggable storage device 14 of the first terminal 11 in a shared device list. When the second terminal 12 establishes a connection with the first terminal 11 through the server 13, the server 13 can send the corresponding shared device list to the second terminal 12. The server 13 relays various requests and data between the first terminal 11 and the second terminal 12, enabling remote access between them.
[0075] Please refer to the following: Figure 1 and Figure 5 , Figure 5 A timing diagram illustrating an embodiment of the remote analysis method for a pluggable storage device provided in this application.
[0076] The first terminal 11 is used to install the corresponding storage device driver in response to the insertion operation of at least one pluggable storage device 14, and add the inserted pluggable storage device 14 to the shared device list displayed to the second terminal 12.
[0077] Server 13 is used to send a list of shared devices to the second terminal 12.
[0078] The second terminal 12 is used to select the target storage device based on the shared device list and generate a connection request to establish a connection with the target storage device, and then send the connection request to the server 13.
[0079] Server 13 is used to send connection requests to the first terminal 11.
[0080] The first terminal 11 is used to disconnect the corresponding storage device driver of the target storage device corresponding to the connection request, and return the connection feedback to the server 13.
[0081] Server 13 is used to send connection feedback to the second terminal 12.
[0082] The second terminal 12 is used to create a virtual target storage device driver based on connection feedback, generate an access request based on the operation of the virtual target storage device driver, and send the access request to the server 13. The virtual target storage device driver is a virtual driver corresponding to the target storage device.
[0083] Server 13 is used to send access requests to the first terminal 11.
[0084] The first terminal 11 is used to read the corresponding data from the target storage device based on the access request and return the read data to the server 13.
[0085] Server 13 is used to send corresponding data to the second terminal 12.
[0086] The specific interaction process of the first terminal 11, the second terminal 12 and the server 13 in the remote analysis system 1 is basically the same as the interaction process of the first terminal 11, the second terminal 12 and the server 13 in the remote analysis method of any of the above embodiments, and will not be described again here.
[0087] In some embodiments, the second terminal 12 generates an access request based on operations on the virtual target storage device driver and sends the access request to the server 13. The server 13 sends the access request to the first terminal 11. The first terminal 11 reads the corresponding data from the target storage device based on the access request and returns the read data to the server 13. The server 13 sends the corresponding data to the second terminal 12, and the second terminal 12 sends the corresponding data back to the corresponding virtual target storage driver of the target storage device. The above process constitutes one complete data transmission process between the first terminal 11 and the second terminal 12. Repeating the above process can achieve repeated data transmission between the first terminal 11 and the second terminal 12.
[0088] Please refer to Figure 6 , Figure 6 This is a schematic diagram of an embodiment of the electronic device provided in this application. The electronic device 2 includes a memory 21 and a processor 22. The memory 21 is used to store program instructions, and the processor 22 is used to execute the program instructions to implement the remote analysis method of the pluggable storage device in any of the above embodiments.
[0089] In some embodiments, the functions or modules of the apparatus provided in this application can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0090] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0091] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0092] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0093] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and they should all be covered within the scope of the claims and specification of this application. In particular, as long as there is no structural conflict, the various technical features mentioned in the embodiments can be combined in any way. This application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A remote analysis method for a pluggable storage device, characterized in that, Applied to a first terminal, the remote analysis method includes: In response to the insertion of at least one pluggable storage device, the corresponding storage device driver is installed, and the inserted pluggable storage device is added to the shared device list displayed to the second terminal, wherein the first terminal and the second terminal are connected through a server, and the first terminal and the second terminal are remote devices to each other; In response to receiving a connection request, the corresponding storage device driver for the target storage device corresponding to the connection request is disconnected, and a connection feedback is returned to the second terminal to enable the second terminal to create a virtual target storage device driver. The connection request is a request from the second terminal to select the target storage device based on the shared device list and apply to establish a connection with the target storage device. In response to receiving an access request, the system reads the corresponding data of the target storage device based on the access request and returns the read data to the second terminal, wherein the access request is generated by the second terminal based on an operation on the virtual target storage device driver.
2. The remote analysis method according to claim 1, characterized in that, Also includes: Send a registration request to the server; The server receives a server identification code returned by the server based on the registration request, wherein the second terminal establishes a connection with the first terminal through the server based on the server identification code.
3. The remote analysis method according to claim 1, characterized in that, The process of adding the pluggable storage device to the list of shared devices displayed to the second terminal includes: A new storage device registration request is sent to the server so that the server adds information about the newly inserted pluggable storage device to the shared device list and displays it to the second terminal.
4. The remote analysis method according to claim 1, characterized in that, Also includes: In response to detecting the end of sharing status, control over the target storage device is released and an attempt is made to reinstall the storage device driver corresponding to the target storage device. The sharing end status includes unplugging the target storage device, receiving a sharing stop instruction, and / or a connection disconnection instruction.
5. A remote analysis method for a pluggable storage device, characterized in that, Applied to a second terminal, the remote analysis method includes: Receive a shared device list, wherein the shared device list includes information on at least one pluggable storage device inserted on a first terminal, the first terminal and the second terminal are connected through a server, and the first terminal and the second terminal are remote devices to each other; Select a target storage device from the shared device list and generate a connection request to establish a connection with the target storage device. Send the connection request to the first terminal and create a virtual target storage device driver based on the returned connection feedback. The virtual target storage device driver is a virtual driver corresponding to the target storage device. An access request is generated based on the operation of the virtual target storage device driver, the access request is sent to the first terminal, and the corresponding data read by the first terminal from the target storage device based on the access request is received.
6. The remote analysis method according to claim 5, characterized in that, Also includes: The corresponding data is then sent back to the corresponding virtual target storage driver for the target storage device.
7. The remote analysis method according to claim 5, characterized in that, Also includes: In response to detecting a sharing end status, delete the corresponding virtual target storage driver for the target storage device; The sharing end status includes unplugging the target storage device, receiving a sharing stop instruction, and / or a connection disconnection instruction.
8. A remote analysis method for a pluggable storage device, characterized in that, Applied to a server, the remote analysis method includes: Send a list of shared devices to a second terminal, wherein the list of shared devices includes information on at least one pluggable storage device inserted on the first terminal, the first terminal and the second terminal are connected through the server, and the first terminal and the second terminal are remote devices to each other; The system receives a connection request from the second terminal and sends it to the first terminal, and sends the connection feedback returned by the first terminal to the second terminal, so that the second terminal creates a virtual target storage device driver based on the connection feedback. The connection request is a request from the second terminal to select the target storage device based on the shared device list and apply to establish a connection with the target storage device. The system receives an access request sent by the second terminal and sends it to the first terminal, and sends the corresponding data returned by the first terminal to the second terminal. The access request is generated by the second terminal based on the operation of the virtual target storage device driver, and the corresponding data is obtained by the first terminal reading the target storage device based on the access request.
9. A remote analysis system for a pluggable storage device, characterized in that, It includes a first terminal, a second terminal, and a server. The first terminal and the second terminal are connected through the server, and the first terminal and the second terminal are remote devices to each other. The first terminal is configured to, in response to the insertion operation of at least one pluggable storage device, install the corresponding storage device driver and add the inserted pluggable storage device to the shared device list displayed to the second terminal; The server is used to send the shared device list to the second terminal; The second terminal is used to select a target storage device based on the shared device list and generate a connection request to establish a connection with the target storage device, and send the connection request to the server; The server is used to send the connection request to the first terminal; The first terminal is used to disconnect the corresponding storage device driver of the target storage device corresponding to the connection request, and return the connection feedback to the server; The server is used to send the connection feedback to the second terminal; The second terminal is used to create a virtual target storage device driver based on the connection feedback, generate an access request based on the operation of the virtual target storage device driver, and send the access request to the server, wherein the virtual target storage device driver is a virtual driver corresponding to the target storage device; The server is used to send the access request to the first terminal; The first terminal is used to read the corresponding data of the target storage device based on the access request, and return the read corresponding data to the server; The server is used to send the corresponding data to the second terminal.
10. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor for executing the program instructions to implement the remote analysis method for a pluggable storage device as described in any one of claims 1-8.