CN104111908A - USB device, working system, working mode conversion method and data communication method - Google Patents

USB device, working system, working mode conversion method and data communication method Download PDF

Info

Publication number
CN104111908A
CN104111908A CN201410320393.4A CN201410320393A CN104111908A CN 104111908 A CN104111908 A CN 104111908A CN 201410320393 A CN201410320393 A CN 201410320393A CN 104111908 A CN104111908 A CN 104111908A
Authority
CN
China
Prior art keywords
usb device
interface
master control
intelligent mobile
mobile equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410320393.4A
Other languages
Chinese (zh)
Other versions
CN104111908B (en
Inventor
李志雄
邓恩华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Netcom Electronics Co Ltd
Original Assignee
Shenzhen Netcom Electronics 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 Shenzhen Netcom Electronics Co Ltd filed Critical Shenzhen Netcom Electronics Co Ltd
Priority to CN201410320393.4A priority Critical patent/CN104111908B/en
Publication of CN104111908A publication Critical patent/CN104111908A/en
Application granted granted Critical
Publication of CN104111908B publication Critical patent/CN104111908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a USB device, a working system, a working mode conversion method and a data communication method. The USB device comprises a slave master controller, a storage module connected with the slave master controller, a host master controller, a switching device respectively connected with the host master controller and the slave master controller, a first interface connected with the switching device and used for being connected with an intelligent movable device and a second interface connected with the host master controller and used for being connected with a host device or a power device; when the USB device works in the host mode, a route for connecting the first interface and the host master controller is built by the switching device; when the USB device works in the slave mode, a route for connecting the first interface and the slave master controller is built by the switching device. When the intelligent movable device is powered off, switching of the working mode of the USB device is automatically achieved, the intelligent movable device is charged, the USB device does not need to be pulled out, and the USB device is rapid and convenient to operate.

Description

USB device and work system, operation mode conversion method, data communications method
Technical field
The present invention relates to field of storage, particularly relate to a kind of USB device and work system, operation mode conversion method, data communications method.
Background technology
Along with popularizing of intelligent mobile communication equipment, intelligent mobile communication equipment has become the indispensable product in people's life.Conventional intelligent mobile communication equipment, for example smart mobile phone, its data storage method generally adopts the mode of built-in memory or storage card to carry out, because the built-in memory of smart mobile phone is generally fixing capacity, cannot carry out capacity extensions, when the file of storing in internal memory or data reach after a certain size, just partial document or data must be deleted, in order to avoid bring the problem that memory capacity is inadequate; Adopt the mode of storage card to carry out data storage, although can carry out the expansion of storage volume, storage card cannot carry out hot plug with smart card, uses inconvenient.
Because the built-in memory of smart mobile phone can not meet data storage requirement, the appearance of USB device greatly facilitates the mobile storage demand of smart mobile phone.And smart mobile phone is generally only provided with a Micro USB (Universal Serial Bus, USB (universal serial bus)) interface, this Micro USB interface while is as data transmission interface and the charging inlet of smart mobile phone, in the time being connected with USB device in the Micro USB interface on smart mobile phone, when smart mobile phone does not have electricity, need to pull up USB device, plug charging wire charged to smart mobile phone after, pull up again charging wire, plug USB device, so smart mobile phone could be accessed the content in USB device again, whole process, complex operation, waste time and energy very much.
Summary of the invention
Based on this, be necessary between reading the data in USB device and self charging, to carry out the loaded down with trivial details problem of blocked operation for traditional intelligent mobile communication equipment, a kind of USB device of simple operation is provided.
In addition be also necessary, the work system of the USB device that a kind of simple operation is provided.
In addition be also necessary, the operation mode conversion method of the USB device that a kind of simple operation is provided.
In addition be also necessary, the data communications method of the USB that a kind of simple operation is provided.
A kind of USB device, comprise slave master control and the memory module being connected with described slave master control, switching device shifter that described USB device also comprises main frame master control, be connected respectively with described main frame master control and slave master control, be connected with described switching device shifter and for the first interface that connects with Intelligent mobile equipment and be connected with described main frame master control and the second interface for connecting with main process equipment or power-supply device; Described first interface comprises the first power line terminal, the first correction data line terminals, the first negative data line terminals, the first detection line terminal and the first ground wire terminal; When described USB device is operated under host mode, described switching device shifter is set up the path that described first interface is connected with described main frame master control, described the first correction data line terminals is connected with described main frame master control with the first negative data line terminals, and described the first detection line terminal sky connects; When described USB device is operated under slave mode, described switching device shifter is set up the path that described first interface is connected with described slave master control, described the first correction data line terminals is connected with described slave master control with the first negative data line terminals, described the first detection line terminal ground connection.
Therein in an embodiment, described switching device shifter comprises path switch and detection line switch, when described USB device is operated in host mode lower time, described path switch is set up described the first correction data line terminals and is connected with described main frame master control with the first negative data line terminals, and described detection line switch connects described the first detection line terminal sky; When described USB device is operated in slave mode lower time, described path switch is set up being connected of described the first correction data line terminals and the first negative data line terminals and described slave master control, and described detection line switch makes described the first detection line terminal ground connection.
Therein in an embodiment, described USB device comprises power module, described power module one end is connected with described main frame master control, power supply is provided can to described main frame master control, and can give the Intelligent mobile equipment being connected on described first interface charging by described first interface, the other end is connected with described the second interface, and main process equipment or power-supply device can be charged to described power module.
In an embodiment, described the second interface comprises second source line terminals, the second ground wire terminal, the second correction data line terminals and the second negative data line terminals therein, and described the second interface is connected with described slave master control.
In an embodiment, described USB device also comprises mode switch therein, and described mode switch one end is connected with described the second interface, and the other end is connected with described slave master control; When described mode switch connects main process equipment for connect Intelligent mobile equipment and described the second interface at described first interface, disconnect the communication connection of described USB device and main process equipment.
A kind of work system of USB device, comprise Intelligent mobile equipment, the work system of described USB device also comprises described USB device, described Intelligent mobile equipment connects by described first interface and described USB device, the application program of controlling described USB device is installed on described Intelligent mobile equipment, and described Intelligent mobile equipment carries out the switching of mode of operation by USB device described in described application program controlling.
Therein in an embodiment, the work system of described USB device also comprises the main process equipment or the power-supply device that connect by the second interface and described USB device, and described main process equipment or power-supply device are directly connected with described USB device or connect by USB transmission line.
In an embodiment, described USB device also comprises power module therein, and described power module one end is connected with described main frame master control, and the other end is connected with described the second interface; Described main process equipment or power-supply device or power module provide power supply to described USB device and Intelligent mobile equipment.
An operation mode conversion method for USB device, comprises the following steps:
Above-mentioned USB device is provided, and described USB device is connected with Intelligent mobile equipment by first interface;
In the time that the slave master control of described USB device receives Intelligent mobile equipment that described Intelligent mobile equipment sends and is switched to the order of slave mode from host mode, control described switching device shifter and set up being connected of described main frame master control and described first interface, and the first detection line terminal sky of described first interface is connect;
When receiving the described Intelligent mobile equipment that described Intelligent mobile equipment sends, the main frame master control of described USB device is switched to from slave mode the order of host mode, control described switching device shifter and set up being connected of described slave master control and described first interface, and by the first detection line terminal ground connection of described first interface;
Or, in the time that the main frame master control of described USB device inquires described Intelligent mobile equipment state and is set to host mode, described in described main frame master control control, switching device shifter is set up being connected of described slave master control and described first interface, and by the first detection line terminal ground connection of described first interface.
A data communications method for USB device, comprises the following steps:
Intelligent mobile equipment and above-mentioned USB device are provided, and described USB device is connected with described Intelligent mobile equipment by first interface;
Intelligent mobile equipment buffer memory is divided to the data buffer storage space of segment space as described USB device;
Data to be read described Intelligent mobile equipment are divided into multiple fragment datas according to the size in described data buffer storage space;
When described USB device is operated in slave mode, a fragment data in multiple fragment datas is uploaded to by first interface in the data buffer storage space of Intelligent mobile equipment at every turn, after having uploaded, described slave master control receives the described USB device that described Intelligent mobile equipment sends and is switched to after the order of host mode, control described switching device shifter and set up the path that first interface is connected with main frame master control, and the first detection line terminal sky of first interface is connect;
In the time that described Intelligent mobile equipment detects that data in data buffer storage space have read, described main frame master control receives described USB device that described Intelligent mobile equipment sends and is switched to the order of slave mode, control described switching device shifter and set up being connected of first interface and slave master control, and by the first detection line terminal ground connection of first interface;
Or, in the time that described Intelligent mobile equipment detects that data in data buffer storage space have read, when described main frame master control inquires described Intelligent mobile equipment state and is set to host mode, control described switching device shifter and set up being connected of first interface and slave master control, and by the first detection line terminal ground connection of first interface.
Above-mentioned USB device and work system thereof, operation mode conversion method, data communications method, if USB device is operated in host mode, set up by switching device shifter the path that first interface is connected with main frame master control, the power supply external by the second interface provides power supply to the Intelligent mobile equipment on first interface, if USB device is operated in slave mode, switching device shifter is set up the path that first interface is connected with slave master control, Intelligent mobile equipment can write data to sense data in memory module or from memory module, can be in the time that Intelligent mobile equipment have electricity, automatically realize the conversion of USB device mode of operation, Intelligent mobile equipment is charged, do not need to pull out USB device, simple operation.In addition, in the time that Intelligent mobile equipment is operated in host mode, USB device by data buffer storage to be read Intelligent mobile equipment in Intelligent mobile equipment, thereby the data that Intelligent mobile equipment is stored in when charging also can read USB device, and factor data interface transmission speed is very fast, data buffer storage can be completed very soon.
Brief description of the drawings
Fig. 1 is the circuit structure block diagram of USB device in an embodiment;
Fig. 2 is the circuit structure block diagram of USB device in another embodiment;
Fig. 3 is the part circuit structure block diagram of USB device in an embodiment;
Fig. 4 is the circuit structure block diagram of USB device in another embodiment;
Fig. 5 is the circuit structure block diagram of USB device in another embodiment;
Fig. 6 is the circuit structure block diagram of the work system of USB device in an embodiment;
Fig. 7 is the process flow diagram of the operation mode conversion method of USB device in an embodiment;
Fig. 8 is the process flow diagram of the data communications method of USB device in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 is the structural representation of USB device in an embodiment.As shown in Figure 1, this USB device, comprises slave master control 10, memory module 20, main frame master control 30, switching device shifter 40, first interface 50 and the second interface 60.
Slave master control 10 is connected respectively with memory module 20, main frame master control 30 and switching device shifter 40 respectively.
Memory module 20 can be flash memory, also can be other memory devices, as ferroelectric memory, phase transition storage, EEPROM etc., but is not limited to this.
Main frame master control 30 is connected with switching device shifter 40.
First interface 50 is connected with switching device shifter 40.First interface 50 is for connecting with Intelligent mobile equipment.First interface 50 can be in USB public access mouth, Mini USB public access mouth, Micro USB public access mouth, USB maternal interface, Mini USB maternal interface, Micro USB maternal interface any one.Intelligent mobile equipment can comprise smart mobile phone, panel computer, personal digital assistant etc.Preferably, first interface 50 is Micro USB public access mouth.
First interface 50 comprises the first power line terminal (VBUS), the first correction data line terminals (D+), the first negative data line terminals (D-), the first detection line terminal (ID) and the first ground wire terminal (GND).The second interface 60 is connected with main frame master control 30.The second interface 60 is for connecting with main process equipment or power-supply device, also can with OTG (On-The-Go) equipment connection.In the time of the second interface 60 and OTG equipment connection, this OTG equipment, as main process equipment, provides power supply to USB device.The second interface 60 can be in USB public access mouth, Mini USB public access mouth, Micro USB public access mouth, USB maternal interface, Mini USB maternal interface, Micro USB maternal interface any one.Wherein, main process equipment can be computer etc.Preferably, the second interface 60 is Micro USB maternal interface.
When this USB device is operated under host mode, switching device shifter 40 is set up the path that first interface 50 is connected with main frame master control 30, and this first correction data line terminals is connected with this main frame master control 30 with the first negative data line terminals, and this first detection line terminal sky connects.Provide power supply by the external power supply of this second interface 60 for the Intelligent mobile equipment being connected on first interface 50.
When this USB device is operated under slave mode, switching device shifter 40 is set up the path that first interface 50 is connected with slave master control 10, and the first correction data line terminals is connected with slave master control 10 with the first negative data line terminals, this first detection line terminal ground connection.Being connected to Intelligent mobile equipment on first interface 50 provides work required power supply for this USB device, and can write data to sense data in this memory module 20 or from this memory module.
Above-mentioned USB device, if USB device is operated in host mode, set up by switching device shifter the path that first interface is connected with main frame master control, the power supply external by the second interface provides power supply to the Intelligent mobile equipment on first interface, if USB device is operated in slave mode, switching device shifter is set up the path that first interface is connected with slave master control, Intelligent mobile equipment can write data to sense data in memory module or from memory module, can be in the time that Intelligent mobile equipment have electricity, automatically realize the conversion of USB device mode of operation, Intelligent mobile equipment is charged, do not need to pull out USB device, simple operation.
In one embodiment, the second interface 60 comprises second source line terminals and the second ground wire terminal.Further, the second interface 60 also can comprise the second correction data line terminals and the second negative data line terminals.In addition, the second interface 60 also can comprise the second detection line terminal, this second detection line terminal ground connection, thus show that the OTG equipment connecing on the second interface 60 can only serve as main process equipment.
As shown in Figure 2, the second interface 60 is also connected with slave master control 10.The second interface 60 can external main process equipment or power-supply device to USB device and/or give the Intelligent mobile equipment being connected with first interface 50 power supply.
The second interface 60 is connected with slave master control, and this second interface comprises second source line terminals and the second ground wire terminal.
Further, in one embodiment, as shown in Figure 3, switching device shifter 40 comprises path switch 401 and detection line switch 402.This path switch 401 is a multiplexer, can automatically switch to the path that first interface 50 is connected with main frame master control 30 or automatically switch to the path that first interface 50 is connected with slave master control 10 according to the order of the order of Intelligent mobile equipment and/or USB device.Detection line switch 402 can automatically switch the first detection line terminal ground connection or sky are connect according to the order of the order of Intelligent mobile equipment and/or USB device.Detection line switch 402 can be an analog switch, by conducting or the cut-off of control simulation switch, the first detection line terminal ground connection or sky is connect.This analog switch can be any one in mode selector switch chip, diode, triode, field effect transistor.More accurate for the mode of operation of Intelligent mobile equipment is switched, preferred, analog switch is selected mode selector switch chip.In Fig. 3, first interface 50 is Micro USB public access mouth, comprises the first power line terminal (VBUS), the first correction data line terminals (D+), the first negative data line terminals (D-), the first detection line terminal (ID) and the first ground wire terminal (GND).
Concrete, when USB device is operated in host mode lower time, path switch 401 is set up the first correction data line terminals and is connected with main frame master control 30 with the first negative data line terminals, and detection line switch 402 connects this first detection line terminal sky; When USB device is operated in slave mode lower time, path switch 401 is set up being connected of this first correction data line terminals and the first negative data line terminals and slave master control 10, and detection line switch 402 makes this first detection line terminal ground connection.
In one embodiment, as shown in Figure 4, USB device also comprises power module 70, power module 70 one end are connected with main frame master control 30, power supply is provided can to main frame master control 30, and can give the Intelligent mobile equipment being connected on first interface 50 charging by first interface 50, the other end is connected with the second interface 60, and main process equipment or power-supply device can be charged to power module 70.
In one embodiment, as shown in Figure 5, USB device also comprises mode switch 80, and mode switch 80 one end are connected with the second interface 60, and the other end is connected with slave master control 10; When mode switch 80 connects main process equipment for connect Intelligent mobile equipment and the second interface 60 at first interface 50, disconnect the communication connection of USB device and main process equipment, disconnect being connected of the second correction data line terminals and the second negative data line terminals and slave master control 10 in the second interface 60.
Mode switch 80 is hardware module or software module, this hardware module be in diode, triode, field effect transistor or analog switch chip any one.Software module refers to the software program of burning in slave master control 10.Adopt mode switch 80 to control the communication connection that automatically disconnects USB device and main process equipment, conveniently carry out pattern switching.
Fig. 6 is the circuit structure block diagram of the work system of USB device in an embodiment.As shown in Figure 6, the work system of this USB device, comprises USB device 1 and Intelligent mobile equipment 2, and Intelligent mobile equipment 2 connects by first interface 50 and USB device 1.
USB device 1 is the USB device described in above-mentioned Fig. 1 to Fig. 5.
The application program of controlling this USB device 1 is installed on Intelligent mobile equipment 2, and this Intelligent mobile equipment carries out the switching of mode of operation by this application program controlling USB device 1.Intelligent mobile equipment 2 can be in smart mobile phone, panel computer, personal digital assistant etc. any one.Preferably, this Intelligent mobile equipment 2 is smart mobile phone.
In USB device 1, store the installation kit of this application program, when USB device 1 first connection is during to Intelligent mobile equipment 2, this application program can be selected be installed in Intelligent mobile equipment 2 automatically or by user.In addition, the installation kit of this application program can be downloaded and installed by user on corresponding website, in this no limit.
Further, first interface 50 can directly be connected with Intelligent mobile equipment 2 or connect by USB transmission line.If when first interface 50 does not mate with the interface of Intelligent mobile equipment 2, first interface 50 is connected by USB transmission line with Intelligent mobile equipment 2, for example first interface 50 is USB maternal interface, interface on Intelligent mobile equipment 2 is Micro USB maternal interface, USB device 1 is USB public access mouth with Intelligent mobile equipment 2 by one end, and the other end is that the USB transmission line of Micro USB public access mouth connects.If the first interface 50 of USB device 1 mates mutually with the interface of Intelligent mobile equipment 2, USB device 1 can directly be connected with Intelligent mobile equipment 2, also can connect by USB transmission line, for example, the external interface of Intelligent mobile equipment 2 is Micro USB maternal interface, first interface 50 is Micro USB public access mouth, and USB device 1 is directly connected with Intelligent mobile equipment 2 or is Micro USB maternal interface by one end, and the other end is that the USB transmission line of Micro USB public access mouth connects.
In the time that USB device 1 does not comprise that the power supply of power module 70 or power module 70 exhausts, the work system of this USB device also comprises the main process equipment or the power-supply device 3 that connect by the second interface 60 and USB device 1.This main process equipment or power-supply device 3 can directly be connected with USB device 1 or connect by USB transmission line 4.Preferably, main process equipment or power-supply device 3 are connected by USB transmission line 4 with USB device 1.This power-supply device can be portable power source equipment.
When USB device 1 comprises power module 70, and USB device is while being connected with main process equipment or power-supply device 3 by the second interface 60, preferentially selects the power supply of main process equipment or power-supply device to offer USB device 1 and Intelligent mobile equipment 2.In addition, also can select the power supply of main process equipment or power-supply device 3 first power module 70 to be charged, then other modules to USB device 1 and Intelligent mobile equipment 2 are powered by power module 70.
The present invention also provides a kind of operation mode conversion method of USB device.As shown in Figure 7, the operation mode conversion method of this USB device, comprises the following steps:
Step 702, provides USB device, and this USB device comprises slave master control, main frame master control, memory module, switching device shifter, first interface and the second interface, and this USB device is connected with Intelligent mobile equipment by first interface.
Concrete, this USB device is the USB device described in above-mentioned Fig. 1 to Fig. 5.
Step 704, in the time that the slave master control of this USB device receives Intelligent mobile equipment that this Intelligent mobile equipment sends and is switched to the order of slave mode from host mode, control this switching device shifter and set up being connected of this main frame master control and this first interface, and the first detection line terminal sky of this first interface is connect.
Concrete, in the time that Intelligent mobile equipment need to be switched to slave mode from host mode, Intelligent mobile equipment is given an order to USB device, the slave master control of USB device receives the host mode that Intelligent mobile equipment sends and is switched to after the order of slave mode, control switching device shifter and set up being connected of main frame master control and first interface, make the first detection line terminal sky in first interface connect simultaneously.
Step 706, when receiving the slave mode that this Intelligent mobile equipment sends, the main frame master control of this USB device is switched to after the order of host mode, control this switching device shifter and set up being connected of this slave master control and this first interface, and by the first detection line terminal ground connection of this first interface.
Concrete, in the time that Intelligent mobile equipment need to be switched to host mode by slave mode, Intelligent mobile equipment is given an order to USB device, the main frame master control of USB device receives the host mode that Intelligent mobile equipment sends and is switched to after the order of slave mode, control switching device shifter and set up being connected of main frame master control and first interface, make the first detection line terminal ground connection in first interface simultaneously.
Or, uninterruptedly inquire about this Intelligent mobile equipment state when the main frame master control of this USB device and be set to host mode, if so, this this switching device shifter of main frame master control control is set up being connected of this slave master control and this first interface, and by the first detection line terminal ground connection of this first interface.
Concrete, in the time that Intelligent mobile equipment need to be switched to host mode by slave mode, Intelligent mobile equipment is the state that need to be changed to by slave mode host mode by Status Change, whether this state of the continual inquiry of main frame master control is set to host mode, in the time inquiring this state, main frame master control control switching device shifter is set up being connected of slave master control and first interface, makes the first detection line terminal ground connection in first interface simultaneously.
Further, the operation mode conversion method of this USB device also comprises: detect whether ground connection of the first detection line terminal in this first interface by this Intelligent mobile equipment, if, this Intelligent mobile equipment is in host mode, this USB device is in slave mode, and this Intelligent mobile equipment provides work required power supply to this USB device; Otherwise this Intelligent mobile equipment is in slave mode, this USB device is in host mode, and main process equipment or power-supply device that this USB device connects by built-in power module or by this second interface provide power supply to this Intelligent mobile equipment.
In addition, USB device need to be when host mode switches to slave mode or be switched to host mode by slave mode, need to open the application program of installing on Intelligent mobile equipment realizes, if in the time that USB device connects Intelligent mobile equipment, not opening this application program controls, can not carry out master slave mode switching, can only be operated in wherein a kind of pattern.
The present invention also provides a kind of data communications method of USB device.As shown in Figure 8, the data communications method of this USB device, comprises the following steps:
Step 802, provides Intelligent mobile equipment and USB device, and this USB device comprises slave master control, main frame master control, memory module, switching device shifter, first interface and the second interface, and this USB device is connected with this Intelligent mobile equipment by first interface.
Step 804, divides the data buffer storage space of segment space as this USB device using Intelligent mobile equipment buffer memory.
Concrete, the size in data buffer storage space is set as required.
Step 806, is divided into multiple fragment datas by data to be read this Intelligent mobile equipment according to the size in this data buffer storage space.
Step 808, when this USB device is operated in slave mode, a fragment data in multiple fragment datas is uploaded to by first interface in the data buffer storage space of Intelligent mobile equipment at every turn, after having uploaded, this slave master control receives this USB device that this Intelligent mobile equipment sends and is switched to after the order of host mode, control this switching device shifter and set up the path that first interface is connected with main frame master control, and the first detection line terminal sky of first interface is connect.
Step 810, in the time that this Intelligent mobile equipment detects that data in data buffer storage space have read, this main frame master control receives this USB device that this Intelligent mobile equipment sends and is switched to the order of slave mode, control this switching device shifter and set up being connected of first interface and slave master control, and by the first detection line terminal ground connection of first interface.
Or, in the time that this Intelligent mobile equipment detects that data in data buffer storage space have read, when this main frame master control inquires this Intelligent mobile equipment state and is set to host mode, control this switching device shifter and set up being connected of first interface and slave master control, and by the first detection line terminal ground connection of first interface.
Repeat fragment data (this fragment data is the fragment data different from the fragment data passing last time) to upload in the data buffer storage space of this Intelligent mobile equipment until the data that this Intelligent mobile equipment will read have all read rear termination.In addition, when user exits application program, the flow process of data communications method also stops, and Intelligent mobile equipment can only be operated under main frame or a kind of mode of operation of slave.
Concrete, the data that continue are divided into multiple fragment datas.For example, 200MB (megabit) is treated to read data is divided into 10 20MB fragment datas, upload a fragment data in the data buffer storage space of Intelligent mobile equipment at every turn, after having uploaded, control switching device shifter and set up the first interface of this USB device and the access path of main frame master control, and the first detection line terminal sky in first interface is connect.After having read Deng the 20M fragment data in the buffer memory of Intelligent mobile equipment, again control switching device shifter and set up being connected of first interface and slave master control, and make the first detection line terminal ground connection in first interface, upload again 20M fragment data in the data buffer storage space of Intelligent mobile equipment, repeat above process until these 200M data have all been uploaded.
The data communications method of above-mentioned USB device, in the time that Intelligent mobile equipment is operated in host mode, USB device by data buffer storage to be read Intelligent mobile equipment in Intelligent mobile equipment, thereby the data that Intelligent mobile equipment is stored in when charging also can read USB device, and factor data interface transmission speed is very fast, data buffer storage can be completed very soon, thereby while making Intelligent mobile equipment charging, affect hardly the use of user to USB device, user's experience meeting is very good.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, the program of being somebody's turn to do can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, the storage medium being somebody's turn to do can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a USB device, comprise slave master control and the memory module being connected with described slave master control, it is characterized in that, switching device shifter that described USB device also comprises main frame master control, be connected respectively with described main frame master control and slave master control, be connected with described switching device shifter and for the first interface that connects with Intelligent mobile equipment and be connected with described main frame master control and the second interface for connecting with main process equipment or power-supply device; Described first interface comprises the first power line terminal, the first correction data line terminals, the first negative data line terminals, the first detection line terminal and the first ground wire terminal; When described USB device is operated under host mode, described switching device shifter is set up the path that described first interface is connected with described main frame master control, described the first correction data line terminals is connected with described main frame master control with the first negative data line terminals, and described the first detection line terminal sky connects; When described USB device is operated under slave mode, described switching device shifter is set up the path that described first interface is connected with described slave master control, described the first correction data line terminals is connected with described slave master control with the first negative data line terminals, described the first detection line terminal ground connection.
2. USB device according to claim 1, it is characterized in that, described switching device shifter comprises path switch and detection line switch, when described USB device is operated in host mode lower time, described path switch is set up described the first correction data line terminals and is connected with described main frame master control with the first negative data line terminals, and described detection line switch connects described the first detection line terminal sky; When described USB device is operated in slave mode lower time, described path switch is set up being connected of described the first correction data line terminals and the first negative data line terminals and described slave master control, and described detection line switch makes described the first detection line terminal ground connection.
3. USB device according to claim 1, it is characterized in that, described USB device comprises power module, described power module one end is connected with described main frame master control, power supply is provided can to described main frame master control, and can give the Intelligent mobile equipment being connected on described first interface charging by described first interface, the other end is connected with described the second interface, and main process equipment or power-supply device can be charged to described power module.
4. USB device according to claim 1, is characterized in that, described the second interface comprises second source line terminals, the second ground wire terminal, the second correction data line terminals and the second negative data line terminals, and described the second interface is connected with described slave master control.
5. USB device according to claim 4, is characterized in that, described USB device also comprises mode switch, and described mode switch one end is connected with described the second interface, and the other end is connected with described slave master control; When described mode switch connects main process equipment for connect Intelligent mobile equipment and described the second interface at described first interface, disconnect the communication connection of described USB device and main process equipment.
6. the work system of a USB device, comprise Intelligent mobile equipment, it is characterized in that, the work system of described USB device also comprises the USB device as described in any one in claim 1 or 2 or 4 or 5, described Intelligent mobile equipment connects by described first interface and described USB device, the application program of controlling described USB device is installed on described Intelligent mobile equipment, and described Intelligent mobile equipment carries out the switching of mode of operation by USB device described in described application program controlling.
7. the work system of USB device according to claim 6, it is characterized in that, the work system of described USB device also comprises the main process equipment or the power-supply device that connect by the second interface and described USB device, and described main process equipment or power-supply device are directly connected with described USB device or connect by USB transmission line.
8. according to the work system of the USB device described in claim 6 or 7, it is characterized in that, described USB device also comprises power module, and described power module one end is connected with described main frame master control, and the other end is connected with described the second interface; Described main process equipment or power-supply device or power module provide power supply to described USB device and Intelligent mobile equipment.
9. an operation mode conversion method for USB device, comprises the following steps:
USB device as described in any one in claim 1 to 5 is provided, and described USB device is connected with Intelligent mobile equipment by first interface;
In the time that the slave master control of described USB device receives Intelligent mobile equipment that described Intelligent mobile equipment sends and is switched to the order of slave mode from host mode, control described switching device shifter and set up being connected of described main frame master control and described first interface, and the first detection line terminal sky of described first interface is connect;
When receiving the described Intelligent mobile equipment that described Intelligent mobile equipment sends, the main frame master control of described USB device is switched to from slave mode the order of host mode, control described switching device shifter and set up being connected of described slave master control and described first interface, and by the first detection line terminal ground connection of described first interface;
Or, in the time that the main frame master control of described USB device inquires described Intelligent mobile equipment state and is set to host mode, described in described main frame master control control, switching device shifter is set up being connected of described slave master control and described first interface, and by the first detection line terminal ground connection of described first interface.
10. a data communications method for USB device, comprises the following steps:
Intelligent mobile equipment and the USB device as described in any one in claim 1 to 5 are provided, and described USB device is connected with described Intelligent mobile equipment by first interface;
Intelligent mobile equipment buffer memory is divided to the data buffer storage space of segment space as described USB device;
Data to be read described Intelligent mobile equipment are divided into multiple fragment datas according to the size in described data buffer storage space;
When described USB device is operated in slave mode, a fragment data in multiple fragment datas is uploaded to by first interface in the data buffer storage space of Intelligent mobile equipment at every turn, after having uploaded, described slave master control receives the described USB device that described Intelligent mobile equipment sends and is switched to after the order of host mode, control described switching device shifter and set up the path that first interface is connected with main frame master control, and the first detection line terminal sky of first interface is connect;
In the time that described Intelligent mobile equipment detects that data in data buffer storage space have read, described main frame master control receives described USB device that described Intelligent mobile equipment sends and is switched to the order of slave mode, control described switching device shifter and set up being connected of first interface and slave master control, and by the first detection line terminal ground connection of first interface;
Or, in the time that described Intelligent mobile equipment detects that data in data buffer storage space have read, when described main frame master control inquires described Intelligent mobile equipment state and is set to host mode, control described switching device shifter and set up being connected of first interface and slave master control, and by the first detection line terminal ground connection of first interface.
CN201410320393.4A 2014-07-04 2014-07-04 USB device and work system, operation mode conversion method, data communications method Active CN104111908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410320393.4A CN104111908B (en) 2014-07-04 2014-07-04 USB device and work system, operation mode conversion method, data communications method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410320393.4A CN104111908B (en) 2014-07-04 2014-07-04 USB device and work system, operation mode conversion method, data communications method

Publications (2)

Publication Number Publication Date
CN104111908A true CN104111908A (en) 2014-10-22
CN104111908B CN104111908B (en) 2017-08-01

Family

ID=51708705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410320393.4A Active CN104111908B (en) 2014-07-04 2014-07-04 USB device and work system, operation mode conversion method, data communications method

Country Status (1)

Country Link
CN (1) CN104111908B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912084A (en) * 2016-03-31 2016-08-31 联想(北京)有限公司 Information processing method and electronic equipment
CN107566630A (en) * 2017-08-25 2018-01-09 深圳市汉普电子技术开发有限公司 Data communications method, USB main equipment and storage medium under charged state
CN107766274A (en) * 2017-09-28 2018-03-06 河源市美晨联合智能硬件电子研究院 Mobile terminal and its automatically select the method for USB connection modes, storage device
CN109086236A (en) * 2017-06-14 2018-12-25 国基电子(上海)有限公司 Power source charges path switching circuit and its electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070143507A1 (en) * 2005-12-16 2007-06-21 Tennrich International Corp. Storage device with mobile source module
CN103324445A (en) * 2013-05-27 2013-09-25 深圳市江波龙电子有限公司 Universal serial bus (USB) storage device running method and system and USB storage device
CN103902490A (en) * 2014-03-11 2014-07-02 深圳市江波龙电子有限公司 U disk, and work system, work mode converting method and data communication method of U disk
CN204044810U (en) * 2014-07-04 2014-12-24 深圳市江波龙电子有限公司 USB device and work system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070143507A1 (en) * 2005-12-16 2007-06-21 Tennrich International Corp. Storage device with mobile source module
CN103324445A (en) * 2013-05-27 2013-09-25 深圳市江波龙电子有限公司 Universal serial bus (USB) storage device running method and system and USB storage device
CN103902490A (en) * 2014-03-11 2014-07-02 深圳市江波龙电子有限公司 U disk, and work system, work mode converting method and data communication method of U disk
CN204044810U (en) * 2014-07-04 2014-12-24 深圳市江波龙电子有限公司 USB device and work system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912084A (en) * 2016-03-31 2016-08-31 联想(北京)有限公司 Information processing method and electronic equipment
CN109086236A (en) * 2017-06-14 2018-12-25 国基电子(上海)有限公司 Power source charges path switching circuit and its electronic equipment
US10998737B2 (en) 2017-06-14 2021-05-04 Ambit Microsystems (Shanghai) Ltd. Intelligent switch system
CN107566630A (en) * 2017-08-25 2018-01-09 深圳市汉普电子技术开发有限公司 Data communications method, USB main equipment and storage medium under charged state
CN107766274A (en) * 2017-09-28 2018-03-06 河源市美晨联合智能硬件电子研究院 Mobile terminal and its automatically select the method for USB connection modes, storage device
CN107766274B (en) * 2017-09-28 2021-02-02 河源市美晨联合智能硬件电子研究院 Mobile terminal, method for automatically selecting USB connection mode of mobile terminal and storage device

Also Published As

Publication number Publication date
CN104111908B (en) 2017-08-01

Similar Documents

Publication Publication Date Title
CN104638732A (en) System with external equipment accessing and battery charging management functions, and method thereof
CN104081368A (en) Mobile device automatic detection apparatus and method
CN204044810U (en) USB device and work system
CN202134745U (en) Multifunctional USB OTG data line
CN107332208B (en) A kind of protection circuit, mainboard guard method and terminal
CN104111908A (en) USB device, working system, working mode conversion method and data communication method
CN107453428A (en) A kind of method of automatic identification apple and Android device
CN117762231A (en) Power supply device and power supply method
CN103902490B (en) USB flash disk and its work system, mode switching method, data communications method
US10282335B2 (en) Multifunctional portable data card and data transmission method
CN103442147A (en) Universal type function extension supporting base device of intelligent mobile phone
CN101150326B (en) A communication terminal connection device with charging connection and data communication and storage function
CN203445629U (en) Multifunctional back clip system of intelligent mobile terminal
CN109378891B (en) Charging and discharging method, mobile power supply and computer storage medium
CN202384813U (en) Multifunctional mobile power supply
KR100726432B1 (en) External storage apparatus and operating method thereof
CN101311914A (en) Electronic device and peripheral device matching system and its matching method
CN204178362U (en) A kind of multifunctional portable data card
CN206224456U (en) A kind of equipment of the Android mobile phone mode of operation that automatically switches
CN101094464A (en) Device and method for handset to manage files in U disk
CN204833249U (en) Many transfer mode's information transmission means
WO2017148111A1 (en) Charging method and charging device
CN113056855A (en) Charging control device and method and electronic equipment
CN203250943U (en) Multifunctional data connector
CN203933103U (en) There is charging circuit and the electronic product of charging current automatic regulating function

Legal Events

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

Address after: 518057 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen jiangbolong electronic Limited by Share Ltd

Address before: 518057 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen jiangbolong Electronic Co., Ltd.