CN105988943B - A kind of method and device driving wireless adapter - Google Patents

A kind of method and device driving wireless adapter Download PDF

Info

Publication number
CN105988943B
CN105988943B CN201510043364.2A CN201510043364A CN105988943B CN 105988943 B CN105988943 B CN 105988943B CN 201510043364 A CN201510043364 A CN 201510043364A CN 105988943 B CN105988943 B CN 105988943B
Authority
CN
China
Prior art keywords
identifier information
wireless
configuration file
device configuration
wireless adapter
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
CN201510043364.2A
Other languages
Chinese (zh)
Other versions
CN105988943A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510043364.2A priority Critical patent/CN105988943B/en
Publication of CN105988943A publication Critical patent/CN105988943A/en
Application granted granted Critical
Publication of CN105988943B publication Critical patent/CN105988943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a kind of method and devices for driving wireless adapter, are related to mobile communication field, by configurable wireless device configuration file, change the process of driving wireless adapter, update the wireless adapter that can be supported convenient for equipment.This method comprises: obtaining the first identifier information of wireless adapter from wireless adapter;Determine second identifier information corresponding with first identifier information whether is stored in wireless device configuration file;Wireless device configuration file is for storing second identifier information and activation bit corresponding with second identifier information;The driver of activation bit association wireless adapter;In the case where being stored with second identifier information corresponding with first identifier information in wireless device configuration file, the driver of wireless adapter is called according to activation bit corresponding with the second identifier information determined, drives wireless adapter.

Description

A kind of method and device driving wireless adapter
Technical field
The present invention relates to mobile communication field more particularly to a kind of methods for driving wireless adapter (WiFi dongle) And device.
Background technique
With the development of communication technology, the network more and more important role of performer in people's lives.User equipment It is connect by way of wired connection or wireless connection with internet, wherein wireless networking is with it not by the limit of wiring condition System, transmission speed is fast, the advantages that facilitating is favored by people deeply.There is the equipment of wireless network card can be by wireless network card and internet It is wirelessly connected, for the equipment of not wireless network card, USB (the Universal Serial in equipment can be passed through The function that wireless adapter makes the equipment have wireless networking is inserted on Bus (universal serial bus) interface.
But for the equipment based on Android (Android) system, due to only being write in the primary code of android system Enter the drive code set of one wireless adapter, that is to say, that the equipment based on android system can only drive a kind of type Number wireless adapter.If desired the wireless adapter of other models is driven, then needs to modify above-mentioned drive code set, is laid equal stress on newly organized It translates.Not only time-consuming in this way but also inefficiency.
Summary of the invention
The embodiment of the present invention provides a kind of method and device for driving wireless adapter, passes through configurable wireless device Configuration file changes the process of driving wireless adapter, updates the wireless adapter that can be supported convenient for equipment.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the invention provides a kind of methods for driving wireless adapter, comprising:
The first identifier information of the wireless adapter is obtained from wireless adapter;The first identifier information is for unique Identify the wireless adapter;
Determine second identifier information corresponding with the first identifier information whether is stored in wireless device configuration file; The wireless device configuration file is for storing second identifier information and activation bit corresponding with the second identifier information;Institute State the driver that activation bit is associated with the wireless adapter;
Second identifier information corresponding with the first identifier information is stored in the wireless device configuration file In the case of, the driving journey of the wireless adapter is called according to activation bit corresponding with the second identifier information determined Sequence drives the wireless adapter.
Second aspect, the embodiment of the invention provides a kind of driving devices, comprising:
Acquiring unit, for obtaining the first identifier information of the wireless adapter from wireless adapter;First mark Information is known for wireless adapter described in unique identification;
Determination unit, for determine whether be stored in wireless device configuration file it is corresponding with the first identifier information Second identifier information;The wireless device configuration file is for storing second identifier information and corresponding with the second identifier information Activation bit;The activation bit is associated with the driver of the wireless adapter;
Processing unit, for being stored with corresponding with the first identifier information in the wireless device configuration file In the case where two identification informations, called according to activation bit corresponding with the second identifier information determined described wireless suitable The driver of orchestration drives the wireless adapter.
The embodiment of the invention provides a kind of method and devices for driving wireless adapter, obtain from wireless adapter wireless The first identifier information of adapter;Determine corresponding with first identifier information second whether is stored in wireless device configuration file Identification information;In the case where being stored with second identifier information corresponding with first identifier information in wireless device configuration file, The driver of wireless adapter is called according to activation bit corresponding with the second identifier information determined, drives wireless adaptation Device.In this way by having increased the wireless device configuration file of the identification information and activation bit that are stored with wireless adapter newly, change The method that must can configure the parameter of wireless adapter by modifying program in the prior art, as long as so that modification is wireless Device configuration file, it will be able to update the wireless adapter that the equipment is supported, facilitate the configuration to wireless adapter.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of method for driving wireless adapter provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for another driving wireless adapter provided in an embodiment of the present invention;
Fig. 3 is a kind of wireless adapter bound of parameter face provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the method for another driving wireless adapter provided in an embodiment of the present invention;
Fig. 5 is a kind of functional schematic of driving device provided in an 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 embodiment of the invention provides a kind of methods for driving wireless adapter, as shown in Figure 1, comprising:
101, the first identifier information of the wireless adapter is obtained from wireless adapter.
Wherein, the first identifier information is for wireless adapter described in unique identification.
Specifically, wireless adapter is connected to the equipment by USB interface, equipment reads this by USB interface and wirelessly fits The first identifier information of orchestration.
It should be noted that first identifier information can be any information for capableing of the unique identification wireless adapter, example Such as, each wireless adapter can be encoded, this is encoded to the identification information of each wireless adapter;It can also be existing VID (PID (the Product of Vendor IDentity (identification of the manufacturer) and wireless adapter of wireless adapter in technology IDentity (product identification).
It should be noted that the condition that triggering equipment executes step 101, which can be user, opens WiFi (Wireless Fidelity, Wireless Fidelity) (equipment scans all devices connected to it (may have wireless adapter that may also not have to function Wireless adapter), then obtain the mark of device connected to it;It can also be to work as and detect that new device (may be nothing Line adapter may not also be wireless adapter) be connected to the equipment in the case where, trigger step 101.
102, determine second identifier information corresponding with first identifier information whether is stored in wireless device configuration file.
Wherein, the wireless device configuration file is for storing second identifier information and drive corresponding with second identifier information Dynamic information;The activation bit is associated with the driver of the wireless adapter.
Specifically, the second identifier information stored in the first identifier information that will acquire and wireless device configuration file into Whether row compares, be stored in lookup wireless device configuration file identical with the first identifier information obtained from wireless adapter Second identifier information.
It should be noted that second identifier information is corresponding with activation bit, activation bit is associated with driver, that is, It says, the driver of wireless adapter can be got by activation bit.
It should be noted that the wireless adapter for being stored with second identifier information in wireless device configuration file is all that this sets The standby wireless adapter that can be supported.Multiple second identifier information are stored in wireless device configuration file and with every one second In the case where the corresponding activation bit of identification information, which can support a variety of wireless adapters.Wireless device is matched The data set in file can be by modification, increase, deletion etc..
Illustratively, the format of wireless device configuration file can be XML (Extensible Markup Language (extensible markup language) format.
103, second identifier information corresponding with first identifier information is stored in the wireless device configuration file In the case of, the driver of the wireless adapter is called according to activation bit corresponding with the second identifier information determined, Drive the wireless adapter.
Specifically, by the second identifier information in the first identifier information of wireless adapter and wireless device configuration file Carry out it is matched during, if having found out second identifier information identical with first identifier information, will believe with first identifier It ceases corresponding activation bit in identical occurrence to extract, and obtains the driving journey of wireless adapter according to the activation bit Sequence.
It should be noted that, by operation driver, the wireless adapter is called after getting driver, with Enable a device to the access that internet is able to carry out by wireless adapter.The method of carrying out practically driver and existing skill Drive the method for wireless adapter identical according to driver in art, details are not described herein.
The embodiment of the invention provides a kind of methods for driving wireless adapter, obtain wireless adapter from wireless adapter First identifier information;Determine second identifier letter corresponding with first identifier information whether is stored in wireless device configuration file Breath;In the case where being stored with second identifier information corresponding with first identifier information in wireless device configuration file, according to The corresponding activation bit of the second identifier information determined calls the driver of wireless adapter, drives wireless adapter.This Sample passes through the wireless device configuration file for having increased the identification information and activation bit that are stored with wireless adapter newly, changes existing The method that must can configure the parameter of wireless adapter by modifying program in technology, as long as so that modification wireless device is matched Set file, it will be able to update the wireless adapter that the equipment is supported, facilitate the configuration to wireless adapter.Meanwhile as long as The identification information and activation bit of multiple wireless adapters are stored in configuration file, then the equipment can support a variety of nothings Line adapter relieves the limitation that an equipment in the prior art only supports a kind of wireless adapter.
The embodiment of the invention provides a kind of methods for driving wireless adapter, as shown in Figure 2, comprising:
201a, first identifier information and activation bit are obtained from wireless parameter configuration interface.
Wherein, the wireless parameter configuration interface is the interface that user and equipment carry out information exchange.
It should be noted that the operation interface of equipment can be set and as shown in Figure 3 wirelessly fit dedicated for user configuration Orchestration bound of parameter face.User can be inputted by the interface first identifier information of wireless adapter, activation bit and its His information.Wherein, first identifier information and activation bit are the necessary informations for driving wireless adapter.Wireless adapter First identifier information includes: VID and PID, only can just be determined used in equipment by the VID and PID of wireless adapter The concrete model of wireless adapter, and then correct driver can be got.The activation bit of wireless adapter includes: The store path of the driver of wireless adapter.The store path of driver is input in equipment by user, so as to basis Activation bit can get the driver of the wireless adapter.Other information in addition to identification information is with activation bit is Optional information.Such as driving title, driving number, driving producer, firmware (Firmware) title, firmware path etc..
202a, first identifier information and activation bit are added to the wireless device configuration file, obtained described wireless The driver of adapter is simultaneously associated with the activation bit of the wireless adapter and the driver of the wireless adapter.
Specifically, equipment will be stored from the data that display interface obtains according to the corresponding format in wireless device configuration file Into wireless device configuration file, the driver of the wireless adapter is then downloaded from server according to first identifier information (and store driver into file indicated by driving path.Or user from obtaining driver, and hand elsewhere It is dynamic copy driver in file indicated by driving path to.
Illustratively, the format of wireless device configuration file can be XML (Extensible Markup Language (extensible markup language) format, correspondingly, the wireless adapter relevant information of each model can in wireless device configuration file To be stored according to following format:
Each field meanings are as follows in above-mentioned data:
Vendor is used to encapsulate the relevant information of the wireless adapter of each producer;
< name:realtek </ name: for identifying the title of wireless adapter manufacturer, trade name is herein realtek;
< driver id=0: indicating the driver number of wireless adapter, this driver number can be used to indicate that this is wireless suitable The precedence information of orchestration;
< name:8192du </ name: it indicates the driving title of wireless adapter, drives entitled 8192du herein;
< attr id=1: when indicating different PID and/or VID corresponding to identical driving, each group of PID and VID is numbered;
< pid:xxx </ pid: the PID of wireless adapter is indicated;Xxx herein can be used to add PID;
< vid:xxx </ vid: the VID of wireless adapter is indicated;Xxx herein can be used to add VID;
< path:/data/misc/wifi/8192du.ko </ path: driving path is represented, to indicate the wireless adaptation The path of the driver storage of device, is herein/data/misc/wifi/8192du.ko;
Firmware field has two: being firmware name and path respectively, some firmware are not needed, so logical Cross < name:null </ name: and < path:null </ path: by referring to for sky for the firmware of wireless adapter.
It should be noted that step 201a and step 202a are a kind of methods matched to wireless device configuration file. Certain user can also first store the driver of wireless adapter into a file, then configure again from wireless parameter The first identifier information and activation bit of wireless adapter described in interface configurations, activation bit at this time are exactly the storage of this document Path.
201b, by the wireless device configuration file copy in system file into wireless device configuration file.
It should be noted that before equipment factory, developer by the configuration information of common several wireless adapters Through in writing system, and corresponding driver is stored to system file.But the content in system file be cannot be into Row modification, so also needing to reset wireless device configuration file except system file, enable to add newly The relevant information of wireless adapter.
Specifically, the configuration information in system file is copied in wireless device configuration file.
It should be noted that the present embodiment is to have existed wireless device configuration file before wireless adapter insertion, And situation about being added to the configuration information of the wireless adapter of the model in wireless device configuration file.Step 201a) 202a and step 201b is the two methods configured to wireless device configuration file.
203, the first identifier information of the wireless adapter is obtained from wireless adapter.
Wherein, the first identifier information is for wireless adapter described in unique identification.
The first identifier information includes: the production of the identification of the manufacturer VID and the wireless adapter of the wireless adapter Product identify PID.
Specifically, can refer to step 101, details are not described herein.
204, determine second identifier corresponding with the first identifier information whether is stored in wireless device configuration file Information.
Wherein, the wireless device configuration file is for storing second identifier information and drive corresponding with second identifier information Dynamic information.The activation bit is associated with the driver of the wireless adapter.
Specifically, can refer to step 102, details are not described herein.
It further, can also be to each occurrence stored in wireless device configuration file in order to accelerate to match process Increase priority.The second identifier information wherein stored in wireless device configuration file is referred to as with corresponding activation bit One occurrence.At this point, wireless device configuration file is also used to store the priority of wireless adapter.
Correspondingly, step 204 specifically: according to the sequence of the priority of wireless adapter from high to low, successively determine institute Whether identical as first identifier information state the second identifier information stored in wireless device configuration file.
Specifically, being matched since the high occurrence of priority, it is first determined second in the occurrence of highest priority Whether identification information is identical as first identifier information, in different situation, determines in the high occurrence of preferential level Whether two identification informations are identical as first identifier information, until being matched to identical second identifier information.
It should be noted that the priority of each occurrence can be changed.It is being matched to and the wireless adapter In the case where the occurrence matched, the wireless adapter that system default user opens WiFi or is newly inserted into next time is most likely to be this Wireless adapter, it is possible to set highest for the priority of the occurrence matched, and by the priority of other occurrences Level-one is reduced respectively.
It should be noted that user into wireless device configuration file increase newly wireless adapter configuration information when It waits, the priority of newly added occurrence can be set to highest, and the priority of other occurrences is reduced into level-one respectively. When user deletes the occurrence in wireless device configuration file, the occurrence of priority is all deleted if they are the same, then may be used Increase level-one with the priority by priority lower than deleted occurrence.
It should be noted that by before wireless adapter insertion, having existed wireless device configuration in this present embodiment File, and the situation (institute being added to the configuration information of the wireless adapter of the model in wireless device configuration file To be herein not in the case where not being stored with the identification information to match with wireless adapter in wireless device configuration file. For the wireless adapter of other models, it is understood that there may be not stored in wireless device configuration file and wireless adapter It the case where second identifier information to match, can directly terminate at this time, show that this equipment does not support the wireless adaptation of the model Device;The relevant information for the wireless adapter being newly inserted into can also be configured.
205, second identifier letter corresponding with the first identifier information is stored in the wireless device configuration file In the case where breath, the driving journey of the wireless adapter is called according to activation bit corresponding with the second identifier information determined Sequence drives the wireless adapter.
Specifically, can refer to step 103, details are not described herein.
The embodiment of the invention provides a kind of methods for driving wireless adapter, configure wireless device configuration file;From nothing The first identifier information of line adapter acquisition wireless adapter;Determine whether be stored in wireless device configuration file and the first mark Know the corresponding second identifier information of information;Corresponding with first identifier information is stored in the wireless device configuration file In the case where two identification informations, the wireless adapter is called according to activation bit corresponding with the second identifier information determined Driver, to drive the wireless adapter.In this way by having increased the identification information for being stored with wireless adapter and drive newly The wireless device configuration file of dynamic information, wireless adapter must can be configured by modifying program in the prior art by changing Parameter method, as long as so that modification wireless device configuration file, it will be able to update the wireless adapter that the equipment is supported, Facilitate the configuration to wireless adapter.Meanwhile as long as be stored in configuration file multiple wireless adapters identification information and Activation bit relieves an equipment in the prior art and only supports one then the equipment can support a variety of wireless adapters The limitation of kind wireless adapter.It further, is each occurrence increase priority in wireless device configuration file, so that In wireless device configuration file determine second identifier information corresponding with first identifier information when can be high from priority matching Item is searched, and matching process is accelerated, and finally shortens the time of the driver of load wireless adapter.
The embodiment of the invention provides a kind of methods for driving wireless adapter, as shown in Figure 4, comprising:
401, the first identifier information of the wireless adapter is obtained from wireless adapter.
Wherein, the first identifier information is for wireless adapter described in unique identification.
Specifically, can refer to step 101, details are not described herein.
402, the wireless device configuration file is determined whether there is.
It should be noted that since wireless device configuration file is not system file, so being inserted into nothing for the first time in equipment In the case where line adapter, this document may be not present.
It should be noted that wireless device configuration file has fixed store path, such as/data/misc/wifi.
Specifically, whether being stored with wirelessly according to being searched in wireless device configuration file fixed storage path in this document folder Device configuration file.
It should be noted that, the different steps of execution different according to the result determined.It is wirelessly set there is no described In the case where standby configuration file, step 403 is executed, creates wireless device configuration file, wireless device configuration file is pertinent at this time Fixed second identifier information not corresponding with first identifier information, so step 406) 408 is and then executed, this is wireless suitable The related data of orchestration is added to wireless device configuration file, and obtains corresponding driver, finally according to the driver Drive the wireless adapter of insertion.There are the wireless device configuration file, step 404) 408 is executed.
403, in the case where the wireless device configuration file is not present, the wireless device configuration file is created.
Specifically, in the case where not finding wireless device configuration file under fixed route, in the fixed route pair Wireless device configuration file is created under the file answered.
It should be noted that without storing any data in newly-built wireless device configuration file, it is possible to directly jump Step 406 is gone to, is held according in wireless device configuration file without storing second identifier information corresponding with first identifier information Row.
404, there are the wireless device configuration file, determine in wireless device configuration file whether store There is second identifier information corresponding with first identifier information.
Wherein, the wireless device configuration file is for storing second identifier information and drive corresponding with second identifier information Dynamic information.The activation bit is associated with the driver of the wireless adapter.
Specifically, in the case where not finding wireless device configuration file under fixed route, it is thus necessary to determine that wirelessly set Second identifier information identical with first identifier information whether is stored in standby configuration file.
It should be noted that determining in wireless device configuration file whether be stored with corresponding with first identifier information second The detailed process of identification information, can refer to step 102, and details are not described herein.
It further, can also be to each occurrence stored in wireless device configuration file in order to accelerate to match process Increase priority.At this point, wireless device configuration file is also used to store the priority of wireless adapter.
Correspondingly, step 404 specifically: according to the sequence of the priority of wireless adapter from high to low, successively determine institute Whether identical as first identifier information state the second identifier information stored in wireless device configuration file.
Specifically, being matched since the high occurrence of priority, it is first determined second in the occurrence of highest priority Whether identification information is identical as first identifier information, in different situation, determines in the high occurrence of preferential level Whether two identification informations are identical as first identifier information, until being matched to identical second identifier information.
It should be noted that the priority of each occurrence can be changed.It is being matched to and the wireless adapter In the case where the occurrence matched, the wireless adapter that system default user opens WiFi or is newly inserted into next time is most likely to be this Wireless adapter, it is possible to set highest for the priority of the occurrence matched, and by the priority of other occurrences Level-one is reduced respectively.
It should be noted that user into wireless device configuration file increase newly wireless adapter configuration information when It waits, the priority of newly added occurrence can be set to highest, and the priority of other occurrences is reduced into level-one respectively. When user deletes the occurrence in wireless device configuration file, the occurrence of priority is all deleted if they are the same, then may be used Increase level-one with the priority by priority lower than deleted occurrence.
It should be noted that it is different according to the result determined, execute different steps.In the wireless device configuration text In the case where being stored with second identifier information corresponding with first identifier information in part, step 405 is executed;In the wireless device In the case where not storing second identifier information corresponding with first identifier information in configuration file, step 406) 408 is executed.
405, second identifier information corresponding with first identifier information is stored in the wireless device configuration file In the case of, the driver of the wireless adapter is called according to activation bit corresponding with the second identifier information determined, Drive the wireless adapter.
Specifically, can refer to step 103, details are not described herein.
406, without storing second identifier information corresponding with first identifier information in the wireless device configuration file In the case where, open wireless parameter configuration interface.
Specifically, the second identifier information in first identifier information and wireless device configuration file is carried out matched mistake Cheng Zhong illustrates not configure this model if not found out second identifier information identical with the first identifier information Wireless parameter configuration interface can be opened at this time, make user to the wireless adaptation being newly inserted by the relevant information of wireless adapter Device is configured.
407, first identifier information and activation bit are obtained from wireless parameter configuration interface.
Wherein, the wireless parameter configuration interface is the interface that user and equipment carry out information exchange.
Specifically, can refer to step 201a, details are not described herein.
408, first identifier information and activation bit are added to the wireless device configuration file, obtained described wireless suitable The driver of orchestration is simultaneously associated with the activation bit of the wireless adapter and the driver of the wireless adapter, then root The wireless adapter is driven according to driver.
It described is wirelessly set it should be noted that the second identifier information and activation bit of the wireless adapter are added to Standby configuration file, obtain the driver of the wireless adapter and be associated with the wireless adapter activation bit and the nothing The process of the driver of line adapter can refer to step 202a, and details are not described herein.
The method of carrying out practically driver and the method phase for driving wireless adapter according to driver in the prior art Together, details are not described herein.
The embodiment of the invention provides a kind of methods for driving wireless adapter, obtain wireless adapter from wireless adapter First identifier information;Determine whether there is the wireless device configuration file;The wireless device configuration file is being not present In the case where, create the wireless device configuration file;There are the wireless device configuration file, determine wireless Whether with first identifier information corresponding second identifier information is stored in device configuration file;In the wireless device configuration text In the case where being stored with second identifier information corresponding with first identifier information in part, according to the second identifier information determined Corresponding activation bit calls the driver of the wireless adapter, drives the wireless adapter;In the wireless device In the case where not storing second identifier information corresponding with first identifier information in configuration file, opens wireless parameter and configure boundary Face configures the relevant information of the wireless adapter.In this way by having increased the identification information for being stored with wireless adapter and driving newly The wireless device configuration file of information, wireless adapter must can be configured by modifying program in the prior art by changing The method of parameter, as long as so that modification wireless device configuration file, it will be able to update the wireless adapter that the equipment is supported, side Configuration to wireless adapter.Meanwhile as long as identification information and the drive of multiple wireless adapters are stored in configuration file Dynamic information relieves an equipment in the prior art and only supports one kind then the equipment can support a variety of wireless adapters The limitation of wireless adapter.It further, is that each occurrence increases priority in wireless device configuration file, so that in nothing In line device configuration file determine second identifier information corresponding with first identifier information when can be high from priority occurrence It searches, accelerates matching process, finally shorten the time of the driver of load wireless adapter.
As shown in figure 5, it is a kind of functional schematic of driving device provided by the invention.Refering to what is shown in Fig. 5, the driving Device includes: acquiring unit 501, determination unit 502 and processing unit 503.
Acquiring unit 501, for obtaining the first identifier information of the wireless adapter from wireless adapter;Described first Identification information is for wireless adapter described in unique identification;
Determination unit 502, for determine whether be stored in wireless device configuration file it is corresponding with first identifier information Second identifier information;The wireless device configuration file is for storing second identifier information and corresponding with the second identifier information Activation bit;The activation bit is associated with the driver of the wireless adapter;
Optionally, at least two second identifier information are stored in the wireless device configuration file and with described at least two The corresponding activation bit of each second identifier information in a second identifier information.
Specifically, the first identifier information include: the wireless adapter identification of the manufacturer VID and the wireless adaptation The product identification PID of device.The activation bit of the wireless adapter includes: the storage road of the driver of the wireless adapter Diameter.
Processing unit 503, for being stored with corresponding with the first flag information in the wireless device configuration file In the case where two identification informations, the wireless adapter is called according to activation bit corresponding with the second identifier information determined Driver, drive the wireless adapter.
Further, the processing unit 503 is also used to for the first identifier information and activation bit being added to described Wireless device configuration file;
The acquiring unit 501, is also used to obtain the driver of the wireless adapter;
The processing unit 503 is also used to be associated with the activation bit and the wireless adapter of the wireless adapter Driver.
Further, the acquiring unit 501 is also used to obtain the first identifier information from wireless parameter configuration interface And activation bit;The wireless parameter configuration interface is the interface that user and equipment carry out information exchange;
Correspondingly, the acquiring unit 501, is specifically used for downloading the nothing from server according to the first identifier information The driver of line adapter.
Further, the determination unit 502 is also used to determine whether that there are the wireless device configuration files;
The processing unit 503 is also used to create the nothing there is no in the case where the wireless device configuration file Line device configuration file;
Correspondingly, the determination unit 502, specifically for there are the wireless device configuration file, really Determine whether to be stored with second identifier information corresponding with first identifier information in wireless device configuration file.
Further, the wireless device configuration file is also used to store the priority of wireless adapter;
At this point, the determination unit 502, specifically for the sequence according to the priority of wireless adapter from high to low, according to Whether the second identifier information stored in the secondary determination wireless device configuration file is identical as the first identifier information.
The embodiment of the invention provides a kind of driving devices, and the first identifier letter of wireless adapter is obtained from wireless adapter Breath;Determine second identifier information corresponding with first identifier information whether is stored in wireless device configuration file;In the nothing In the case where being stored with second identifier information corresponding with first identifier information in line device configuration file, according to determine The corresponding activation bit of second identifier information calls the driver of the wireless adapter, drives the wireless adapter.This Sample passes through the wireless device configuration file for having increased the identification information and activation bit that are stored with wireless adapter newly, changes existing The method that must can configure the parameter of wireless adapter by modifying program in technology, as long as so that modification wireless device is matched Set file, it will be able to update the wireless adapter that the equipment is supported, facilitate the configuration to wireless adapter.Meanwhile as long as The identification information and activation bit of multiple wireless adapters are stored in configuration file, then the equipment can support a variety of nothings Line adapter relieves the limitation that an equipment in the prior art only supports a kind of wireless adapter.Further, it is wirelessly setting It is that each occurrence increases priority in standby configuration file, so that the determining and first identifier information in wireless device configuration file It can be searched from the high occurrence of priority when corresponding second identifier information, accelerate matching process, finally shorten load The time of the driver of wireless adapter.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read) Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. are various can store The medium of program code.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (12)

1. a kind of method for driving wireless adapter characterized by comprising
The first identifier information of the wireless adapter is obtained from wireless adapter;The first identifier information is used for unique identification The wireless adapter;
Determine second identifier information corresponding with the first identifier information whether is stored in wireless device configuration file;It is described Wireless device configuration file is for storing second identifier information and activation bit corresponding with the second identifier information;The nothing Data in line device configuration file can be by modification, increase, deletion;The activation bit is associated with the drive of the wireless adapter Dynamic program;
The case where second identifier information corresponding with the first identifier information is stored in the wireless device configuration file Under, the driver of the wireless adapter is called according to activation bit corresponding with the second identifier information determined, Drive the wireless adapter;
Second identifier letter corresponding with the first identifier information whether is stored in the determining wireless device configuration file Before breath, or without storing second identifier letter corresponding with the first identifier information in the wireless device configuration file In the case where breath, further includes:
The first identifier information and activation bit are added to the wireless device configuration file;
Obtain the driver of the wireless adapter, and be associated with the wireless adapter activation bit and the wireless adaptation The driver of device;
The wireless device configuration file is also used to store the priority of wireless adapter;
Whether with the first identifier information corresponding second identifier information is stored in the determining wireless device configuration file Include:
According to the sequence of the priority of wireless adapter from high to low, successively determines and stored in the wireless device configuration file Whether second identifier information is identical as the first identifier information.
2. the method according to claim 1, wherein being stored at least two in the wireless device configuration file Second identifier information and activation bit corresponding with second identifier information each in at least two second identifiers information.
3. the method according to claim 1, wherein
It is described the first identifier information and activation bit are added to the wireless device configuration file before, further includes:
The first identifier information and activation bit are obtained from wireless parameter configuration interface;The wireless parameter configuration interface is to use Family and equipment carry out the interface of information exchange;
The driver for obtaining the wireless adapter includes:
The driver of the wireless adapter is downloaded from server according to the first identifier information.
4. method according to claim 1-3, which is characterized in that in the determining wireless device configuration file Whether it is stored with before second identifier information corresponding with the first identifier information, further includes:
Determine whether there is the wireless device configuration file;
In the case where the wireless device configuration file is not present, the wireless device configuration file is created;
Whether with the first identifier information corresponding second identifier information is stored in the determining wireless device configuration file Include:
There are the wireless device configuration file, determine whether be stored in wireless device configuration file with it is described The corresponding second identifier information of first identifier information.
5. method according to claim 1-3, which is characterized in that the first identifier information includes: the nothing The identification of the manufacturer VID of the line adapter and product identification PID of the wireless adapter.
6. method according to claim 1-3, which is characterized in that the activation bit packet of the wireless adapter It includes: the store path of the driver of the wireless adapter.
7. a kind of driving device characterized by comprising
Acquiring unit, for obtaining the first identifier information of the wireless adapter from wireless adapter;The first identifier letter Breath is for wireless adapter described in unique identification;
Determination unit, for determining whether be stored in wireless device configuration file and the first identifier information corresponding second Identification information;The wireless device configuration file is for storing second identifier information and drive corresponding with the second identifier information Dynamic information;Data in the wireless device configuration file can be by modification, increase, deletion;Described in the activation bit association The driver of wireless adapter;
Processing unit, for being stored with the second mark corresponding with the first identifier information in the wireless device configuration file In the case where knowing information, the wireless adapter is called according to activation bit corresponding with the second identifier information determined Driver, drive the wireless adapter;
The processing unit is also used to for the first identifier information and activation bit being added to the wireless device configuration text Part;
The acquiring unit is also used to obtain the driver of the wireless adapter;
The processing unit is also used to be associated with the activation bit of the wireless adapter and the driving journey of the wireless adapter Sequence;
The wireless device configuration file is also used to store the priority of wireless adapter;
The determination unit successively determines the nothing specifically for the sequence according to the priority of wireless adapter from high to low Whether the second identifier information stored in line device configuration file is identical as the first identifier information.
8. driving device according to claim 7, which is characterized in that be stored at least in the wireless device configuration file Two second identifier information and driving corresponding with second identifier information each in at least two second identifiers information Information.
9. driving device according to claim 7, which is characterized in that
The acquiring unit is also used to obtain the first identifier information and activation bit from wireless parameter configuration interface;It is described Wireless parameter configuration interface is the interface that user and equipment carry out information exchange;
The acquiring unit, specifically for downloading the driving of the wireless adapter from server according to the first identifier information Program.
10. according to the described in any item driving devices of claim 7-9, which is characterized in that
The determination unit is also used to determine whether that there are the wireless device configuration files;
The processing unit is also used to create the wireless device there is no in the case where the wireless device configuration file Configuration file;
The determination unit, specifically for determining wireless device configuration there are the wireless device configuration file Whether with the first identifier information corresponding second identifier information is stored in file.
11. according to the described in any item driving devices of claim 7-9, which is characterized in that the first identifier information includes: institute State the identification of the manufacturer VID of wireless adapter and the product identification PID of the wireless adapter.
12. according to the described in any item driving devices of claim 7-9, which is characterized in that the driving of the wireless adapter is believed Breath includes: the store path of the driver of the wireless adapter.
CN201510043364.2A 2015-01-28 2015-01-28 A kind of method and device driving wireless adapter Active CN105988943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510043364.2A CN105988943B (en) 2015-01-28 2015-01-28 A kind of method and device driving wireless adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510043364.2A CN105988943B (en) 2015-01-28 2015-01-28 A kind of method and device driving wireless adapter

Publications (2)

Publication Number Publication Date
CN105988943A CN105988943A (en) 2016-10-05
CN105988943B true CN105988943B (en) 2019-09-20

Family

ID=57035618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510043364.2A Active CN105988943B (en) 2015-01-28 2015-01-28 A kind of method and device driving wireless adapter

Country Status (1)

Country Link
CN (1) CN105988943B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220191B (en) * 2017-05-27 2020-10-20 苏州浪潮智能科技有限公司 Storage device port configuration method and device
CN109951860B (en) * 2017-12-21 2022-07-08 深圳Tcl新技术有限公司 Method for acquiring WIFI information, smart television and storage medium
CN111615096B (en) * 2020-07-24 2020-11-06 支付宝(杭州)信息技术有限公司 Method and system for establishing wireless communication connection
TWI774429B (en) * 2021-06-17 2022-08-11 瑞昱半導體股份有限公司 Processor chip, dongle device, and operation method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581123A (en) * 2003-08-16 2005-02-16 三星电子株式会社 Method and apparatus for automatically mounting drive program and readable recording medium of computer
CN101382894A (en) * 2007-09-05 2009-03-11 北京软通科技有限责任公司 Method, system, computer, and server for downloading computer hardware device driver
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system
CN104079432A (en) * 2014-06-20 2014-10-01 珠海市君天电子科技有限公司 Method and device for processing abnormity of network equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9442741B2 (en) * 2013-05-15 2016-09-13 Tencent Technology (Shenzhen) Company Limited Method, terminal, server, and system for data processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581123A (en) * 2003-08-16 2005-02-16 三星电子株式会社 Method and apparatus for automatically mounting drive program and readable recording medium of computer
CN101382894A (en) * 2007-09-05 2009-03-11 北京软通科技有限责任公司 Method, system, computer, and server for downloading computer hardware device driver
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system
CN104079432A (en) * 2014-06-20 2014-10-01 珠海市君天电子科技有限公司 Method and device for processing abnormity of network equipment

Also Published As

Publication number Publication date
CN105988943A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US8621053B2 (en) Firmware update apparatus and program
CN103678319B (en) Resource file update method, device and system and server
CN108023765A (en) Device firmware upgrade method, apparatus and storage medium
CN103189851A (en) Apparatus and method for network driver injection into target image
CN105988943B (en) A kind of method and device driving wireless adapter
CN105760184B (en) A kind of method and apparatus of charging assembly
CN107783777A (en) A kind of upgrade method, equipment and the system of vehicle-mounted integral machine
CN107704282B (en) Loading method and device applied to embedded system
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN102567053A (en) Method and device for downgrading software version
CN104820676B (en) A kind of method and device for judging version number&#39;s size
CN107977223A (en) One kind configuration compliance check method and device
CN109062820A (en) A kind of software performance testing method and device
CN103440334B (en) Driver matching method and device of mobile terminal
CN105959451B (en) A kind of method and mobile terminal loading MBN
CN109791485A (en) Aerial modem firmware upgrade based on mesh network
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
CN114466387B (en) Updating method and device of configuration file of base station, storage medium and electronic device
CN111736858A (en) Terminal equipment upgrading method, storage medium and terminal equipment
CN105188154B (en) A kind of method, apparatus and system being automatically brought into operation smart machine
CN111858018B (en) Cgroup configuration method and device, computer equipment and storage medium
US20150195366A1 (en) Switching device, non-transitory computer readable medium and zoning setting method
CN102111446B (en) Device connection handling method, combination equipment and host equipment
CN105159848A (en) USB device control method, apparatus 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