CN113242322A - Mapping method and system of mobile storage device - Google Patents

Mapping method and system of mobile storage device Download PDF

Info

Publication number
CN113242322A
CN113242322A CN202110781503.7A CN202110781503A CN113242322A CN 113242322 A CN113242322 A CN 113242322A CN 202110781503 A CN202110781503 A CN 202110781503A CN 113242322 A CN113242322 A CN 113242322A
Authority
CN
China
Prior art keywords
storage device
mobile storage
user terminal
module
cloud desktop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110781503.7A
Other languages
Chinese (zh)
Other versions
CN113242322B (en
Inventor
曾星
周保群
史伟
闵宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Eflycloud Computing Co Ltd
Original Assignee
Guangdong Eflycloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Eflycloud Computing Co Ltd filed Critical Guangdong Eflycloud Computing Co Ltd
Priority to CN202110781503.7A priority Critical patent/CN113242322B/en
Publication of CN113242322A publication Critical patent/CN113242322A/en
Application granted granted Critical
Publication of CN113242322B publication Critical patent/CN113242322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mapping method and a system of mobile storage equipment, wherein the method comprises the following steps: the user terminal is connected with the cloud desktop, and the cloud desktop maps the shared mounting points; the udev detection process detects a PCI bus in real time, and the PCI bus is used for electrically connecting the mobile storage equipment; when the udev detection process detects that the PCI bus is electrically connected with the mobile storage device, the usbmount control process of the user terminal mounts the mobile storage device to a shared mounting point; the cloud desktop reads and writes the mobile storage device through the shared mounting point; when the udev detection process detects that the PCI bus is electrically disconnected from the mobile storage device, the usbmount control process of the user terminal disconnects the mount between the mobile storage device and the shared mount point. The invention enables the cloud desktop to stably map the mobile storage device.

Description

Mapping method and system of mobile storage device
Technical Field
The present invention relates to the field of mobile storage technologies, and in particular, to a mapping method and system for a mobile storage device.
Background
With the continuous development of cloud computing, enterprise informatization becomes an indispensable component of cloud computing, and a cloud desktop belongs to a recognized implementation mode and can play an important role in the enterprise resource datamation industry. Rdp remote desktop based cloud desktop implementation is the most used cloud desktop implementation currently used by the industry.
One of the main functions of the cloud desktop is to replace the traditional PC, so that the use scenes of the traditional PC are adapted to the cloud desktop, and the inertia consistency of customers is ensured.
At present, the usb interface device of freedp only supports commonly used printers, encryption cards, console conversion ports and the like, and certain compatibility problems exist in usb mobile storage devices, and mapping failure occurs at certain probability because the usb mobile storage devices are not stably supported.
Disclosure of Invention
The invention provides a mapping method and a mapping system for a mobile storage device to solve one of the problems, and solves the problem that freerdp is unstable when being connected with a remote cloud desktop, so that the cloud desktop can stably map the mobile storage device.
In order to solve the technical problems, the invention provides the following technical scheme: a mapping method of a mobile storage device comprises the following steps:
step S1, the user terminal is connected with a cloud desktop, and the cloud desktop maps the shared mounting point of the user terminal;
step S2, detecting the PCI bus of the user terminal in real time by the udev detection process of the user terminal, wherein the PCI bus is used for electrically connecting the mobile storage device;
step S3, when the udev detection process detects that the PCI bus is electrically connected with the mobile storage device, the usbmount control process of the user terminal mounts the mobile storage device to the shared mounting point;
and step S4, the cloud desktop reads and writes data of the mobile storage device through the shared mounting point.
Further, in the step S1, the user terminal connects to the cloud desktop through a rdp protocol.
Further, the mobile storage device is a usb storage device.
Further, step S5 is included after step S4, when the udev detection process detects that the PCI bus is electrically disconnected from the mobile storage device, the usbmount control process of the user terminal disconnects the mount between the mobile storage device and the shared mount point, and the cloud desktop cannot access the shared mount point.
The invention also aims to provide a mapping system of the mobile storage device, which comprises the mobile storage device, a user terminal and a cloud desktop unit, wherein the user terminal comprises a shared mounting point module, a udev detection process module, a PCI bus module and a usbmount control process module;
the user terminal is used for connecting the cloud desktop unit through rdp protocol;
the cloud desktop unit maps a shared mounting point module of the user terminal;
the udev detection process module is used for detecting a PCI bus module of the user terminal in real time;
the PCI bus module is used for electrically connecting the mobile storage equipment;
the usbmount control process module is used for: when the udev detection process module detects that the PCI bus module is electrically connected with the mobile storage device, the usbmount controls the process module to mount the mobile storage device to the shared mounting point module;
the cloud desktop unit is used for reading and writing data of the mobile storage device through the shared mounting point.
Further, the usbmount control process module is further configured to: when the udev detection process module detects that the PCI bus module is electrically disconnected from the mobile storage device, the usbmount controls the process module to disconnect the mount between the mobile storage device and the shared mount point module, and the cloud desktop unit cannot access the shared mount point module.
After the technical scheme is adopted, the invention at least has the following beneficial effects: according to the invention, a usb automatic mapping device based on rdp protocol is formed by a freerdp drive mapping, a udev terminal equipment management process and a usbmount equipment management process, so that a cloud desktop can stably map the mobile storage equipment; the invention can effectively realize automatic mapping of the usb mobile storage device based on rdp, ensures that the plug-in identification rate reaches 100%, and does not need to add extra burden to rdp.
Drawings
Fig. 1 is a flowchart illustrating steps of a mapping method for a mobile storage device according to the present invention.
FIG. 2 is a block diagram of a mapping system of a mobile storage device according to the present invention.
Detailed Description
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict, and the present application is further described in detail with reference to the drawings and specific embodiments.
Example 1
According to the invention, the usb automatic mapping system based on the rdp protocol is formed by the driving mapping of the freedrp, the udev terminal equipment management process and the usbmount equipment management process, so that the problem that the freedrp can stably map the mobile storage equipment when being connected with the remote cloud desktop is solved, namely, the stability and reliability of usb automatic mapping realized based on the freedrp protocol are improved.
Rdp is Microsoft remote protocol; freerdp is an open source similar rdp protocol; udev is a linux device manager; and the usbmount is a usb device management device.
As shown in fig. 1, the present embodiment discloses a mapping method for a mobile storage device, which includes the steps of:
the user terminal is connected with the cloud desktop, and the cloud desktop maps the shared mounting point of the user terminal; preferably, the user terminal is connected with the cloud desktop through rdp protocol;
the shared mount point is a mount technology of a linux file system, is a conventional technology, and a remote desktop (cloud desktop) uses a terminal mount point to read and write files so as to realize the sharing of the local end and the remote end;
step S2, detecting the PCI bus of the user terminal in real time by the udev detection process of the user terminal, wherein the PCI bus is used for electrically connecting the mobile storage device; the mobile storage equipment is preferentially usb storage equipment;
step S3, when the udev detection process detects that the PCI bus is electrically connected with the mobile storage device, the usbmount control process of the user terminal mounts the mobile storage device to the shared mounting point;
step S4, the cloud desktop reads and writes data of the mobile storage device through the shared mounting point;
the steps S1-S4 realize the functions of adding the mobile storage device into the user terminal and recognizing the mobile storage device by the cloud desktop;
step S5, when the udev detection process detects that the PCI bus is electrically disconnected from the mobile storage device, the usbmount of the user terminal controls the process to disconnect the mount between the mobile storage device and the shared mount point, and the cloud desktop cannot access the shared mount point.
Step S5 implements the function of the mobile storage device being removed by the user terminal and touch-mounted.
The embodiment realizes usb automatic mapping stability and reliability based on the freerdp protocol.
Example 2
The embodiment discloses a mapping system of a mobile storage device on the basis of the method of embodiment 1, and as shown in fig. 2, the mapping system includes a mobile storage device, a user terminal and a cloud desktop unit, wherein the user terminal includes a shared mount point module, a udev detection process module, a PCI bus module and a usbmount control process module;
the user terminal is used for connecting the cloud desktop unit through rdp protocol;
the cloud desktop unit maps a shared mounting point module of the user terminal;
the udev detection process module is used for detecting a PCI bus module of the user terminal in real time;
the PCI bus module is used for electrically connecting the mobile storage equipment;
the usbmount control process module is used for: when the udev detection process module detects that the PCI bus module is electrically connected with the mobile storage device, the usbmount controls the process module to mount the mobile storage device to the shared mounting point module;
the cloud desktop unit is used for reading and writing data of the mobile storage device through the shared mounting point.
The usbmount control process module is further configured to: when the udev detection process module detects that the PCI bus module is electrically disconnected from the mobile storage device, the usbmount controls the process module to disconnect the mount between the mobile storage device and the shared mount point module, and the cloud desktop unit cannot access the shared mount point module.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various equivalent changes, modifications, substitutions and alterations can be made herein without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims (6)

1. A mapping method of a mobile storage device is characterized by comprising the following steps:
step S1, the user terminal is connected with a cloud desktop, and the cloud desktop maps the shared mounting point of the user terminal;
step S2, detecting the PCI bus of the user terminal in real time by the udev detection process of the user terminal, wherein the PCI bus is used for electrically connecting the mobile storage device;
step S3, when the udev detection process detects that the PCI bus is electrically connected with the mobile storage device, the usbmount control process of the user terminal mounts the mobile storage device to the shared mounting point;
and step S4, the cloud desktop reads and writes data of the mobile storage device through the shared mounting point.
2. The mapping method of claim 1, wherein in step S1, the user terminal connects to the cloud desktop via rdp protocol.
3. The mapping method of the mobile storage device according to claim 1 or 2, wherein the mobile storage device is a usb storage device.
4. The mapping method of the mobile storage device according to claim 1 or 2, wherein the step S4 is followed by a step S5, when the udev detection process detects that the PCI bus is electrically disconnected from the mobile storage device, the usbmount control process of the user terminal disconnects the mount between the mobile storage device and the shared mount point, and the cloud desktop cannot access the shared mount point.
5. A mapping system of a mobile storage device comprises the mobile storage device, a user terminal and a cloud desktop unit, and is characterized in that the user terminal comprises a shared mounting point module, a udev detection process module, a PCI bus module and a usbmount control process module;
the user terminal is used for connecting the cloud desktop unit through rdp protocol;
the cloud desktop unit maps a shared mounting point module of the user terminal;
the udev detection process module is used for detecting a PCI bus module of the user terminal in real time;
the PCI bus module is used for electrically connecting the mobile storage equipment;
the usbmount control process module is used for: when the udev detection process module detects that the PCI bus module is electrically connected with the mobile storage device, the usbmount controls the process module to mount the mobile storage device to the shared mounting point module;
the cloud desktop unit is used for reading and writing data of the mobile storage device through the shared mounting point.
6. The mapping system of claim 5, wherein the usbmount control process module is further configured to: when the udev detection process module detects that the PCI bus module is electrically disconnected from the mobile storage device, the usbmount controls the process module to disconnect the mount between the mobile storage device and the shared mount point module, and the cloud desktop unit cannot access the shared mount point module.
CN202110781503.7A 2021-07-12 2021-07-12 Mapping method and system of mobile storage device Active CN113242322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110781503.7A CN113242322B (en) 2021-07-12 2021-07-12 Mapping method and system of mobile storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110781503.7A CN113242322B (en) 2021-07-12 2021-07-12 Mapping method and system of mobile storage device

Publications (2)

Publication Number Publication Date
CN113242322A true CN113242322A (en) 2021-08-10
CN113242322B CN113242322B (en) 2021-10-08

Family

ID=77135186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110781503.7A Active CN113242322B (en) 2021-07-12 2021-07-12 Mapping method and system of mobile storage device

Country Status (1)

Country Link
CN (1) CN113242322B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534351A (en) * 2016-12-09 2017-03-22 郑州云海信息技术有限公司 Cloud desktop system and method for supporting shared storage
CN109117390A (en) * 2018-08-09 2019-01-01 山东中孚安全技术有限公司 A kind of Linux kernel module obtains the method and system of usb_bus_type symbolic address
US20200007612A1 (en) * 2016-11-30 2020-01-02 Zte Corporation Resource sharing method, device and system
CN111045834A (en) * 2018-10-15 2020-04-21 中兴通讯股份有限公司 Method, device and storage medium for accessing USB storage device under cloud desktop
CN111782319A (en) * 2020-06-16 2020-10-16 贵州省广播电视信息网络股份有限公司 System and method for realizing shared access by mounting USBKey on cloud desktop
CN111782318A (en) * 2020-06-16 2020-10-16 贵州省广播电视信息网络股份有限公司 Sharing access system and method for remotely mounting local disk to cloud desktop virtual machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200007612A1 (en) * 2016-11-30 2020-01-02 Zte Corporation Resource sharing method, device and system
CN106534351A (en) * 2016-12-09 2017-03-22 郑州云海信息技术有限公司 Cloud desktop system and method for supporting shared storage
CN109117390A (en) * 2018-08-09 2019-01-01 山东中孚安全技术有限公司 A kind of Linux kernel module obtains the method and system of usb_bus_type symbolic address
CN111045834A (en) * 2018-10-15 2020-04-21 中兴通讯股份有限公司 Method, device and storage medium for accessing USB storage device under cloud desktop
CN111782319A (en) * 2020-06-16 2020-10-16 贵州省广播电视信息网络股份有限公司 System and method for realizing shared access by mounting USBKey on cloud desktop
CN111782318A (en) * 2020-06-16 2020-10-16 贵州省广播电视信息网络股份有限公司 Sharing access system and method for remotely mounting local disk to cloud desktop virtual machine

Also Published As

Publication number Publication date
CN113242322B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
WO2020221190A1 (en) Applet state synchronization method, device and computer storage medium
CN110389935B (en) Method, equipment and computer storage medium for starting small program
CN107526616B (en) Method and device for writing and reading data of BMC by host
CN111190749A (en) Server and method for data exchange between BMC and BIOS
CN103595790A (en) Remote accessing method for device, thin client side and virtual machine
CN107622541B (en) Storage device, USB camera and driving recording method and system thereof
CN111294413B (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN110727519A (en) Multi-desktop USB (universal serial bus) equipment distribution management method and system for IDV (integrated digital video) cloud terminal
CN107193599B (en) Method for dynamically updating system slot information in SMBIOS
CN109347899B (en) Method for writing log data in distributed storage system
US20070294430A1 (en) Generating a device address persistent across different instantiations of an electronic device
CN111224694A (en) Method and device for replacing switch equipment based on NFC, storage medium and equipment
CN113242322B (en) Mapping method and system of mobile storage device
CN109144586A (en) A kind of driving adaptation method, device, computer equipment and storage medium
US7913263B2 (en) External device and operating method applied thereto
CN113242321B (en) Data transmission method for mobile storage device
CN115361432B (en) Communication control method and device between master and slave devices, vehicle and storage medium
CN114168074A (en) Mirror image storage method, device, storage medium and electronic equipment
US7895372B2 (en) Universal serial bus mass storage device asynchronous file and file system update while connected to a PC or other device
CN113849435A (en) Port virtualization processing method, electronic device and storage medium
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN113472744A (en) Data interaction method, device, equipment and medium under different storage protocols
CN102542306B (en) A kind of mobile terminal application subsystem accesses the method for Subscriber Identity Module file
CN113434089A (en) Data moving method and device and PCIE system
CN116366650B (en) Cloud service system, cloud terminal and physical identity binding method

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