WO2023065162A1 - 移动存储装置的数据传输方法、装置和存储介质 - Google Patents

移动存储装置的数据传输方法、装置和存储介质 Download PDF

Info

Publication number
WO2023065162A1
WO2023065162A1 PCT/CN2021/125055 CN2021125055W WO2023065162A1 WO 2023065162 A1 WO2023065162 A1 WO 2023065162A1 CN 2021125055 W CN2021125055 W CN 2021125055W WO 2023065162 A1 WO2023065162 A1 WO 2023065162A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
host
data
signal
protocol
Prior art date
Application number
PCT/CN2021/125055
Other languages
English (en)
French (fr)
Inventor
童刚
耶方明
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/125055 priority Critical patent/WO2023065162A1/zh
Publication of WO2023065162A1 publication Critical patent/WO2023065162A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Definitions

  • the invention relates to the field of storage, in particular to a data transmission method, device and storage medium of a mobile storage device.
  • a removable storage device As an external storage device, a removable storage device is widely used to store data acquired from different types of hosts and/or provide stored data to different types of hosts.
  • different types of hosts have supported different signal protocols for communicating with external mobile storage devices, which means that some types of hosts can directly access mobile storage devices and perform data interaction with mobile storage devices.
  • Some types of hosts must pass through a signal protocol replacement device (such as a card reader) to perform data interaction with the mobile storage device, which severely limits the ease of use of the mobile storage device.
  • Embodiments of the present invention provide a data transmission method, device and storage medium of a mobile storage device, which are used to enable the mobile storage device to directly access different types of hosts and perform data interaction with the host, improving the usability of the mobile storage device .
  • the first aspect of the embodiments of the present invention provides a data transmission method for a mobile storage device, the mobile storage device includes a general data interface and a storage medium, including: detecting the type of the host connected to the general data interface; if the host When the type is the first type, use the first signal protocol to receive the data sent by the host through the general data interface, and use the first signal protocol to store the data in the storage medium; if the host type is the second Type, use the second signal protocol to receive the data sent by the host through the general data interface to the signal protocol conversion device, use the signal protocol conversion device to convert the data conforming to the second signal protocol into data conforming to the first signal protocol, and storing the data in the storage medium by using the first signal protocol.
  • the second aspect of the embodiments of the present invention provides a mobile storage device, the mobile storage device includes a general data interface and a storage medium, and the mobile storage device further includes: a processor and a memory; the memory is used to store programs; The processor is used to call and execute the program to implement the following steps: detecting the type of the host connected to the universal data interface; if the host type is the first type, using the first signal protocol to receive the host through the The data sent by the universal data interface, and use the first signal protocol to store the data in the storage medium; if the type of the host is the second type, use the second signal protocol to receive the host through the universal data interface The sent data is sent to the signal protocol conversion device, and the signal protocol conversion device is used to convert the data conforming to the second signal protocol into data conforming to the first signal protocol, and using the first signal protocol to store the data in the storage medium .
  • a third aspect of the present invention is to provide a storage medium, the storage medium is a readable storage medium, and program instructions are stored in the readable storage medium, and the program instructions are used in the method described in the first aspect.
  • Embodiments of the present invention provide a data transmission method, device, and storage medium for a mobile storage device.
  • the mobile storage device detects the type of the host connected to the universal data interface to determine the type of the host currently connected to the mobile storage device, and according to the detected host type Different types of signal protocol strategies are used to exchange data between the medium that implements the mobile storage device and the host that is accessed. In this manner, the mobile storage device can be directly connected to different types of hosts, which improves the ease of use of the mobile storage device and improves user experience.
  • FIG. 1 is a schematic flowchart of a data transmission method for a mobile storage device provided by an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a mobile storage device provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a storage bin provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of switching provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of switching provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of pins provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of pins provided by an embodiment of the present invention.
  • Fig. 8 is a schematic diagram of the compatible adaptation of the CFexpress counterfeit card and the mobile storage device provided by the embodiment of the present invention.
  • Fig. 9 is a schematic diagram of cooperation between a storage bin and a mobile storage device provided by an embodiment of the present invention.
  • Fig. 10 is a schematic structural diagram of a data transmission device of a mobile storage device provided by an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a mobile storage device provided by an embodiment of the present invention.
  • the host must pass the signal protocol replacement device (such as a card reader) to perform data interaction with the mobile storage device, which seriously limits the ease of use of the mobile storage device.
  • the signal protocol such as PCIE protocol
  • the signal protocol supported by shooting devices such as video cameras and cameras to communicate with external mobile storage devices
  • the external mobile storage devices supported by personal terminals such as notebook computers, laptop computers, desktop computers or tablet computers.
  • the signal protocol (such as USB protocol) for mobile storage devices to communicate is different, so that mobile storage devices (such as high-speed mobile storage devices) can be directly connected to the camera to achieve data interaction, and mobile storage devices must be replaced by signal protocols (for example, a card reader) can be connected to a personal terminal to realize data interaction.
  • signal protocols For example, a card reader
  • the embodiments of the present invention provide the following data transmission method, device, and storage medium of a mobile storage device, and describe them in detail.
  • Fig. 1 is a schematic flowchart of a data transmission method of a mobile storage device provided by an embodiment of the present invention
  • the method 100 provided by the embodiment of the present application can be executed by a mobile storage device, and the mobile storage device includes: a general data interface and a storage medium.
  • the method 100 includes the following steps:
  • the host type is the first type, use a first signal protocol to receive data sent by the host through a common data interface, and use the first signal protocol to store the data in a storage medium.
  • the host type is the second type, use the second signal protocol to receive and send the data sent by the host through the general data interface to the signal protocol conversion device, and use the signal protocol conversion device to convert the data conforming to the second signal protocol into conforming to the first data of a signal protocol, and use the first signal protocol to store the data in the storage medium.
  • the mobile storage device in the embodiment of the present application may be a device or device capable of implementing a mobile storage function such as a memory, a memory stick, etc.
  • the mobile storage device is portable and convenient for users to use.
  • the universal data interface refers to a relatively widely used interface for data transmission, such as a USB (Universal Serial Bus, Universal Serial Bus) interface. If there are other data interfaces that are more widely used, they may also be other data interfaces, and there are no too many restrictions here.
  • USB Universal Serial Bus, Universal Serial Bus
  • the host refers to the device used to connect with the data interface, and the host can have different types. Such as the first type and the second type.
  • the first type of host may be a photographing device, such as a camera, a video camera, and the like.
  • the second type of host can be a personal terminal, such as a notebook computer, a laptop computer, a desktop computer, a tablet computer, and the like.
  • the mobile storage device 207 can include a general data interface A201, i.e. a general data interface, such as a USB tpyeC interface (which is a USB interface standard, which can be applied to PC (Personal Computer, personal computer) , can be used as a master device), and can be applied to an external device (a slave device, such as a mobile phone) interface type).
  • a general data interface A201 i.e. a general data interface, such as a USB tpyeC interface (which is a USB interface standard, which can be applied to PC (Personal Computer, personal computer) , can be used as a master device), and can be applied to an external device (a slave device, such as a mobile phone) interface type).
  • a general data interface A201 i.e. a general data interface, such as a USB tpyeC interface (which is a USB interface standard, which can be applied to PC (Personal Computer, personal computer) , can be used as a master device),
  • the mobile storage device 207 also includes a storage medium 206, which can be a data storage device, such as an SSD or a memory card, more specifically an M.2 memory card (M.2 is an interface scheme that is compatible with multiple A variety of communication protocols, such as PCIE (peripheral component interconnect express, a high-speed serial computer expansion bus standard) protocol), CFexpress card (a memory card, CFexpress card type B), etc. This can achieve read and write rates of over 1000MB/s (megabytes per second).
  • PCIE peripheral component interconnect express, a high-speed serial computer expansion bus standard
  • CFexpress card a memory card, CFexpress card type B
  • the mobile storage device 207 also includes two switches, such as “switch 1” 202 and “switch 2” 205 . There are also two channels between the two switches, corresponding to different protocol paths. One of them is a channel realized through the circuit board wiring 203 , and the other is a path realized through the signal protocol conversion device 204 . Different channels are switched by two switches.
  • detecting the type of the host connected to the universal data interface includes: acquiring a level signal of a preset pin in the universal data interface; and determining the type of the host connected to the universal data interface according to the level signal.
  • the mobile storage device 207 such as a memory stick
  • the host can be connected to the host through its general data interface A201, such as a USB tpyeC interface, more specifically, a USB tpyeC socket.
  • A201 such as a USB tpyeC interface, more specifically, a USB tpyeC socket.
  • the mobile storage device 207 such as a memory stick
  • the general data interface A201 such as a USB tpyeC female seat.
  • the connection device 301 may include a connection interface 302 and a common data interface B303.
  • the connection interface 302 can be a CFexpress fake card (it can be a CFexpress standard card), that is, it is only used to connect with the CFexpress card holder, and is also connected with the general data interface B303 at the same time, but does not realize the reading and writing of data.
  • the general data interface B303 can be a USB tpyeC interface, more specifically, it can be a USB tpyeC male socket, which matches the USB tpyeC female socket.
  • the host computer and the mobile storage device 207 can be connected through the connection interface 302 . More specifically, the CFexpress socket on the host is connected to the mobile storage device 207 .
  • connection device may also be called a storage bin.
  • the storage bin can be used to connect the host (more specifically, it can be the card socket on the host) and the mobile storage device. That is, the mobile storage device can be used with a storage bin.
  • the compatible adaptation between the CFexpress card (Type B, that is, the CFexpress fake card) and the mobile storage device is realized.
  • USB data cable In addition to the connection in this way, it can also be connected through a USB data cable.
  • the host when the host is connected to the mobile storage device 207, it can also be connected to the general data interface B303 through the USB data line 503, which can be a USB tpyeC interface, and the USB data interface 501 of the host. to connect.
  • the corresponding level signal can be obtained from the preset pin pin of the general data interface (the general data interface A201 shown in Figure 4).
  • the mobile storage device can obtain the level signal of the preset pin pin on the universal data interface (eg, the universal data interface A201 shown in FIG. 4 ).
  • the mobile storage device determines whether the corresponding host type is the first type, such as a camera, or the second type, such as a computer, according to the obtained level signal.
  • acquiring the level signal of the preset pin in the common data interface includes: acquiring the level signal of the target power supply pin or the target ground pin in the common data interface.
  • the target power supply pin refers to a pin related to the supply voltage VCC.
  • the target ground pin refers to a pin related to the ground terminal GND.
  • the protocol of the differential line can be multiplexed into the pin definition of the corresponding protocol of the USB protocol differential pair or the PCIE protocol data clock differential pair.
  • the supply voltage VCC pin 601 of the USB protocol four can be defined, but only three are shown in Figure 6
  • a power supply voltage pin VCC601 can be specially defined as a switch SW power supply voltage VCC pin 602 to realize the conversion of the USB3.1gen2 protocol interface (that is, the corresponding pin is the power supply voltage VCC pin 601 before conversion, here In FIG. 6, only the converted switch SW power supply voltage VCC pin 602 is shown).
  • a power supply voltage pin VCC601 can be specially defined as the switch SW ground terminal GND pin 702 to realize the conversion of the PCIE3.0 protocol interface (that is, the corresponding pin is the power supply voltage VCC pin 601 before conversion, here In FIG. 7, only the converted switch SW ground terminal GND pin 702 is shown).
  • the high-speed interface switching function is realized through custom pins.
  • a power supply voltage VCC pin as the switch SW power supply voltage VCC pin or the switch SW ground terminal GND pin 702
  • the adaptive switching between the USB3.1gen2 interface and the PCIE3.0 interface can be supported.
  • the mobile storage device can obtain the target power supply pin (such as the switch SW Supply voltage VCC pin) or the level signal of the target ground pin (such as the switch SW ground terminal GND pin).
  • the target power supply pin such as the switch SW Supply voltage VCC pin
  • the level signal of the target ground pin such as the switch SW ground terminal GND pin
  • determining the type of the host connected to the general data interface according to the level signal includes: if the level signal of the target power pin is a low level signal, determine that the type of the host is the first type; if the target power pin The level signal of is a high level signal, and the type of the host computer is determined to be the second type.
  • the mobile storage device 207 when the mobile storage device 207 is connected to a host such as a camera, in the connection device 301, it is connected to the mobile storage device 207 through the ground terminal 401, or in other words, through the ground terminal 401.
  • Terminal 401 to send signals.
  • the ground terminal 401 sends a low-level signal to the general data interface A201 through a general data interface B303, such as a USB tpyeC male socket, such as a USB tpyeC female socket, and the switch SW ground terminal GND pin of the female socket receives a low signal.
  • level signal thus, the mobile storage device 207 also receives the low level signal, so it can be determined according to the low level signal that the host type is the first type, such as a camera.
  • the mobile storage device 207 when the mobile storage device 207 is connected to a host computer such as a computer, in the USB data line 503, it is connected to the mobile storage device 207 through the power supply voltage VCC502, or in other words, the power supply voltage VCC502 is used to send signals. .
  • the power supply voltage VCC502 and the common data interface B303 such as the USB tpyeC male socket
  • the general data interface A201 such as the USB tpyeC female socket
  • the switch SW power supply voltage VCC pin of the female socket receives A high-level signal
  • the mobile storage device 207 also receives the high-level signal, so it can be determined according to the high-level signal that the type of the host is the second type, such as a computer.
  • determining the type of the host in this way, it can also be determined independently by the user, and the user can determine the type of the host through an interactive device. Reducing costs can also improve accuracy.
  • the mobile storage device includes an interactive device for detecting the type of the host connected to the universal data interface, including: selecting the user's host type indication operation through the interactive device; determining the type of the host connected to the universal data interface according to the detected operation.
  • the interaction device may be a peripheral button or a toggle switch.
  • the key or switch can be set on the mobile storage device or on the remote controller.
  • the user can check which type of host the mobile storage device is connected to. If it is currently connected to a computer, the user can send an instruction to the mobile storage device by clicking a second type of button.
  • the mobile storage device determines that the type of the host is the second type according to the received or detected operation of clicking the button, such as clicking the second type of button.
  • the first type is also similar, so it will not be described again, and it may be the operation of clicking the first type of button.
  • the toggle switch is also similar in shape, and the user determines the corresponding operation of the mobile storage device through the operation of the toggle switch to determine the corresponding host type, which will not be repeated here.
  • the host type is the first type, use a first signal protocol to receive data sent by the host through a common data interface, and use the first signal protocol to store the data in a storage medium.
  • the first signal protocol may mean that the first signal protocol is a PCIE protocol, such as a PCIE3.0 protocol.
  • the mobile storage device 207 determines that the host type is the first type, such as a camera.
  • the low-level signal received by the general data interface A201 such as the USB tpyeC socket, is used to control the SW signal of the high-speed signal switch switch, thereby controlling the signal connection direction of "switch 1" 202 and "switch 2" 205.
  • "switch 1" 202 and “switch 2" 205 may be single-pole double-throw switches. That is, the first signal connection direction 403 controlling the two SPDT switches, when connected to the camera, may be connected through the connection device 301 , that is, the storage bin.
  • the SW signal is pulled low by the ground terminal 401 of the storage bin, that is, a low level signal is received.
  • the high-speed signal switch switch that is, "switch 1" 202 and “switch 2" 205 is switched to the channel where the circuit board wiring 203 is located, that is, the channel of high-speed PCB (Printed Circuit Board, printed circuit board) wiring, thus,
  • the storage medium 206 such as an M.2 memory card, can be connected to the camera through the USB TYPEC female socket and the PCIE3.0 protocol through the CFexpress TypeB socket of the storage compartment, so as to realize the reading and writing of high-speed video streams.
  • the circuit board routing channel refers to the channel realized by the routing on the circuit board. That is, the reading and writing of data by the PCIE3.0 protocol is realized through the circuit board. However, the reading of the protocol needs to be realized by wiring on the circuit board.
  • the method 100 may further include: if the host type is the first type, using the first signal protocol to obtain data from the storage medium, and using the first A signal protocol is sent to the host through the common data interface.
  • This process is the inverse process of the above-mentioned reading process, and will not be described in detail here.
  • data is read from a storage medium such as an M.2 memory card through this channel, and is transmitted to the camera's memory card according to this channel.
  • the ground terminal 401 passes through the signal transmission link 402 so that the first signal connection direction 403 of the two switches is determined.
  • the first signal connection direction 403 corresponds to the channel where the circuit board wiring 203 is located.
  • the high-speed memory of the first type of host or device such as cameras and cameras mostly adopts the PCIE (peripheral component interconnect express, a high-speed serial computer expansion bus standard) protocol. memory. This leads to the need for an additional card reader when this type of storage is connected to a second type of host or device such as a computer to export data, which is not convenient enough.
  • PCIE peripheral component interconnect express, a high-speed serial computer expansion bus standard
  • the host type is the second type, use the second signal protocol to receive and send the data sent by the host through the general data interface to the signal protocol conversion device, and use the signal protocol conversion device to convert the data conforming to the second signal protocol into conforming to the first data of a signal protocol, and use the first signal protocol to store the data in the storage medium.
  • the second signal protocol may be a USB protocol, such as a USB3.1gen2 protocol.
  • the mobile storage device 207 determines that the host type is the second type, such as a computer.
  • the high-level signal received by the general data interface A201 such as the USB tpyeC socket, is used to control the SW signal of the high-speed signal switch switch, thereby controlling the signal connection direction of "switch 1" 202 and "switch 2" 205.
  • "switch 1" 202 and “switch 2" 205 may be single-pole double-throw switches. That is, the second signal connection direction 504 controlling the two SPDT switches may be connected to a computer through a USB data cable 503 .
  • the SW signal is pulled high by the power supply voltage VCC of the USB data line 503 , that is, a high level signal is received.
  • the high-speed signal switch switch that is, "switch 1" 202 and “switch 2" 205 is switched to the signal protocol conversion device 204, such as the channel of PICE to USB interface chip.
  • the storage medium 206 can convert the USB protocol to the PCIE protocol through the USB TYPEC female socket, such as converting the USB3.1gen2 protocol to the PCIE3.0 protocol, so that the data of the USB3. .0 protocol data, and then stored to the M.2 memory card, that is to complete the data reading.
  • the M.2 memory card can convert the PCIE protocol to the USB protocol through the signal protocol conversion device 204, and then connect to the computer through the USB TYPEC female seat and the USB data cable 503 to realize the connection between the computer and the mobile storage device 207, such as a memory stick. data write. I won't repeat it here.
  • the signal protocol conversion device it can realize the conversion of the USB protocol to the PCIE protocol, or can realize the conversion of the PCIE protocol to the USB protocol. It can also be used as another channel, that is, the channel of the PCIE to USB interface chip. It can be seen that the device can be realized by a chip. During the reading process, the chip converts the data of the USB protocol into the data of the PCIE protocol, and then realizes the reading of the data by the PCIE3.0 protocol through the above-mentioned circuit board.
  • the chip converts the data of the PCIE protocol from the above-mentioned circuit board (data obtained from the memory card) into the data of the USB protocol, and then transmits data to the USB protocol through the subsequent general data interface A201, etc.
  • the writing of protocol data will not be repeated here.
  • the chip can be connected with the above circuit board.
  • this embodiment realizes the self-adaptive switching between USB3.1gen2 and PCIE3.0, which not only guarantees the high-speed video stream storage (writing at a steady state of 700MB/s) for devices such as cameras and video cameras, but also guarantees Easy to use when connected to a computer. It achieves the effect of both speed and convenience, and at the same time realizes the switching of the protocol adaptively, achieving an excellent user experience.
  • the method 100 may further include: if the host type is the second type, using the first signal protocol to send the data obtained from the storage medium to
  • the signal protocol conversion device uses the signal protocol conversion device to convert the data conforming to the first signal protocol into data conforming to the second signal protocol, and uses the second signal protocol to send the data to the host through the common data interface.
  • This process is the reverse process of the above-mentioned second type of host reading process, and will not be described in detail here. Just to explain: Since the current channel is the channel of the PICE to USB interface chip, the data is read through the above-mentioned circuit board and the storage medium of this channel, such as an M.2 memory card, and is transmitted to the computer according to the circuit board and this channel. Complete the writing process.
  • the CFexpress card holder 802 of the camera 804 can be used with a standard CFexpress Type B card, or can be used with the mobile storage device provided in the embodiment of the present application. Realized the compatible adaptation of CFexpress Type B card and mobile storage device 207.
  • the storage bin 805 is inserted into the CFexpress card holder 802 of the camera 804 through its CFexpress fake card 801 .
  • a structure fool-proof 803 is provided on the CFexpress fake card 801, so that the fake card and the storage compartment 805 are correctly inserted into the camera.
  • the camera 804 is inserted into the storage compartment 805 , it is further inserted into the storage mobile device 207 , such as a memory stick. It is also possible to set a structure foolproof on the storage mobile device 207, and through this structure foolproof can realize the anti-reverse plugging of the PCIE3.
  • Fig. 10 is a schematic structural diagram of a data transmission device of a mobile storage device provided by an embodiment of the present invention
  • the device 1000 can be applied to a mobile storage device, such as a memory, a memory stick, etc., and the mobile storage device includes a general data interface and storage medium.
  • the device 1000 can execute the above-mentioned data transmission method of a mobile storage device.
  • the device 1000 includes: a detection module 1001 , a storage module 1002 and a conversion module 1003 .
  • the following is a detailed description of the functions of each module:
  • the detection module 1001 is configured to detect the type of the host connected to the common data interface.
  • the storage module 1002 is configured to use the first signal protocol to receive the data sent by the host through the general data interface if the host type is the first type, and store the data in the storage medium by using the first signal protocol.
  • the conversion module 1003 is used to receive and send the data sent by the host through the general data interface to the signal protocol conversion device by using the second signal protocol when the host type is the second type, and use the signal protocol conversion device to convert the data conforming to the second signal protocol Converting to data conforming to the first signal protocol, and storing the data in the storage medium by using the first signal protocol.
  • the detection module 1001 includes: an acquisition unit, configured to acquire a level signal of a preset pin in the universal data interface; a determination unit, configured to determine the type of the host connected to the universal data interface according to the level signal.
  • the acquiring unit is configured to acquire a level signal of a target power supply pin or a target ground pin in the common data interface.
  • the determination unit is used to determine the type of the host as the first type if the level signal of the target power supply pin is a low-level signal; if the level signal of the target power supply pin is a high-level signal, determine the type of the host The type is the second type.
  • the mobile storage device includes an interaction device, specifically, a detection module 1001, including: a selection unit for selecting the user's host type instruction operation through the interaction device; a determination unit for determining the universal data interface connection according to the detected operation The type of host.
  • a detection module 1001 including: a selection unit for selecting the user's host type instruction operation through the interaction device; a determination unit for determining the universal data interface connection according to the detected operation The type of host.
  • the device 1000 further includes: an acquisition module, configured to acquire data from the storage medium by using the first signal protocol if the host type is the first type, and send the data to the host by using the first signal protocol through the general data interface.
  • an acquisition module configured to acquire data from the storage medium by using the first signal protocol if the host type is the first type, and send the data to the host by using the first signal protocol through the general data interface.
  • the device 1000 also includes: a sending module, configured to use the first signal protocol to send the data obtained from the storage medium to the signal protocol conversion device if the host type is the second type, and use the signal protocol conversion device to conform to the first signal protocol
  • the data of a signal protocol is converted into the data conforming to the second signal protocol, and the data is sent to the host through the general data interface by using the second signal protocol.
  • the first type of host is a shooting device.
  • the second type of host is a personal terminal.
  • the first signal protocol is the PCIE protocol.
  • the second signal protocol is the USB protocol.
  • the common data interface is a USB interface.
  • the structure of the data transmission device 1000 of the mobile storage device shown in FIG. 10 can be implemented as an electronic device, and the electronic device can be a mobile storage device, such as a memory or a memory stick.
  • the mobile storage device includes a common data interface and a storage medium.
  • the device 1100 may include: one or more processors 1101 , and one or more memories 1102 .
  • the memory 1102 is used to store a program that supports the electronic device to execute the data transmission method of the mobile storage device provided in the above embodiments shown in FIGS. 1-9 .
  • the processor 1101 is configured to execute programs stored in the memory 1102 .
  • the program includes one or more computer instructions, wherein, when one or more computer instructions are executed by the processor 1101, the following steps can be realized:
  • the processor 1101 is specifically configured to: acquire a level signal of a preset pin in the universal data interface; and determine a type of a host connected to the universal data interface according to the level signal.
  • the processor 1101 is specifically configured to: acquire a level signal of a target power pin or a target ground pin in the general data interface.
  • the processor 1101 is specifically configured to: if the level signal of the target power supply pin is a low level signal, determine that the type of the host is the first type; if the level signal of the target power supply pin is a high level signal, It is determined that the type of the host is the second type.
  • the mobile storage device includes an interaction device, and a processor 1101 is specifically configured to: select a user's host type instruction operation through the interaction device; and determine the type of the host connected to the universal data interface according to the detected operation.
  • the processor 1101 is further configured to: if the type of the host is the first type, use the first signal protocol to obtain data from the storage medium, and use the first signal protocol to send data to the host through the common data interface.
  • the processor 1101 is also configured to: if the host type is the second type, use the first signal protocol to send the data obtained from the storage medium to the signal protocol conversion device, and use the signal protocol conversion device to conform to the first signal protocol Converting the data into data conforming to the second signal protocol, and using the second signal protocol to send the data to the host through the general data interface.
  • the first type of host is a shooting device.
  • the second type of host is a personal terminal.
  • the first signal protocol is the PCIE protocol.
  • the second signal protocol is the USB protocol.
  • the common data interface is a USB interface.
  • the specific implementation form of the above-mentioned processor may be a circuit chip, a main chip or other microcontrollers.
  • an embodiment of the present invention provides a storage medium, the storage medium is a readable storage medium, and program instructions are stored in the readable storage medium, and the program instructions are used to realize the data transmission of the above-mentioned mobile storage devices in Figures 1-9 method.
  • the related detecting device for example: IMU
  • the embodiments of the remote control device described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of remote control devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium , including several instructions for causing a computer processor (processor) to execute all or part of the steps of the method described in each embodiment of the present invention.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

Abstract

本申请实施例提供了一种移动存储装置的数据传输方法、装置和存储介质。移动存储装置检测通用数据接口连接的主机的类型以判断移动存储装置当前接入的主机的类型,并根据检测到的主机的类型来采用不同的信号协议策略向实现移动存储装置的介质与接入的主机实现数据交换。通过这种方式,移动存储装置可以直接地接入不同类型的主机,提高了移动存储装置的易用性,改善了用户的使用感受。

Description

移动存储装置的数据传输方法、装置和存储介质 技术领域
本发明涉及存储领域,尤其涉及一种移动存储装置的数据传输方法、装置和存储介质。
背景技术
移动存储装置作为一个外接的存储装置,被广泛用来存储从不同类型的主机中获取的数据和/或向不同类型的主机提供存储的数据。然而,长期以来,不同类型的主机所支持的与外接的移动存储装置进行通信的信号协议不同,这就出现某些类型的主机可以直接接入移动存储装置并与移动存储装置进行数据交互,某些类型的主机必须要通过信号协议装换装置(例如读卡器)才能与移动存储装置进行数据交互,这样严重地限制了移动存储装置的易用性。
发明内容
本发明实施例提供了一种移动存储装置的数据传输方法、装置和存储介质,用于使得移动存储装置可以直接接入不同类型的主机并与主机进行数据交互,提高移动存储装置的易用性。
本发明实施例的第一方面提供一种移动存储装置的数据传输方法,所述移动存储装置包括通用数据接口和存储介质,包括:检测所述通用数据接口连接的主机的类型;若所述主机类型为第一类型时,利用第一信号协议接收所述主机通过通用数据接口发送的数据,并利用第一信号协议将所述数据存储到所述存储介质中;若所述主机类型为第二类型时,利用第二信号协议接收将所述主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将所述数据存储到所述存储介质中。
本发明实施例的第二方面提供一种移动存储装置,所述移动存储装置包括通用数据接口和存储介质,所述移动存储装置还包括:处理器和存储器;所述存储器,用于存储程序;所述处理器,用于调用并执行程序,以实现如下步骤:检测所述通用数据接口连接的主机的类型;若所述主机类型为第一 类型时,利用第一信号协议接收所述主机通过通用数据接口发送的数据,并利用第一信号协议将所述数据存储到所述存储介质中;若所述主机类型为第二类型时,利用第二信号协议接收将所述主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将所述数据存储到所述存储介质中。
本发明的第三方面是为了提供一种存储介质,所述存储介质为可读存储介质,该可读存储介质中存储有程序指令,所述程序指令用于第一方面所述的方法。
本发明实施例提供移动存储装置的数据传输方法、装置和存储介质,移动存储装置检测通用数据接口连接的主机的类型以判断移动存储装置当前接入的主机的类型,并根据检测到的主机的类型来采用不同的信号协议策略向实现移动存储装置的介质与接入的主机实现数据交换。通过这种方式,移动存储装置可以直接地接入不同类型的主机,提高了移动存储装置的易用性,改善了用户的使用感受。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本发明实施例提供的移动存储装置的数据传输方法的流程示意图;
图2为本发明实施例提供的移动存储装置的结构示意图;
图3为本发明实施例提供的存储仓的示意图;
图4为本发明实施例提供的开关切换的示意图;
图5为本发明实施例提供的开关切换的示意图;
图6为本发明实施例提供的管脚的示意图;
图7为本发明实施例提供的管脚的示意图;
图8为本发明实施例提供的CFexpress假卡和移动存储装置的兼容适配的示意图;
图9为本发明实施例提供的存储仓和移动存储装置的配合的示意图;
图10本发明实施例提供的一种移动存储装置的数据传输装置的结构示意 图;
图11本发明实施例提供的一种移动存储装置的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。
下面结合附图,对本发明的一些实施方式作详细说明。在各实施例之间不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
长期以来,不同类型的主机所支持的与外接的移动存储装置进行通信的信号协议不同,这就出现某些类型的主机可以直接接入移动存储装置并与移动存储装置进行数据交互,某些类型的主机必须要通过信号协议装换装置(例如读卡器)才能与移动存储装置进行数据交互,这样严重地限制了移动存储装置的易用性。例如,摄像机、照相机等拍摄装置所支持的与外接的移动存储装置进行通信的信号协议(例如PCIE协议)与笔记本电脑、膝上型电脑、台式电脑或者平板电脑等个人终端所支持的与外接的移动存储装置进行通信的信号协议(例如USB协议)不同,这样会出现移动存储装置(例如高速移动存储装置)可以直接接入拍摄装置实现数据交互,移动存储装置必须要通过信号协议装换装置(例如读卡器)才能接入个人终端实现数据交互。这就导致用户要自己判断哪些主机可以直接接入移动存储装置,哪些主机需要信号协议装换装置来接入移动存储装置,并且需要额外配置信号协议转换装置,这样使用不够方便,降低了移动存储装置的易用性。为解决上述问题,本发明实施例提供以下移动存储装置的数据传输方法、装置和存储介质,并进行具体说明。
图1为本发明实施例提供的一种移动存储装置的数据传输方法的流程示意图;本申请实施例提供的该方法100可以由移动存储装置执行,移动存储装 置包括:通用数据接口和存储介质。该方法100包括以下步骤:
101:检测通用数据接口连接的主机的类型。
102:若主机类型为第一类型时,利用第一信号协议接收主机通过通用数据接口发送的数据,并利用第一信号协议将数据存储到存储介质中。
103:若主机类型为第二类型时,利用第二信号协议接收将主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将数据存储到存储介质中。
需要说明的是,本申请实施例移动存储装置可以是存储器、存储棒等可以实现移动存储功能的设备或者装置,移动存储装置便携带,方便用户使用。
以下针对上述步骤进行详细地阐述:
101:检测通用数据接口连接的主机的类型。
其中,通用数据接口是指较为广泛使用的接口,用于数据传输,如可以为USB(Universal Serial Bus,通用串行总线)接口。如果还有其它数据接口较为广泛应用,也可以是其它数据接口,此处不进行过多限制。
主机是指用于与通过数据接口进行连接的设备,该主机可以有不同类型。如第一类型和第二类型。其中,第一类型的主机可以为拍摄装置,如照相机、摄像机等。第二类型的主机可以为个人终端,如笔记本电脑、膝上型电脑、台式电脑、平板电脑等。
通过移动存储装置,如存储棒,可以检测到与其连接的主机类型。例如,如图2所示,该移动存储装置207可以包括通用数据接口A201,即通用数据接口,如,USB tpyeC接口(是一种USB接口外形标准,既可以应用于PC(Personal Computer,个人计算机,可以作为主设备),又可以应用于外部设备(从设备,如手机)的接口类型)。该移动存储装置207还包括存储介质206,所述存储介质可以为数据存储装置,如SSD或者存储卡,更具体的可以是M.2记忆卡(M.2是一种接口方案,可以兼容多种通信协议,如,PCIE(peripheral component interconnect express,一种高速串行计算机扩展总线标准)协议)、CFexpress卡(一种存储卡,CFexpress卡type B)等。这样可以达到超过1000MB/s(兆字节每秒)的读写速率。
除此以外,该移动存储装置207还包括两个开关,如“开关1”202和“开关2”205。在这两个开关之间还具有两个通道,分别对应不同的协议通路。 其中一个是通过电路板走线203实现的通道,另一个是通过信号协议转换装置204实现的通路。通过两个开关来切换不同的通道。
具体的,检测通用数据接口连接的主机的类型,包括:获取通用数据接口中预设管脚的电平信号;根据电平信号确定与通用数据接口连接的主机的类型。
例如,根据前文所述,如图2所示,移动存储装置207,如存储棒,可以通过其通用数据接口A201,如,USB tpyeC接口,更具体的可以是USB tpyeC母座与主机进行连接。
更具体的,如图3所示,将移动存储装置207,如存储棒,通过其通用数据接口A201,如USB tpyeC母座与主机进行连接。在连接的时候,还需要通过一个连接装置301进行主机与移动存储装置207的USB tpyeC母座进行连接。在该连接装置301中可以包括连接接口302以及通用数据接口B303。其中,连接接口302可以是一个CFexpress假卡(其可以是个CFexpress标准卡),即其只是用于与CFexpress卡座进行连接,同时还与通用数据接口B303连接,但不实现数据的读写,只是进行数据的传输。通用数据接口B303可以是USB tpyeC接口,更具体的可以是USB tpyeC公座,与USB tpyeC母座相匹配。使得通过该连接接口302即可以将主机与移动存储装置207进行连接。更具体的是,主机上的CFexpress卡座与移动存储装置207进行连接。
需要说明的是,在该连接方式下,上述连接装置也可以称为存储仓。该存储仓可以用于连接主机(更具体的可以是主机上的卡座)与移动存储装置。即该移动存储装置可以搭配存储仓来使用。
利用CFexpress假卡的物理接口,实现了CFexpress卡(Type B,即CFexpress假卡)和移动存储装置的兼容适配。
除了此种方式的连接外,还可以通过USB数据线的方式进行连接。如图5所示,根据前文所述可知,在主机与移动存储装置207连接的时候,还可以通过USB数据线503分别与通用数据接口B303,可以是USB tpyeC接口,以及主机的USB数据接口501进行连接。
无论通过上述哪种连接方式进行与主机的连接,连接后,可以获取到该通用数据接口(可以如图4所示的通用数据接口A201)的预设管脚pin获取到对应的电平信号,或者说,连接后,移动存储装置可以获取到该通用数据接口(如图4所示的通用数据接口A201)上的预设管脚pin的电平信号。移动存 储装置根据获取到的电平信号来确定对应的主机类型是第一类型,如照相机,还是第二类型,如电脑。
其中,获取通用数据接口中预设管脚的电平信号,包括:获取通用数据接口中目标电源管脚或目标接地管脚的电平信号。
其中,目标电源管脚是指与供电电压VCC相关的管脚。目标接地管脚是指与接地端GND相关的管脚。
具体的,在实现的时候,可以根据USB TYPEC接口的常规管脚pin定义,通过差分线的协议复用为USB协议差分对或者PCIE协议数据时钟差分对来时线对应协议的管脚定义。在定义后,如图6所示,其定义了USB协议的供电电压VCC管脚601(可以定义了四个,但图6中仅示出了三个),如USB3.1gen2协议的供电电压VCC管脚601。然后可以通过对一个供电电压管脚VCC601进行特殊定义为开关SW供电电压VCC管脚602,来实现USB3.1gen2协议接口的转换(即该对应的管脚转换前是供电电压VCC管脚601,此处图6中仅示出了其转换后的开关SW供电电压VCC管脚602)。
相应的,如图7所示,根据前文所知,其也可以定义了PCIE协议(如PCIE3.0协议)的供电电压VCC管脚601(可以定义了四个,但图7中仅示出了三个),如PCIE3.0协议的供电电压VCC管脚601。然后可以通过对一个供电电压管脚VCC601进行特殊定义为开关SW接地端GND管脚702,来实现PCIE3.0协议接口的转换(即该对应的管脚转换前是供电电压VCC管脚601,此处图7中仅示出了其转换后的开关SW接地端GND管脚702)。
由此,通过自定义管脚来实现了高速接口切换的功能。通过利用一个供电电压VCC管脚作为开关SW供电电压VCC管脚或开关SW接地端GND管脚702,可以使得支持实现USB3.1gen2接口和PCIE3.0接口的自适应切换。
基于此,无论通过上述哪种连接方式进行与主机的连接,在连接后移动存储装置均可以通过获取通用数据接口(如图4所示的通用数据接口A201)中目标电源管脚(如开关SW供电电压VCC管脚)或目标接地管脚(如开关SW接地端GND管脚)的电平信号。
更具体的,根据电平信号确定与通用数据接口连接的主机的类型,包括:若目标电源管脚的电平信号为低电平信号,确定主机的类型为第一类型;若目标电源管脚的电平信号为高电平信号,确定主机的类型为第二类型。
例如,根据前文所述,如图4所示,当移动存储装置207与照相机等主机 连接时,在连接装置301中,其通过接地端401与移动存储装置207进行信号连接,或者说通过该接地端401来发送信号。如,该接地端401通过通用数据接口B303,如USB tpyeC公座,发送低电平信号至通用数据接口A201,如USB tpyeC母座,则该母座的开关SW接地端GND管脚接收到低电平信号,由此,移动存储装置207也接收到了该低电平信号,从而根据该低电平信号可以确定主机类型是第一类型,如照相机等。
如图5所示,当移动存储装置207与电脑等主机连接时,在USB数据线503中,其通过供电电压VCC502与移动存储装置207进行信号连接,或者说通过该供电电压VCC502与来发送信号。如,该供电电压VCC502与通过通用数据接口B303,如USB tpyeC公座,发送高电平信号至通用数据接口A201,如USB tpyeC母座,则该母座的开关SW供电电压VCC管脚接收到高电平信号,由此,移动存储装置207也接收到了该高电平信号,从而根据该高电平信号可以确定主机类型是第二类型,如电脑等。
除了该种方式来确定主机的类型,还可以通过用户自主进行确定,用户可以通过交互装置来确定主机类型。降低成本,也可以提高准确率。
具体地,移动存储装置包括交互装置,检测通用数据接口连接的主机的类型,包括:通过交互装置选择用户的主机类型指示操作;根据检测到的操作确定通用数据接口连接的主机的类型。
其中,交互装置可以是外围按键或者拨动开关。该按键或者开关可以设置在移动存储装置上或者遥控器上均可。
例如,用户可以通过查看移动存储装置与哪个类型的主机连接,如当前与电脑连接,则用户通过点击第二类型的按键的操作,向移动存储装置发送指示。移动存储装置根据接收到的或检测到的点击按键的操作,如点击第二类型的按键,则确定出主机类型为第二类型。第一类型也是相似的,就不再赘述了,其可以是点击第一类型的按键操作。
此外,拨动开关也是形似的,用户通过拨动开关的操作来让移动存储装置确定对应的操作,来确定对应的主机类型,就不再赘述了。
102:若主机类型为第一类型时,利用第一信号协议接收主机通过通用数据接口发送的数据,并利用第一信号协议将数据存储到存储介质中。
其中,第一信号协议可以是指第一信号协议为PCIE协议,如PCIE3.0协议。
例如,根据前文所述,如图4所示,当移动存储装置207确定主机类型为 第一类型,如照相机。则通过通用数据接口A201,如USB tpyeC母座,接收到的低电平信号,来控制高速信号开关switch的SW信号,从而来控制“开关1”202和“开关2”205的信号连通方向。其中,如“开关1”202和“开关2”205可以为单刀双掷开关。即控制这两个单刀双掷开关的第一信号连通方向403,当连接到照相机时,可以是通过连接装置301,即存储仓进行连接的。此时,根据前文所知,SW信号被存储仓的接地端401拉低,即接收到了低电平信号。则高速信号开关switch,即“开关1”202和“开关2”205被切换到电路板走线203所在通道,即高速PCB(Printed Circuit Board,印制电路板)走线的通道,由此,存储介质206,如M.2记忆卡可以通过USB TYPEC母座,走PCIE3.0协议,经过存储仓的CFexpress TypeB卡座,连接到照相机,实现高速视频码流的读写。
需要说明的是,对于电路板走线通道,是指通过电路板上的走线实现的通道。即通过电路板来实现PCIE3.0协议对数据的读写。而需要通过在电路板上进行布线来实现协议的读取。
对于从存储介质写入数据至第一类型的主机时,具体的可以为,该方法100还包括:若主机类型为第一类型时,利用第一信号协议从存储介质中获取数据,并利用第一信号协议通过通用数据接口发送给主机。
该过程是上述读取过程的逆过程,就不再过多赘述了。仅说明:由于当前通道是电路板走线通道,通过该通道从存储介质,如M.2记忆卡中读取数据,并根据该通道传输至照相机的存储卡。
此外,如图4所示,其中,接地端401通过信号传输链路402使得两个开关进行了第一信号连通方向403被确定。该第一信号连通方向403对应的电路板走线203所在通道。
由于USB接口的存储器不能满足高速码流的速率需求,所以摄像机、照相机等第一类型的主机或设备的高速存储器大多采用PCIE(peripheral component interconnect express,一种高速串行计算机扩展总线标准)协议的存储器。这就导致该类型的存储器在连接电脑这种第二类型的主机或设备的时候导出数据时需要额外的读卡器,不够方便。
所以在连接第二类型的主机的时候可以采用如下方式进行数据的读写。
103:若主机类型为第二类型时,利用第二信号协议接收将主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符 合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将数据存储到存储介质中。
其中,第二信号协议可以为USB协议,如USB3.1gen2协议。
例如,根据前文所述,如图5所示,当移动存储装置207确定主机类型为第二类型,如电脑。则通过通用数据接口A201,如USB tpyeC母座,接收到的高电平信号,来控制高速信号开关switch的SW信号,从而来控制“开关1”202和“开关2”205的信号连通方向。其中,如“开关1”202和“开关2”205可以为单刀双掷开关。即控制这两个单刀双掷开关的第二信号连通方向504,当连接到电脑时,可以是通过USB数据线503进行连接的。此时,根据前文所知,SW信号被USB数据线503的供电电压VCC拉高,即接收到了高电平信号。则高速信号开关switch,即“开关1”202和“开关2”205被切换到信号协议转换装置204,如PICE转USB接口芯片的通道。由此,存储介质206,如可以通过USB TYPEC母座,将USB协议转换为PCIE协议,如USB3.1gen2协议转换为PCIE3.0协议,使得从电脑接收到的USB3.1gen2协议的数据转换为PCIE3.0协议的数据,然后存储至M.2记忆卡,即完成数据的读取。或者,M.2记忆卡可以通过信号协议转换装置204,将PCIE协议转换为USB协议,再经过USB TYPEC母座和USB数据线503,连接到电脑,实现电脑与移动存储装置207,如存储棒的数据写入。就不再赘述了。
需要说明的是,对于信号协议转换装置,其即可以是实现,USB协议转换为PCIE协议,也可以实现PCIE协议转换为USB协议。其也可以作为另一个通道,即PCIE转USB接口芯片的通道。由此可知,该装置是可以通过一个芯片来实现的。该读取的过程中,该芯片将USB协议的数据转换为PCIE协议的数据,再通过上述电路板来实现PCIE3.0协议对数据的读取。而当写入的过程中,则是该芯片将来自上述电路板的PCIE协议的数据(从记忆卡中获取到的数据)转换为USB协议的数据,再通过后续的通用数据接口A201等对USB协议的数据的写入,就不再赘述了。该芯片可以与上述电路板进行连接。
基于此,本实施例实现了USB3.1gen2与PCIE3.0的自适应切换,既保证了连接照相机以及摄影机等设备的高速的视频码流存储(稳态700MB/s的写入),又保证了连接电脑时的便捷使用。实现了速率和便捷性的两者兼得的效果,同时又做到了协议自适应的切换,做到了极优的用户体验。
对于从存储介质写入数据至第二类型的主机时,具体的可以为,该方法 100还包括:若主机类型为第二类型时,利用第一信号协议将从存储介质中获取的数据发送至信号协议转换装置,利用信号协议转换装置将符合第一信号协议的数据转换为符合第二信号协议的数据,并利用第二信号协议通过通用数据接口将数据发送给主机。
该过程是上述第二类型的主机读取过程的逆过程,就不再过多赘述了。仅说明:由于当前通道是PICE转USB接口芯片的通道,通过该上述电路板以及该通道存储介质,如M.2记忆卡中将数据进行读取,并根据电路板以及该通道传输至电脑,完成写入过程。
在具体的应用过程中,如图8所示,照相机804的CFexpress卡座802既可以采用配合标准的CFexpress Type B卡来使用,也可以配合本申请实施例提供的移动存储装置来使用。实现了CFexpress Type B卡和移动存储装置207的兼容适配。其中,存储仓805通过其CFexpress假卡801插入到照相机804的CFexpress卡座802中。在CFexpress假卡801上设置有结构防呆803,以使该假卡以及存储仓805正确插入到照相机中。
如图9所示,照相机804在插入了存储仓805后,继续插入存储移动装置207,如存储棒。也可以在存储移动装置207设置结构防呆,并通过该结构防呆可以实现PCIE3.0接口的防反插,加上前文所述的上述管脚的设置实现接口转换功能。
图10为本发明实施例提供的一种移动存储装置的数据传输装置的结构示意图;该装置1000可以应用于移动存储装置中,例如,存储器、存储棒等,该移动存储装置包括通用数据接口和存储介质。该装置1000可以执行上述的移动存储装置的数据传输方法。其中,该装置1000包括:检测模块1001、存储模块1002以及转换模块1003。以下针对各个模块的功能进行详细的阐述:
检测模块1001,用于检测通用数据接口连接的主机的类型。
存储模块1002,用于若主机类型为第一类型时,利用第一信号协议接收主机通过通用数据接口发送的数据,并利用第一信号协议将数据存储到存储介质中。
转换模块1003,用于若主机类型为第二类型时,利用第二信号协议接收将主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将所述数据存储到存储介质中。
具体的,检测模块1001包括:获取单元,用于获取通用数据接口中预设管脚的电平信号;确定单元,用于根据电平信号确定与通用数据接口连接的主机的类型。
具体的,获取单元,用于获取通用数据接口中目标电源管脚或目标接地管脚的电平信号。
具体的,确定单元,用于若目标电源管脚的电平信号为低电平信号,确定主机的类型为第一类型;若目标电源管脚的电平信号为高电平信号,确定主机的类型为第二类型。
此外,移动存储装置包括交互装置,具体的,检测模块1001,包括:选择单元,用于通过交互装置选择用户的主机类型指示操作;确定单元,还用于根据检测到的操作确定通用数据接口连接的主机的类型。
此外,该装置1000还包括:获取模块,用于若主机类型为第一类型时,利用第一信号协议从存储介质中获取数据,并利用第一信号协议通过通用数据接口发送给主机。
此外,该装置1000还包括:发送模块,用于若主机类型为第二类型时,利用第一信号协议将从存储介质中获取的数据发送至信号协议转换装置,利用信号协议转换装置将符合第一信号协议的数据转换为符合第二信号协议的数据,并利用第二信号协议通过通用数据接口将所述数据发送给主机。
其中,第一类型的主机为拍摄装置。
其中,第二类型的主机为个人终端。
其中,第一信号协议为PCIE协议。
其中,第二信号协议为USB协议。
其中,通用数据接口为USB接口。
此处未能详尽的内容请参考前文所述的内容,就不再赘述了。
在一个可能的设计中,图10所示移动存储装置的数据传输装置1000的结构可实现为一电子设备,该电子设备可以是移动存储装置,如存储器或存储棒。移动存储装置包括通用数据接口和存储介质。如图11所示,该设备1100可以包括:一个或多个处理器1101、一个或多个存储器1102。其中,存储器1102用于存储支持电子设备执行上述图1-图9所示实施例中提供的移动存储装置的数据传输方法的程序。处理器1101被配置为用于执行存储器1102中存储的程序。具体的,程序包括一条或多条计算机指令,其中,一条或多条计 算机指令被处理器1101执行时能够实现如下步骤:
运行存储器1102中存储的程序以实现:检测通用数据接口连接的主机的类型;若主机类型为第一类型时,利用第一信号协议接收主机通过通用数据接口发送的数据,并利用第一信号协议将所述数据存储到存储介质中;若主机类型为第二类型时,利用第二信号协议接收将主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将所述数据存储到所述存储介质中。
具体的,处理器1101,具体用于:获取通用数据接口中预设管脚的电平信号;根据电平信号确定与所述通用数据接口连接的主机的类型。
具体的,处理器1101,具体用于:获取通用数据接口中目标电源管脚或目标接地管脚的电平信号。
具体的,处理器1101,具体用于:若目标电源管脚的电平信号为低电平信号,确定主机的类型为第一类型;若目标电源管脚的电平信号为高电平信号,确定所述主机的类型为第二类型。
具体的,移动存储装置包括交互装置,处理器1101,具体用于:通过交互装置选择用户的主机类型指示操作;根据检测到的操作确定通用数据接口连接的主机的类型。
此外,处理器1101,还用于:若主机类型为第一类型时,利用第一信号协议从存储介质中获取数据,并利用第一信号协议通过通用数据接口发送给主机。
此外,处理器1101,还用于:若主机类型为第二类型时,利用第一信号协议将从存储介质中获取的数据发送至信号协议转换装置,利用信号协议转换装置将符合第一信号协议的数据转换为符合第二信号协议的数据,并利用第二信号协议通过所述通用数据接口将数据发送给主机。
其中,第一类型的主机为拍摄装置。
其中,第二类型的主机为个人终端。
其中,第一信号协议为PCIE协议。
其中,第二信号协议为USB协议。
其中,通用数据接口为USB接口。
需要说明的是,上述处理器具体的实现形式可以是电路芯片、主芯片或 者其它微控制器均可。
另外,本发明实施例提供了一种存储介质,存储介质为可读存储介质,该可读存储介质中存储有程序指令,程序指令用于实现上述图1-图9的移动存储装置的数据传输方法。
以上各个实施例中的技术方案、技术特征在与本相冲突的情况下均可以单独,或者进行组合,只要未超出本领域技术人员的认知范围,均属于本申请保护范围内的等同实施例。
在本发明所提供的几个实施例中,应该理解到,所揭露的相关检测装置(例如:IMU)和方法,可以通过其它的方式实现。例如,以上所描述的遥控装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,遥控装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得计算机处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是 利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (25)

  1. 一种移动存储装置的数据传输方法,所述移动存储装置包括通用数据接口和存储介质,其特征在于,包括:
    检测所述通用数据接口连接的主机的类型;
    若所述主机的类型为第一类型时,利用第一信号协议接收所述主机通过通用数据接口发送的数据,并利用第一信号协议将所述数据存储到所述存储介质中;
    若所述主机的类型为第二类型时,利用第二信号协议接收将所述主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将所述数据存储到所述存储介质中。
  2. 根据权利要求1所述的方法,其特征在于,所述检测所述通用数据接口连接的主机的类型,包括:
    获取通用数据接口中预设管脚的电平信号;
    根据所述电平信号确定与所述通用数据接口连接的主机的类型。
  3. 根据权利要求2所述的方法,其特征在于,所述获取通用数据接口中预设管脚的电平信号,包括:
    获取通用数据接口中目标电源管脚或目标接地管脚的电平信号。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述电平信号确定与所述通用数据接口连接的主机的类型,包括:
    若目标电源管脚的电平信号为低电平信号,确定所述主机的类型为第一类型;
    若目标电源管脚的电平信号为高电平信号,确定所述主机的类型为第二类型。
  5. 根据权利要求1所述的方法,其特征在于,所述移动存储装置包括交互装置,所述检测所述通用数据接口连接的主机的类型,包括:
    通过所述交互装置选择用户的主机类型指示操作;
    根据所述检测到的操作确定所述通用数据接口连接的主机的类型。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    若所述主机类型为第一类型时,利用第一信号协议从所述存储介质中获取数据,并利用第一信号协议通过所述通用数据接口发送给所述主机。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    若所述主机类型为第二类型时,利用第一信号协议将从存储介质中获取的数据发送至信号协议转换装置,利用信号协议转换装置将符合第一信号协议的数据转换为符合第二信号协议的数据,并利用第二信号协议通过所述通用数据接口将所述数据发送给所述主机。
  8. 根据权利要求1所述的方法,其特征在于,所述第一类型的主机为拍摄装置。
  9. 根据权利要求1所述的方法,其特征在于,所述第二类型的主机为个人终端。
  10. 根据权利要求1所述的方法,其特征在于,所述第一信号协议为PCIE协议。
  11. 根据权利要求1所述的方法,其特征在于,所述第二信号协议为USB协议。
  12. 根据权利要求1所述的方法,其特征在于,所述通用数据接口为USB接口。
  13. 一种移动存储装置,所述移动存储装置包括通用数据接口和存储介质,其特征在于,所述移动存储装置还包括:处理器和存储器;
    所述存储器,用于存储程序;
    所述处理器,用于调用并执行程序,以实现如下步骤:
    检测所述通用数据接口连接的主机的类型;
    若所述主机的类型为第一类型时,利用第一信号协议接收所述主机通过通用数据接口发送的数据,并利用第一信号协议将所述数据存储到所述存储介质中;
    若所述主机的类型为第二类型时,利用第二信号协议接收将所述主机通过通用数据接口发送的数据发送至信号协议转换装置,利用信号协议转换装置将符合第二信号协议的数据转换为符合第一信号协议的数据,并利用第一信号协议将所述数据存储到所述存储介质中。
  14. 根据权利要求13所述的装置,其特征在于,所述处理器,具体用于:
    获取通用数据接口中预设管脚的电平信号;
    根据所述电平信号确定与所述通用数据接口连接的主机的类型。
  15. 根据权利要求14所述的装置,其特征在于,所述处理器,具体用于:获取通用数据接口中目标电源管脚或目标接地管脚的电平信号。
  16. 根据权利要求15所述的装置,其特征在于,所述处理器,具体用于:
    若目标电源管脚的电平信号为低电平信号,确定所述主机的类型为第一类型;
    若目标电源管脚的电平信号为高电平信号,确定所述主机的类型为第二类型。
  17. 根据权利要求13所述的装置,其特征在于,所述移动存储装置包括交互装置,所述处理器,具体用于:
    通过所述交互装置选择用户的主机类型指示操作;
    根据所述检测到的操作确定所述通用数据接口连接的主机的类型。
  18. 根据权利要求13-17任一项所述的装置,其特征在于,所述处理器,还用于:
    若所述主机类型为第一类型时,利用第一信号协议从所述存储介质中获取数据,并利用第一信号协议通过所述通用数据接口发送给所述主机。
  19. 根据权利要求13-18任一项所述的装置,其特征在于,所述处理器,还用于:
    若所述主机类型为第二类型时,利用第一信号协议将从存储介质中获取的数据发送至信号协议转换装置,利用信号协议转换装置将符合第一信号协议的数据转换为符合第二信号协议的数据,并利用第二信号协议通过所述通用数据接口将所述数据发送给所述主机。
  20. 根据权利要求13所述的装置,其特征在于,所述第一类型的主机为拍摄装置。
  21. 根据权利要求13所述的装置,其特征在于,所述第二类型的主机为个人终端。
  22. 根据权利要求13所述的装置,其特征在于,所述第一信号协议为PCIE协议。
  23. 根据权利要求13所述的装置,其特征在于,所述第二信号协议为USB协议。
  24. 根据权利要求13所述的装置,其特征在于,所述通用数据接口为USB接口。
  25. 一种存储介质,其特征在于,所述存储介质为可读存储介质,该可读存储介质中存储有程序指令,所述程序指令用于实现权利要求1-12中任意一项所述的移动存储装置的数据传输方法。
PCT/CN2021/125055 2021-10-20 2021-10-20 移动存储装置的数据传输方法、装置和存储介质 WO2023065162A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/125055 WO2023065162A1 (zh) 2021-10-20 2021-10-20 移动存储装置的数据传输方法、装置和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/125055 WO2023065162A1 (zh) 2021-10-20 2021-10-20 移动存储装置的数据传输方法、装置和存储介质

Publications (1)

Publication Number Publication Date
WO2023065162A1 true WO2023065162A1 (zh) 2023-04-27

Family

ID=86058684

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/125055 WO2023065162A1 (zh) 2021-10-20 2021-10-20 移动存储装置的数据传输方法、装置和存储介质

Country Status (1)

Country Link
WO (1) WO2023065162A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050005045A1 (en) * 2003-07-04 2005-01-06 Yong-Hyeon Kim Multi-standard protocol storage devices and methods of operating the same
CN101589592A (zh) * 2006-02-27 2009-11-25 微软公司 多协议可移动存储设备
CN102576339A (zh) * 2009-09-23 2012-07-11 桑迪士克以色列有限公司 多协议存储设备桥
CN113076270A (zh) * 2021-04-01 2021-07-06 浪潮电子信息产业股份有限公司 一种io接口的协议配置装置、方法及相关组件

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050005045A1 (en) * 2003-07-04 2005-01-06 Yong-Hyeon Kim Multi-standard protocol storage devices and methods of operating the same
CN101589592A (zh) * 2006-02-27 2009-11-25 微软公司 多协议可移动存储设备
CN102576339A (zh) * 2009-09-23 2012-07-11 桑迪士克以色列有限公司 多协议存储设备桥
CN113076270A (zh) * 2021-04-01 2021-07-06 浪潮电子信息产业股份有限公司 一种io接口的协议配置装置、方法及相关组件

Similar Documents

Publication Publication Date Title
US7673092B2 (en) PCI Express interface
TWI310159B (en) An adapter for connecting a portable memory unit to a host, and a memory device having the adapter
CN107111588B (zh) 经由USB端口使用PCIe协议的数据传输
US20110191503A1 (en) Motherboard Compatible with Multiple Versions of Universal Serial Bus (USB) and Related Method
US7451257B2 (en) Universal serial bus device having logical circuit for conversive and immediate host reset operation
US5727184A (en) Method and apparatus for interfacing between peripherals of multiple formats and a single system bus
TWI293216B (en) Interface integrated circuit device for a usb connection
WO2019015681A1 (zh) 一种终端设备及其控制方法
EP2040174B1 (en) Card-type peripheral device
CN108337463A (zh) 一种电视机及其usb-c接口连接外部设备的控制方法
KR101220464B1 (ko) 광 연결을 이용한 고속 인터페이스 장치
WO2011038211A1 (en) Dual-mode data transfer of uncompressed multimedia contents or data communications
JP2006024217A (ja) 複数の機能デバイスで単一のホスト・コントローラを共有すること
US10380049B2 (en) Multi-host supported universal serial bus hub and automobile head unit using the same
US20120042178A1 (en) Peripheral Device
US20090268743A1 (en) Data transmission bridge device and control chip thereof for transmitting data
CN108369567A (zh) 通用串行总线(usb)电缆中增加的数据流
EP4010809A1 (en) Memory card slot interface adapter
KR102613449B1 (ko) Pcie(pci(peripheral component interconnect) express) 링크에서의 측파대 시그널링
CN213151196U (zh) 一种信号转接器
WO2024022195A1 (zh) 电子设备、快充方法、装置、系统及可读存储介质
JP2003263253A (ja) Usb装置
WO2023065162A1 (zh) 移动存储装置的数据传输方法、装置和存储介质
US20090185559A1 (en) Integration module for universal serial bus
US11513978B2 (en) Dual data ports with shared detection line

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21960918

Country of ref document: EP

Kind code of ref document: A1