CN207851803U - A kind of USB device - Google Patents

A kind of USB device Download PDF

Info

Publication number
CN207851803U
CN207851803U CN201721533128.XU CN201721533128U CN207851803U CN 207851803 U CN207851803 U CN 207851803U CN 201721533128 U CN201721533128 U CN 201721533128U CN 207851803 U CN207851803 U CN 207851803U
Authority
CN
China
Prior art keywords
usb
usb device
memory
equipment
control
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.)
Active
Application number
CN201721533128.XU
Other languages
Chinese (zh)
Inventor
刘炜
赵海钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Kai Know Technology Co Ltd
Original Assignee
Hangzhou Kai Know Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Kai Know Technology Co Ltd filed Critical Hangzhou Kai Know Technology Co Ltd
Priority to CN201721533128.XU priority Critical patent/CN207851803U/en
Application granted granted Critical
Publication of CN207851803U publication Critical patent/CN207851803U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The utility model embodiment discloses a kind of USB device, and the USB device includes:Usb hub, memory, communication module and micro-control module, wherein:Usb hub one end has USB interface, may be inserted on host computer based on the USB interface and one end respectively connected the memory, the communication module and the micro-control module using hub branch.Implement the USB device involved by the utility model embodiment, each functional module on USB device is connected on computer end or main equipment by usb hub, computer can be immediately seen these equipment in this way, so as to control these equipment, to complete corresponding control.All-network transmission data will be walked by linux chips before, and the processor of such linux must constantly handle these information.

Description

A kind of USB device
Technical field
The utility model is related to human interface device technical field more particularly to a kind of USB devices.
Background technology
Active computer is when being connected with USB device, it is necessary first to carry out initialization procedure to USB device, could carry out Communication, and the driving file of this USB device needs separately installed file to realize driving initialization in computer, completes to set It after standby driving initialization, could be communicated with this band USB device, complete related computer program instruction.
Human interface device (Human Interface Device, HID) classification is the USB classes that Windows is supported earliest Not.It will be seen that HID device is equipment that computer is directly interacted with people, such as keyboard, mouse and joystick etc. by its title. When on these hardware compatibilities to computer, generally requires and carry out device drives initialization, after device drives initialization, Ke Yitong It crosses main equipment and connects a HID equipment or multiple HID devices.
Use on main equipment is completed for the HID device much with USB joint, it generally in advance will driving file installation On computers, it is then connected on computer by USB interface again, including printer, display screen etc. equipment, initialization procedure is all It fulfils ahead of schedule.
Existing HID device exists by being used as HID device similar to the USB device with USB interface, this USB Equipment, that is, HID device plays the role of connecting main equipment and node device, is based on USB device (HID device) as shown in Figure 1 The structural schematic diagram for connecting main equipment and node device is realized for example as HID device (namely USB device) connection mouse in electricity The operation of brain or printer need corresponding USB device (HID device) to support with compunlcation etc..This USB device Basic unit i.e. in HID device includes:USB interface and processor and memory, communication module etc., entire HID device (USB device) uses a linux or other embedded chips as total tie point with host computer, then by linux or Other embedded chips to host computer carry out analog machine, or be modeled as standard HID device, sound card, Baffle Box of Bluetooth, keyboard, The equipment of mouse, touching box or other self-defined drivings.Then all data are all located by linux chips (i.e. processor) Reason.Then Linux chips reconnect other equipment, such as memory, such as communication module (such as wifi).To this middle HID For equipment (USB device), all data will walk linux chips, relatively high to the requirement of linux chips, and linux chips are also Plug-in DDR is needed to be used as the RAM of system.There are of high cost and entire HID devices to be required for processor for this HID device As participant, cause the energy consumption of performance also higher.
Utility model content
The purpose of the utility model is to overcome the deficiencies in the prior art, the utility model provides a kind of USB device, It provides a kind of USB device of low cost to use as HID device, the driving that itself is more convenient also based on the USB device is initial Change process.
To solve the above-mentioned problems, the utility model proposes a kind of USB device, the USB device includes:
Usb hub, memory, communication module and micro-control module, wherein:
Usb hub one end has USB interface, may be inserted on host computer based on the USB interface and one end uses Hub branch respectively connected the memory, the communication module and the micro-control module.
The memory is:Read only memory ROM or it is random access memory ram or is that flash memory FLASH is deposited Reservoir.
The communication module is the network interface card with third party device communication, and the network interface card is USB interface network interface card or wireless network Card.
The micro-control module includes microcontrol processor, and/or control unit.
Described control unit is button controller, or is touch control screen or is indicator light.
In the utility model embodiment, since whole HID, that is, USB device is connected to memory, logical using usb hub Believe module and microcontrol processor etc., eliminates operation of the processor structure in HID device, by a hub, will locate Reason ability is more put into host computer and handles up, mitigates the pressure of equipment inner treater, saves a linux in the process Chip replaces with a micro treatment equipment as corresponding ancillary control function, and involved linux chips in the prior art DDR must be arranged in pairs or groups as RAM, and in the utility model can with more inexpensive memory come realize (such as FLASH store Device), and price is cheaper.Functionally, can realize complete 99% existing HID device function, and in performance substantially without Difference.USB device involved by the utility model, by usb hub (USB HUB) each functional mould on USB device Block is connected on computer end or main equipment, and such computer can be immediately seen these equipment, so as to control these Equipment, to complete corresponding control.All-network transmission data will be walked by linux chips before, the processing of such linux Device must constantly handle these information.And the method in the utility model embodiment is directly spread out of by network interface card, thus It not may require that microprocessor has corresponding process performance.
Description of the drawings
In order to illustrate the embodiment of the utility model or the technical proposal in the existing technology more clearly, below will be to embodiment Or attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only It is some embodiments of the utility model, for those of ordinary skill in the art, in the premise not made the creative labor Under, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the structural representation in the prior art based on USB device (HID device) connection main equipment and node device Figure;
Fig. 2 is the structural schematic diagram of USB device in the prior art (HID device);
Fig. 3 is the USB device structural schematic diagram in the utility model embodiment;
Fig. 4 is the USB device second embodiment structural schematic diagram in the utility model embodiment;
Fig. 5 is the USB device 3rd embodiment structural schematic diagram in the utility model embodiment;
Fig. 6 is the method flow diagram of the USB device driving initialization in the utility model embodiment.
Specific implementation mode
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model Clearly and completely describe, it is clear that the described embodiments are only a part of the embodiments of the utility model, rather than whole Embodiment.Based on the embodiments of the present invention, those of ordinary skill in the art are without creative efforts The every other embodiment obtained, shall fall within the protection scope of the present invention.
Fig. 3 shows the USB device first embodiment structural schematic diagram in the utility model embodiment, the USB device packet It includes:Usb hub, memory, communication module and micro-control module, wherein:Usb hub one end has USB interface, and being based on should USB interface may be inserted on host computer (generally host computer) and one end respectively connected storage using hub branch Device, communication module and micro-control module.
In specific implementation process, which can be:Read only memory ROM is random access memory ram, flash memory FLASH memory etc..Here communication module is the network interface card with third party device communication, which can be USB interface net Card or wireless network card etc..
In specific implementation process, which may include the combination of microcontrol processor, and/or control unit, It can be directly button controller, touch control screen, indicator light etc. i.e. in micro-control module, can also be to be handled by microcontroller Device realizes circuit with control unit.
Fig. 4 shows that the USB device second embodiment structural schematic diagram in the utility model embodiment, the USB device are made A variety of different equipment can be accessed for HID device on the master, specifically included:Usb hub, memory, communication module And microcontrol processor, wherein:Usb hub one end has USB interface, may be inserted on host computer (one based on the USB interface As be host computer) and one end memory, communication module and microcontrol processor respectively connected using hub branch.
In specific implementation process, which is:Read only memory ROM or for random access memory ram or For flash memory FLASH memory.Using more excellent in FLASH memory cost.
In specific implementation process, which is the network interface card with third party device communication, which is USB interface net Card or wireless network card etc..WiFi technology realization may be used in wireless network card.
In specific implementation process, it is additionally provided with indicator light on the USB device, which is connected to microcontrol processor.
In specific implementation process, which is additionally provided with control module, which is connected to the microcontroller processing Device.The control module is button controller (i.e. physical button), or (realizes various letters by touch screen for touch control screen Breath receives or sends out control command).
Specifically, Fig. 5 shows the USB device 3rd embodiment structural schematic diagram in the utility model embodiment, specifically Including:Usb hub, WIFI network interface cards, FLASH (flash memory) and microcontrol processor, wherein:Usb hub one end connects with USB Mouthful, (generally host computer) may be inserted on host computer based on the USB interface and one end is connected respectively using hub branch Then WIFI network interface cards, FLASH and microcontrol processor, microcontrol processor are connected to indicator light and button.
In specific implementation process, communication module is deposited using usb hub in the USB device involved by the utility model Reservoir and a microcontrol processor are connected on user computer, i.e. a USB device is equivalent to three autonomous devices and uses, and are led to Cross software-driven scheme come control system connection network, do not influence user normally surf the Internet in the case of, be connected to ad hoc network It is interior, carry out screen and the transmission etc. of other data.Ad hoc network referred herein can be that receiving terminal passes screen number to realize to receive According to biography screen network.After USB device is inserted into computer, the then installation of software certification driving, then by the interface of windows, The receiving terminal network that the network interface card connection that control is newly inserted into accordingly is specified, and the SSID involved by receiving terminal network and password storage It can be arranged on memory in the usb device.
Operation function involved by USB is all associated with by the USB device in the utility model embodiment using usb hub MCU, by MCU come run memory, communication equipment and various control process modules etc., and USB device here is by various functions Module is connected to host computer (apparatus such as computer) using USB HUB, and operation is directly realized by by host computer, big to MCU demands It reduces greatly.
In specific implementation process, memory module can store some drive softwares and runs software, these drive softwares can To be each drive software involved in USB device, the drive software of external equipment can also be stored, such as involved by memory module And drive software, the drive software involved by communication equipment, the drive software etc. involved by microcontrol processor, can also deposit The such as involved biography screen software of storage, and receive to pass the drive software of screen data receiver, (the services set of pairing can also be stored Identify Service Set Identifier, SSID) and password etc..Unpaired message is for making the connection of WIFI network interface cards specified Receiving terminal network, it is assumed that there are when 4 receiving terminals, transmitting terminal can accurately be connected on some receiving terminal and by data It transfers out, and shows on the screen.
In specific implementation process, communication module can be a WiFI network interface card, can be directly connected to the AP of receiving terminal Realize wireless communication.
In specific implementation process, indicator light can be used to refer to current state, when USB device microcontrol processor after the power is turned on Indicator light can be controlled and enter flicker state, equipment at this time is represented and connecting.Then in USB device control communication module and the Three method, apparatus realize wifi successful connections after, the state of indicator light can be changed to be always on, at this time can be based on button throw screen or Other functions of person can be accessed by the micro-controller processor in USB device after user's click keys, entire USB device institute The biography screen software program control being related to starts to transmit screen, for example can be arranged again by primary, stopping biography screen.
Correspondingly, Fig. 6 shows the method flow diagram of the driving initialization of the USB device in the utility model embodiment, packet Include following steps:
S501, USB device is inserted into main equipment based on USB interface;
USB device involved by the utility model is USB device involved in Fig. 3 and Fig. 4.
S502, main equipment identification USB device are inserted into main equipment;
S503, USB device carry out equipment initialization, and each function module device parameter in USB device is sent to master and is set It is standby;
S504, main equipment enumerate each function module equipment in USB device simultaneously;
Main equipment is based in identification USB device after USB interface is inserted into main equipment, and main equipment is by the function mould in USB equipment Block device enumerates, which includes usb hub, memory, communication module and micro-control module, wherein:USB set line Device one end has USB interface, is inserted on the master based on the USB interfaces and one end is separately connected using hub branch Memory, communication module and micro-control module, which includes:Memory, communication module and micro-control module. So main equipment can identify memory function equipment, communication module function device, micro-control molding after USB device insertion Block function device etc..
S505, judge whether USB device completes file initialization procedure of overdriving, if completing driving initialization procedure, Then terminate or enter other procedure links, if not completing driving initialization procedure, enters S506;
S506, the driving installation file corresponding to each function module equipment on memory is parsed based on usb hub;
In specific implementation process, if memory module needs to carry out driving initialization procedure, main equipment can be by memory Involved driving installation file parses;If communication module needs to carry out driving initialization procedure, need that mould will be communicated Driving installation file involved by block parses;Need to carry out driving initialization procedure if it is micro-control module, then need by Driving installation file involved by micro-control module parses.
In general, these three function module equipment be required for driving initialization procedure when, can first to memory module into Row driving installation, realizes the corresponding function of memory.
And then judge the function modules such as communication module, micro-control module equipment on the master whether can normal operation, If judge that communication module, micro-control module etc. are not normally functioning on the master, to parse the communication on memory Driving installation file corresponding to module, micro-control module.
S507, each function module equipment is driven based on the driving installation file corresponding to each function module equipment Dynamic installation;
Enter if reading the unpaired message in USB device with the presence or absence of unpaired message in S508, reading USB device S509 enters S510 if not reading the unpaired message in USB device;
In specific implementation process, communication module here is for realizing the communication between main equipment and third party device, in USB Equipment is inserted into main equipment and can be completed after working normally accordingly, corresponding functionality may be implemented, generally in the usb device It is previously written unpaired message, which includes SSID and password;The SSID and password are realized for communication module and master Third party device (such as node device printer, biography screen equipment etc.) outside equipment is communicated, which may exist In on memory, can also exist on the microcontrol processor in micro-control module.
After the unpaired message is read by main equipment, USB device can set up main equipment and third based on unpaired message Information channel between method, apparatus realizes the communication function between main equipment and third party device.
S509, communication link foundation of the communication module with the third party device is completed based on unpaired message;
After the communication that S509 completes main equipment and third party device, that is, node device, information channel can be based on and started Corresponding program realizes corresponding function and effect, such as remote printing, wireless printing, wireless screen transmission etc..
S510, unpaired message is not written to main equipment prompting;
If main equipment is read less than configuration information, it can remind user that unpaired message, i.e. communication module are not written by the USB It can not set up and communicate with third party device.
Terminate.
In specific implementation process, USB device is first inserted on computer by user, and after being inserted on computer, computer is first run The file on memory in the USB device is detecting the insertion of micro-control control equipment, is then starting to breathe out interface, read simultaneously Configuration information in equipment, the specified network of control communication equipment connection, and establish network connection.Software inspection in USB device It surveys the network connection established by communication equipment and has built up success, then give micro-control control equipment to send information, lamp is allowed to be always on.User The button of micro-control control equipment control can be pressed, or is operated on the interface of particular software application, starts to pass screen, whole system Start screen printing and begins through the network transmission past.
In specific implementation process, if after USB device is inserted into computer, computer equipment first enumerates corresponding 3 function moulds Block device, i.e. a storage device, a network card equipment, micro-control control equipment etc., the corresponding storage in USB device Device, communication module, micro-control control equipment.Computer can show storage device to user first, and user can run in storage device Particular software application, particular software application can be confirmed whether communication equipment working properly with micro-control control equipment, if not just Often, then the driving of two equipment is loaded, and so that they can work normally.
After particular software application startup, the configuration information configured before reading is removed, and make using this configuration information Communication equipment can normally be connected to designated equipment, and establish network connection.Particular software application detection is established by communication equipment Network connection have built up success, then give micro-control control equipment send information, allow lamp to be always on.User's operation is waited at this time.
User can press the button of micro-control control equipment control, or be operated on the interface of particular software application, start Pass screen.Main equipment starts screen printing and begins through the network transmission past.
Based on this, for involved by the utility model USB device and method shown in fig. 6, corresponding to one kind be Processing unit provides the peripheral unit of communication connection, which includes memory, display and operating system, the operation system Uniting, there is the universal driver of at least one pre-installation, the universal driver to provide between processing unit and standard peripheral devices The common communication protocol of communication, the peripheral unit include memory, and executable software code is stored in the memory, for It is run in processing unit, the executable software code includes:First software code partition, first software code partition pass through The pre-installation universal driver of operating system, establishes the means of communication between peripheral unit and processing unit;Second software code Part, second software code partition are connected to communication network by peripheral unit, by processing unit, and the peripheral unit includes Transceiver;And third software code partition, the third software code partition on means of communication by fixed route for being located Manage transmission data between device and communication network;First software code partition therein is used to use common communication protocol, is locating Transmission screen scraping data and input unit, the input unit are connect with peripheral unit between reason device and peripheral unit, and For responding user's operation, to cause the data transmission from processing unit to peripheral unit, wherein:Here execution software code For executing method as described in Figure 5.
To sum up, since whole HID, that is, USB device is connected to using usb hub at memory, communication module and microcontroller Device etc. is managed, operation of the processor structure in HID device is eliminated, by a hub, processing capacity is more put into Host computer is handled up, is mitigated the pressure of equipment inner treater, is saved a linux chip in the process, replace with one Micro treatment equipment is as corresponding ancillary control function, and involved linux chips must arrange in pairs or groups DDR conducts in the prior art RAM, and can realize (such as FLASH memory) with more inexpensive memory in the utility model, and also price is more Cheaply.Functionally, it can realize and complete 99% existing HID device function, and the basic indifference in performance.The utility model institute Each functional module on USB device is connected to computer end by the USB device being related to by usb hub (USB HUB) Or on main equipment, such computer can be immediately seen these equipment, corresponding to complete so as to control these equipment Control.All-network transmission data will be walked by linux chips before, and the processor of such linux must be handled constantly These information.And the method in the utility model embodiment is directly spread out of by network interface card, not may require that microprocessor thus With corresponding process performance.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
In addition, the method for USB device and USB device the driving initialization that the utility model embodiment is provided above into It has gone and has been discussed in detail, specific case used herein is expounded the principles of the present invention and embodiment, above The explanation of embodiment is merely used to help understand the method and its core concept of the utility model;Meanwhile for the one of this field As technical staff, according to the utility model thought, there will be changes in the specific implementation manner and application range, to sum up Described, the content of the present specification should not be construed as a limitation of the present invention.

Claims (5)

1. a kind of USB device, which is characterized in that the USB device is HID device, the HID device be computer directly and people Interactive equipment, the USB device include:Usb hub, memory, communication module and micro-control module, wherein:
Usb hub one end has USB interface, may be inserted on host computer based on the USB interface and one end uses line concentration Device branch respectively connected the memory, the communication module and the micro-control module.
2. USB device as described in claim 1, which is characterized in that the memory is:Read only memory ROM or for Machine accesses memory RAM or is flash memory FLASH memory.
3. USB device as described in claim 1, which is characterized in that the communication module is the net with third party device communication Card, the network interface card are USB interface network interface card or wireless network card.
4. USB device as described in claim 1, which is characterized in that the micro-control module include microcontrol processor and/ Or control unit.
5. USB device as claimed in claim 4, which is characterized in that described control unit is button controller, or to touch Control flow or be indicator light.
CN201721533128.XU 2017-11-16 2017-11-16 A kind of USB device Active CN207851803U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721533128.XU CN207851803U (en) 2017-11-16 2017-11-16 A kind of USB device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721533128.XU CN207851803U (en) 2017-11-16 2017-11-16 A kind of USB device

Publications (1)

Publication Number Publication Date
CN207851803U true CN207851803U (en) 2018-09-11

Family

ID=63422434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721533128.XU Active CN207851803U (en) 2017-11-16 2017-11-16 A kind of USB device

Country Status (1)

Country Link
CN (1) CN207851803U (en)

Similar Documents

Publication Publication Date Title
CN107943722A (en) It is a kind of that the method and system for passing screen are realized based on USB device
CN103081560B (en) For the method and system of Reseal wireless data
CN104620564B (en) Apparatus and method for the transmission of the multi-protocol data element via the interface using data tunnel
CN104378729B (en) Mobile communications network service implementation method and mobile terminal system
CN103019788A (en) Remote online upgrading method based on CAN (Controller Area Network) bus
CN106469125B (en) A kind of bus communications controller and bus communication control method based on FPGA
US20160054778A1 (en) Method and electronic device for reducing current consumption by the electronic device
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
KR20110049121A (en) Method and apparatus for activating device
CN108475241B (en) SPI-based data transmission method and device
CN104798010B (en) At least part of serial storage protocol compliant frame conversion
US20190342737A1 (en) Remote bluetooth communication system
US9983867B2 (en) Software image provisioning and charging system
CN109344098A (en) Data operation method and device between master device and slave device
CN103092648B (en) A kind of image upgrade method, system and subscriber equipment and personal computer
CN111756858A (en) Remote development processing system, method and device of embedded equipment
CN101305585A (en) Near field communication host controller interface
CN107807889A (en) A kind of method of USB device and USB device driving initialization
CN207851803U (en) A kind of USB device
CN205176916U (en) Hospital appointment system
CN205263790U (en) Display control board
CN103701471A (en) Frequency converter keyboard and reading method
CN104753746B (en) The method and control server of a kind of access device
CN109271332A (en) A kind of method and apparatus of node device driving initialization

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant