CN109271332A - A kind of method and apparatus of node device driving initialization - Google Patents

A kind of method and apparatus of node device driving initialization Download PDF

Info

Publication number
CN109271332A
CN109271332A CN201710610985.3A CN201710610985A CN109271332A CN 109271332 A CN109271332 A CN 109271332A CN 201710610985 A CN201710610985 A CN 201710610985A CN 109271332 A CN109271332 A CN 109271332A
Authority
CN
China
Prior art keywords
node device
main equipment
driving
usb
node
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
CN201710610985.3A
Other languages
Chinese (zh)
Other versions
CN109271332B (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.)
Hangzhou Kai Know Technology Co Ltd
Dten Inc
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 CN201710610985.3A priority Critical patent/CN109271332B/en
Publication of CN109271332A publication Critical patent/CN109271332A/en
Application granted granted Critical
Publication of CN109271332B publication Critical patent/CN109271332B/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/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/122Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of method and apparatus of node device driving initialization, method includes: after identification USB device is based on USB interface insertion main equipment, and main equipment enumerates USB device and the node device communicated with USB device;Based on driving installation file corresponding to the node device on USB interface parsing USB device;Driving installation file based on the node device is completed the driving to the node device and is installed, and sets up the information channel between main equipment and node device, main equipment and node device by USB device and run based on information channel startup program.Implement the embodiment of the present invention, can quickly communicate therewith the driving of the node device of letter to host equipment write-in based on USB device, can satisfy the communication of node device and host equipment based on USB device, keep requirement performance of the entire USB device to hardware lower.

Description

A kind of method and apparatus of node device driving initialization
Technical field
The present invention relates to technical field more particularly to a kind of methods and apparatus of node device driving initialization.
Background technique
Active computer is when being connected with USB device, it is necessary first to carry out initialization procedure to USB device, just can be carried 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 class 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 device or multiple HID devices.
The use on main equipment is completed for the equipment much with USB joint, is generally in advance mounted on driving file It on computer, is then connected on computer by USB interface again, including printer, display screen etc. equipment, initialization procedure are all It fulfils ahead of schedule.
But presently, there are following situations, based on individual USB device as signal converting equipment, it can be achieved that between distinct device Transfer message to host on when, host equipment do not complete driving initialization procedure when, be can not based on USB device come Completion and the information exchange of host equipment, for example a printer has been accessed suddenly, and printer driver does not have, and needs scene Go for driving file corresponding to drive disk corresponding to printer or online downloading printer, when so operating cost is taken Power causes the waiting time too long.
Although proposing a kind of solution of USB device driver in No. 200610113011.6 patents, HID is passed Transmission of data block size and speed are restricted, can not accomplish faster transmission speed, in the presence of this HID device, it is necessary to relate to And arrive HID standard device+network interface card, it is necessary to have an embedded chip as transfer, and more demanding to embedded chip.
Summary of the invention
It is an object of the invention to overcome the deficiencies in the prior art, and the present invention provides a kind of drivings of node device to initialize Method and apparatus, main equipment is connected by USB device, then the driving file of node device is powered on and initialized, can quickly solve Certainly the installation of driving file is inconvenient in the prior art, the slow and at high cost problem of speed.
To solve the above-mentioned problems, the invention proposes a kind of methods of node device driving initialization, including such as lower section Method:
After identifying that USB device is based on USB interface insertion main equipment, what main equipment was communicated by USB device and with USB device Node device enumerates;
Based on driving installation file corresponding to the node device on USB interface parsing USB device;
Driving installation file based on the node device is completed the driving to the node device and is installed, and passes through USB Equipment sets up the information channel between main equipment and node device;
Main equipment and node device are run based on information channel startup program.
The main equipment enumerates USB device and the node device communicated with USB device further include:
Whether identification is completed driving initialization procedure with the node device that USB device communicates on the master, if sentencing Driving initialization procedure is completed in the node device that breaks on the master, then based on the established main equipment of USB device and section Information channel between point device carries out information exchange;If judging, the node device does not complete driving on the master and initialized Journey, then based on driving installation file corresponding to the node device on USB interface parsing USB device.
It is described based on USB interface parsing USB device on node device corresponding to driving installation file include:
Identify whether the user right in main equipment is administrator, if the user right in identification main equipment is administrator When, based on driving installation file corresponding to the node device on USB interface parsing USB device.
The driving installation file based on the node device completes the driving installation to the node device
Whether real-time monitoring driving installation is installed, if monitoring driving installation does not complete, prompts corresponding mistake, lays equal stress on Newly start driving installation;If detection driving is installed, the information channel between main equipment and node device is set up automatically.
The startup program operation are as follows: pass screen program or sound card program or sound program or touch input journey Sequence or video card program, HID program or printer program.
Correspondingly, including the following steps: the invention also provides a kind of method of node device driving initialization
After identifying USB device insertion main equipment, node device that USB device parameter and USB device are communicated Node device parameter is sent to main equipment, the USB device parameter and node device parameter and completes USB device and section for main equipment The enumeration process of point device;
After main equipment completes enumeration process, driving installation file corresponding to node device is sent to main equipment;
Main equipment, driving corresponding to the node device is written into driving installation file corresponding to the node device Installation file is completed the driving to the node device for main equipment and is installed;
The information channel between main equipment and node device is established, the information channel for main equipment and node device for opening Traverse sort run.
It is described main equipment complete enumeration process after further include:
Whether identification is completed driving initialization procedure with the node device that USB device communicates on the master, if sentencing Driving initialization procedure is completed in the node device that breaks on the master, then based on the established main equipment of USB device and section Information channel between point device carries out information exchange;If judging, the node device does not complete driving on the master and initialized Driving installation file corresponding to node device is then sent to main equipment by journey.
It is described to include: by the write-in main equipment of driving installation file corresponding to the node device
Identify whether the user right in main equipment is administrator, if the user right in identification main equipment is administrator When, then main equipment is written into driving installation file corresponding to the node device.
Correspondingly, the invention also provides a kind of USB devices, which is characterized in that the USB device is set for connecting node It is standby, and communicated with the node device, there is USB interface, the USB interface with main equipment for communicating on the USB device;
Including processor, input equipment, output equipment and memory, the processor, input equipment, output equipment and deposit Reservoir is connected with each other, wherein for storing application code, the processor is configured for described in calling the memory Program code executes such as the described in any item methods of claim 6-8.
Correspondingly, the computer equipment includes USB interface, described the invention also provides a kind of computer equipment USB interface with USB device for communicating;
The computer equipment is stored with computer program, and the computer program includes program instruction, and described program refers to Order makes the processor execute as the method according to claim 1 to 6 when being executed by a processor.
In embodiments of the present invention, it can quickly be set to the node that host equipment write-in communicates therewith letter based on USB device Standby driving can satisfy the communication of node device and host equipment based on USB device, entire USB device to hardware Ask performance lower.The driving installation file of the available or integrated node device communicated on USB device ontology, will It drives installation file with the storage of virtual drive document form, and USB device and node device is enumerated in host equipment completion Afterwards, driving installation file corresponding to node device can be parsed, it can with virtual drive display interface, thus completion pair The driver of node device is installed, and has ensured the Fast Installation of entire write-in, also for existing HID device reduce hardware at This.Customized installation file may be implemented in the usb device in this mode, and USB can substantially become a driving library, protects Various device drives are held, are meeting node device communication, and when access host equipment, corresponding node can be set Standby driving write-in host equipment completes initialization installation driver, facilitates the communication between subsequent main equipment and node device.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the method flow diagram of the node device driving initialization in the embodiment of the present invention;
Fig. 2 is the system structure diagram of the device drives initialization in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the USB device in the embodiment of the present invention;
Fig. 4 is the system structure diagram of the multinode device drives initialization in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The method of node device driving initialization according to the present invention is inserted by identification USB device based on USB interface After entering main equipment, main equipment enumerates USB device and the node device communicated with USB device;It is parsed based on USB interface Driving installation file corresponding to node device on USB device;Driving installation file completion pair based on the node device The driving of the node device is installed, and sets up the information channel between main equipment and node device, main equipment by USB device It is run with node device based on information channel startup program.
The method of node device driving initialization according to the present invention, after identifying USB device insertion main equipment, The node device parameter for the node device that USB device parameter and USB device communicate is sent to main equipment, the USB device Parameter and node device parameter complete the enumeration process of USB device and node device for main equipment;It was enumerated in main equipment completion After journey, driving installation file corresponding to node device is sent to main equipment;By driving corresponding to the node device Main equipment is written in installation file, and driving installation file corresponding to the node device is completed for main equipment to the node device Driving installation;Establish the information channel between main equipment and node device;The information channel is used for for main equipment and node device Startup program operation.
Correspondingly, Fig. 1 shows the method flow diagram of the driving initialization of node device involved in the embodiment of the present invention, It is characterized by comprising the following steps:
S101, USB device is inserted into main equipment based on USB interface;
In specific implementation process, the communication with node device is may be implemented in USB device, which can be HID and set It is standby etc., it is also possible to printer, display, wireless screen transmission equipment etc. equipment, these equipment require to be related in main equipment Upper progress, these node devices may be implemented to communicate with individual USB device, i.e., have independent communication module on USB device Realize the communication with node device, and communication module can be and be realized using wireless communication technique, and wire communication can also be used Technology is realized, for example 3G, 4G, 5G, WIFI, bluetooth, cable, USB line etc. are realized.
It is many nodes that one USB device, which can allow system identification, for example is similar to a wireless key mouse suit, practical A USB device has only been inserted on upper computer, when multiple node devices are communicated with USB device, for main equipment, can have been simulated A keyboard and a mouse out.
Therefore in the actual process, the communication between multiple node devices and main equipment may be implemented in USB device, the main equipment It can be host computer, host computer, tablet computer, other terminals etc..Multiple node devices, can be it is multiple in HID, It can be printer, display, wireless screen transmission equipment etc. equipment.
S102, main equipment identification USB device are inserted into main equipment;
After USB device is inserted on main equipment, it can identify whether there is equipment to insert on main equipment based on existing USB technology Enter, and whether identification USB device can be used, in the case where situation can be used in USB device, so that it may parse the content on USB device.
S103, USB device carry out equipment initialization, and USB device parameter and node device parameter are sent to main equipment;
The starting of USB device built-in system, and initialized, in USB initialization procedure, it can know phase on USB device The node device of communication.If USB device has multiple node devices to communicate, USB device can also will be corresponding to multiple node devices Device parameter obtain.
After realizing the communication with main equipment, what USB device can be communicated by USB device parameter and with USB device The node device parameter of node device is sent to main equipment simultaneously.
S104, main equipment enumerate USB device and node device simultaneously;
After main equipment enumerates USB device and node device, if node device is installed driving file on the master Installation, i.e. USB device establishes the information channel between main equipment and node device between main equipment and node device, the information Channel can meet the information exchange of main equipment and node device, it can directly progress S108 step.
If node device is on the master without the installation of completion driving file, USB device can not initialize node and set It is standby, that is, it can not achieve and interactively communicated with node device, can be entered on S106.
S105, judge whether node device is based on USB device and completes file initialization procedure of overdriving, if completing driving text Part initialization procedure then enters S106, otherwise enters S109;
The step can identify whether node device completes driving initialization on the master, if not completing to drive Dynamic initialization then enters S106, enters S109 if completing driving initialization, which has ensured node device and main equipment Between normal communication process.
In specific implementation process, can also identify whether the user right in main equipment is administrator, if identification main equipment In user right be administrator when, based on USB interface parsing USB device on node device corresponding to driving installation text Part.
S106, main equipment are based on driving installation file corresponding to the node device on USB interface parsing USB device;
It is embodied in implementation process, which can be a number in virtual drive or virtual file The data file stored according to file or the driving installation file by physical storage medium on USB device.Main equipment is based on USB interface parsing, can be and first parse virtual drive, and the peace of driving corresponding to node device is then parsed on virtual drive File is filled, is also possible to directly parse driving installation file based on USB interface.
In specific implementation process, after main equipment identifies that USB device is based on USB interface insertion main equipment, main equipment sets USB Node device that is standby and communicating with USB device enumerates;The virtual drive text being then based on USB interface parsing USB device Part, the virtual drive file include driving installation file corresponding to node device;Text is installed in driving based on node device Driving initialization node device may be implemented in part.
In specific implementation process, USB device is after identifying USB device insertion main equipment, by USB device parameter and USB The node device parameter for the node device that equipment communicates is sent to main equipment, and the USB device parameter and node device parameter are just The enumeration process of USB device and the node device communicated with USB device can be completed for equipment;USB device is by virtual drive File is sent to main equipment, and virtual drive file carries out virtual drive for main equipment and shows, the section is preset on virtual drive Driving installation file corresponding to point device;Main equipment, node device is written into driving installation file corresponding to node device The driving that corresponding driving installation file can be completed for main equipment to the node device initializes.
In specific implementation process, main equipment can also directly be resolved to the driving installation file being stored on USB device, i.e., Driving installation file in storage medium, these driving installation files deposit storage medium in the usb device with data packet form In, it is parsed for main equipment, and can realize the driving installation process of corresponding node device.
S107, main equipment complete the driving installation of node device, driving initialization node device based on driving installation file;
Main equipment is based on after driving installation file driving initialization node device, and main equipment and node device can be based on USB device completes information interactive process.
Setting is equivalent in specific implementation process, on USB device, and there are two softwares, i.e. virtual drive software and node device Corresponding driving installation file, and virtual drive software can allow main equipment to parse the installation of driving corresponding to node device File, to complete the driving initialization procedure to node device.
In specific implementation process, it can drive whether installation is installed with real-time monitoring, if monitoring driving installation is not complete At, then prompt corresponding mistake, and restart driving installation;If detection driving be installed, set up automatically main equipment with Information channel between node device.
S108, information channel between main equipment and node device is set up by USB device;
After driving is installed, USB device can be used as an intermediate equipment and complete between main equipment and node device Information interactive process, main equipment and node device can complete various information exchanges based on USB device.
S109, main equipment and node device are run based on information channel startup program;
S1/10, main equipment are based on USB device and node device completes information exchange.
It should be noted that in step s105, on the master whether the node device that identification is communicated with USB device Driving initialization procedure is completed, driving initialization procedure is completed in the node device on the master if judging, can be with Information exchange is carried out based on the information channel between the established main equipment of USB device and node device;If judging, the node is set Standby not complete driving initialization procedure on the master, then the node device institute for needing to parse based on USB interface on USB device is right The driving installation file answered enters S106.In specific implementation process, the information in information interactive process can be following data: screen Curtain data, sound card data, voice data, touch input data, video card data, HID data etc..
And startup program operation are as follows: pass screen program or sound card program or sound program or touch input journey Sequence or video card program, HID program or printer program.
Such as node device be printer when, USB device be inserted into main equipment after, and complete it is initial to the driving of printer After change, the information exchange with main equipment is can be realized in printer apparatus;It is that display screen or node device are used in node device When transmitting screen data, transmission screen data can be completed based on USB device, the transmission of this scheme is faster;In USB device When can communicate simultaneously with mouse, the keyboard in HID device, mouse, keyboard can be completed on the master based on USB device Driving initialization, and can ensure mouse, keyboard while realize the information interactive process with main equipment based on USB device.
The USB device can virtual multiple node devices and main equipment interactively communicate, i.e., how many node device and When USB device communicates, it can be enumerated by main equipment, and it is initial to complete the driving of multiple node devices on the master Change, multiple node devices can realize the information interactive process of main equipment based on USB device.
Correspondingly, Fig. 2 shows the system structure diagrams of the device drives initialization in the embodiment of the present invention, comprising: Main equipment, USB device and node device, in which:
Main equipment, the main equipment are a computer equipment, have USB interface, which is used for logical with USB device Believe, in specific implementation process, be stored with computer program, which includes program instruction, which, which works as, is located Reason device makes the processor execute following method when executing: after identification USB device is based on USB interface insertion main equipment, master is set It is standby to enumerate USB device and the node device communicated with USB device;It is set based on the node on USB interface parsing USB device Standby corresponding driving installation file;Driving installation file based on the node device is completed the driving to node device and is pacified Dress, i.e., driving initializes the node device, and sets up the information channel between main equipment and node device by USB device, Main equipment and node device are run based on information channel startup program.
And main equipment by USB device and the node device communicated with USB device enumerate after realize: identification with Whether the node device that USB device communicates is completed driving initialization procedure on the master, if judging the node device Driving initialization procedure is completed on the master, then based on the information between the established main equipment of USB device and node device Channel carries out information exchange;If judging, the node device does not complete driving initialization procedure on the master, is connect based on USB Driving installation file corresponding to node device on mouth parsing USB device.
And also realized later after setting up the information channel between main equipment and node device by USB device: base Information exchange is completed in the USB device and the node device.
USB device, USB device is used for connecting node equipment, and communicates with node device, connects on the USB device with USB Mouthful, the USB interface with main equipment for communicating;It is the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing application code, the processor quilt It is configured to caller code, executes the following method: after identifying USB device insertion main equipment, by USB device parameter The node device parameter of the node device communicated with USB device is sent to main equipment, the USB device parameter and node device ginseng Number completes the enumeration process of USB device and node device for main equipment;After main equipment completes enumeration process, by node device Corresponding driving installation file is sent to main equipment;Main equipment is written into driving installation file corresponding to node device, it should Driving installation file corresponding to node device is completed the driving to the node device for main equipment and is installed;Establish main equipment with Information channel between node device, main equipment and node device are run based on information channel startup program.
And complete to realize after enumeration process in main equipment: the node device that identification is communicated with USB device whether Driving initialization procedure is completed on main equipment, driving is completed on the master and initialized for the node device if judging Journey then carries out information exchange based on the information channel between the established main equipment of USB device and node device;If judging the section Point device does not complete driving initialization procedure on the master, then driving installation file corresponding to node device is sent to master Equipment.
And also realize after establishing the information channel between main equipment and node device: being completed based on the USB device The information interactive process of main equipment and node device.
Node device realizes the communication with USB device first, is not carrying out driving initialization by main equipment, being can not Information interactive process is completed based on USB device, after carrying out driving initialization by main equipment, it is complete USB device could to be based on At information interactive process.
It should be noted that the communication with node device may be implemented in USB device, which can be HID device Deng being also possible to printer, display etc. equipment, these equipment require to be related to carry out on the master, these nodes Equipment may be implemented to communicate with individual USB device, i.e., realizes and node device on USB device with independent communication module Communication, and communication module can be and be realized using wireless communication technique, can also be realized using limited communications technologies, such as 3G, 4G, 5G, WIFI, bluetooth, cable, USB line etc. are realized.
It is many nodes that one USB device, which can allow system identification, for example is similar to a wireless key mouse suit, practical A USB device has only been inserted on upper computer, when multiple node devices are communicated with USB device, for main equipment, can have been simulated A keyboard and a mouse out.
Therefore in the actual process, the communication between multiple node devices and main equipment may be implemented in USB device, the main equipment It can be host computer, host computer, tablet computer, other terminals etc..Multiple node devices, can be it is multiple in HID, It can be printer, display etc. equipment.
It should be noted that the information in information above interactive process are as follows: screen data or sound card data or sound Sound data or touch input data or video card data, HID data or printer data, according to node device Purposes or function are completed.
Correspondingly, Fig. 3 shows the structural schematic diagram of the USB device in present invention implementation, comprising: USB interface, processing Device, memory and communication module, in which: USB interface may be implemented to be inserted on main equipment, and processor run program file is deposited Reservoir is stored with corresponding operation procedural document, such as the driving installation file of virtual drive file and each node device, leads to Letter module can communicate with node device, realization process can in detail refering to fig. 1 with content involved in Fig. 2, here no longer It repeats.
Correspondingly, Fig. 4 shows the system structure diagram of the initialization of the multinode device drives in the embodiment of the present invention, Include: main equipment, USB device and the multiple node devices communicated with USB device, i.e. node device 1, node are set Standby 2 to node device n, n here is more than or equal to 2.Based on a USB device can gather multiple node devices and main equipment into Row communication, and USB can store or get driving installation file corresponding to node device, to ensure in node device Before main equipment information exchange, realizes and the driving file of node device is installed, i.e., device drives are realized to each node device Initialization procedure, thus based on USB device can with main equipment realize communicate, specific implementation process can in detail refering to fig. 1 with Content involved in Fig. 2, which is not described herein again.
It should be noted that method involved in the embodiment of the present invention, can enumerate CD-ROM drive or storage equipment first Afterwards, the driving of another node is store in storage equipment or CD-ROM drive, user double-clicks application program (it is required that administrator right), will Automatic installation driving, and whether real-time monitoring driving is installed, if installation does not complete, corresponding mistake is prompted, with again Start.If successfully installation driving, automatic running the latter program carries out subsequent operation.The program X finally run is (common User right), it is not necessarily that program of automatic running after installing driving just now, it is also possible to which the program starts next Program.
Specifically, realizing that the method for passing screen equipment initialization specifically comprises the following steps: based on USB device
USB device is based on USB interface and is inserted into main equipment, USB device one end is connected to wireless screen transmission equipment;
Main equipment identifies that USB device is inserted into main equipment;
USB device carries out equipment initialization, and USB device parameter and wireless screen transmission device parameter are sent to main equipment;
Main equipment can enumerate USB device and wireless screen transmission equipment simultaneously;
Judge whether wireless screen transmission equipment is based on USB device and completes file initialization procedure of overdriving, if completing driving text Part initialization procedure, then automatic running wireless screen transmission program;If not completing driving file initialization procedure, enter driving text Part intiating radio passes screen equipment process;
It is passed in screen equipment in driving intiating radio, whether the user right in identification main equipment is administrator first, if When user right in identification main equipment is administrator, main equipment is based on the wireless screen transmission equipment on USB interface parsing USB device Corresponding driving installation file;
Main equipment completes the driving installation of wireless screen transmission equipment based on driving installation file, and driving initializes the wireless screen transmission Whether equipment, in the process, the driving installation of the real-time monitoring wireless screen transmission equipment are installed, if monitoring driving installation is not It completes, then prompts corresponding mistake, and restart driving installation;If detection driving is installed, main equipment is set up automatically With the information channel of wireless screen transmission equipment room;
Main equipment and wireless screen transmission equipment can start the operation of wireless screen transmission program based on the information channel, in main equipment It is realized with wireless screen transmission equipment room during passing screen, biography screen can be realized based on user right, for example initialized in driving Cheng Zhong can be set corresponding pass and shield permission, passed based on the biography screen permission and shield corresponding content, such as when administrator mode, can Screen is passed with operation, biography screen can not also be run;When identifying main equipment is user EXEC, biography screen mould can be started automatically Screen data on main equipment is based on completing corresponding program in wireless screen transmission equipment by formula.
To sum up, the driving that can quickly communicate therewith the node device of letter to host equipment write-in based on USB device, can be with Meet the communication of node device and host equipment based on USB device, keeps requirement performance of the entire USB device to hardware lower.It is main Equipment can on USB device ontology the available or integrated node device communicated driving installation file, will drive Dynamic installation file is with the storage of virtual drive document form, and after host equipment is completed to the enumerating of USB device and node device, Driving installation file corresponding to node device can be parsed, it can with virtual drive display interface, to complete to section The driver of point device is installed, and has ensured the Fast Installation of entire write-in, also for existing HID device reduce hardware at This.Customized installation file may be implemented in the usb device in this mode, and USB can substantially become a driving library, protects Various device drives are held, are meeting node device communication, and when access host equipment, corresponding node can be set Standby driving write-in host equipment completes initialization installation driver, facilitates the communication between subsequent main equipment and node device.
Those of ordinary skill in the art will appreciate that all or part of the steps 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 and apparatus for being provided for the embodiments of the invention device drives initialization above has carried out detailed Jie It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of method of node device driving initialization, which is characterized in that including following method:
After identifying that USB device is based on USB interface insertion main equipment, main equipment is by USB device and the node communicated with USB device Device enumeration goes out;
Based on driving installation file corresponding to the node device on USB interface parsing USB device;
Driving installation file based on the node device is completed the driving to the node device and is installed, and passes through USB device Set up the information channel between main equipment and node device;
Main equipment and node device are run based on information channel startup program.
2. the method for node device driving initialization as described in claim 1, which is characterized in that the main equipment sets USB Node device that is standby and communicating with USB device enumerates further include:
Whether identification is completed driving initialization procedure with the node device that USB device communicates on the master, if judging institute It states node device and driving initialization procedure is completed on the master, then set based on the established main equipment of USB device with node Information channel between standby carries out information exchange;If judging, the node device does not complete driving initialization procedure on the master, Then based on driving installation file corresponding to the node device on USB interface parsing USB device.
3. the method for node device driving initialization as described in claim 1, which is characterized in that described to be based on USB interface solution Analysing driving installation file corresponding to the node device on USB device includes:
Identify whether the user right in main equipment is administrator, if the user right in identification main equipment is administrator, base The driving installation file corresponding to the node device on USB interface parsing USB device.
4. the method for node device driving initialization as described in claim 1, which is characterized in that described to be set based on the node Standby driving installation file completes the driving installation to the node device
Whether real-time monitoring driving installation is installed, if monitoring driving installation does not complete, prompts corresponding mistake, and open again Begin to drive installation;If detection driving is installed, the information channel between main equipment and node device is set up automatically.
5. such as the method for the described in any item node device driving initialization of Claims 1-4, which is characterized in that
Startup program operation are as follows: pass screen program or sound card program or sound program or touch input program or Person's video card program, HID program or printer program.
6. a kind of method of node device driving initialization, which comprises the steps of:
After identifying USB device insertion main equipment, the node for the node device that USB device parameter and USB device are communicated Device parameter is sent to main equipment, the USB device parameter and node device parameter and sets for main equipment completion USB device and node Standby enumeration process;
After main equipment completes enumeration process, driving installation file corresponding to node device is sent to main equipment;
Main equipment, the installation of driving corresponding to the node device is written into driving installation file corresponding to the node device File is completed the driving to the node device for main equipment and is installed;
The information channel between main equipment and node device is established, the information channel is used to start journey for main equipment and node device Sort run.
7. the method for node device driving initialization as claimed in claim 6, which is characterized in that described in main equipment completion piece After act process further include:
Whether identification is completed driving initialization procedure with the node device that USB device communicates on the master, if judging institute It states node device and driving initialization procedure is completed on the master, then set based on the established main equipment of USB device with node Information channel between standby carries out information exchange;If judging, the node device does not complete driving initialization procedure on the master, Driving installation file corresponding to node device is then sent to main equipment.
8. the method for node device driving initialization as claimed in claim 6, which is characterized in that described by the node device Main equipment is written in corresponding driving installation file
Identify whether the user right in main equipment is administrator, if the user right in identification main equipment is administrator, Main equipment is written into driving installation file corresponding to the node device.
9. a kind of USB device, which is characterized in that the USB device is used for connecting node equipment, and logical with the node device Believe there is USB interface, the USB interface with main equipment for communicating on the USB device;
Including processor, input equipment, output equipment and memory, the processor, input equipment, output equipment and memory It is connected with each other, wherein the memory is configured for calling described program for storing application code, the processor Code executes such as the described in any item methods of claim 6-8.
10. a kind of computer equipment, which is characterized in that the computer equipment includes USB interface, and the USB interface is used for It is communicated with USB device;
The computer equipment is stored with computer program, and the computer program includes program instruction, and described program instruction is worked as The processor is set to execute as the method according to claim 1 to 6 when being executed by processor.
CN201710610985.3A 2017-07-25 2017-07-25 Method and equipment for initializing node equipment driver Active CN109271332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710610985.3A CN109271332B (en) 2017-07-25 2017-07-25 Method and equipment for initializing node equipment driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710610985.3A CN109271332B (en) 2017-07-25 2017-07-25 Method and equipment for initializing node equipment driver

Publications (2)

Publication Number Publication Date
CN109271332A true CN109271332A (en) 2019-01-25
CN109271332B CN109271332B (en) 2021-06-22

Family

ID=65148113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710610985.3A Active CN109271332B (en) 2017-07-25 2017-07-25 Method and equipment for initializing node equipment driver

Country Status (1)

Country Link
CN (1) CN109271332B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389568A (en) * 2019-07-31 2019-10-29 清华大学 A kind of information conduit node and observing and controlling information automatic interaction method
CN111586627A (en) * 2020-04-14 2020-08-25 惠州市德赛西威智能交通技术研究院有限公司 Carplay synchronous connection method and device and vehicle-mounted system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051084A1 (en) * 2001-09-13 2003-03-13 Allan Rosen Peripheral device having a built-in device driver
CN1553319A (en) * 2003-06-04 2004-12-08 鸿富锦精密工业(深圳)有限公司 USB facilities and driving programm installing method
CN1609829A (en) * 2003-10-24 2005-04-27 英业达股份有限公司 Plug-and-play method for USB equipment under linux operation system
CN1831750A (en) * 2005-03-07 2006-09-13 横河电机株式会社 Data control apparatus
CN1996250A (en) * 2007-01-05 2007-07-11 华为技术有限公司 System and method for mounting peripheral device program and USB cable
CN101398792A (en) * 2007-09-28 2009-04-01 联想(北京)有限公司 Method and device for implementing application of interface functional equipment
CN101957802A (en) * 2009-07-17 2011-01-26 鸿富锦精密工业(深圳)有限公司 USB device with driving program
CN102841864A (en) * 2011-03-23 2012-12-26 佳能电子株式会社 Peripheral device, image reading apparatus and information processing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051084A1 (en) * 2001-09-13 2003-03-13 Allan Rosen Peripheral device having a built-in device driver
CN1553319A (en) * 2003-06-04 2004-12-08 鸿富锦精密工业(深圳)有限公司 USB facilities and driving programm installing method
CN1609829A (en) * 2003-10-24 2005-04-27 英业达股份有限公司 Plug-and-play method for USB equipment under linux operation system
CN1831750A (en) * 2005-03-07 2006-09-13 横河电机株式会社 Data control apparatus
CN1996250A (en) * 2007-01-05 2007-07-11 华为技术有限公司 System and method for mounting peripheral device program and USB cable
CN101398792A (en) * 2007-09-28 2009-04-01 联想(北京)有限公司 Method and device for implementing application of interface functional equipment
CN101957802A (en) * 2009-07-17 2011-01-26 鸿富锦精密工业(深圳)有限公司 USB device with driving program
CN102841864A (en) * 2011-03-23 2012-12-26 佳能电子株式会社 Peripheral device, image reading apparatus and information processing system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙玉伟、童新海、张林惠等: "云桌面中USB设备重定向技术研究", 《信息网络安全》 *
李英伟: "《USB 2.0原理与工程开发》", 31 January 2007 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389568A (en) * 2019-07-31 2019-10-29 清华大学 A kind of information conduit node and observing and controlling information automatic interaction method
CN111586627A (en) * 2020-04-14 2020-08-25 惠州市德赛西威智能交通技术研究院有限公司 Carplay synchronous connection method and device and vehicle-mounted system
CN111586627B (en) * 2020-04-14 2022-05-20 惠州市德赛西威智能交通技术研究院有限公司 Carplay synchronous connection method and device and vehicle-mounted system

Also Published As

Publication number Publication date
CN109271332B (en) 2021-06-22

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
CN112492442A (en) Connection switching method, device, equipment and storage medium of Bluetooth headset
CN101882116A (en) Method for realizing audio transmission and mobile terminal
CN109039829A (en) A kind of network card performance testing method, apparatus, terminal and storage medium
CN107251069B (en) Near field communication payment method and terminal
WO2017028651A1 (en) Method, apparatus and system for performing configuration setting between devices
WO2016058427A1 (en) Usb wireless network card configuration method, host, usb wireless network card and communication system
CN106100798A (en) Data transmission device and the method and system of transmission data
CN104102490B (en) Method for realizing CEN/XFS SP on basis of Windows service
CN109344098A (en) Data manipulation method and device between master-slave equipment
CN110134447A (en) The system and method for BMC immediate updating hard disk information based on operating system
CN106844275A (en) Data transmission method and device
CN109271332A (en) A kind of method and apparatus of node device driving initialization
CN102073524B (en) A kind of method of wireless communication terminal and self-starting thereof
CN102088797A (en) Wireless communication method and system as well as wireless communication terminal
CN106445516B (en) External radio trawl performance loading method and device
CN105988943B (en) A kind of method and device driving wireless adapter
CN106230503A (en) Data transmission device and the method and system of transmission data
CN107807889A (en) A kind of method of USB device and USB device driving initialization
CN109189705A (en) A kind of usb expansion method, apparatus, equipment, storage medium and system
CN106294237A (en) A kind of multiplexing functions method and device of communication interface
CN109271454A (en) A kind of method and the network equipment that data are synchronous
CN104823174B (en) The method and system of USB3.0 compatible equipment enumerated again
CN106897237A (en) The method and apparatus switched by BIOS controlling bus equipment
CN105224484B (en) The method and apparatus that multiplex roles application is realized in ID authentication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant