CN105022705A - Method and device for data sharing between equipments - Google Patents

Method and device for data sharing between equipments Download PDF

Info

Publication number
CN105022705A
CN105022705A CN201410155519.7A CN201410155519A CN105022705A CN 105022705 A CN105022705 A CN 105022705A CN 201410155519 A CN201410155519 A CN 201410155519A CN 105022705 A CN105022705 A CN 105022705A
Authority
CN
China
Prior art keywords
equipment
sent
order
receive
confirmation
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
CN201410155519.7A
Other languages
Chinese (zh)
Other versions
CN105022705B (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.)
Actions Technology Co Ltd
Original Assignee
Juxin (zhuhai) Science & Technology 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 Juxin (zhuhai) Science & Technology Co Ltd filed Critical Juxin (zhuhai) Science & Technology Co Ltd
Priority to CN201410155519.7A priority Critical patent/CN105022705B/en
Publication of CN105022705A publication Critical patent/CN105022705A/en
Application granted granted Critical
Publication of CN105022705B publication Critical patent/CN105022705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method and a device for data sharing between equipments, for solving a problem of failure in direct implementation of data transmission between USB (Universal Serial Bus) interfaces of two host equipments in the prior art. The method comprises the following steps of: respectively sending a handshaking signal to a first equipment and a second equipment; receiving USB enumeration identifying commands independently returned back from the first equipment and the second equipment, separately reporting that own identity is a USB disk device to the first equipment and the second equipment; and after receiving a command of identifying the USB disk device successfully from the first equipment and the second equipment, controlling the first equipment and the second equipment to perform data sharing. By the method, data sharing between two host equipments by means of direct connection of the USB interfaces is implemented, transmission of a large amount of data between the host equipments is more convenient and fast, and dependence on a third party storage medium is avoided.

Description

A kind of method of data sharing of equipment room and device
Technical field
The present invention relates to field of data transmission, particularly relate to a kind of method and device of data sharing of equipment room.
Background technology
USB (universal serial bus) (Universal Serial Bus, USB) is mainly used in the peripheral hardware of middling speed and low speed, supports plug and play, and transmission speed is fast, easy to connect, independently-powered and with low cost.
When needing between the main process equipment (Host) of current two use USB interface by USB interface copy mass data, first by data copy to USB device, as USB flash disk, hard disk etc., then another USB Host must be copied to by this USB device.Therefore, be copied to another USB Host by USB interface from a USB Host if want and not only waste the plenty of time, also must there is the USB device of a large buffer memory.
Specify in the bus protocol of existing USB that the system of each USB has and only has a Host, therefore, prior art cannot directly by the USB interface of two main process equipments be connected realize equipment room data transmission.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of data sharing of equipment room, in order to solve in prior art the problem of the data sharing realizing equipment room that cannot be directly connected by the USB interface of two main process equipments.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
First aspect, a kind of method of data sharing of equipment room, the method comprises:
Handshake is sent respectively to the first equipment and the second equipment;
Receive the general-purpose serial bus USB that the first equipment and the second equipment returns separately and enumerate recognition command, and report from as USB disk unit respectively to the first equipment and the second equipment;
After receiving the order of the successful identification USB disk unit that the first equipment and the second equipment return, control described first equipment and described second equipment carries out data sharing.
By the method that the embodiment of the present invention provides, can report from the mode as the disk unit of a USB interface to the first equipment and the second equipment by data sharing device, make main process equipment---the first equipment and the second equipment, the other side can be considered as USB disk unit, and adopt the transmission of Extended Protocol for subsequent commands of a set of prior agreement, it is more convenient that this data sharing device makes copies data between two main process equipments become, do not need to rely on third party's storage medium, the mode realizing directly being connected by USB interface between two main process equipments realizes the data sharing between main process equipment.
In conjunction with first aspect, in the implementation that the first is possible, after receiving the order of the successful identification USB disk unit that the first equipment and the second equipment return, control before described first equipment and described second equipment carries out data sharing, also to comprise:
Main frame hdcopy program is mounted to the first equipment and the second equipment in the mode automatically run, and main frame hdcopy program is respectively used to call the first equipment and the second equipment carries out data sharing.
By this possible embodiment, data sharing device can call the first equipment and the second equipment and local transmission order respectively by main frame hdcopy program, completes data sharing.
In conjunction with first aspect, in the implementation that the second is possible, control the first equipment and the second equipment to control carry out data sharing, comprising:
Control the first equipment and the second equipment carries out data transmission;
Carry out data transmission to comprise: receive the write order that the first equipment sends, and write order is sent to the second equipment;
Confirmation order is sent to the first equipment after returning order of really accepting one's fate by second equipment that receives;
Receive the file data that the first equipment sends, and file data is sent to the second equipment;
The correct response command that second equipment that receives returns, and correct response command is sent to the first equipment.
By this possible embodiment, data sharing device controls the transmission transmission of ordering between the first equipment and the second equipment, and by above-mentioned transmission order, transmission data, the data that the mechanism correctly returned completes the first equipment and the second equipment are transmitted.
In conjunction with the implementation that the second of first aspect is possible, in the implementation that the third is possible, after confirmation order is sent to the first equipment, before the file data that reception first equipment sends, also comprise:
Receive the file directory information of the file data that the first equipment sends, and file directory information is sent to the second equipment;
The confirmation file directory information order that second equipment that receives returns, and the order of confirmation file directory information is sent to the first equipment;
Receive the fileinfo of the file data that the first equipment sends, and fileinfo is sent to the second equipment, wherein, fileinfo is used to indicate filename, path or file size;
The confirmation that second equipment that receives returns sends order, and confirmation transmission order is sent to the first equipment.
In conjunction with the implementation that the second of first aspect is possible, in the 4th kind of possible implementation, control the first equipment and the second equipment and carry out data sharing and also comprise: control the first equipment and the second equipment carries out operated from a distance; Carry out operated from a distance to comprise: receive the read write command that the first equipment sends, read write command is sent to the second equipment, wherein, read write command is used to indicate the first device request and accesses the second equipment, and request carries out read-write operation on the second device;
The confirmation read write command that second equipment that receives returns, and confirmation read write command is sent to the first equipment.
By this possible embodiment, realize the resource sharing between the first equipment and the second equipment.
Second aspect, a kind of device of data sharing of equipment room, this device comprises:
USB device controller, for sending handshake respectively to the first equipment and the second equipment;
Micro-control unit MCU, the general-purpose serial bus USB returned separately for receiving the first equipment and the second equipment enumerates recognition command, and report certainly as USB disk unit respectively to the first equipment and the second equipment, and after the order receiving the successful identification USB disk unit that the first equipment and the second equipment return, control described first equipment and described second equipment carries out data sharing.
By the method that the embodiment of the present invention provides, can report from the mode as the disk unit of a USB interface to the first equipment and the second equipment by data sharing device, make main process equipment---the first equipment and the second equipment, the other side can be considered as USB disk unit, and adopt the transmission of Extended Protocol for subsequent commands of a set of prior agreement, it is more convenient that this data sharing device makes copies data between two main process equipments become, do not need to rely on third party's storage medium, the mode realizing directly being connected by USB interface between two main process equipments realizes the data transmission between main process equipment.
In conjunction with second aspect, in the implementation that the first is possible, MCU, also for after the order receiving the successful identification USB disk unit that the first equipment and the second equipment return, control before described first equipment and described second equipment carries out data sharing, main frame hdcopy program is mounted to the first equipment and the second equipment in the mode automatically run, and main frame hdcopy program is respectively used to call the first equipment and the second equipment carries out data sharing.
By this possible embodiment, data sharing device can call the first equipment and the second equipment and local transmission order respectively by main frame hdcopy program, completes data transmission.
In conjunction with second aspect, in the implementation that the second is possible, MCU is used for: control described first equipment and described second equipment carries out data transmission;
Specifically for receiving the write order that the first equipment sends, and write order is sent to the second equipment;
Confirmation order is sent to the first equipment after returning order of really accepting one's fate by second equipment that receives;
Receive the file data that the first equipment sends, and file data is sent to the second equipment;
The correct response command that second equipment that receives returns, and correct response command is sent to the first equipment.
By this possible embodiment, data sharing device controls the transmission transmission of ordering between the first equipment and the second equipment, and by above-mentioned transmission order, transmission data, the data that the mechanism correctly returned completes the first equipment and the second equipment are transmitted.
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, MCU also for, after confirmation order is sent to the first equipment, before the file data that reception first equipment sends, receive the file directory information of the file data that the first equipment sends, and file directory information is sent to the second equipment; The confirmation file directory information order that second equipment that receives returns, and the order of confirmation file directory information is sent to the first equipment; Receive the fileinfo of the file data that the first equipment sends, and fileinfo is sent to the second equipment, wherein, fileinfo is used to indicate filename, path or file size; The confirmation that second equipment that receives returns sends order, and confirmation transmission order is sent to the first equipment.
In conjunction with the implementation that the second of second aspect is possible, in the 4th kind of possible implementation, MCU also for: control the first equipment and the second equipment carries out operated from a distance, specifically for receiving the read write command that the first equipment sends, read write command is sent to the second equipment, wherein, read write command is used to indicate the first device request and accesses the second equipment, and request carries out read-write operation on the second device, and the confirmation read write command that second equipment that receives returns, and confirmation read write command is sent to the first equipment.
By this possible embodiment, realize the resource sharing between the first equipment and the second equipment.
Accompanying drawing explanation
Fig. 1 is data sharing device structural representation of the present invention;
Fig. 2 is the process flow diagram of equipment room data sharing of the present invention;
Fig. 3 is the detail flowchart of equipment room copies data of the present invention;
Fig. 4 is data sharing device of the present invention schematic diagram in kind.
Embodiment
Between two main process equipments, a large amount of data are transmitted in order to utilize USB interface, solve in prior art the problem of the data transmission realizing equipment room that cannot be directly connected by the USB interface of two main process equipments, embodiments provide a kind of method and device of data sharing of equipment room.
Below in conjunction with Figure of description, the preferred embodiments of the present invention are described.In the present embodiment, data sharing device has two independently USB device (USB Device) controllers, a micro-control unit (Micro Control Unit, MCU).Preferably, data sharing device can also increase by one piece of storage medium be connected with MCU, being used for storage one may operate at the data copy implementing procedure of host side, wherein, this storage medium can be inserted in data sharing device outside, also can be implanted in data sharing device inside, can be USB flash disk, storage card, memory bar etc., this is no longer going to repeat them.Main process equipment in the embodiment of the present invention can be PC, have the panel computer of USB interface, and other anyly as the terminal of USB Host identity, wherein, can be introduced for PC in the embodiment of the present invention.
Concrete, consult shown in Fig. 1, part in the structure of the data sharing device in the embodiment of the present invention frame as shown in thick line in Fig. 1.
USB Device controller Main Function is as follows, on the one hand, the digital signal that first equipment and the second equipment transmit can be converted to the differential signal in USB data line, for main process equipment, communicate with main process equipment with the identity of USB device, realize the transmission of USB physical layer protocol, the main process equipment in the embodiment of the present invention is the first equipment and the second equipment; On the other hand, transmission request command when needing transmission or receive data can be submitted to USB Device controller to start transmission by MCU, and when main process equipment has data to send over, the data that buffer memory receives, and notify that MCU processes these data.
MCU is as the main control unit of this data sharing device, and its effect is the communication between cooperation control two USBDevice controllers, and completes parsing and the work for the treatment of of the transmission request command between two main process equipments.
Storage medium is connected with MCU, is mainly used to the hdcopy program that store M CU runs, and is stored in the main frame hdcopy program that usb host equipment runs.
Below in conjunction with accompanying drawing, with specific embodiment, the data sharing device in the embodiment of the present invention is introduced.
Consult shown in Fig. 2, in the embodiment of the present invention, the idiographic flow of the data transmission of equipment room is as follows:
Step 200: data sharing device sends handshake respectively to the first equipment and the second equipment.
Concrete, after data sharing device is connected with the second equipment with the first equipment, namely the USB Device controller in data sharing device is connected with the second equipment with the first equipment, whether the MCU in data sharing device starts automatically to detect two USB Device controllers and connects with the first equipment and the second equipment, specifically can be judged by USB reset (Reset) signal of the level state on the VBUS pin of detection USB interface and the first equipment and the second equipment.
After data sharing device and the first equipment and the second equipment connection being detected, the USB Device controller in data sharing device starts initialization, and sends handshake to locally-attached first equipment and the second equipment.
Step 210: data sharing device receives the USB that the first equipment and the second equipment returns separately and enumerates recognition command, and report from as USB disk unit respectively to the first equipment and the second equipment.
Concrete, the first equipment and the second equipment are after the handshake receiving the transmission of USB Device controller, and send USB to data sharing device and enumerate recognition command, the first equipment and the second equipment start to carry out USB to data sharing device and enumerates identification.MCU in data sharing device all reports certainly as a USB disk unit to the first equipment and the second equipment.
Step 220: after data sharing device receives the order of the successful identification USB disk unit that the first equipment and the second equipment return, controls the first equipment and the second equipment carries out data sharing.
Concrete, after reporting, this USB enumerates identifying and completes, data sharing device can receive the order of the successful identification USB disk unit that the first equipment and the second equipment return, now find this USB disk unit at the first equipment and the display of the second equipment, wherein store main frame hdcopy program, this main frame hdcopy program can after the first equipment and the second recognition of devices to USB disk unit, automatic operation (Autorun) is started at the first equipment and the second equipment, then, data sharing device namely can control the first equipment and the second equipment carries out sharing of data.
Carry out data sharing between the main frame hdcopy program that data sharing device and the first equipment and the second equipment run, carry out communication according to mass storage class (Mass Storage Class, MSC) agreement.The communication flow of this agreement is as follows, main process equipment is given an order and is carried out command transfer, this order is with command block bag (Command Block Wrapper, CBW) form encapsulates, data sharing device is after receiving this order, content according to order enters data transfer phase, carry out reception or the transmission of data, after pending data is sent, enter the transmission state stage, feed back the current command executing state by the take over party of data, this order executing state encapsulates with coomand mode bag (Command Status Wrapper, CSW) form.
Wherein, the encapsulation format of CBW is as shown in table 1:
Table 1
Wherein, the CBWCB of byte 15-30 encapsulates read command and write order, main frame hdcopy program can adopt same packaged type when sending order, MSC protocol basis increases number order with the form of scsi command, as polling order, the order writing data to data sharing device, the order to data sharing device read data, the order sending file directory information, the order of transmission fileinfo and the order of transmission file data.
Data sharing device the first equipment and the second equipment upper domination number reportedly defeated, from the first equipment to the second equipment sending data, specifically comprise following three parts:
Part I sends order, receives the write order that the first equipment sends, and write order is sent to the second equipment; Confirmation order is sent to the first equipment after returning order of really accepting one's fate by second equipment that receives;
Part II sends data, receives the file data that the first equipment sends, and file data is sent to the second equipment;
Part III correctly responds, the correct response command that second equipment that receives returns, and correct response command is sent to the first equipment.
Further, after confirmation order is sent to the first equipment, before the file data that reception first equipment sends, further comprising the steps of: the file directory information receiving the file data that the first equipment sends, and file directory information is sent to the second equipment; The confirmation file directory information order that second equipment that receives returns, and the order of confirmation file directory information is sent to the first equipment; Receive the fileinfo of the file data that the first equipment sends, and fileinfo is sent to the second equipment, wherein, fileinfo is used to indicate filename, path or file size; The confirmation that second equipment that receives returns sends order, and confirmation transmission order is sent to the first equipment.
Below in conjunction with accompanying drawing, consult shown in Fig. 3, data sharing device is introduced at the first equipment and the reportedly defeated idiographic flow of the second equipment upper domination number, specifically comprises step 300 to step 317.
Main frame hdcopy program has the function sending and receive simultaneously, the file and/or the file that need copy can be selected as by the main frame hdcopy program that the first equipment runs, click and send, and the order sent to the first equipment by main frame hdcopy process accepts that the second equipment runs also selects to receive the storing path of file and/or file, click and receive, first equipment that so just completes is by the process of data copy to the second equipment.
When the main frame hdcopy program that first equipment and the second equipment run does not receive transmission command, the main frame hdcopy program that first equipment and the second equipment run can call the relevant interface on the first equipment and the second equipment, whether has the order needing to read and write data with the hdcopy program that the mode data query sharing means of poll is run.Because data sharing device is considered as USB disk unit by the first equipment in transmitting procedure, the data sharing device being regarded as USB disk unit cannot send order, therefore the main frame hdcopy program poll data sharing device that the second equipment runs is needed whether to have any order to need to send, identical, when the second equipment sends order to the first equipment, whether the main frame hdcopy that the first equipment runs also has any order to need to send with the mode data query sharing means of poll, in step 302 to step 317, when each transmission or reception order, need the continuous poll of main frame hdcopy program that the first equipment and the second equipment run with or without order, this is no longer going to repeat them.The main frame hdcopy program that first equipment and the second equipment run needs to call the relevant interface of the first equipment and the second equipment when performing and sending or receive and order, therefore, when being introduced to step 317 step 300, the main frame hdcopy program that first equipment and the first equipment run all is designated as the first equipment, and the main frame hdcopy program that the second equipment and the second equipment run all is designated as the second equipment.
Step 300: whether the first equipment has order to data sharing device poll;
Step 301: whether the second equipment has order to data sharing device poll;
Step 302: data sharing device receives the write order that the first equipment sends;
Step 303: write order is sent to the second equipment by data sharing device;
Step 304: data sharing device receives the second equipment and returns order of really accepting one's fate;
Step 305: confirmation order is sent to the first equipment by data sharing device;
Step 306: data sharing device receives the file directory information of the file data that the first equipment sends;
Step 307: file directory information is sent to the second equipment by data sharing device;
Step 308: data sharing device receives the confirmation file directory order that the second equipment returns;
Step 309: the order of confirmation file directory information is sent to the first equipment by data sharing device;
Step 310: data sharing device receives the fileinfo of the file data that the first equipment sends, and wherein, fileinfo is used to indicate filename, path or file size;
Step 311: fileinfo is sent to the second equipment by data sharing device;
Step 312: data sharing device receives the confirmation transmission order that the second equipment returns;
Step 313: confirmation is sent order and is sent to the first equipment by data sharing device;
Step 314: data sharing device receives the file data that the first equipment sends;
Step 315: file data is sent to the second equipment by data sharing device;
Step 316: data sharing device receives the correct response command that the second equipment returns;
Step 317: correct response command is sent to the first equipment by data sharing device.
Data sharing device also has the function realizing file-sharing between the first equipment and the second equipment, concrete steps are as follows: receive the read write command that the first equipment sends, read write command is sent to the second equipment, wherein, read write command is used to indicate the first device request and accesses the second equipment, and request carries out read-write operation on the second device; The confirmation read write command that second equipment that receives returns, and confirmation read write command is sent to the first equipment.By above-mentioned steps, can see the file on the second equipment on the first device, and be copied directly to the first equipment by the main frame hdcopy program on the first equipment, do not need again through the feedback acknowledgment order of the second equipment, vice versa.
In the embodiment of the present invention, consult shown in Fig. 4, data sharing device can be integrated into a chips, and it is inner to implant specific USB data line, easy to use, two of specific USB data line and data line is all identical USB standard plug (USB Standard A Plug), can connect two PC.Be integrated into a chips data sharing device can in be embedded in specific USB data line, as plug portion.
Based on same inventive concept, the method for the data sharing of the equipment room provided according to the above embodiment of the present invention, correspondingly, another embodiment of the present invention additionally provides the device of the data sharing of equipment room, and apparatus structure schematic diagram as shown in Figure 1, specifically comprises:
USB device controller 100, for sending handshake respectively to the first equipment and the second equipment;
Micro-control unit MCU110, the general-purpose serial bus USB returned separately for receiving the first equipment and the second equipment enumerates recognition command, and report certainly as USB disk unit respectively to the first equipment and the second equipment, and after the order receiving the successful identification USB disk unit that the first equipment and the second equipment return, control described first equipment and described second equipment carries out data sharing.
MCU110, also for after the order receiving the successful identification USB disk unit that the first equipment and the second equipment return, control before described first equipment and described second equipment carries out data sharing, main frame hdcopy program is mounted to the first equipment and the second equipment in the mode automatically run, and main frame hdcopy program is respectively used to call the first equipment and the second equipment carries out data sharing.
MCU110 specifically for: control described first equipment and described second equipment carries out data transmission;
Described data transmission is specially: receive the write order that the first equipment sends, and write order is sent to the second equipment;
Confirmation order is sent to the first equipment after returning order of really accepting one's fate by second equipment that receives;
Receive the file data that the first equipment sends, and file data is sent to the second equipment;
The correct response command that second equipment that receives returns, and correct response command is sent to the first equipment.
MCU110 also for, after confirmation order is sent to the first equipment, before the file data that reception first equipment sends, receives the file directory information of file data that the first equipment sends, and file directory information be sent to the second equipment; The confirmation file directory information order that second equipment that receives returns, and the order of confirmation file directory information is sent to the first equipment; Receive the fileinfo of the file data that the first equipment sends, and fileinfo is sent to the second equipment, wherein, fileinfo is used to indicate filename, path or file size; The confirmation that second equipment that receives returns sends order, and confirmation transmission order is sent to the first equipment.
MCU110 also for: control described first equipment and described second equipment carries out long-range affected, specifically for receiving the read write command that the first equipment sends, read write command is sent to the second equipment, wherein, read write command is used to indicate the first device request and accesses the second equipment, and request carries out read-write operation on the second device, and the confirmation read write command that second equipment that receives returns, and confirmation read write command is sent to the first equipment.
As can be seen here, by the method for the data sharing of equipment room provided in the embodiment of the present invention, can report from the mode as the disk unit of a USB interface to the first equipment and the second equipment by data sharing device, make main process equipment---the first equipment and the second equipment, the other side can be considered as USB disk unit, and adopt the transmission of Extended Protocol for subsequent commands of a set of prior agreement, it is more convenient that this data sharing device makes copies data between two main process equipments become, do not need to rely on third party's storage medium, the mode realizing directly being connected by USB interface between two main process equipments carries out data sharing.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not depart from the spirit and scope of the embodiment of the present invention.Like this, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a method for the data sharing of equipment room, is characterized in that, described method comprises:
Handshake is sent respectively to the first equipment and the second equipment;
Receive the general-purpose serial bus USB that described first equipment and described second equipment returns separately and enumerate recognition command, and report from as USB disk unit respectively to described first equipment and described second equipment;
After receiving the order of the successful identification USB disk unit that described first equipment and described second equipment return, control described first equipment and described second equipment carries out data sharing.
2. the method for claim 1, is characterized in that, after receiving the order of the successful identification USB disk unit that described first equipment and described second equipment return, controls before described first equipment and described second equipment carries out data sharing, also to comprise:
Main frame hdcopy program is mounted to described first equipment and described second equipment in the mode automatically run, and described main frame hdcopy program is respectively used to call described first equipment and described second equipment carries out data sharing.
3. the method for claim 1, is characterized in that, controls described first equipment and described second equipment carries out data sharing, comprising:
Control described first equipment and described second equipment carries out data transmission;
Describedly carry out data transmission and comprise: receive the write order that described first equipment sends, and described write order is sent to described second equipment;
Receive described second equipment return really accept one's fate order after, described confirmation order is sent to described first equipment;
Receive the file data that described first equipment sends, and described file data is sent to described second equipment;
Receive the correct response command that described second equipment returns, and described correct response command is sent to described first equipment.
4. method as claimed in claim 3, is characterized in that, after described confirmation order is sent to described first equipment, before the file data receiving described first equipment transmission, also comprises:
Receive the file directory information of the described file data that described first equipment sends, and described file directory information is sent to described second equipment;
Receive the confirmation file directory information order that described second equipment returns, and the order of described confirmation file directory information is sent to described first equipment;
Receive the fileinfo of the described file data that described first equipment sends, and described fileinfo is sent to described second equipment, wherein, described fileinfo is used to indicate filename, path or file size;
Receive the confirmation transmission order that described second equipment returns, and described confirmation transmission order is sent to described first equipment.
5. method as claimed in claim 3, it is characterized in that, described control first equipment and described second equipment carry out data sharing and also comprise:
Control described first equipment and described second equipment carries out operated from a distance;
Describedly carry out operated from a distance and comprise: receive the read write command that described first equipment sends, described read write command is sent to described second equipment, wherein, described read write command is used to indicate described second equipment of described first device request access, and request carries out read-write operation on described second equipment;
Receive the confirmation read write command that described second equipment returns, and described confirmation read write command is sent to described first equipment.
6. a device for the data sharing of equipment room, is characterized in that, described device comprises:
USB device controller, for sending handshake respectively to the first equipment and the second equipment;
Micro-control unit MCU, the general-purpose serial bus USB returned separately for receiving described first equipment and described second equipment enumerates recognition command, and report certainly as USB disk unit respectively to described first equipment and described second equipment, and after the order receiving the successful identification USB disk unit that described first equipment and described second equipment return, control described first equipment and described second equipment carries out data sharing.
7. device as claimed in claim 6, it is characterized in that, described MCU, also for after the order receiving the successful identification USB disk unit that described first equipment and described second equipment return, control before described first equipment and described second equipment carries out data sharing, main frame hdcopy program is mounted to described first equipment and described second equipment in the mode automatically run, and described main frame hdcopy program is respectively used to call described first equipment and described second equipment carries out data sharing.
8. device as claimed in claim 6, is characterized in that, described MCU specifically for: control described first equipment and described second equipment carries out data transmission;
Describedly carry out data transmission and be specially: receive the write order that described first equipment sends, and described write order is sent to described second equipment; Receive described second equipment return really accept one's fate order after, described confirmation order is sent to described first equipment; Receive the file data that described first equipment sends, and described file data is sent to described second equipment; Receive the correct response command that described second equipment returns, and described correct response command is sent to described first equipment.
9. device as claimed in claim 8, it is characterized in that, described MCU also for, after described confirmation order is sent to described first equipment, before the file data receiving described first equipment transmission, receive the file directory information of the described file data that described first equipment sends, and described file directory information is sent to described second equipment; Receive the confirmation file directory information order that described second equipment returns, and the order of described confirmation file directory information is sent to described first equipment; Receive the fileinfo of the described file data that described first equipment sends, and described fileinfo is sent to described second equipment, wherein, described fileinfo is used to indicate filename, path or file size; Receive the confirmation transmission order that described second equipment returns, and described confirmation transmission order is sent to described first equipment.
10. device as claimed in claim 8, is characterized in that, described MCU also specifically for: control described first equipment and described second equipment carries out operated from a distance;
Described carry out operated from a distance be specially receive described first equipment send read write command, described read write command is sent to described second equipment, wherein, described read write command is used to indicate described second equipment of described first device request access, and request carries out read-write operation on described second equipment, and receive the confirmation read write command that described second equipment returns, and described confirmation read write command is sent to described first equipment.
CN201410155519.7A 2014-04-17 2014-04-17 A kind of method and device of the data sharing of equipment room Active CN105022705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410155519.7A CN105022705B (en) 2014-04-17 2014-04-17 A kind of method and device of the data sharing of equipment room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410155519.7A CN105022705B (en) 2014-04-17 2014-04-17 A kind of method and device of the data sharing of equipment room

Publications (2)

Publication Number Publication Date
CN105022705A true CN105022705A (en) 2015-11-04
CN105022705B CN105022705B (en) 2018-01-12

Family

ID=54412693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410155519.7A Active CN105022705B (en) 2014-04-17 2014-04-17 A kind of method and device of the data sharing of equipment room

Country Status (1)

Country Link
CN (1) CN105022705B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052102A (en) * 2020-08-04 2020-12-08 深圳航天智慧城市系统技术研究院有限公司 System and method for dynamically and movably storing shared data based on edge computing technology

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW390984B (en) * 1998-07-01 2000-05-21 Genesys Logic Inc The USB bridge connection apparatus for host to host
TWM274697U (en) * 2005-03-10 2005-09-01 Ours Technology Inc Hub having host-to-host transmission function
CN1704917A (en) * 2004-05-27 2005-12-07 深圳市朗科科技有限公司 Equipment, method and system for realizing equipment interconnection
CN101247594A (en) * 2008-03-14 2008-08-20 中山大学 Method for implementing file transfer technology based on mobile terminal control
CN202217275U (en) * 2011-08-19 2012-05-09 浙江一舟电子科技股份有限公司 Universal serial bus (USB) Bridge data transmission device
CN102541793A (en) * 2011-12-26 2012-07-04 浙江大学 USB (universal serial bus) based high-speed dual-computer data exchange method and data exchange device
CN102880580A (en) * 2011-07-13 2013-01-16 瀚邦科技股份有限公司 Apparatus and method for peer-to-peer communication over universal serial bus link

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW390984B (en) * 1998-07-01 2000-05-21 Genesys Logic Inc The USB bridge connection apparatus for host to host
CN1704917A (en) * 2004-05-27 2005-12-07 深圳市朗科科技有限公司 Equipment, method and system for realizing equipment interconnection
TWM274697U (en) * 2005-03-10 2005-09-01 Ours Technology Inc Hub having host-to-host transmission function
CN101247594A (en) * 2008-03-14 2008-08-20 中山大学 Method for implementing file transfer technology based on mobile terminal control
CN102880580A (en) * 2011-07-13 2013-01-16 瀚邦科技股份有限公司 Apparatus and method for peer-to-peer communication over universal serial bus link
CN202217275U (en) * 2011-08-19 2012-05-09 浙江一舟电子科技股份有限公司 Universal serial bus (USB) Bridge data transmission device
CN102541793A (en) * 2011-12-26 2012-07-04 浙江大学 USB (universal serial bus) based high-speed dual-computer data exchange method and data exchange device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052102A (en) * 2020-08-04 2020-12-08 深圳航天智慧城市系统技术研究院有限公司 System and method for dynamically and movably storing shared data based on edge computing technology

Also Published As

Publication number Publication date
CN105022705B (en) 2018-01-12

Similar Documents

Publication Publication Date Title
TWI393009B (en) Data sharing and transfer systems and methods
US9804859B2 (en) Re-enumeration of USB 3.0 compatible devices
CN107908589B (en) I3C communication verification system and method for verifying slave device and master-slave device
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
CN111953387A (en) Near field communication and wireless power
JP2010061670A (en) Bus connection system
JP2005526407A (en) Data transfer method and apparatus
CN106407145A (en) An interface access method and system and a memory card
US20080288698A1 (en) Card reader controlling apparatus based on secure digital protocol
CN101276316A (en) Apparatus, method, and system for controlling communication between host device and usb device
CN101937413B (en) Communication method of I2C bus
TWI541657B (en) Electronic device providing real-time switching and sharing of usb electronic apparatuses among hosts
CN104615558A (en) Data transferring method and electronic device
US8891523B2 (en) Multi-processor apparatus using dedicated buffers for multicast communications
CN105279110B (en) A kind of method and USB device of USB device identification host system
CN112286852B (en) Data communication method and data communication device based on IIC bus
CN104899164B (en) Address addressing method for integrated circuit bus, integrated circuit bus device and system
CN105022705A (en) Method and device for data sharing between equipments
CN103973534A (en) Method and device for simulating sharing of USB flash disk
CN114063513B (en) Power module parallel operation address allocation method
CN200976125Y (en) Virtual serial device
US20110307638A1 (en) Data transmission cable with otg function
TWM494348U (en) Electronic device providing real-time switching and sharing of USB electronic apparatuses among hosts
EP3413205A1 (en) Re-enumeration of usb 3.0 compatible devices
CN101976230A (en) Transaction translator of universal serial bus and input request isochronous transaction method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee after: ACTIONS TECHNOLOGY Co.,Ltd.

Address before: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder