Summary of the invention
The embodiment of the present invention proposes a kind of device of multi-interface communication, can reduce the loss of intelligent memory card and intelligent memory card draw-in groove.
The embodiment of the present invention also proposes a kind of method of multi-interface communication, can reduce the loss of intelligent memory card and intelligent memory card draw-in groove.
The technical scheme of the embodiment of the present invention is as follows:
A kind of device of multi-interface communication, this device comprises:
At least one USB interface, usb hub expansion module and at least one intelligent memory card draw-in groove, described usb hub expansion module comprises switching controller and usb hub expanding element;
USB interface, be used for carrying out data interaction with switching controller;
Switching controller, the voltage for the judgement USB interface, when USB interface has voltage signal, be connected USB interface with the uplink port of usb hub expanding element;
The usb hub expanding element, be used at uplink port place and USB interface interaction data, at downlink port place and the intelligent memory card interaction data that inserts the intelligent memory card draw-in groove;
The intelligent memory card draw-in groove, be used for the data in read-write insertion intelligent memory card draw-in groove intelligent memory card, and pass through the data of the mutual described read-write of downlink port in the usb hub expanding element.
Described USB interface comprises standard A type USB interface or Mini USB interface.
Described USB interface comprises standard A type USB interface and Mini USB interface,
Standard A type USB interface first connects the first external unit, and then the Mini USB interface is connected with the second external unit;
Or
Standard A type USB interface is connected respectively the first external unit and the second external unit simultaneously with the Mini USB interface;
Standard A type USB interface is further used for by switching controller at the uplink port place of usb hub expanding element interaction data;
The Mini USB interface is further used for by switching controller at the downlink port place of usb hub expanding element interaction data.
Described USB interface comprises standard A type USB interface and Mini USB interface,
The Mini USB interface first connects the second external unit, and then standard A type USB interface connects the first external unit,
After described switching controller is further used for the voltage of standard A type USB interface being detected, the uplink port of MiniUSB port and usb hub expanding element is disconnected, standard A type USB interface is connected with the uplink port of usb hub expanding element, the Mini USB port is connected with the downlink port of usb hub expanding element;
Standard A type USB interface is further used for by switching controller at the uplink port place of usb hub expanding element interaction data;
The Mini USB interface is further used for by switching controller at the downlink port place of usb hub expanding element interaction data.
Described device further comprises radio frequency antenna module and gauge tap module,
Radio frequency antenna module, be used for realizing the contactless communication function;
The gauge tap module, be used for to control being connected of radio frequency antenna module and different intelligent memory card slot.
A kind of method of multi-interface communication, described method comprises:
The voltage of judgement USB interface,, if USB interface has voltage signal, be connected USB interface with uplink port;
Downlink port is connected with a plurality of intelligent memory cards;
By USB interface by the data in a plurality of intelligent memory cards of uplink port and downlink port read-write.
Described USB interface comprises standard A type USB interface or Mini USB interface.
Described USB interface comprises standard A type USB interface and Mini USB interface,
Described USB interface is connected and comprises with uplink port: standard A type USB interface is connected with uplink port;
Described method further comprises: the Mini USB interface is connected with downlink port, by standard A type USB interface by uplink port and descending end points and Mini USB interface interaction data.
Described USB interface comprises standard A type USB interface and Mini USB interface, and the Mini USB interface first connects the second external unit,
, if described USB interface has voltage signal, USB interface is connected and comprises with uplink port:, if the MiniUSB interface has voltage signal, the Mini USB interface is connected with uplink port;
Described method further comprises: after the voltage of standard A type USB interface being detected, disconnection Mini USB interface is connected with uplink port;
Standard A type USB interface is connected with uplink port, and the Mini USB interface is connected with downlink port;
By standard A type USB interface by uplink port and downlink port and Mini USB interface interaction data.
Described method further comprises: intelligent memory card carries out data interaction by radio-frequency antenna.
Can find out from technique scheme, in embodiments of the present invention, at first judge the voltage of USB interface,, if USB interface has voltage signal, USB interface is connected with uplink port; Then downlink port is connected with a plurality of intelligent memory cards; Like this by USB interface by the data in a plurality of intelligent memory cards of uplink port and downlink port read-write.Because USB interface directly is connected with a plurality of intelligent memory card draw-in grooves, can use simultaneously a plurality of intelligent memory cards, therefore can reduce the loss of intelligent memory card and intelligent memory card draw-in groove.
In addition, can also comprise a plurality of USB interface, one of them USB interface is connected with uplink port, and all the other USB port are connected with downlink port, and the external equipment that connects like this USB port just can pass through the USB port interaction data.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
In embodiments of the present invention, at first judge the voltage of USB interface,, if USB interface has voltage signal, USB interface is connected with uplink port; Then downlink port is connected with a plurality of intelligent memory cards; Like this by USB interface by the data in a plurality of intelligent memory cards of uplink port and downlink port read-write.Therefore, can reduce the loss of intelligent memory card and intelligent memory card draw-in groove.
In addition, when a plurality of USB interface are arranged, one of them USB interface is connected with uplink port, and all the other USB port are connected with downlink port, and the external unit that is connected to like this USB interface just can pass through the USB port interaction data.
Intelligent memory card inserts this device and device is integrated, and can be independent of host terminal and use.Make directly other rf terminal interaction data of intelligent memory card by radio frequency antenna module, need not to connect again main frame.
The device of multi-interface communication can be realized the multiple application of intelligent memory card.1) can be used as the large capacity movable memory storage with double-USB interface uses.2) can be used as the interface switching device of intelligent memory card and USB.3) can be used as USB-KEY equipment and use, is not only as USB-KEY on existing PC, can also use as the USB-KEY on mobile phone.4) can be used for mobile payment, comprise remote payment, near field small amount payment and with the mobile terminal such as mobile phone, coordinate as mobile POS machine and use.5) can be used as the USB connecting line.
Be the apparatus structure schematic diagram of multi-interface communication referring to accompanying drawing 1, specifically comprise: at least one usb 1 01, usb hub expansion module 102, at least one intelligent memory card draw-in groove 103, gauge tap module 104 and radio frequency antenna module 105.
Wherein, usb hub expansion module 102 is comprised of switching controller 1021 and usb hub expanding element 1022.
Usb 1 01 is connected and carries out data interaction with switching controller 1021.
Switching controller 1021, the voltage for judgement usb 1 01, when usb 1 01 has voltage signal, be connected usb 1 01 with the uplink port of usb hub expanding element 1022;
Usb hub expanding element 1022, be used at uplink port place and usb 1 01 interaction data, at downlink port place and the intelligent memory card interaction data that inserts intelligent memory card draw-in groove 103.
Intelligent memory card draw-in groove 103, be used for the data in read-write insertion intelligent memory card draw-in groove intelligent memory card, and pass through the data of the mutual described read-write of downlink port in usb hub expanding element 1022.
The principle of work of switching controller 1021 is as follows: switching controller 1021, by the voltage of judgement USB interface, realizes that USB interface connects the uplink port of usb hub expanding element 1022 or the switching of downlink port.By default, switching controller 1021 is connected the Mini USB interface with the downlink port of usb hub expanding element 1022, and standard A type USB interface is connected with the uplink port of usb hub expanding element 1022.
Connection mode 1, when only having standard A type USB interface to be connected with other external equipments, switching controller 1021 only detects standard A type USB interface voltage signal, and switching controller 1021 is connected standard A type USB interface with the uplink port of usb hub expanding element 1022.
Connection mode 2, when only having the Mini USB interface to be connected with other external equipments, switching controller 1021 only detects the Mini USB interface voltage signal, and switching controller 1021 switches to the Mini USB interface with the uplink port of usb hub expanding element 1022 and is connected.
Connection mode 3, I, when standard A type USB interface first is connected with the first external equipment, then the MiniUSB interface is connected with the second external unit; Or standard A type USB interface is connected respectively the first external unit and the second external unit simultaneously with the Mini USB interface.The first external unit and the second external unit be all in prior art with the equipment of USB interface, this USB interface comprises various usb types.
Switching controller 1021 detects standard A type USB interface voltage signal, and switching controller 1021 is connected standard A type USB interface with the uplink port of usb hub expanding element 1022.After this, when the Mini USB interface is connected with other equipment, switching controller 1021 will keep the Mini USB interface to be connected with the downlink port of usb hub expanding element 1022 always.
Standard A type USB interface is passed through switching controller 1021 at the uplink port place of usb hub expanding element 1022 interaction data; The Mini USB interface is passed through switching controller 1021 at the downlink port place of usb hub expanding element 1022 interaction data.
II, Mini USB interface first connect external unit, connect external unit after standard A type USB interface.After switching controller 1021 detects the voltage of standard A type USB interface, with the uplink port disconnection of Mini USB port and usb hub expanding element before, standard A type USB interface is connected with the uplink port of usb hub expanding element, then the Mini USB port is connected with the downlink port of usb hub expanding element.Like this, standard A type USB interface by switching controller at the uplink port place of usb hub expanding element interaction data; The Mini USB interface by switching controller at the downlink port place of usb hub expanding element interaction data.
At connection mode 1
While only having standard A type USB interface to be connected with external equipment, switching controller 1021 is connected standard A type USB interface with the uplink port of usb hub expanding element 1022.Under this connection mode, external device can be read and write content in intelligent memory card by standard A type USB interface.
Connection mode 2
While only having the Mini USB interface to be connected with external equipment, switching controller 1021 is connected the Mini USB interface with the uplink port of usb hub expanding element 1022.Under this connection mode, external device can be read and write content in intelligent memory card by the Mini USB interface.
Connection mode 3
When standard A type USB interface is connected with the second external equipment with the first external equipment respectively with the Mini USB interface, switching controller 1021 is connected standard A type USB interface with the uplink port of USB line concentration linkage unit 1022, the Mini USB interface is connected with the downlink port of USB line concentration linkage unit 1022.Under this connection mode, connect by USB, realize the USB line function, and contacting between external unit and between a plurality of intelligent memory card.
In addition, gauge tap module 104 is used for controlling being connected of radio frequency antenna module and different intelligent memory card slot.
Radio frequency antenna module 105, be used for realizing the contactless communication function.
The device of multi-interface communication can be used as non-contact card work.Be connected with the intelligent memory card draw-in groove in gauge tap module 104, the device of multi-interface communication not only can be used as non-contact card work, can also be by the storage card interaction data in radio frequency antenna module and intelligent memory card draw-in groove, storage card is prior art by the radio-frequency antenna interaction data.By the device of multi-interface communication, intelligent memory card can directly utilize radio-frequency antenna and other rf terminal interaction data, and the device of such multi-interface communication can be widely used in Internet of Things.
In practical application, apparatus of the present invention can adopt the combination of multiple USB interface to adapt to the applicable cases of various connection modes, below in conjunction with the specific embodiment explanation.
Embodiment one
Fig. 2 is apparatus structure schematic diagram in the embodiment of the present invention one.Switching controller, usb hub expanding element, intelligent memory card draw-in groove, gauge tap module and radio frequency antenna module all are built in device case.Respectively there is a USB interface that is connected with switching controller in housing at the housing two ends, and one of them is standard A type USB interface, and another is the Mini USB plug.Two USB interface also can be placed in any position (homonymy, not homonymy, outside and inside etc.) of device.Two USB interface all can be set to fixed or movable connected mode.At each intelligent memory card draw-in groove, a gauge tap module is arranged all, gauge tap module controls intelligent memory card draw-in groove is connected with radio frequency antenna module.Gauge tap module controls radio frequency antenna module can only be connected with any one intelligent memory card draw-in groove.
In practical application, may be provided with different USB interface on different host side equipment and non-host side equipment, consider versatility and the practicality of technical scheme in the present embodiment, can further include three or more mutually different USB interface in this device, the user can select any one or a plurality of USB interface in this device to be connected with the USB interface on other equipment according to actual conditions like this.
Embodiment two
Fig. 3 is apparatus structure schematic diagram in the embodiment of the present invention two.Switching controller, usb hub expanding element, intelligent memory card draw-in groove, gauge tap module and radio frequency antenna module all are built in device case.Respectively there is a USB interface that is connected with switching controller in housing at the housing two ends, and one of them is standard A type USB interface, and another is standard A type USB interface.The standard A type USB interface of one end is plugged in the USB socket of host side equipment and namely can be connected with host side.The standard A type USB interface of the other end portable mobile terminal equipment with standard A type plug of can pegging graft, namely realized the connecting line function of device.At each intelligent memory card draw-in groove, a gauge tap module is arranged all, gauge tap module controls intelligent memory card draw-in groove is connected with radio frequency antenna module.The solid line that connects the gauge tap module namely with being connected of radio frequency antenna module.Radio frequency antenna module is connected with an intelligent memory card draw-in groove at most.
, because usb hub has 126 downlink ports, therefore, if necessary, also a plurality of USB interface can be set, when realizing with the host side equipment connection, with being connected of a plurality of external mobile terminal devices.
Are method flow schematic diagram of multi-interface communication referring to accompanying drawing 4, specifically comprise the following steps:
The voltage of step 401, judgement USB interface,, if USB interface has voltage signal, be connected USB interface with uplink port.
Wherein, USB interface comprises standard A type USB interface or Mini USB interface.Interface comprises the various ways such as plug, socket in the present invention, and this is not limited.
Step 402, downlink port are connected with a plurality of intelligent memory cards.
When USB interface comprises standard A type USB interface and Mini USB interface, standard A type USB interface is connected with uplink port; The Mini USB interface is connected with downlink port, by standard A type USB interface by uplink port and descending end points and Mini USB interface interaction data.
USB interface comprises standard A type USB interface and Mini USB interface, and the Mini USB interface first connects external unit.
, if the Mini USB interface has voltage signal, the Mini USB interface is connected with uplink port; After the voltage of standard A type USB interface being detected, disconnection Mini USB interface is connected with uplink port; Standard A type USB interface is connected with uplink port, and the Mini USB interface is connected with downlink port; By standard A type USB interface by uplink port and downlink port and Mini USB interface interaction data.
Step 403, by USB interface by the data in a plurality of intelligent memory cards of uplink port and downlink port read-write.
Radio-frequency antenna just can be connected with intelligent memory card.Intelligent memory card is by radio-frequency antenna direct interaction data.
The above, be only preferred embodiment of the present invention, not is used for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.