CN101266586A - Memory based on USB protocol and connection control device and control method - Google Patents

Memory based on USB protocol and connection control device and control method Download PDF

Info

Publication number
CN101266586A
CN101266586A CNA2007100870264A CN200710087026A CN101266586A CN 101266586 A CN101266586 A CN 101266586A CN A2007100870264 A CNA2007100870264 A CN A2007100870264A CN 200710087026 A CN200710087026 A CN 200710087026A CN 101266586 A CN101266586 A CN 101266586A
Authority
CN
China
Prior art keywords
usb
usb interface
hub
usb hub
voltage signal
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.)
Pending
Application number
CNA2007100870264A
Other languages
Chinese (zh)
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.)
Potevio Institute of Technology Co Ltd
Original Assignee
Potevio Institute of 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 Potevio Institute of Technology Co Ltd filed Critical Potevio Institute of Technology Co Ltd
Priority to CNA2007100870264A priority Critical patent/CN101266586A/en
Publication of CN101266586A publication Critical patent/CN101266586A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a memory and link control device and memory and link control method based on an USB protocol. The invention includes an USB hub, at lest two USB interfaces and memory locations, the memory location is connected to a downlink port of the USB hub, two USB interfaces are controlled and respectively connected to an uplink port and the downlink port of the USB hub through adjusting voltage state of two USB interfaces, then function integration for mobile memory and link is achieved, and function switch is controlled according to different application sate, then the mobile memory function and the communication between various kinds of portable mobile terminals and host device are achieved under the condition that an user does not carry the USB connecting line but carry the device of the invention.

Description

Storage and connection control device and control method based on usb protocol
Technical field
The present invention relates to USB (universal serial bus) (Universal Serial Bus, USB) technology, particularly a kind of based on usb protocol storage and connect control device with a kind of based on usb protocol storage and be connected control method.
Background technology
USB supports the data interaction between main frame and the peripheral hardware, and has support hot plug, advantages such as plug and play.Nowadays, USB interface (plug or socket) has become the standard interface that various host side equipment and terminal device are used for information interaction.
USB interface-based flash memory device, flash disk for example is because of it has memory function and easy to carryly is widely used.USB interface on the flash disk is a standard A type plug, and inside comprises: as the flash disk controller chip of storage control unit with as the Flash chip of storage unit.
Wherein, it is directly continuous that the standard A type plug of flash disk and host side equipment (for example computing machine etc. has operating platform and the equipment of USB driver has been installed) are gone up corresponding socket, be used to receive the dependent instruction of host side equipment to the data storage operation, and finish corresponding operating, thereby realize the memory function of data by flash disk controller control store unit.
In addition, also have a lot of USB interface-based portable mobile terminal equipments, need realize and the frequent information interaction of host side equipment by the USB connecting line.Typical USB cable (connecting line) is made up of two plugs and a cable, and two plugs link to each other with the cable two ends respectively.Generally, one of them plug is a standard A type plug, and another plug is optionally, for example the Type B plug.
Wherein, the standard A type plug of an end is plugged on main frame or the hub in the socket corresponding to downlink port; The plug of the other end, for example mini (Mini) USB plug is plugged in the socket on the portable terminal.Like this, can realize information interaction between terminal device and the main frame.
Yet because the connecting line function singleness, the user can not carry constantly, thereby can't realize the mutual of portable mobile terminal equipment and host side equipment; Though and flash disk has little, the portable advantage of volume, the user can carry usually constantly, and it can only realize self and the communicating by letter of host side equipment.
As seen, prior art can't effectively guarantee the mutual of portable mobile terminal equipment and host side equipment.
Summary of the invention
In view of this, a fundamental purpose of the present invention is to provide a kind of storage and connection control device based on usb protocol, can realize Mobile Storage Function MSF and USB connecting line function.
Another fundamental purpose of the present invention is to provide another kind of storage and connection control method based on usb protocol, can realize the integrated control of Mobile Storage Function MSF and USB connecting line function.
Also fundamental purpose of the present invention is to provide another kind of storage and connection control method based on usb protocol again, can realize the integrated control of Mobile Storage Function MSF and USB connecting line function.
Another fundamental purpose of the present invention is to provide a kind of storage and connection control method based on usb protocol, can realize the integrated control of Mobile Storage Function MSF and USB connecting line function.
According to an above-mentioned fundamental purpose, the invention provides a kind of storage and connection control device based on usb protocol, comprising: memory controller and storage unit, it is characterized in that,
This device further comprises: at least two USB interface, switching controller and usb hubs,
Described at least two USB interface link to each other with switching controller;
Described switching controller is used at least two USB interface are carried out voltage detecting, and according to testing result one at least two USB interface is linked to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Described storage unit links to each other with the downlink port of usb hub by memory controller.
By default, described switching controller links to each other a USB interface with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub.
Described switching controller, when only detecting a USB interface voltage signal arranged:
Link to each other with the usb hub uplink port if this USB interface is described default conditions, then keep the connection of default conditions;
Link to each other with the usb hub downlink port if this USB interface is described default conditions, then disconnect the connection of described default conditions, and the USB interface that will detect voltage signal is connected with the uplink port of usb hub.
Described switching controller, when detecting two USB interface voltage signal arranged:
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub uplink port, then keeps the connection of described default conditions;
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub downlink port, then disconnect the connection of described default conditions, and the USB interface that detects voltage signal earlier is connected with the uplink port of usb hub, another USB interface that detects voltage signal is linked to each other with the downlink port of usb hub.
Described switching controller, when detecting two USB interface voltage signal arranged:
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub uplink port, then keeps the connection of described default conditions;
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub downlink port, then disconnect the connection of described default conditions, and the USB interface that detects voltage signal earlier is connected with the uplink port of usb hub, when detecting USB interface that described default conditions link to each other with the usb hub uplink port then voltage signal being arranged, recover the connection under the described default conditions.
Described memory controller, storage unit, switching controller, usb hub are built in housing,
Described USB interface is arranged on the housing.
In the described USB interface at least one links to each other with switching controller by extension lead;
The described USB interface that links to each other by extension lead is built-in and be fixed in an end of housing through mechanical bayonet arrangement;
Describedly comprise that mechanical bayonet arrangement further comprises the bayonet socket button, be located on the housing, be used for the described USB interface that links to each other with extension lead taken out, regains and fixing.
Described USB interface is: in standard A type plug, standard A type socket, mini Mini USB plug, the Mini USB socket one.
According to another above-mentioned fundamental purpose, the invention provides another kind of storage and connection control device based on usb protocol, comprising: memory controller and storage unit, it is characterized in that,
This device further comprises: at least two USB interface, switching controller and usb hubs,
Described at least two USB interface link to each other with switching controller;
Described switching controller is used for at least two USB interface one and links to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Described storage unit links to each other with the downlink port of usb hub by memory controller.
According to above-mentioned also fundamental purpose, the present invention provides another kind of storage and connection control device based on usb protocol again, comprising: memory controller and storage unit, it is characterized in that,
This device further comprises: at least two USB interface, switching controller, usb hub and switch control interfaces,
Described at least two USB interface link to each other with switching controller;
Described switch control interface is used for the chip selection signal to the different USB interface of switching controller output identification;
Described switching controller is used for according to the chip selection signal that receives, and a USB interface of described chip selection signal correspondence is linked to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Described storage unit links to each other with the downlink port of usb hub by memory controller.
According to another above-mentioned fundamental purpose, the invention provides a kind of storage and connection control method based on usb protocol, may further comprise the steps:
A, the downlink port of usb hub is linked to each other with storage unit by memory controller, and detect the voltage signal of at least two USB interface;
B, a USB interface is linked to each other with the uplink port of usb hub, other USB interface are linked to each other with the downlink port of usb hub according to testing result.
Described step B comprises:
When only detecting a USB interface voltage signal is arranged: the USB interface that will detect voltage signal is connected with the uplink port of usb hub;
When detecting two USB interface voltage signal arranged: the USB interface that detects voltage signal earlier is connected with the uplink port of usb hub, with after detect voltage signal another USB interface link to each other with the downlink port of usb hub.
Before the described step B, this method further comprises: default conditions are set, and a USB interface links to each other with the uplink port of usb hub, and other USB interface link to each other with the downlink port of usb hub;
Described step B comprises: keep the default conditions of described setting, a USB interface links to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub.
Described step B comprises: according to the chip selection signal that receives, a USB interface of described chip selection signal correspondence is linked to each other with the uplink port of usb hub, another USB interface that detects voltage signal is linked to each other with the downlink port of usb hub.
As seen from the above technical solution, technical scheme of the present invention has following beneficial effect:
At first, the present invention includes: usb hub, two USB interface, and storage unit, storage unit is connected with the downlink port of usb hub, by judging the voltage status of two USB interface, realize two USB interface respectively with the uplink port of usb hub and being connected of downlink port, realized Mobile Storage Function MSF and connecting line function are integrated in the device, and can realize the function switching according to different application states, thereby make the user not need to carry the prior USB connecting line, only device of the present invention need be carried, the mutual of Mobile Storage Function MSF and multiple portable mobile terminal equipment and host side equipment can be realized.
And, because usb hub has 126 downlink ports, also can in device of the present invention, be provided with more than two USB interface, be implemented in when having connected host side equipment, with being connected of a plurality of externally connected portable formula mobile terminal devices.
Description of drawings
Fig. 1 is based on the storage of usb protocol and the exemplary block diagram of connection control device among the present invention.
Fig. 2 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention one.
Fig. 3 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention two.
Fig. 4 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention three.
Fig. 5 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention four.
Fig. 6 is based on the storage of usb protocol and the exemplary process diagram of connection control method among the present invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Basic thought of the present invention is: a device that comprises usb hub, at least two USB interface and comprise storage unit is set, storage unit is connected with the downlink port of usb hub, this device is by judging the voltage status of each USB interface, realize any two USB interface respectively with the uplink port of usb hub and being connected of downlink port, thereby make this device can realize memory function and connecting line function simultaneously.
Fig. 1 is based on the storage of usb protocol and the exemplary block diagram of connection control device among the present invention.As shown in Figure 1, storage and the connection control device based on usb protocol comprises in the embodiment of the invention: at least two USB interface, switching controller, usb hub, memory controller and storage unit.
At least two USB interface link to each other with switching controller;
Switching controller detects the voltage signal of all USB interface, and according to testing result one of them USB interface is linked to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Usb hub is used for a USB uplink port is converted to a plurality of downlink ports;
Storage unit links to each other with the downlink port of usb hub by memory controller.
Generally, one in two USB interface should be standard A type plug, so that this device can link to each other with the standard A socket that is provided with usually on the host side; Another USB interface can be in the various interfaces such as Mini USB plug, standard A type socket, Mini USB socket.
In the practical application, switching controller also can link to each other a USB interface regularly according to setting in advance with the uplink port of usb hub, other USB interface are linked to each other with the downlink port of usb hub, and do not carry out the detection of voltage signal.
A switch control interface can also be set in the device of present embodiment, be used for identifying different USB interface to switching controller output chip selection signal.This device can be according to chip selection signal, and the realization USB interface is connected with usb hub uplink port and downlink port.
In this case, switching controller links to each other the USB interface of the chip selection signal correspondence that receives with the uplink port of usb hub, other USB interface are linked to each other with the downlink port of usb hub.
Below, be respectively standard A type plug and the Mini USB plug is an example with two USB interface, said apparatus is elaborated.
Standard A type plug links to each other with switching controller respectively with the Mini USB plug, considers in the embodiment of the invention based on the storage of usb protocol and connects control device, needs usually link to each other with host side equipment by standard A type plug.Therefore, for in above-mentioned the most frequently used use, do not need in the device to carry out any control operation, and be arranged on default conditions: switching controller links to each other standard A type plug with the uplink port of usb hub, and the Mini USB plug is linked to each other with the downlink port of usb hub.Then, realize switching according to the voltage signal of detected two interfaces again.
When not detecting voltage signal, switching controller also can disconnect being connected of standard A type plug and MiniUSB plug and usb hub.
In the storage and connection control device based on usb protocol in the present embodiment, switching controller, when only detecting standard A type plug voltage signal arranged (when only having the external host side equipment of standard A type plug and other to link to each other), then standard A type plug is linked to each other with the uplink port of usb hub, if promptly set in advance the connection under the aforementioned default conditions, then keep the connection under the default conditions;
When only detecting the Mini USB plug voltage signal arranged (when only having the external host side equipment of Mini USB plug and other to link to each other), then the Mini USB plug is linked to each other with the uplink port of usb hub, if promptly set in advance the connection under the aforementioned default conditions, then with standard A type plug under the default conditions with switch to being connected of usb hub uplink port and being connected of usb hub downlink port, simultaneously being connected of the downlink port of Mini USB plug under the default conditions and usb hub switched to and being connected of usb hub uplink port.
All have under the situation of voltage signal detecting standard A type plug and Mini USB plug, can link to each other with the uplink port of usb hub according to one in following regular choice criteria A type plug and the Mini USB plug, another is connected with the downlink port of usb hub:
The rule a, the USB interface that detects voltage signal is earlier linked to each other with the uplink port of usb hub;
The rule b, set in advance in two USB interface, preferentially link to each other with the uplink port of usb hub.
Rule-based a, when switching controller formerly detects standard A type plug and has voltage signal then to detect the Mini USB plug again voltage signal is arranged (when standard A type plug links to each other with external host side equipment earlier, after this, when the Mini USB plug links to each other with other host side or non-host side equipment again), then standard A type plug is linked to each other with the uplink port of usb hub, the Mini USB plug is linked to each other with the downlink port of usb hub, if promptly set in advance the connection under the aforementioned default conditions, then keep the connection under the default conditions;
When formerly detecting the Mini USB plug and having voltage signal then to detect standard A type plug again voltage signal is arranged (when the Mini USB plug links to each other with external host side equipment earlier, after this, when standard A type plug links to each other with other host side or non-host side equipment again), then the Mini USB plug is connected with the uplink port of usb hub, standard A type plug is connected with the downlink port of usb hub, if promptly set in advance the connection under the aforementioned default conditions, then disconnect being connected of Mini USB plug and usb hub downlink port under the default conditions and being connected of standard A type plug and usb hub uplink port, set up being connected of Mini USB plug and usb hub uplink port and being connected of standard A type plug and usb hub downlink port simultaneously.
Rule-based b (considers that host side adopts standard A type socket usually in the practical application, standard A type plug is set to the preferential USB interface that links to each other with the uplink port of usb hub in the present embodiment), switching controller is when detecting standard A type plug and Mini USB plug and all voltage signal is arranged, standard A type plug is linked to each other with the uplink port of usb hub, the Mini USB plug is linked to each other with the downlink port of usb hub, if promptly set in advance the connection under the aforementioned default conditions, then keep the connection under the default conditions.
Wherein, if standard A type plug all links to each other with host side equipment with the Mini USB plug, according to regular a or regular b, selecting one of them is host side equipment, and another one is a slave unit.
In the practical application, because two USB interface are difficult to guarantee link to each other with host side or non-host side equipment simultaneously in the identical moment, promptly switching controller detects sequencing of voltage signal existence.
Specifically, when switching controller formerly detects standard A type plug voltage signal is arranged, standard A type plug is linked to each other with the uplink port of usb hub, then detect the Mini USB plug again voltage signal is arranged, then be connected with the existing of usb hub uplink port according to the priority of the standard A type plug A type plug that maintains the standard, the Mini USB plug is linked to each other with the downlink port of usb hub,, then keep the connection under the default conditions if promptly set in advance default conditions;
When formerly detecting the Mini USB plug voltage signal being arranged, then earlier the Mini USB plug is connected with the uplink port of usb hub, then detect standard A type plug again voltage signal is arranged, priority disconnection Mini USB plug according to standard A type plug is connected with the existing of usb hub uplink port, again standard A type plug is connected with the uplink port of usb hub, the Mini USB plug is connected with the usb hub downlink port, if promptly set in advance default conditions, then disconnect earlier being connected of Mini USB plug and usb hub downlink port under the default conditions and being connected of standard A type plug and usb hub uplink port, recover being connected of standard A type plug and usb hub uplink port under the default conditions and being connected of Mini USB plug and usb hub downlink port again.
Storage unit links to each other with the downlink port of usb hub by memory controller all the time, does not do any switching, guarantees the realization of memory function.
Based on above-mentioned principle of work, based on the storage of usb protocol and connect control device, can realize storage and/or connecting line function among the present invention according to its different connection mode:
Connection mode 1: when only having standard A type plug to link to each other with other external equipments, switching controller links to each other standard A type plug with the uplink port of usb hub.
Under this connection mode, the device among the present invention can realize having the Mobile Storage Function MSF of standard A type plug.
Connection mode 2: when only having the Mini USB plug to link to each other with other external equipments, switching controller links to each other the Mini USB plug with the uplink port of usb hub.
Under this connection mode, the device among the present invention can realize having the Mobile Storage Function MSF of Mini USB plug.
Connection mode 3: when standard A type plug, Mini USB plug link to each other with other external equipments simultaneously, switching controller links to each other standard A type plug with the uplink port/downlink port of usb hub, the Mini USB plug is linked to each other with the downlink port/uplink port of usb hub.
Under this connection mode, the device among the present invention can be realized common Mobile Storage Function MSF and USB connecting line function simultaneously, perhaps only realizes USB connecting line function.
As seen,, can guarantee that the device among the present invention is realized storage and connecting line function by the judgement of switching controller to the voltage signal of each USB interface, and to the control of memory function and connecting line function.
More than just be respectively standard A type plug and the Mini USB plug is an example with two USB interface, in the present embodiment based on the storage of usb protocol and connect the explanation of control device.In the practical application, may be provided with different USB interface on different host side equipment and the non-host side equipment, consider the versatility and the practicality of technical scheme in the present embodiment, in this device, can further include at least one USB interface, at least three mutually different USB interface promptly are set, make the user to select any one or two USB interface in this device to be connected according to actual conditions with USB interface on other equipment.
For example, can comprise standard A type plug, Mini USB plug, standard A type socket and Mini USB socket in the said apparatus.Switching controller is still according to above-mentioned principle, when in only detecting 4 USB interface one has voltage signal, this USB interface linked to each other with the uplink port of usb hub; When detecting wherein 2 voltage signal is arranged, these 2 USB interface are linked to each other with downlink port with the uplink port of usb hub respectively according to regular a or regular b.Comprise in the device more than 2 USB interface, also can set in advance the connection under the default conditions, be about to one of them USB interface and link to each other, remaining USB interface is all linked to each other with the downlink port of usb hub with the uplink port of usb hub.
But under situation more than 2 USB interface, if set in advance the connection under the default conditions, and 2 USB interface that detect voltage signal are under the default conditions and link to each other with the usb hub downlink port, at this moment, switching controller just needs rule-based a to select the USB interface that links to each other with the usb hub uplink port.
Like this, just further improved in the present embodiment based on the storage of usb protocol and the versatility and the practicality of connection control device.
In the said apparatus, the combination of switching controller and usb hub can be prior USB Hub extended chip; Memory controller can be existing flash disk control chip; Storage unit can be existing Flash chip, or other erasable non-volatile memory.Like this, the device among the present invention can be realized its storage and connecting line function by integrated above-mentioned three phy chips.
The present invention is based on the storage of usb protocol and connect in the control device, switching controller, usb hub and memory controller also can be an integrated phy chip of three's function, for example existing programmable logic device (PLD) etc.Like this, only need comprise that a chip gets final product in the device inside.
In the practical application, storage and connection control device based on usb protocol among the present invention can adopt the combination of multiple USB interface to adapt to the applicable cases of various connection modes, illustrate below in conjunction with specific embodiment.
Embodiment one
Fig. 2 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention one.As shown in Figure 2, in the device of present embodiment, memory controller, storage unit, switching controller, usb hub all are built in a housing 20; Respectively there is a USB interface that links to each other with switching controller in the housing 20 at housing 20 two ends, and one of them is a standard A type plug 21, and another is a Mini USB plug 22.The USB plug of one end (being generally standard A type plug 21) be plugged in the USB socket of host side equipment can implement device memory function.At this moment, the USB plug of the other end portable mobile terminal equipment (terminal device that weight is lighter, for example MP3 player etc.) of having pegged graft has promptly been realized the connecting line function of device.
Embodiment two
Fig. 3 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention two.As shown in Figure 3, in the device of present embodiment, memory controller, storage unit, switching controller, usb hub all are built in a housing 20; Respectively there is a USB interface that links to each other with switching controller in the housing 20 at housing 20 two ends, and one of them is a standard A type plug 21, and another is a standard A type socket 23.The standard A type plug 21 of one end be plugged in the USB socket of host side equipment can implement device memory function.At this moment, the portable mobile terminal equipment with standard A type plug of can pegging graft in the standard A type socket 23 of the other end has promptly been realized the connecting line function of installing.
Embodiment three
Fig. 4 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention three.As shown in Figure 4, in the device of present embodiment, memory controller, storage unit, switching controller, usb hub all are built in a housing 20; Respectively there is a USB interface that links to each other with switching controller in the housing 20 at housing 20 two ends, one of them is a standard A type plug 21, another is a Mini USB plug 22, and Mini USB plug 22 links to each other with switching controller in the housing 20 by an extension lead 24.Near by extension lead 24 end that links to each other with Mini USB plug 22, be provided with a mechanical bayonet arrangement, be used for Mini USB plug 22 and coupled extension lead 24 are fixed in housing 20, and be provided with two bayonet socket buttons 25 in housing 20 these end both sides.When two bayonet socket buttons 25 are pressed simultaneously, the Mini USB plug 22 that should hold can be taken out together with extension lead 24; After use finishing, press two bayonet socket buttons 25 more simultaneously, extension lead 24 is regained and be fixed on the housing 20.Wherein, bayonet socket button 25 also can only be provided with one.
Like this, the standard A type plug 21 of an end be plugged in the USB socket of host side equipment can implement device memory function.At this moment, by pressing of Mini USB plug 22 and extension lead 24 taking-ups of two bayonet socket buttons 25 with the other end, can be plugged in the socket of a portable mobile terminal equipment (also be applicable to the terminal device that weight is bigger, for example digital camera etc.), promptly realize the connecting line function of device.
In as shown in Figure 4 the storage and connection control device based on usb protocol, the machinery bayonet arrangement, can be being example for disclosed shrinkage type connecting line structure in the Chinese utility model patent of " CN2547030Y " as the patent No., comprise: connecting line, place the space of connecting line, the button of the limit switch that takes out or regain as connecting line etc., also other structures that can derive and realize based on this structure for those skilled in the art.
Embodiment four
Fig. 5 is based on the storage of usb protocol and the structural drawing of connection control device in the embodiment of the invention four.As shown in Figure 5, in the device of present embodiment, memory controller, storage unit, switching controller, usb hub all are built in a housing 20, also comprise a switch control interface in the device, also place in the housing 20; Respectively there is a USB interface that links to each other with switching controller in the housing 20 at housing 20 two ends, and one of them is a standard A type plug 21, and another is a Mini USB plug 22; Also be provided with a construction of switch 26 that comprises switch toggle 27, link to each other with switch control interface in the housing 20.
The user can select the USB interface that links to each other with the usb hub uplink port by the switch toggle 27 in the toggle switch structure 26.For example, switch toggle 27 moves to the A place, and at this moment, the switch control interface represents then that to the chip selection signal of switching controller output standard A type plug links to each other with the usb hub uplink port, and the Mini USB plug links to each other with the usb hub downlink port; In like manner, if switch moves to the B place, at this moment, the switch control interface represents then that to the chip selection signal of switching controller output the MiniUSB plug links to each other with the usb hub uplink port, and standard A type plug links to each other with the usb hub downlink port.
Like this, switching controller can be carried out corresponding operation according to different chip selection signals.
Based on the storage of usb protocol and connect in the control device, two USB interface also can place any position (homonymy, not homonymy, outside and inside ...) of device in the embodiment of the invention, and two USB interface all can be set to fixed or movable connected mode; Be used to generate and export the construction of switch of chip selection signal, also can be arranged on any position of device.
Below, in the embodiment of the invention, based on said apparatus based on the storage of usb protocol and connect control method and describe.
Fig. 6 is based on the storage of usb protocol and the exemplary process diagram of connection control method among the present invention.As shown in Figure 6, storage and the connection control method based on usb protocol may further comprise the steps in the embodiment of the invention:
Step 601 links to each other by memory controller the downlink port of usb hub with storage unit, and detects the voltage signal of at least two USB interface;
Step 602 links to each other a USB interface according to testing result with the uplink port of usb hub, other USB interface are linked to each other with the downlink port of usb hub.
For example, a USB interface that detects voltage signal is earlier linked to each other with the uplink port of usb hub, another USB interface is linked to each other with the downlink port of usb hub; Perhaps, with setting in advance a USB interface that preferentially links to each other, link to each other with the uplink port of usb hub with uplink port; Again or, according to the outside chip selection signal that receives, a USB interface of this chip selection signal correspondence is linked to each other with the uplink port of usb hub, outside chip selection signal can be by the selection output of the switch that is arranged on the device outside according to the user.
Like this, when only having a USB interface to link to each other, this USB interface is linked to each other with the uplink port of usb hub, promptly realize Mobile Storage Function MSF with USB interface with other external equipments; When two USB interface linked to each other with other external equipments simultaneously, a USB interface that will be connected with host side equipment linked to each other with the uplink port of usb hub, and another USB interface is linked to each other with the downlink port of usb hub, has promptly realized the connecting line function; Simultaneously, storage unit links to each other with the downlink port of usb hub by memory controller, has realized Mobile Storage Function MSF.
The technical scheme of present embodiment makes the user only need carry USB interface-based memory device among the present invention, can realize the interactive function of Mobile Storage Function MSF and multiple portable mobile terminal equipment and host side equipment.
Among the present invention,, therefore, if desired, also can be provided with, when realization is connected with host side equipment, with being connected of a plurality of external mobile terminal devices more than two USB interface because usb hub has 126 downlink ports.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. one kind based on the storage of usb protocol and connect control device, comprising: memory controller and storage unit, it is characterized in that,
This device further comprises: at least two USB interface, switching controller and usb hubs,
Described at least two USB interface link to each other with switching controller;
Described switching controller is used at least two USB interface are carried out voltage detecting, and according to testing result one at least two USB interface is linked to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Described storage unit links to each other with the downlink port of usb hub by memory controller.
2. device as claimed in claim 1 is characterized in that,
By default, described switching controller links to each other a USB interface with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub.
3. device as claimed in claim 2 is characterized in that,
Described switching controller, when only detecting a USB interface voltage signal arranged:
Link to each other with the usb hub uplink port if this USB interface is described default conditions, then keep the connection of default conditions;
Link to each other with the usb hub downlink port if this USB interface is described default conditions, then disconnect the connection of described default conditions, and the USB interface that will detect voltage signal is connected with the uplink port of usb hub.
4. device as claimed in claim 2 is characterized in that,
Described switching controller, when detecting two USB interface voltage signal arranged:
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub uplink port, then keeps the connection of described default conditions;
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub downlink port, then disconnect the connection of described default conditions, and the USB interface that detects voltage signal earlier is connected with the uplink port of usb hub, another USB interface that detects voltage signal is linked to each other with the downlink port of usb hub.
5. device as claimed in claim 2 is characterized in that,
Described switching controller, when detecting two USB interface voltage signal arranged:
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub uplink port, then keeps the connection of described default conditions;
If detect the USB interface of voltage signal earlier is that described default conditions link to each other with the usb hub downlink port, then disconnect the connection of described default conditions, and the USB interface that detects voltage signal earlier is connected with the uplink port of usb hub, when detecting USB interface that described default conditions link to each other with the usb hub uplink port then voltage signal being arranged, recover the connection under the described default conditions.
6. as right 1 described device, it is characterized in that,
Described memory controller, storage unit, switching controller, usb hub are built in housing,
Described USB interface is arranged on the housing.
7. device as claimed in claim 6 is characterized in that at least one in the described USB interface links to each other with switching controller by extension lead;
The described USB interface that links to each other by extension lead is built-in and be fixed in an end of housing through mechanical bayonet arrangement;
Describedly comprise that mechanical bayonet arrangement further comprises the bayonet socket button, be located on the housing, be used for the described USB interface that links to each other with extension lead taken out, regains and fixing.
8. as any described device in the claim 1 to 7, it is characterized in that described USB interface is: in standard A type plug, standard A type socket, mini Mini USB plug, the Mini USB socket one.
9. one kind based on the storage of usb protocol and connect control device, comprising: memory controller and storage unit, it is characterized in that,
This device further comprises: at least two USB interface, switching controller and usb hubs,
Described at least two USB interface link to each other with switching controller;
Described switching controller is used for at least two USB interface one and links to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Described storage unit links to each other with the downlink port of usb hub by memory controller.
10. one kind based on the storage of usb protocol and connect control device, comprising: memory controller and storage unit, it is characterized in that,
This device further comprises: at least two USB interface, switching controller, usb hub and switch control interfaces,
Described at least two USB interface link to each other with switching controller;
Described switch control interface is used for the chip selection signal to the different USB interface of switching controller output identification;
Described switching controller is used for according to the chip selection signal that receives, and a USB interface of described chip selection signal correspondence is linked to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub;
Described storage unit links to each other with the downlink port of usb hub by memory controller.
11. storage and connection control method based on a usb protocol is characterized in that, may further comprise the steps:
A, the downlink port of usb hub is linked to each other with storage unit by memory controller, and detect the voltage signal of at least two USB interface;
B, a USB interface is linked to each other with the uplink port of usb hub, other USB interface are linked to each other with the downlink port of usb hub according to testing result.
12. method as claimed in claim 11 is characterized in that, described step B comprises:
When only detecting a USB interface voltage signal is arranged: the USB interface that will detect voltage signal is connected with the uplink port of usb hub;
When detecting two USB interface voltage signal arranged:
The USB interface that detects voltage signal earlier is connected with the uplink port of usb hub, with after detect voltage signal another USB interface link to each other with the downlink port of usb hub.
13. method as claimed in claim 11 is characterized in that, before the described step B, this method further comprises: default conditions are set, and a USB interface links to each other with the uplink port of usb hub, and other USB interface link to each other with the downlink port of usb hub;
Described step B comprises:
The default conditions that keep described setting, a USB interface links to each other with the uplink port of usb hub, and other USB interface are linked to each other with the downlink port of usb hub.
14. method as claimed in claim 11 is characterized in that, described step B comprises:
According to the chip selection signal that receives, a USB interface of described chip selection signal correspondence is linked to each other with the uplink port of usb hub, another USB interface that detects voltage signal is linked to each other with the downlink port of usb hub.
CNA2007100870264A 2007-03-14 2007-03-14 Memory based on USB protocol and connection control device and control method Pending CN101266586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100870264A CN101266586A (en) 2007-03-14 2007-03-14 Memory based on USB protocol and connection control device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100870264A CN101266586A (en) 2007-03-14 2007-03-14 Memory based on USB protocol and connection control device and control method

Publications (1)

Publication Number Publication Date
CN101266586A true CN101266586A (en) 2008-09-17

Family

ID=39989011

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100870264A Pending CN101266586A (en) 2007-03-14 2007-03-14 Memory based on USB protocol and connection control device and control method

Country Status (1)

Country Link
CN (1) CN101266586A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827162A (en) * 2009-03-04 2010-09-08 深圳富泰宏精密工业有限公司 Mobile phone USB interface detection system and method
CN103389957A (en) * 2012-03-31 2013-11-13 中国普天信息产业股份有限公司 Multi-interface communication device and method
CN104881387A (en) * 2015-05-26 2015-09-02 青岛海信宽带多媒体技术有限公司 USB connection method and USB concentrator
CN108228491A (en) * 2016-12-15 2018-06-29 群联电子股份有限公司 Channel switching device, memory storage apparatus and passageway switching method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827162A (en) * 2009-03-04 2010-09-08 深圳富泰宏精密工业有限公司 Mobile phone USB interface detection system and method
CN101827162B (en) * 2009-03-04 2013-08-07 深圳富泰宏精密工业有限公司 Mobile phone USB interface detection system and method
CN103389957A (en) * 2012-03-31 2013-11-13 中国普天信息产业股份有限公司 Multi-interface communication device and method
CN104881387A (en) * 2015-05-26 2015-09-02 青岛海信宽带多媒体技术有限公司 USB connection method and USB concentrator
CN104881387B (en) * 2015-05-26 2018-10-26 青岛海信宽带多媒体技术有限公司 A kind of USB connection methods and usb hub
CN108228491A (en) * 2016-12-15 2018-06-29 群联电子股份有限公司 Channel switching device, memory storage apparatus and passageway switching method

Similar Documents

Publication Publication Date Title
CN101359316B (en) Method and apparatus for implementing general-purpose serial bus USB OTG
TWI475390B (en) Portable device and peripheral extension dock
CN107580162B (en) Electronic device, control method thereof, and recording medium
CN100375073C (en) USB device and method capable of automatic sensing mode of USB
JP2001306495A (en) Portable communication terminal
EP2852130B1 (en) Electronic devie comprising smart card connection circuit
US8458376B1 (en) USB peripheral device with automatic mode switch
CN104349304A (en) Information processing method and electronic equipment
CN103530250A (en) Portable electronic device and accessory device thereof, and operating method for the portable electronic device
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN105162213A (en) USB controller, and device
CN105068959A (en) Terminal and charging method and apparatus for terminal with data exchange function
US20150269110A1 (en) Cable with multiple functions
CN101266586A (en) Memory based on USB protocol and connection control device and control method
JP2003263253A (en) Usb device
CN103311766A (en) Mobile equipment switching device and working mode switching method thereof
CN111417034A (en) Switch and hot plug method, device and system for switch board card thereof
CN204031208U (en) data communication path switching circuit, vehicle-mounted router and automobile
CN105242757A (en) Connection structure of tablet personal computer and base
CN110188060A (en) Mode switching system and the mode switching method for applying it
CN105893296B (en) A kind of transmitting device and its method of data information
CN214427925U (en) Infrared thermal imaging image reading device based on android system
CN105718338A (en) Information processing method and electronic device
CN108845558A (en) Detection control apparatus
CN111224453B (en) Communication method based on charging wire, charging device, intelligent device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080917