CN106452847B - WIFI equipment intelligent identification Method and device - Google Patents
WIFI equipment intelligent identification Method and device Download PDFInfo
- Publication number
- CN106452847B CN106452847B CN201610843657.3A CN201610843657A CN106452847B CN 106452847 B CN106452847 B CN 106452847B CN 201610843657 A CN201610843657 A CN 201610843657A CN 106452847 B CN106452847 B CN 106452847B
- Authority
- CN
- China
- Prior art keywords
- built
- module
- wifi module
- wifi
- configuration file
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of WIFI module intelligent identification Method and devices, due to presetting mark and model corresponding with mark including at least one WIFI module in WIFI support catalogue, to, after the mark for the module for getting access, it can recognize at least one WIFI module, even if being that is different WIFI module, as long as being supported in catalogue in default WIFI, the identification to different WIFI modules can be realized, that is at least one WIFI module of identification can be realized, the partition holding is written into the model of the built-in WIFI module recognized, generate the corresponding configuration file of the built-in WIFI module, it is subsequent when reusing built-in WIFI module, it the configuration file can be read can recognize terminal and use that type WIFI module, to real Existing Fast W IFI module identification.
Description
Technical field
The present invention relates to technical field of intelligence, in particular to a kind of WIFI equipment intelligent identification Method and device.
Background technique
With the development of intellectual technology, intelligent terminal is widely used in people's life, wherein with Android complete machine
For representative intelligent terminal more by the welcome of user.It under normal circumstances, include Master control chip in Android (Android) complete machine
That is CPU, built-in WIFI (Wireless-Fidelity, Wireless Fidelity) module and other function module, CPU and built-in WIFI
Pass through USB (Universal Serial Bus, universal serial bus) or SDIO (Secure Digital Input between module
And Output Card, secure digital input-output card) bus connection communicated.
However, different WIFI modules can be used in different Android complete machines in order to meet the needs of different users, that
It is directed to different WIFI modules, needs to carry out different software configuration, that is to say, that different WIFI modules respectively use corresponding
A set of software configuration is identified, for example, WIFI module A is identified that WIFI module B is adopted using corresponding a set of software configuration
It is identified with corresponding another set of software configuration, i.e., each Android complete machine, which can only manage, a set of can only identify itself WIFI mould
The software configuration of block, this is unfavorable for software configuration management.
Summary of the invention
Based on this, it is necessary to which the technology that different software configuration need to be used to be identified for existing different WIFI modules is asked
Topic provides a kind of WIFI equipment intelligent identification Method and dress that at least one WIFI module can be identified using same software configuration
It sets.
A kind of WIFI module intelligent identification Method is provided, comprising the following steps:
When the configuration file of built-in WIFI module is not present in partition holding, the built-in WIFI module work is controlled;
Obtain the mark of the module accessed on interface bus;
According to the mark of the module of the access, searches in the module of the access whether to have and be present in default WIFI and support
Built-in WIFI module in catalogue, wherein the default WIFI is supported include the mark of at least one WIFI module in catalogue with
And model corresponding with mark;
If so, according to the mark of the built-in WIFI module, from the default WIFI support to obtain in catalogue with it is described interior
Set the corresponding model of mark of WIFI module;
The partition holding is written into the model of the built-in WIFI module, generates that described built-in WIFI module is corresponding matches
Set file.
The present invention also provides a kind of WIFI module intelligent identification devices, comprising:
Control module when for the configuration file of built-in WIFI module to be not present when partition holding, controls described built-in
WIFI module work;
Identifier acquisition module, for obtaining the mark of the module accessed on interface bus;
Enquiry module, whether for the mark according to the module of the access, searching in the module of the access has presence
The built-in WIFI module in catalogue is supported in default WIFI, wherein the default WIFI supports to include at least one in catalogue
The mark of WIFI module and model corresponding with mark;
Model obtains module, and the query result for the enquiry module is when being, according to the built-in WIFI module
Mark is supported to obtain model corresponding with the mark of the built-in WIFI module in catalogue from the default WIFI;
Configuration file generation module generates institute for the partition holding to be written in the model of the built-in WIFI module
State the corresponding configuration file of built-in WIFI module.
Above-mentioned WIFI equipment intelligent identification Method and device support to include at least one WIFI in catalogue due to default WIFI
The mark of module and model corresponding with mark, thus, after the mark for the module for getting access, it can recognize at least one
WIFI module, that is to say, that even if being different WIFI module, as long as supporting to can be realized in catalogue to not in default WIFI
With the identification of WIFI module, that is to say, that can be achieved to identify at least one WIFI module, by the built-in WIFI module recognized
The partition holding is written in model, generates the corresponding configuration file of the built-in WIFI module, subsequent to reuse built-in WIFI mould
When block, it the configuration file can be read can recognize terminal and use that type WIFI module, to realize Fast W IFI
Module identification.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the WIFI equipment intelligent identification Method of embodiment;
Fig. 2 is the flow chart of the WIFI equipment intelligent identification Method of another embodiment;
Fig. 3 is a kind of module map of the WIFI equipment intelligent identification device of embodiment;
Fig. 4 is the module map of the WIFI equipment intelligent identification device of another embodiment.
Specific embodiment
Referring to Fig. 1, providing a kind of WIFI module intelligent identification Method of embodiment, comprising the following steps:
S110: when the configuration file of built-in WIFI module is not present in partition holding, built-in WIFI module work is controlled.
For being built-in with the terminal of WIFI module, when needing to open built-in WIFI module work, need to built-in WIFI
Module is identified, is driven accordingly again after having identified, to start the corresponding function that built-in WIFI module has been selected.It is depositing
When storing up the configuration file that built-in WIFI module is not present in subregion, the also unrecognized mistake of the built-in WIFI module is indicated, that is,
The model for saying the also unknown built-in WIFI module, needs to identify it at this time, i.e., controls built-in WIFI mould by CPU first
Block powers on and by controlling the corresponding pin of built-in WIFI module so that it is started to work.For example, controlling built-in WIFI module
The state of the pins such as the RESET for powering on, and controlling built-in WIFI module is set as corresponding working condition, allows built-in WIFI module
It works together, that is, opens built-in WIFI module, so that built-in WIFI module is started to work, so that corresponding interface bus can find this
On built-in WIFI module carry, the built-in WIFI module can be recognized and existed.
S120: the mark of the module accessed on interface bus is obtained.
Built-in WIFI module passes through interface bus and CPU connection communication, wherein interface bus include USB interface bus and
SDIO interface bus.After built-in WIFI module works on power, built-in WIFI module is linked into interface bus, by total to interface
The detection of line can recognize the presence of built-in WIFI module.Except built-in WIFI module, may connect containing other equipment carry
Mouth bus realizes the communication with CPU, for example, mouse carry can carry out data transmission in interface bus with CPU, however, being linked into
Each module of interface bus has a mark, and identical or different module can be distinguished by the mark.For example, by interior
The mark for setting WIFI module can distinguish the built-in WIFI module of same model or different model, due to the different model of different manufacturers
WIFI module needs different drivings, and the mark of module can be the combination of producer identification and product identification, so can be with area
Divide the WIFI module of the different model of different manufacturers' productions.Specifically, mark includes producer identification (VID) and product identification
(PID), after module is linked into interface bus, module access can have been recognized by the detection to interface bus, worked as detection
To after there is module access, the producer identification and product identification of module can be respectively present/sys/devices/ catalogue under with.usb
(for example, the production trade mark of module in idVendor and idProduct file under the catalogue started under the catalogue of ending with usb
Know in presence/sys/devices/ff500000.usb/usb1/idVendor), by traversing above-mentioned file, obtain the access
The VID and PID of module.
S130: it according to the mark of the module of access, searches in the module of access whether to have and is present in default WIFI and supports mesh
Built-in WIFI module in record.
If so, executing following steps:
S140: it according to the mark of built-in WIFI module, supports to obtain in catalogue and built-in WIFI module from default WIFI
Identify corresponding model.
Wherein, mark and type corresponding with mark including at least one WIFI module in WIFI support catalogue are preset
Number, that is to say, that support to include the marks of all WIFI modules that can support identification in catalogue and corresponding in default WIFI
Model then supports to include A, B and C tri- in catalogue in default WIFI for example, identification tri- kinds of model WIFI modules of A, B and C can be supported
The mark of kind model and corresponding WIFI module.Due to the module accessed on interface bus include except WIFI module also
Other modules, these other modules are not support in catalogue in default WIFI, so accessing in getting interface bus
It after the mark of module, needs to screen all modules of access, that is, filters out the built-in WIFI module that can support identification.Example
Such as, the module that mark is respectively 1 and 2 has been got, default WIFI supports to include the WIFI module for supporting identification in catalogue
It is identified as 1, corresponding model A, then what is got is identified as the WIFI module that 1 module is support identification, and model A, will
It is identified as 2 module to exclude, it is final lookup result that is finally obtained, which is identified as 1 built-in WIFI module,.That is sentence
The identifying whether of the disconnected module got has found module in the module of the access of acquisition in default WIFI support catalogue
Mark default WIFI support catalogue in, that is, find support identification built-in WIFI module, in finding
The mark for setting WIFI module is supported to obtain corresponding model in catalogue from default WIFI.If the module of access is not present
It is supported in catalogue in default WIFI, that is to say, that there is no the built-in WIFI module for supporting to identify in the module of access, then prompt not
It can identify WIFI module.
S150: being written partition holding for the model of built-in WIFI module, generates the corresponding configuration file of built-in WIFI module.
It is found in the module of access after being present in the built-in WIFI module that default WIFI is supported in catalogue, specification interface
There is the built-in WIFI module that can support identification in the module of bus access, by the model write-in storage point of the built-in WIFI module
Area generates the corresponding configuration file of built-in WIFI module.It include the built-in WIFI module that terminal itself uses in configuration file
Model, that is to say, that the model of the built-in WIFI module that terminal itself uses can be saved in configuration file, made subsequent
With in the process, the model that can be obtained built-in WIFI module need to be only read to configuration file, built in quickly knowing and use
Which kind of type is WIFI module be, to fast implement the identification of built-in WIFI module.
Above-mentioned WIFI module intelligent identification Method supports to include at least one WIFI module in catalogue due to presetting WIFI
Mark and model corresponding with mark, thus, after the mark for the module for getting access, it can recognize at least one WIFI mould
Block, that is to say, that even if being different WIFI module, as long as supporting to can be realized in catalogue to different WIFI in default WIFI
The identification of module, that is to say, that can be achieved to identify at least one WIFI module, the model of the built-in WIFI module recognized is write
Enter the partition holding, generates the corresponding configuration file of the built-in WIFI module, it is subsequent when reusing built-in WIFI module, it can
It reads the configuration file and can recognize terminal and use that type WIFI module, to realize that Fast W IFI module is known
Not.
Referring to Fig. 2, in one of the embodiments, when the configuration file of built-in WIFI module is not present in partition holding
When, before controlling the step S210 that built-in WIFI module works, further comprise the steps of:
S201: reception pattern selection instruction, and select according to mode selection command the Working mould of terminal built-in WIFI module
Formula.
When partition holding is there are when the configuration file of built-in WIFI module, or to generate the corresponding configuration of built-in WIFI module literary
After part, further comprise the steps of:
S260: reading configuration file, obtains the model of built-in WIFI module.
S270: load driving corresponding with the model of built-in WIFI module.
S280: according to the driving of the built-in WIFI module of load, start corresponding with the operating mode of built-in WIFI module
Service.
The corresponding operating mode of WIFI module has common WIFI mode (the i.e. common mould by WIFI connection network
Formula, also referred to as STA (Station, base station) mode), support direct-connected or Miracast (be starting Wi-Fi CERTIFIED
MiracastTMAuthentication item, user can rapidly equipment room transmit video) WIFI P2P mode (point-to-point connection mould
Formula), as the SoftAP mode of hotspot, (as the mode of hot spot, terminal allows the nothing of exterior terminal as wireless access point
Gauze is connected to the terminal, is surfed the Internet by the network of terminal), user can select corresponding function according to demand.For example, working as user
When needing to connect network, common WIFI mode capabilities are selected, after user selectes the operating mode of WIFI module, when
When the configuration file of built-in WIFI module is not present in partition holding, carries out built-in WIFI module and identify and generate configuration file, when
There are (identify to built-in WIFI module before and produced and match when the configuration file of built-in WIFI module for partition holding
Set file), or after generating the built-in corresponding configuration file of WIFI module, can be opened according to configuration file built in WIFI mould
The selected operating mode of block, i.e. reading configuration file, obtain the model of built-in WIFI module, different WIFI modules correspond to different
Driving, thus load driving corresponding with the model of built-in WIFI module, to start the operating mode pair with built-in WIFI module
The service answered.That is corresponding service is started according to selected operating mode, such as common WIFI mode corresponds to wpa_
Supplicant service, WIFI P2P mode correspond to p2p_supplicant service, and SoftAP mode corresponds to hostapd service.
After starting corresponding service according to operating mode, when WIFI module opens work, work into corresponding operating mode.
In one of the embodiments, when the configuration file of built-in WIFI module is not present in partition holding, built in control
The step S110 of WIFI module work includes: when there are factory's subregions for partition holding, and factory's subregion is not deposited with user partition
In the corresponding configuration file of built-in WIFI module, or works as partition holding and factory's subregion is not present, and there is no interior for user partition
When setting the corresponding configuration file of WIFI module, built-in WIFI module work is controlled.
It include being used eventually for the system partitioning of memory system data and for storing user in the partition holding of terminal
The user partition of the data generated during end, that is to say, that system partitioning storage is data required for system is run, and is
Data will not be removed when system factory reset, and user partition storage is user using the data generated, and system is restored to dispatch from the factory
Data are all removed when setting, however, factory's subregion is a kind of independent subregion for being different from system partitioning and user partition,
For storing data, but in factory's subregion the data stored will not be removed when carrying out factory reset, and factory's subregion is root
The subregion being configured is needed according to product design, that is to say, that the terminal having has factory's subregion, and some terminals do not have factory's subregion,
To need whether to judge partition holding in configuration file of the partition holding for judging terminal with the presence or absence of built-in WIFI module
There are factory's subregions, when there are the configuration texts for when factory's subregion, judging whether factory's subregion has built-in WIFI module for partition holding
Part if not having, then judges that user partition is equivalent to factory if also not having with the presence or absence of the configuration file of built-in WIFI module pair
The corresponding configuration file of built-in WIFI module is not present in subregion and user partition, at this time, it may be necessary to carry out to built-in WIFI module
Identification and configuration file generate, i.e., control built-in WIFI module work first.Or it when factory's subregion is not present in partition holding, needs
User partition is judged with the presence or absence of the configuration file of built-in WIFI module, when built-in WIFI mould is not present in user partition
When the corresponding configuration file of block, needs to carry out built-in WIFI module identification and configuration file generates, control built-in WIFI module
Work.
Partition holding is written into the model of built-in WIFI module in one of the embodiments, generates built-in WIFI module
The step S150 of corresponding configuration file is comprising steps of when partition holding is there are when factory's subregion, by the type of built-in WIFI module
Number write-in factory's subregion, generates the built-in corresponding configuration file of WIFI module;It, will be interior when factory's subregion is not present in partition holding
The user partition for setting the model write-in partition holding of WIFI module, generates the corresponding configuration file of built-in WIFI module.
During generating configuration file, selection generates configuration file in which subregion and directly affects subsequent starting Working mould
The efficiency of the corresponding service of formula.For example, factory's subregion is written into the model of built-in WIFI module when if there is factory's subregion,
Generate the corresponding configuration file of built-in WIFI module, that is to say, that configuration file is in factory's subregion, when avoiding factory reset
User partition data, which are removed, to be needed to re-recognize when causing open WIFI next time, and efficiency is bad, i.e., when there are factory's subregion,
Configuration file is stored in factory's subregion.However, when be not present factory's subregion when, by configuration file be stored in user partition so as to
Subsequent use.
After generating the built-in corresponding configuration file of WIFI module in one of the embodiments, further comprise the steps of: to matching
Set file setting path tag.
After configuration file is formed and stored in factory's subregion or user partition, path tag is carried out to configuration file, with
Continue when needing to read configuration file after an action of the bowels, is that there are factory's subregions or user to divide according to the path tag that is, configuration file
Area no longer needs to successively carry out traversal lookup to factory's subregion and user partition, improves reading speed, to improve the related function of starting
The efficiency of energy.
Above-mentioned WIFI module intelligent identification Method is illustrated with a specific embodiment below.
Selected WIFI function: the corresponding function, that is, operating mode of currently used WiFi module have common WIFI mode,
Support direct-connected or Miracast WIFI P2P mode, the SoftAP mode as hotspot, user selectes phase according to demand
The function of answering.
Judge configuration file whether in factory's subregion: judge either with or without factory's subregion exist, and factory's subregion whether
There are corresponding configuration files, such as whether in the presence of/factory/wifi_type file.
Judge configuration file whether in user partition: i.e. when configuration file is not in factory's subregion, judging that configuration file is
It is no to be stored in user partition, such as whether in the presence of/data/misc/wifi/wifi_type file.
WIFI automatic identification simultaneously generates configuration file: matching when all can not find wifi_type in factory's subregion and user partition
File is set, then the step of carrying out built-in WIFI module identification and generating configuration file.Specific step is as follows:
WIFI is powered on and status pin control: built-in WiFi module being powered on, and by the RESET of built-in WIFI module
Etc. status pins corresponding working condition is set, built-in WIFI module or chip operation are allowed, so that corresponding bus can be sent out
Now on the interface carry, module presence is recognized.
Obtain the mesh individually to end up under VID and PID: traversal/sys/devices/ catalogue of usb bus upper module with .usb
With idVendor the and idProduct file under the catalogue of usb beginning (such as/sys/devices/ff500000.usb/ under record
Usb1/idVendor), the VID and PID of the usb module of access are obtained.It is total that single USB is individually corresponded to the catalogue that .usb ends up
Line a, that is to say, that usb bus is one correspondingWith.usb it is total may to be provided with multiple USB in the terminal for the catalogue to end up
Line, can access module on each usb bus, and the mark of the module accessed on each usb bus is stored in corresponding to be ended up with .usb
Catalogue in.
Successively judge whether the VID and PID of the USB module got support in catalogue in default WIFI.
It judges whether there is next USB module: successively judging the VID and PID of the USB module got whether default
WIFI is supported in catalogue, if the VID and PID that obtain the USB module on single usb bus do not support catalogue in default WIFI
In, then judge/sys/devices catalogue under whether have it is next with.The catalogue of usb ending, and exist under the catalogue and opened with usb
Head catalogue, if any it is next with.The catalogue of usb ending and there is the catalogue that starts with usb under the catalogue, then it represents that under having
A usb bus, and have access usb module on the usb bus, then next traversal processing is carried out, above-mentioned next USB can be obtained
The VID and PID of the module accessed in bus, then be made whether to support to be judged in catalogue in default WIFI.If any next
With.The catalogue of usb ending, but there is no the catalogue started with usb, then be further continued for continuing to search whether there is also in addition down
With.Usb ending catalogue, and so on, until not with.The catalogue of usb ending.If passing through judgement/sys/devices mesh
Under record it is no it is next with.The catalogue of usb ending illustrates that the WIFI module for supporting identification, i.e., institute in terminal is not present in usb bus
There is usb bus that the WIFI module for supporting identification is not present, is judged again in SDIO bus at this time with the presence or absence of support identification
WIFI module, i.e. execution following steps:
It obtains and is opened under VID and PID: traversal/sys/bus/sdio/devices catalogue of SDIO bus upper module with sdio
Vendor and device file (such as/sys/bus/sdio/devices/sdio:0001:1/vendor) under the catalogue of head obtains
Take the VID and PID of the SDIO module.
Successively judge whether the VID and PID of the SDIO module got support in catalogue in default WIFI.
It judges whether there is next SDIO module: successively judging the VID and PID of the SDIO module got whether default
WIFI is supported in catalogue, if the VID and PID of single SDIO module are not present, judges/sys/bus/sdio/devices mesh
Either with or without next catalogue started with sdio under record, indicates that next SDIO equipment exists if existing, then carry out next time time
Processing is gone through, is such as not present, illustrating SDIO bus, there is no the WIFI modules for supporting identification, that is to say, the mould accessed from SDIO bus
Block is not present in default WIFI and supports then to prompt the WIFI module that do not support in catalogue, and controls WIFI power-off.
The WIFI module that do not support is prompted, and controls WIFI power-off: when identification is less than current WiFi module, CPU meeting
Automatically the function that built-in WIFI module is selected is done into closing processing, current WIFI module is not supported with prompt and WiFi is carried out
Power down process avoids the waste of power consumption.But such case is seldom to occur when users use, in plant produced if it find that
The problem is only possible to be that there are problem or electrifying timing sequence problems for hardware welding, can carry out at reply to corresponding problem respectively
Reason.
It judges whether there is factory's subregion: supporting mesh when the VID and PID of the USB module got are present in default WIFI
In record or when the VID and PID of the SDIO module that get are present in default WIFI and support in catalogue, factory point is judged whether there is
Area (such as/factory) avoids restoring to dispatch from the factory and if so, the model of the built-in WIFI module recognized is write the subregion
User partition data, which are removed, after setting causes opening WIFI needs next time to re-recognize, and asks so as to cause user experience is bad
Topic.The model of the built-in WIFI module recognized is namely write into factory's subregion (such as/factory/wifi_type file),
And ID of trace route path is carried out to the configuration file in currently used factory's subregion.When factory's subregion is not present, by what is recognized
Built-in WIFI model writes user partition (such as/data/misc/wifi/wifi_type file), and to currently used user
Configuration file in subregion carries out ID of trace route path.
WIFI automatic identification and after generating configuration file, then execute following steps:
It reads configuration file: reading wifi_type file, obtain the model for the built-in WIFI that terminal uses;
It loads WIFI driving: calling insmod (by order of the given module loading into kernel) load model corresponding
WIFI driving;
Starting correlation function service: corresponding service, such as wpa_ are started according to the function of selected built-in WIFI module
Supplicant, p2p_supplicant, hostapd service.
By above-mentioned WIFI module intelligent identification Method, the built-in WIFI module that terminal itself uses can be identified,
Default WIFI supports mark and corresponding model in catalogue including at least one WIFI module, that is to say, that can be achieved at least
A kind of identification of WIFI module, without carrying out different software configurations for different WIFI modules to realize the knowledge of disparate modules
Not, software configuration management is promoted, further, since at least one WIFI module can be realized using identical software configuration,
The identification of multiple modules is realized without a variety of different software configurations, thus, when plant produced, avoids various software from configuring
Providing mistake causes heavy industry to operate, and improves production efficiency.In addition, user is led to without confirming products configuration when terminal software upgrading
The identification to built-in WIFI module is crossed, that is, may know that the model of itself built-in WIFI module, it is soft so as to obtain corresponding upgrading
Part program is upgraded, and removes confirmation products configuration again without user.Meanwhile by CPU to built-in WIFI module power on
And pin control, the working condition of built-in WIFI module being controlled, when without opening WIFI, built-in WIFI mould can be disconnected
The power supply of block has carried out stringent function control to terminal, reduce energy consumption.
Referring to Fig. 3, providing a kind of WIFI module intelligent identification device of embodiment, comprising:
Control module 310 when for the configuration file of built-in WIFI module to be not present when partition holding, controls built-in WIFI
Module work.
Identifier acquisition module 320, for obtaining the mark of the module accessed on interface bus.
Enquiry module 330, for the mark according to the module of access, search in the module of access whether have be present in it is default
WIFI supports the built-in WIFI module in catalogue, wherein default WIFI supports the mark in catalogue including at least one WIFI module
Knowledge and model corresponding with mark.
Model obtains module 340, and the query result for enquiry module is when being, according to the mark of built-in WIFI module,
It supports to obtain model corresponding with the mark of built-in WIFI module in catalogue from default WIFI.
Configuration file generation module 350 generates built-in WIFI for partition holding to be written in the model of built-in WIFI module
The corresponding configuration file of module.
Above-mentioned WIFI module intelligent identification device supports to include at least one WIFI module in catalogue due to presetting WIFI
Mark and model corresponding with mark, thus, after the mark for the module for getting access, it can recognize at least one WIFI mould
Block, that is to say, that even if being different WIFI module, as long as supporting to can be realized in catalogue to different WIFI in default WIFI
The identification of module, that is to say, that can be achieved to identify at least one WIFI module, the model of the built-in WIFI module recognized is write
Enter the partition holding, generates the corresponding configuration file of the built-in WIFI module, it is subsequent when reusing built-in WIFI module, it can
It reads the configuration file and can recognize terminal and use that type WIFI module, to realize that Fast W IFI module is known
Not.
In the present embodiment, WIFI module intelligent identification device further includes cue module, the inquiry knot for enquiry module
When fruit is no, prompt cannot identify WIFI module.It is supported in catalogue if the module of access is not present in default WIFI, that is,
Say there is no the built-in WIFI module for supporting to identify in the module of access, then prompt cannot identify WIFI module.
Referring to Fig. 4, WIFI module intelligent identification device further includes operating mode selection mould in one of the embodiments,
Block 401, read module 460, loading module 470 and starting module 480.
Operating mode selecting module 401 is used for reception pattern selection instruction, and is selected in terminal according to mode selection command
Set the operating mode of WIFI module.
Read module 460, for when partition holding there are when the configuration file of built-in WIFI module or configuration file generate
After module generates the corresponding configuration file of built-in WIFI module, configuration file is read, obtains the model of built-in WIFI module.
Loading module 470, for loading driving corresponding with the model of built-in WIFI module.
Starting module 480, for the driving according to the built-in WIFI module of load, the work of starting and built-in WIFI module
The corresponding service of mode.
Control module in one of the embodiments, is also used to when partition holding is there are factory's subregion, and factory's subregion with
When built-in WIFI module corresponding configuration file is not present in user partition, or when factory's subregion is not present in partition holding, and use
There is no when the corresponding configuration file of built-in WIFI module, control built-in WIFI module work for family subregion.
Configuration file generation module includes: in one of the embodiments,
First generation module, for when partition holding is there are when factory's subregion, work to be written in the model of built-in WIFI module
Factory's subregion generates the corresponding configuration file of built-in WIFI module.
Second generation module, for when factory's subregion is not present in partition holding, the model of built-in WIFI module to be written
The user partition of partition holding generates the corresponding configuration file of built-in WIFI module.
Above-mentioned WIFI module intelligent identification device in one of the embodiments, further include:
Mark module, for path tag to be arranged to configuration file.
It is specific since above-mentioned WIFI module intelligent identification device and above-mentioned WIFI module intelligent identification Method correspond
Minutia also corresponds, and and therefore not to repeat here.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can not
Therefore limitations on the scope of the patent of the present invention are interpreted as.It should be pointed out that for those of ordinary skill in the art,
Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention
It encloses.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of WIFI module intelligent identification Method, which comprises the following steps:
When the configuration file of built-in WIFI module is not present in partition holding, the built-in WIFI module work is controlled;
Obtain the mark of the module accessed on interface bus;
According to the mark of the module of the access, searches in the module of the access whether to have and be present in default WIFI and support catalogue
In built-in WIFI module, wherein the default WIFI support include in catalogue at least one WIFI module mark and with
Identify corresponding model;
If so, according to the mark of the built-in WIFI module, from the default WIFI support to obtain in catalogue with it is described built-in
The corresponding model of the mark of WIFI module;
The partition holding is written into the model of the built-in WIFI module, generates the corresponding configuration text of the built-in WIFI module
Part.
2. WIFI module intelligent identification Method according to claim 1, which is characterized in that
When the configuration file that built-in WIFI module is not present when partition holding, the step of the built-in WIFI module work is controlled
Before rapid, reception pattern selection instruction is further comprised the steps of:, and terminal built-in WIFI module is selected according to the mode selection command
Operating mode;
When there are when the configuration file of built-in WIFI module or described generate that described built-in WIFI module is corresponding matches to partition holding
After setting file, further comprise the steps of:
The configuration file is read, the model of the built-in WIFI module is obtained;
Load driving corresponding with the model of the built-in WIFI module;
According to the driving of the built-in WIFI module of load, start clothes corresponding with the operating mode of the built-in WIFI module
Business.
3. WIFI module intelligent identification Method according to claim 1, which is characterized in that described when partition holding is not present
When the configuration file of built-in WIFI module, controlling the step of built-in WIFI module works includes:
When the partition holding is there are factory's subregion, and the built-in WIFI mould is not present in factory's subregion and user partition
When the corresponding configuration file of block, or when the partition holding is not present factory's subregion, and there is no in described for the user partition
When setting the corresponding configuration file of WIFI module, the built-in WIFI module work is controlled.
4. WIFI module intelligent identification Method according to claim 1, which is characterized in that described by the built-in WIFI mould
The step of partition holding is written in the model of block, generates the built-in WIFI module corresponding configuration file comprising steps of
When the partition holding is there are when factory's subregion, factory's subregion is written into the model of the built-in WIFI module, it is raw
At the corresponding configuration file of the built-in WIFI module;
When factory's subregion is not present in the partition holding, the partition holding is written into the model of the built-in WIFI module
User partition generates the corresponding configuration file of the built-in WIFI module.
5. WIFI module intelligent identification Method according to claim 4, which is characterized in that generate the built-in WIFI module
After corresponding configuration file, further comprise the steps of:
Path tag is arranged to the configuration file.
6. a kind of WIFI module intelligent identification device characterized by comprising
Control module when for the configuration file of built-in WIFI module to be not present when partition holding, controls the built-in WIFI mould
Block work;
Identifier acquisition module, for obtaining the mark of the module accessed on interface bus;
Enquiry module, for the mark according to the module of the access, search in the module of the access whether have be present in it is pre-
If WIFI supports the built-in WIFI module in catalogue, wherein the default WIFI supports to include at least one WIFI mould in catalogue
The mark of block and model corresponding with mark;
Model obtains module, and the query result for the enquiry module is when being, according to the mark of the built-in WIFI module,
It supports to obtain model corresponding with the mark of the built-in WIFI module in catalogue from the default WIFI;
Configuration file generation module generates in described for the partition holding to be written in the model of the built-in WIFI module
Set the corresponding configuration file of WIFI module.
7. WIFI module intelligent identification device according to claim 6, which is characterized in that further include operating mode selection mould
Block, read module, loading module and starting module;
The work selecting module is used for reception pattern selection instruction, and selectes terminal built-in according to the mode selection command
The operating mode of WIFI module;
The read module, for when there are when the configuration file of built-in WIFI module or the configuration file is raw for partition holding
After generating the corresponding configuration file of the built-in WIFI module at module, the configuration file is read, is obtained described built-in
The model of WIFI module;
The loading module, for loading driving corresponding with the model of the built-in WIFI module;
The starting module, for the driving according to the built-in WIFI module of load, starting and the built-in WIFI module
The corresponding service of operating mode.
8. WIFI module intelligent identification device according to claim 6, which is characterized in that the control module is also used to
When the partition holding is there are factory's subregion, and the built-in WIFI module pair is not present in factory's subregion and user partition
When the configuration file answered, or works as the partition holding and factory's subregion is not present, and there is no described built-in for the user partition
When the corresponding configuration file of WIFI module, the built-in WIFI module work is controlled.
9. WIFI module intelligent identification device according to claim 6, which is characterized in that the configuration file generation module
Include:
First generation module, for when the partition holding is there are when factory's subregion, the model of the built-in WIFI module to be write
Enter factory's subregion, generates the corresponding configuration file of the built-in WIFI module;
Second generation module is used for when factory's subregion is not present in the partition holding, by the model of the built-in WIFI module
The user partition of the partition holding is written, generates the corresponding configuration file of the built-in WIFI module.
10. WIFI module intelligent identification device according to claim 9, which is characterized in that further include:
Mark module, for path tag to be arranged to the configuration file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610843657.3A CN106452847B (en) | 2016-09-21 | 2016-09-21 | WIFI equipment intelligent identification Method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610843657.3A CN106452847B (en) | 2016-09-21 | 2016-09-21 | WIFI equipment intelligent identification Method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106452847A CN106452847A (en) | 2017-02-22 |
CN106452847B true CN106452847B (en) | 2019-09-17 |
Family
ID=58166425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610843657.3A Active CN106452847B (en) | 2016-09-21 | 2016-09-21 | WIFI equipment intelligent identification Method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106452847B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259209A (en) * | 2017-02-28 | 2018-07-06 | 新华三技术有限公司 | Method for configuring network equipment and device |
CN109951860B (en) * | 2017-12-21 | 2022-07-08 | 深圳Tcl新技术有限公司 | Method for acquiring WIFI information, smart television and storage medium |
CN111200877B (en) * | 2020-03-12 | 2022-12-20 | 深圳康佳电子科技有限公司 | Network connection method, terminal and storage medium |
CN112689160B (en) * | 2020-11-27 | 2022-12-09 | 烟台艾睿光电科技有限公司 | Video transmission method and device applied to image acquisition equipment |
CN113099433A (en) * | 2021-04-14 | 2021-07-09 | 深圳泰科晶显科技有限公司 | Android system-based dynamic method compatible with WIFI and Bluetooth modules of different manufacturers |
CN113489504B (en) * | 2021-07-05 | 2023-04-11 | 深圳市商汤科技有限公司 | Circuit board, electronic equipment, signal processing method and device |
CN113423116B (en) * | 2021-08-25 | 2021-12-24 | 广州朗国电子科技股份有限公司 | Configuration method of 5G hot spot default mode based on Android system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677921A (en) * | 2013-12-13 | 2014-03-26 | Tcl康钛汽车信息服务(深圳)有限公司 | Method and system for enabling Android system to be compatible with wifi chip |
CN105657063A (en) * | 2016-03-23 | 2016-06-08 | 北京百度网讯科技有限公司 | Data downloading method and device |
CN105653316A (en) * | 2015-12-24 | 2016-06-08 | 小米科技有限责任公司 | Method and device for monitoring unloaded situation of software |
US9406228B1 (en) * | 2009-08-19 | 2016-08-02 | Allstate Insurance Company | Assistance on the go |
-
2016
- 2016-09-21 CN CN201610843657.3A patent/CN106452847B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9406228B1 (en) * | 2009-08-19 | 2016-08-02 | Allstate Insurance Company | Assistance on the go |
CN103677921A (en) * | 2013-12-13 | 2014-03-26 | Tcl康钛汽车信息服务(深圳)有限公司 | Method and system for enabling Android system to be compatible with wifi chip |
CN105653316A (en) * | 2015-12-24 | 2016-06-08 | 小米科技有限责任公司 | Method and device for monitoring unloaded situation of software |
CN105657063A (en) * | 2016-03-23 | 2016-06-08 | 北京百度网讯科技有限公司 | Data downloading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106452847A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106452847B (en) | WIFI equipment intelligent identification Method and device | |
CN103744821B (en) | Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal | |
CN102802148B (en) | Method, system and device for card personalization over the air | |
CN107276866A (en) | Home appliance match somebody with somebody network method, device and home appliance | |
CN103281689B (en) | Method for network switching and version upgrading and terminal equipment | |
CN111885144B (en) | Equipment binding method and device | |
CN103365688A (en) | Method for automatic installation and synchronization of software between Android intelligent devices | |
CN106161100A (en) | A kind of internet of things equipment collocation method and internet-of-things terminal | |
US9008575B2 (en) | Portable mobile communication device and method of controlling near field communication | |
CN113498594B (en) | Control method and device of smart home system, electronic equipment and storage medium | |
CN102223735A (en) | Method and equipment for multi-baseband chips to share and access smart card | |
CN105262788A (en) | User terminal, server and user equipment | |
CN108702365A (en) | Adapter and its control method | |
CN104158709B (en) | A kind of optical module knows method for distinguishing and ports-Extending equipment | |
CN106445516B (en) | External radio trawl performance loading method and device | |
CN106781369A (en) | Robot operation control method, robot shutdown control method and device | |
CN110568946B (en) | Port control method, device and medium | |
CN109002306A (en) | Method for upgrading software, upgrading terminals, laser marking machine and laser marking system | |
CN105117254B (en) | Wireless communication module and operation method and device thereof | |
CN112130883A (en) | Software upgrading method and device, electronic equipment and storage medium | |
CN107659933A (en) | A kind of wireless device two-way pairing connection method, wireless device and storage medium | |
CN106843001A (en) | A kind of data processing method and smart jack | |
CN110109529A (en) | SD card method for controlling power supply, device, storage medium and electronic equipment | |
CN105978970A (en) | Control mode selection method and device | |
CN110459260A (en) | Automatic test switching device, method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |