CN105159848A - USB device control method, apparatus and system - Google Patents

USB device control method, apparatus and system Download PDF

Info

Publication number
CN105159848A
CN105159848A CN201510394573.1A CN201510394573A CN105159848A CN 105159848 A CN105159848 A CN 105159848A CN 201510394573 A CN201510394573 A CN 201510394573A CN 105159848 A CN105159848 A CN 105159848A
Authority
CN
China
Prior art keywords
usb
equipment
usb device
host controller
driver element
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
CN201510394573.1A
Other languages
Chinese (zh)
Other versions
CN105159848B (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.)
Jiangsu Huitong Group Co Ltd
Original Assignee
Jiangsu Huitong Group 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 Jiangsu Huitong Group Co Ltd filed Critical Jiangsu Huitong Group Co Ltd
Priority to CN201510394573.1A priority Critical patent/CN105159848B/en
Publication of CN105159848A publication Critical patent/CN105159848A/en
Application granted granted Critical
Publication of CN105159848B publication Critical patent/CN105159848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Abstract

Disclosed are a USB device control method, apparatus and system. The method comprises: when a first device detects that a USB device is inserted, establishing a connection with other device, wherein at least one of a USB application apparatus and a USB host controller drive unit library is arranged on the other device; when the first device receives a USB device query request sent by the other device, sending device parameters of the USB device to the other device for analyzing the received device parameters, and loading a USB host controller drive unit corresponding to the USB device; when the first device receives a connection request sent by the USB host controller drive unit corresponding to the USB device, starting the USB device; and when the first device receives a USB transmission transaction sent by the other device, performing data transmission between the other device and the USB device through the first device. According to the scheme, the USB device can be controlled conveniently.

Description

USB device control method, device and system
Technical field
The present invention relates to equipment control technology field, particularly relate to a kind of USB device control method, device and system.
Background technology
Along with 3G network maturation development at home, and the WIFI wireless network of urban inner and periphery covers, and the high-speed radio between equipment is interconnected has become popular trend.User can enjoy the application such as web page browsing, network social intercourse by 3G or WIFI network, more expands to Smart Home field.Meanwhile, Smart Home is as a kind of emerging family lifestyle, and the troop having attracted numerous equipment manufacturers to enter into manufacturing intelligence home equipment comes.Intelligent home device is with wireless network (WIFI), bluetooth (Bluetooth), the wireless protocols such as ZigBee protocol (Zigbee) are communication protocol, with home gateway, smart mobile phone, panel computer is message exchange node, these nodes are because the restriction of volume and characteristic is to USB (universal serial bus) (UniversalSerialBus, USB) quantity of interface has strict restriction with the device type that can support, therefore the producer of USB device needs a kind of low cost, the solution of highly versatile, realize USB device and smart mobile phone, the quick connection of the following Smart Home such as panel computer nucleus equipment in home environment.
USB standard is an external bus standard, for connection and the communication of specification computer and external unit.USB interface supports plug and play and warm connection function.USB interface can connect 127 kinds of peripheral hardwares, as mouse-keyboard etc.USB will combine release in the end of the year 1994 by Deng Duo company of Intel.After releasing in 1996, USB interface successfully substitutes serial ports and parallel port, and what become current computer and a large amount of smart machine must connect mouth.USB version experienced by years development, has developed into 3.0 versions by now.By USB interface, the external units such as printer, External modem, scanner, flash disk, MP3 player, digital camera, Digital Video, portable hard drive, mobile phone, board, Net silver shield can be connected on computer.
The USB interface negligible amounts of the message exchange node of the smart machine such as smart mobile phone, panel computer in prior art, the USB device quantity that an equipment is supported is restricted, and cannot unify to control to the USB device of different types of One's name is legion simultaneously.Therefore, the control method of USB device of the prior art also exists unhandy problem.
Summary of the invention
What the embodiment of the present invention solved is how to control USB device easily.
For solving the problem, embodiments provide a kind of control method of USB device, described method comprises:
When the first equipment Inspection is inserted to USB device, connect with other equipment, other equipment described are provided with following at least one: USB application apparatus and usb host controller driver element storehouse;
When described first equipment receives USB device inquiry request, the device parameter of described USB device is sent to other equipment described, for other equipment described, received device parameter is analyzed, and load the usb host controller driver element corresponding with described USB device;
When described first equipment receives the connection request that the usb host controller driver element corresponding to described USB device send, open described USB device;
When described first equipment receives the USB transmission transaction of described other equipment transmission, between other equipment described and described USB device, carry out data transmission by described first equipment.
Alternatively, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
Alternatively, described device parameter comprises device numbering, device type, identification of the manufacturer and device identification.
Alternatively, other equipment described comprise the second equipment and the 3rd equipment, are provided with described USB application apparatus in described second equipment, store described usb host controller driver element storehouse in described 3rd equipment.
The embodiment of the present invention additionally provides a kind of USB device control method, and described method comprises:
Connect with the first equipment, in described first equipment, usb host controller is installed;
Receive the device parameter of the described USB device that described first equipment sends, and according to received device parameter, send corresponding usb host controller driver element load request to the 3rd equipment, in described 3rd equipment, store usb host controller driver element storehouse;
Receive the data operation request of user, and send corresponding USB transmission transaction analysis request according to the data operation request of received user to described 3rd equipment.
Alternatively, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
The embodiment of the present invention additionally provides a kind of USB device control method, and described method comprises:
Receive the usb host controller driver element load request that the second equipment sends, in described second equipment, USB application apparatus is installed;
Load the corresponding usb host controller driver element of described USB device, send connection request to the first equipment, in described first equipment, usb host controller is installed;
When receiving the USB transmission transaction analysis request that described second equipment sends, the data manipulation of user is resolved to corresponding USB transmission transaction;
USB transmission transaction after resolving is sent to described first equipment.
The embodiment of the present invention additionally provides a kind of USB device control device, and described device comprises:
First communication unit, is suitable for when detecting that USB device is inserted, and connects with other equipment; Receive USB device inquiry request; The device parameter of obtained USB device is sent to other equipment described; Receive the USB transmission transaction after resolving that other equipment described sends; Other equipment described are provided with following at least one: USB application apparatus and usb host controller driver element storehouse;
Usb host controller, is suitable for, when receiving the connection request of other equipment described, connecting, open described USB device with other equipment described; According to the USB transmission transaction after received parsing, carry out data transmission with described USB device.
Alternatively, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
Alternatively, described device parameter comprises device numbering, device type, identification of the manufacturer and device identification.
Alternatively, described USB device control device is smart jack.
Alternatively, described smart jack has multiple USB interface being suitable for described USB device and inserting.
The embodiment of the present invention additionally provides a kind of USB device control device, and described device comprises:
Second communication unit, is suitable for sending USB device inquiry request to the first equipment, and receives the device parameter of the described USB device that described first equipment sends according to received USB device inquiry request; The usb host controller driver element load request corresponding to described USB device is sent to the 3rd equipment; Receive the data operation request of user; The corresponding USB transmission transaction analysis request sent to described 3rd equipment is sent to described 3rd equipment; In described first equipment, usb host controller is installed, in described 3rd equipment, stores usb host controller driver element storehouse;
USB application apparatus, is suitable for analyzing the device parameter of received described USB device, and according to the device parameter of described USB device, sends the usb host controller driver element load request corresponding to described USB device to the 3rd equipment; According to the data operation request of received user, send corresponding USB transmission transaction analysis request to described 3rd equipment.
Alternatively, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
Alternatively, described USB device control device is mobile terminal.
The embodiment of the present invention additionally provides a kind of USB device control device, and described device comprises:
Third communication unit, is suitable for the usb host controller driver element load request corresponding to USB device that reception second equipment sends; Receive the data operation request of the user that described second equipment sends; USB transmission transaction after resolving is sent to described usb host controller; The connection request sent to the first equipment is sent to described first equipment; Receive the USB transmission transaction analysis request that the second equipment sends; USB transmission transaction after resolving is sent to the first equipment; In described first equipment, usb host controller is installed, in described second equipment, USB application apparatus is installed;
Usb host controller driver element storehouse, is suitable for storing usb host controller driver element corresponding to multiple equipment; According to the received usb host controller driver element load request corresponding to USB device, load the usb host controller driver element corresponding with described multiple USB device, and send connection request to described first equipment;
Usb host controller driver element, the data operation request being suitable for the user sent by described second equipment resolves to corresponding USB transmission transaction.
Alternatively, described USB device control device is cloud server.
The embodiment of the present invention additionally provides a kind of USB device control system, and described system comprises the first equipment, the second equipment and the 3rd equipment, is interconnected between the two arbitrarily in described first equipment, the second equipment and the 3rd equipment; Wherein, described first equipment comprises above-mentioned USB device control device, and described second equipment comprises above-mentioned USB device control device, and described 3rd equipment comprises above-mentioned USB device control device.
Compared with prior art, the technical scheme of the embodiment of the present invention has following advantage:
Above-mentioned scheme, adopt the first equipment as the physical access point of different types of USB device, multiple different types of USB device is can be used for insert, adopt other equipment described to control any number of different types of USB device inserted in the first equipment simultaneously, can not by the restriction of USB interface on an equipment, therefore, can facilitate and multiple different types of USB device is manipulated simultaneously.Simultaneously, when adopting the first equipment and other equipment to manipulate multiple different types of USB device, owing to being interconnected by network between the first equipment and other equipment, therefore, can not, by the restriction of operating distance, be convenient to carry out operated from a distance to multiple different types of USB device.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of USB device control system in the embodiment of the present invention;
Fig. 2 is the process flow diagram of USB device control method corresponding to the USB device control system shown in Fig. 1;
Fig. 3 is the structural representation of the another kind of USB device control system in the embodiment of the present invention;
Fig. 4 is the process flow diagram of USB device control method corresponding to the USB device control system shown in Fig. 3;
Fig. 5 is the structural representation of a kind of USB device control device in the embodiment of the present invention;
Fig. 6 is the structural representation of the another kind of USB device control device in the embodiment of the present invention;
Fig. 7 is the structural representation of another the USB device control device in the embodiment of the present invention;
Fig. 8 is the structural representation of another the USB device control system in the embodiment of the present invention.
Embodiment
In prior art, the USB interface of the message exchange node of the smart machine such as smart mobile phone, panel computer only has one, and the USB device quantity supported is restricted, and cannot unify to control to the USB device of different types of One's name is legion simultaneously.Therefore, the control method of USB device of the prior art also exists the problem of operated from a distance inconvenience.
For solving the problem, the technical scheme that the embodiment of the present invention adopts is by being arranged at the USB application apparatus of usb host controller, usb host controller driver element and USB device respectively on distinct device, different equipment collaborations can be adopted to control multiple USB device, not by the restriction of USB interface on an equipment, therefore, can facilitate simultaneously to the manipulation of multiple USB device.
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
First, for the ease of understanding, first detailed introduction is done to the USB device control system in the embodiment of the present invention.
Fig. 1 shows the structural representation of a kind of USB device control system in the embodiment of the present invention.USB device control system as shown in Figure 1, first equipment 101 and other equipment 102 can be comprised, wherein, usb host controller driver element 1011 is installed in first equipment, in other equipment 102, USB application apparatus 1021 is installed, and stores usb host controller driver element storehouse 1022.
Below in conjunction with Fig. 2, the principle of work of the USB device control system shown in Fig. 1 is further described in detail.
Fig. 2 shows the process flow diagram of a kind of USB device control method in the invention process.USB device control method as shown in Figure 2, can comprise:
Step S201: when the USB device of insertion being detected, described first equipment and other equipment connect.
In concrete enforcement, in the first equipment 101, usb host controller 1011 is installed, and there is multiple USB interface being suitable for USB device and inserting, can connect with multiple USB device simultaneously.
When there being USB device to insert USB interface, usb host controller can obtain the device parameter of corresponding USB device.
Step S202: the device parameter of described multiple USB device, when receiving USB device inquiry request, is sent to other equipment described by described first equipment.
In an embodiment of the present invention, when detect insert USB device in the first equipment 101 time, the USB application apparatus 1021 in other equipment 102 can send USB device inquiry request to usb host controller 1011.
In still another embodiment of the process, USB device inquiry request is sent by USB device to usb host controller 1011.
Here it is pointed out that the difference according to application scenarios, there is between USB device and USB application apparatus 1021 master & slave control relation.Wherein, the main body sending USB inquiry request in both USB device and USB application apparatus 1021 has leading position, otherwise, then there is subordinate status, can arrange according to the actual needs, not limit at this.
Usb host controller 1011, when receiving USB device inquiry request, will be enumerated all USB device that the first equipment 101 inserts, and the device parameter of the USB device of all insertions is sent to the USB application apparatus 1021 in other equipment 102.
Step S203: other equipment described are analyzed received device parameter, and load corresponding usb host controller driver element load request according to analysis result, connect with described first equipment.
In concrete enforcement, the device parameter that the first equipment 101 sends can comprise device numbering, device type, identification of the manufacturer and device identification.USB application apparatus 1021 in other equipment 102, when receiving the device parameter that the first equipment 101 sends, is analyzed the device parameter received, is parsed the device type that each USB device is corresponding.
Wherein, between usb host controller driver element in the usb host controller driver element storehouse 1022 stored in the device type of USB device and other equipment 102, there is default corresponding relation, therefore, the first equipment 101 can send corresponding usb host controller driver element load request according to the device type of each USB device to the usb host controller driver element storehouse 1022 in other equipment 102.
Usb host controller driver element storehouse 1022 in other equipment 102 is when receiving the usb host controller driver element request that the first equipment 101 sends, load corresponding usb host controller driver element, and sending connection request to the first equipment 101, request connects with the usb host controller 1022 in the first equipment 101.
Here it is pointed out that the usb host controller driver element in the main frame usb host controller driver element storehouse in the embodiment of the present invention can be hardware or software, and can upgrade according to the actual needs.
Step S204: when receiving the connection request that corresponding usb host controller driver element sends, described first equipment opens described USB device.
In concrete enforcement, when the usb host controller 1011 in the first equipment 101 receives the connection request of corresponding usb host controller driver element transmission in other equipment 102, open corresponding USB device, the usb host controller driver element corresponding with described USB device loads successfully.
Step S205: other equipment described receives the data operation request of user, and sends corresponding USB transmission transaction analysis request to other equipment described.
In concrete enforcement, may be used in other equipment 102 receiving the data operation request of user for USB device, and the data operation request of received user is sent to corresponding usb host controller usb host controller driver element, the data operation request of described USB device to be resolved to corresponding USB transmission transaction.
Step S206: the data operation request of received user is resolved to corresponding USB transmission transaction by other equipment described, and the USB transmission transaction after resolving is sent to described first equipment.
In concrete enforcement, the corresponding usb host controller driver element of the loading in other equipment 102, can resolve to corresponding USB transmission transaction by the data operation request of corresponding USB device.Then, according to time sequencing, the USB transmission transaction after resolving is sorted, and the USB transmission transaction after resolving through sorting is sent to the usb host controller 1011 in the first equipment 101.
Step S207: described first equipment, according to received USB transmission transaction, carries out data transmission with described multiple USB device respectively.
In concrete enforcement, the usb host controller 1011 in the first equipment 101, receiving the USB transmission transaction after resolving after sequence, performs the USB transmission transaction after resolving in order, and completes data between described USB device and transmit.
Above-mentioned scheme, adopts above-mentioned USB device control method and system, adopts in the first equipment the multiple USB interface arranged, can communicate with multiple USB device simultaneously, therefore, not by the number of ports quantitative limitation on existing terminal device, improve the convenience that USB device uses.
In an embodiment of the present invention, other equipment described can comprise the second equipment and the 3rd equipment, wherein, store and be provided with described USB application apparatus in described second equipment, usb host controller driver element storehouse is stored in described second equipment, specifically shown in Figure 3.
Fig. 3 shows the structural representation of the another kind of USB device control system in the embodiment of the present invention.USB device control system as shown in Figure 3, can comprise the first equipment 301, second equipment 302 and the 3rd equipment 303.Wherein, in the first equipment 301, usb host controller 3011 is installed, is provided with in the second equipment 302 in USB application apparatus the 3021, three equipment 303 and stores usb host controller driver element storehouse 3031.
In an embodiment of the present invention, the first equipment 301 is smart jack, and the second equipment 302 is mobile terminal, and the 3rd equipment 303 is cloud server.
Be further described in detail below in conjunction with the principle of work of the USB device control method shown in Fig. 4 to the USB device control system shown in Fig. 3.
Fig. 4 shows the process flow diagram of a kind of USB device control method in the embodiment of the present invention.USB device control method as shown in Figure 4, can comprise:
Step S401: when to the multiple USB device inserted, the first equipment, the second equipment and the 3rd equipment all connect arbitrarily between the two.
In concrete enforcement, in the first equipment 301, usb host controller 3011 is installed, and there is multiple USB interface, can connect with multiple USB device simultaneously.
When having detected that one or more USB device is inserted in the first equipment 301, can communication module be passed through, and having set up network between the second equipment 302 and the 3rd equipment 303 and be connected.Meanwhile, also set up network by corresponding communication module between the second equipment 302 and the 3rd equipment 303 to connect.
Step S402: when receiving USB device inquiry request, the device parameter of described USB device is sent to described second equipment by described first equipment.
In concrete enforcement, when inserting one or more USB device in the first equipment 301, the USB device inquiry request that the USB application apparatus 3021 in the second equipment 302 can be sent to the usb host controller 3011 in the first equipment 301 by corresponding communication module.In still another embodiment of the process, USB device is to the USB device inquiry request of usb host controller 3011 transmission in the first equipment 301.
The device parameter of the USB device of all insertions, when receiving described USB device inquiry request, can be sent to the second equipment 302 by the usb host controller 3011 in the first equipment 301.Wherein, described device parameter comprises device numbering, device type, identification of the manufacturer and device identification.
Step S403: the device parameter that described second equipment receives is analyzed, and send corresponding usb host controller driver element load request to the usb host controller driver element storehouse be arranged on the 3rd equipment.
In concrete enforcement, the USB application apparatus 3021 in the second equipment 302, when receiving the device parameter that the first equipment 301 sends, is analyzed the device parameter received, is parsed the device type that each USB device is corresponding.
Wherein, between the usb host controller driver element in the device type of USB device and the usb host controller driver element storehouse 3031 of the 3rd equipment 303, there is default corresponding relation.When the USB application apparatus 3021 in the second equipment 302 can parse the device type in the device parameter of the first equipment 301 transmission, and send corresponding usb host controller driver element load request according to the device type parsed to usb host controller driver element storehouse 3031.
Step S404: described 3rd equipment, according to described load request, loads the usb host controller driver element that described USB device is corresponding.
In concrete enforcement, the usb host controller driver element storehouse 3031 in the 3rd equipment 302, when receiving the usb host controller driver element request that the first equipment 301 sends, can load corresponding usb host controller driver element.Meanwhile, the corresponding usb host controller driver element loaded in the 3rd equipment 303 sends connection request to the usb host controller 3011 in the first equipment 301, and request connects with the usb host controller 3011 in the first equipment 301.
Step S405: when receiving the connection request that usb host controller driver element corresponding to described multiple USB device on the 3rd equipment sends, adopt described usb host controller to open described USB device, and receive the data operation request of user to described USB device.
In concrete enforcement, when receiving the connection request that corresponding usb host controller driver element in the 3rd equipment 303 sends, usb host controller 3011 in first equipment 301 can open the corresponding USB device that the first equipment 301 inserts, and usb host controller driver element loads successfully.
Simultaneously, USB application apparatus 3021 in second equipment 302 can receive the data operation request of user to USB device, and the data operation request of received user is sent to the corresponding usb host controller driver element loaded in the 3rd equipment 303, to resolve to corresponding USB transmission transaction.
Step S406: described second equipment is according to the data operation request of received user, and the usb host controller driver element to the correspondence on the 3rd equipment sends corresponding USB transmission transaction analysis request.
In concrete enforcement, USB application apparatus 3021 in second equipment 302 is when receiving the data operation request of multiple USB device that the usb host controller 3011 in the first equipment 301 sends, the usb host controller driver element of the correspondence that can load on the 3rd equipment 303 sends corresponding USB transmission transaction analysis request, the data operation request of received user to be resolved to corresponding USB transmission transaction.
Step S407: received data operation request is resolved to USB transmission transaction by the corresponding usb host controller driver element on described 3rd equipment, and the USB transmission transaction after resolving is sent to described usb host controller.
In concrete enforcement, the corresponding usb host controller driver element of the loading in the 3rd equipment 303, the data operation request of received corresponding USB device can be resolved to corresponding USB transmission transaction, and according to time sequencing, the USB transmission transaction after resolving be sorted.Meanwhile, the USB transmission transaction after the parsing of sequence is sent to the usb host controller 3011 in the first equipment 301.
Step S408: the usb host controller on described first equipment, according to received USB transmission transaction, carries out data transmission with described multiple USB device respectively.
In concrete enforcement, the USB transmission transaction after sequence that usb host controller 3011 in first equipment 301 sends at the 3rd equipment 303 that receives, perform the USB transmission transaction after resolving in order, and complete data between described USB device and transmit.
Fig. 5 shows the structural representation of a kind of USB device control device in the embodiment of the present invention.USB device control device 500 as shown in Figure 5, can comprise the first communication unit 501 and usb host controller 502.Wherein:
First communication unit 501, is suitable for when detecting that USB device is inserted, and connects with other equipment; Receive USB device inquiry request; The device parameter of obtained USB device is sent to other equipment described; Receive the USB transmission transaction after resolving that other equipment described sends; Other equipment described are provided with following at least one: USB application apparatus and usb host controller driver element storehouse.Wherein, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
Usb host controller 502, is suitable for, when receiving the connection request of other equipment described, connecting, open described USB device with other equipment described; According to the USB transmission transaction after received parsing, carry out data transmission with described USB device.
In concrete enforcement, described device parameter comprises device numbering, device type, identification of the manufacturer and device identification.
In an embodiment of the present invention, described USB device control device 500 is smart jack, and described smart jack has multiple USB interface being suitable for described USB device and inserting.
Fig. 6 shows the structural representation of a kind of USB device control device in the embodiment of the present invention.USB device control device 600 as shown in Figure 6, can comprise second communication unit 601 and usb host application apparatus 602.Wherein:
Second communication unit 601, is suitable for sending USB device inquiry request to the first equipment, and receives the device parameter of the described USB device that described first equipment sends according to received USB device inquiry request; The usb host controller driver element load request corresponding to described USB device is sent to the 3rd equipment; Receive the data operation request of user; The corresponding USB transmission transaction analysis request sent to described 3rd equipment is sent to described 3rd equipment; In described first equipment, usb host controller is installed, in described 3rd equipment, stores usb host controller driver element storehouse.Wherein, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
USB application apparatus 602, is suitable for analyzing the device parameter of received described USB device, and according to the device parameter of described USB device, sends the usb host controller driver element load request corresponding to described USB device to the 3rd equipment; According to the data operation request of received user, send corresponding USB transmission transaction analysis request to described 3rd equipment.
In an embodiment of the present invention, described USB device control device is mobile terminal.
Fig. 7 shows the structural representation of a kind of USB device control device in the embodiment of the present invention.USB device control device 700 as shown in Figure 7, can comprise third communication unit 701 and usb host controller driver element storehouse 702.Wherein:
Third communication unit 701, is suitable for the usb host controller driver element load request corresponding to USB device that reception second equipment sends; Receive the data operation request of the user that described second equipment sends; USB transmission transaction after resolving is sent to described usb host controller; The connection request sent to the first equipment is sent to described first equipment; Receive the USB transmission transaction analysis request that the second equipment sends; USB transmission transaction after resolving is sent to the first equipment; In described first equipment, usb host controller is installed, in described second equipment, USB application apparatus is installed.
Usb host controller driver element storehouse 702, is suitable for storing usb host controller driver element corresponding to multiple equipment; According to the received usb host controller driver element load request corresponding to USB device, load the usb host controller driver element corresponding with described multiple USB device, and send connection request to described first equipment.
Multiple usb host controller driver element, the data operation request being suitable for the user sent by described second equipment resolves to corresponding USB transmission transaction.
In an embodiment of the present invention, described USB device control device is cloud server.
Fig. 8 shows the structural representation of another the USB device control system in the embodiment of the present invention.USB device control system as shown in Figure 8, can comprise smart jack 801, mobile terminal 802 and cloud server 803.Wherein, smart jack 801 comprises the first communication unit 8011 and usb host controller 8012, and there is multiple confession different types of USB device insertion USB interface, mobile terminal 802 comprises second communication unit 8021 and USB application apparatus 8022, and cloud server 803 comprises third communication unit 8031 and usb host controller driver element storehouse 8032.
The principle of work of USB device control system is as shown in Figure 8 as follows:
First, when having detected that USB device is inserted in smart jack 801, third communication unit 8031 in the second communication unit 8021 of the first communication unit 8011 in smart jack 801 and mobile terminal 802 and cloud server 803 is set up network between the two arbitrarily and is connected, and makes smart jack 801, mobile terminal 802 set up network between the two arbitrarily with cloud server 803 and is connected.Meanwhile, second communication unit 8021 and third communication unit 8031 are also set up network and are connected.
Then, USB application apparatus 8022 sends USB device inquiry request by second communication unit 8021 and third communication unit 8031 to usb host controller 8012; In still another embodiment of the process, USB device sends USB device inquiry request to usb host controller 8012.Usb host controller 8012 is when receiving USB device inquiry request, all USB device that smart jack 801 inserts will be enumerated, by the device parameter of each USB device, comprise device numbering, device type, identification of the manufacturer (ID) and device identification, be sent to USB application apparatus 8022 by second communication unit 8021 and the first communication unit 8011.USB application apparatus 8022 receives the device parameter of each USB device, and according to the device type in the device parameter of each USB device, send corresponding usb host controller driver element load request by second communication unit 8021 and third communication unit 8031 to usb host controller driver element storehouse 8032.
Usb host controller driver element storehouse 8032, when receiving described load request, loads the usb host controller driver element that each USB device is corresponding.When the usb host controller driver element that each USB device is corresponding loads successfully, the usb host controller driver element of loading corresponding USB device on smart jack 801 can send connection request respectively by third communication unit 8031 and the first communication unit 8011.
Usb host controller 8012, when receiving described connection request, opens each USB device inserted in smart jack 801.
When user needs to carry out data manipulation to USB device, data operation request can be sent by mobile terminal 802 to corresponding USB device.Mobile terminal 802, when receiving the data operation request of user, sends corresponding USB transmission transaction analysis request by second communication unit 8021 and third communication unit 8031 to corresponding usb host controller driver element.
Usb host controller driver element is when receiving corresponding USB transmission transaction analysis request, the data operation request of user is resolved to corresponding USB transmission transaction, and the USB transmission transaction after resolving is carried out after task is ranked, be sent to usb host controller 8012 by third communication unit 8031 and the first communication unit 8011.
During the USB transmission transaction of usb host controller 8012 after receiving parsing, carry out data transmission with corresponding USB device.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Done detailed introduction to the method and system of the embodiment of the present invention above, the present invention is not limited to this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.

Claims (18)

1. a USB device control method, is characterized in that, comprising:
When the first equipment Inspection is inserted to USB device, connect with other equipment, other equipment described are provided with following at least one: USB application apparatus and usb host controller driver element storehouse;
When described first equipment receives USB device inquiry request, the device parameter of described USB device is sent to other equipment described, for other equipment described, received device parameter is analyzed, and load the usb host controller driver element corresponding with described USB device;
When described first equipment receives the connection request that the usb host controller driver element corresponding to described USB device send, open described USB device;
When described first equipment receives the USB transmission transaction of described other equipment transmission, between other equipment described and described USB device, carry out data transmission by described first equipment.
2. USB device control method according to claim 1, is characterized in that, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
3. USB device control method according to claim 1, is characterized in that, described device parameter comprises device numbering, device type, identification of the manufacturer and device identification.
4. USB device control method according to claim 1, it is characterized in that, other equipment described comprise the second equipment and the 3rd equipment, are provided with described USB application apparatus in described second equipment, store described usb host controller driver element storehouse in described 3rd equipment.
5. a USB device control method, is characterized in that, comprising:
Connect with the first equipment, in described first equipment, usb host controller is installed;
Receive the device parameter of the described USB device that described first equipment sends according to received USB device inquiry request, and according to received device parameter, send corresponding usb host controller driver element load request to the 3rd equipment, in described 3rd equipment, store usb host controller driver element storehouse;
Receive the data operation request of user, and send corresponding USB transmission transaction analysis request according to the data operation request of received user to described 3rd equipment.
6. USB device control method according to claim 5, is characterized in that, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
7. a USB device control method, is characterized in that, comprising:
Receive the usb host controller driver element load request that the second equipment sends, in described second equipment, USB application apparatus is installed;
Load the corresponding usb host controller driver element of described USB device, send connection request to the first equipment, in described first equipment, usb host controller is installed;
When receiving the USB transmission transaction analysis request that described second equipment sends, the data manipulation of user is resolved to corresponding USB transmission transaction;
USB transmission transaction after resolving is sent to described first equipment.
8. a USB device control device, is characterized in that, comprising:
First communication unit, is suitable for when detecting that USB device is inserted, and connects with other equipment; Receive USB device inquiry request; The device parameter of obtained USB device is sent to other equipment described; Receive the USB transmission transaction after resolving that other equipment described sends; Other equipment described are provided with following at least one: USB application apparatus and usb host controller driver element storehouse;
Usb host controller, is suitable for, when receiving the connection request of other equipment described, connecting, open described USB device with other equipment described; According to the USB transmission transaction after received parsing, carry out data transmission with described USB device.
9. USB device control device according to claim 8, is characterized in that, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
10. USB device control device according to claim 8, is characterized in that, described device parameter comprises device numbering, device type, identification of the manufacturer and device identification.
11. USB device control device according to claim 8 or claim 9, described USB device control device is smart jack.
12. USB device control device according to claim 11, described smart jack has multiple USB interface being suitable for described USB device and inserting.
13. 1 kinds of USB device control device, is characterized in that, comprising:
Second communication unit, is suitable for sending USB device inquiry request to the first equipment, and receives the device parameter of the described USB device that described first equipment sends according to received USB device inquiry request; The usb host controller driver element load request corresponding to described USB device is sent to the 3rd equipment; Receive the data operation request of user; The corresponding USB transmission transaction analysis request sent to described 3rd equipment is sent to described 3rd equipment; In described first equipment, usb host controller is installed, in described 3rd equipment, stores usb host controller driver element storehouse;
USB application apparatus, is suitable for analyzing the device parameter of received described USB device, and according to the device parameter of described USB device, sends the usb host controller driver element load request corresponding to described USB device to the 3rd equipment; According to the data operation request of received user, send corresponding USB transmission transaction analysis request to described 3rd equipment.
14. USB device control device according to claim 13, is characterized in that, described USB device inquiry request is sent or other equipment described transmission by described first equipment by described USB device.
15. USB device control device according to claim 13, is characterized in that, described USB device control device is mobile terminal.
16. 1 kinds of USB device control device, is characterized in that, comprising:
Third communication unit, is suitable for the usb host controller driver element load request corresponding to USB device that reception second equipment sends; Receive the data operation request of the user that described second equipment sends; USB transmission transaction after resolving is sent to described usb host controller; The connection request sent to the first equipment is sent to described first equipment; Receive the USB transmission transaction analysis request that the second equipment sends; USB transmission transaction after resolving is sent to the first equipment; In described first equipment, usb host controller is installed, in described second equipment, USB application apparatus is installed;
Usb host controller driver element storehouse, is suitable for storing usb host controller driver element corresponding to multiple equipment; According to the received usb host controller driver element load request corresponding to USB device, load the usb host controller driver element corresponding with described multiple USB device, and send connection request to described first equipment;
Usb host controller driver element, the data operation request being suitable for the user sent by described second equipment resolves to corresponding USB transmission transaction.
17. USB device control device according to claim 16, is characterized in that, described USB device control device is cloud server.
18. 1 kinds of USB device control system, is characterized in that, comprise the first equipment, the second equipment and the 3rd equipment, are interconnected between the two arbitrarily in described first equipment, the second equipment and the 3rd equipment; Wherein, described first equipment comprises the USB device control device described in any one of claim 8-12, described second equipment comprises the USB device control device described in any one of claim 13-15, and described 3rd equipment comprises the USB device control device described in any one of claim 16-17.
CN201510394573.1A 2015-07-07 2015-07-07 USB device control method, device and system Active CN105159848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510394573.1A CN105159848B (en) 2015-07-07 2015-07-07 USB device control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510394573.1A CN105159848B (en) 2015-07-07 2015-07-07 USB device control method, device and system

Publications (2)

Publication Number Publication Date
CN105159848A true CN105159848A (en) 2015-12-16
CN105159848B CN105159848B (en) 2018-06-22

Family

ID=54800709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510394573.1A Active CN105159848B (en) 2015-07-07 2015-07-07 USB device control method, device and system

Country Status (1)

Country Link
CN (1) CN105159848B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868132A (en) * 2016-04-29 2016-08-17 优利德科技(中国)有限公司 USB communication based modular function expansion method and system for digital oscilloscope
CN108174376A (en) * 2017-12-28 2018-06-15 飞天诚信科技股份有限公司 A kind of method and system for preventing interference

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473202A (en) * 2013-09-03 2013-12-25 福建星网锐捷网络有限公司 USB OTG device, electronic unit and OTG function implementation method
CN103491395A (en) * 2013-08-29 2014-01-01 广州视源电子科技股份有限公司 Method for expanding peripheral units of smart television and smart television
CN103973534A (en) * 2014-05-28 2014-08-06 广州视源电子科技股份有限公司 Analog U disk sharing method and analog U disk sharing equipment
CN104205793A (en) * 2012-03-24 2014-12-10 日本电气株式会社 Information processing system, information processing method, and mobile telephone, server, and control method and control program therefor
CN104205050A (en) * 2012-03-30 2014-12-10 英特尔公司 Accessing a device on a remote machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104205793A (en) * 2012-03-24 2014-12-10 日本电气株式会社 Information processing system, information processing method, and mobile telephone, server, and control method and control program therefor
CN104205050A (en) * 2012-03-30 2014-12-10 英特尔公司 Accessing a device on a remote machine
CN103491395A (en) * 2013-08-29 2014-01-01 广州视源电子科技股份有限公司 Method for expanding peripheral units of smart television and smart television
CN103473202A (en) * 2013-09-03 2013-12-25 福建星网锐捷网络有限公司 USB OTG device, electronic unit and OTG function implementation method
CN103973534A (en) * 2014-05-28 2014-08-06 广州视源电子科技股份有限公司 Analog U disk sharing method and analog U disk sharing equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868132A (en) * 2016-04-29 2016-08-17 优利德科技(中国)有限公司 USB communication based modular function expansion method and system for digital oscilloscope
CN105868132B (en) * 2016-04-29 2019-01-11 优利德科技(中国)股份有限公司 A kind of Digital Oscillograph Module functions expanding method and system based on usb communication
CN108174376A (en) * 2017-12-28 2018-06-15 飞天诚信科技股份有限公司 A kind of method and system for preventing interference

Also Published As

Publication number Publication date
CN105159848B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
EP2854378B1 (en) Method, device and network equipment for acquiring feature information
CN112261635B (en) Bluetooth testing method and device, electronic equipment and computer readable storage medium
EP3726925B1 (en) Mobile terminal, power adapter, and upgrade method thereof
KR101332813B1 (en) Wireless communication apparatus and method for generating wireless access channel thereof
CN101964813B (en) Method and system for detecting terminal information in GPRS network
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
EP2860642A1 (en) Connector interface pin mapping
CN104427579A (en) Method for establishing wireless local area network through mobile terminal and mobile terminal
CN103108294A (en) Data forwarding processing method and gateway equipment and communication system
CN104270204A (en) Testing method and testing equipment for wireless communication module
CN111010317A (en) Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol
CN106708748B (en) Method and system for improving mounting performance of OpenStack block storage volume
CN103517375B (en) A kind of to multiple mobile equipment identification, the method for communication and device
CN107295503A (en) Determine method, storage medium and the mobile terminal of mobile terminal access way
US20180206276A1 (en) Bluetooth pairing system and operating method thereof
CN105323748B (en) Test error uploading method and device
CN105159848A (en) USB device control method, apparatus and system
CN104348583A (en) Information processing method and electronic equipment
CN105988943B (en) A kind of method and device driving wireless adapter
CN103973343A (en) Communication method and system
CN105893064A (en) Embedded device Bluetooth wireless upgrade method
CN110401934B (en) Method for managing equipment, management equipment and computer readable storage medium
CN101197959B (en) Terminal control method, system and equipment
CN103179016A (en) Method and system for updating multi-case terminal roaming configuration data and server
CN105142237A (en) Device pairing method and system

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