CN106452847A - Intelligent identification method and device for WIFI equipment - Google Patents
Intelligent identification method and device for WIFI equipment Download PDFInfo
- Publication number
- CN106452847A CN106452847A CN201610843657.3A CN201610843657A CN106452847A CN 106452847 A CN106452847 A CN 106452847A CN 201610843657 A CN201610843657 A CN 201610843657A CN 106452847 A CN106452847 A CN 106452847A
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000005192 partition Methods 0.000 claims abstract description 80
- 238000009414 blockwork Methods 0.000 claims 1
- 238000003860 storage Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 9
- 230000005611 electricity Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000000638 solvent extraction Methods 0.000 description 3
- 101150089458 Usb1 gene Proteins 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 229940104697 arixtra Drugs 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- KANJSNBRCNMZMV-ABRZTLGGSA-N fondaparinux Chemical compound O[C@@H]1[C@@H](NS(O)(=O)=O)[C@@H](OC)O[C@H](COS(O)(=O)=O)[C@H]1O[C@H]1[C@H](OS(O)(=O)=O)[C@@H](O)[C@H](O[C@@H]2[C@@H]([C@@H](OS(O)(=O)=O)[C@H](O[C@H]3[C@@H]([C@@H](O)[C@H](O[C@@H]4[C@@H]([C@@H](O)[C@H](O)[C@@H](COS(O)(=O)=O)O4)NS(O)(=O)=O)[C@H](O3)C(O)=O)O)[C@@H](COS(O)(=O)=O)O2)NS(O)(=O)=O)[C@H](C(O)=O)O1 KANJSNBRCNMZMV-ABRZTLGGSA-N 0.000 description 1
- 238000005304 joining Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
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 invention relates to a WIFI module intelligent identification method and device, wherein a preset WIFI support catalog comprises at least one type of WIFI module identification and a type corresponding to the identification, so that after the identification of an accessed module is obtained, at least one type of WIFI module can be identified, namely even different WIFI modules can be identified, as long as the WIFI module is in the preset WIFI support catalog, the identification of different WIFI modules can be realized, namely, at least one type of WIFI module can be identified, the identified type of a built-in WIFI module is written into a storage partition, a configuration file corresponding to the built-in WIFI module is generated, and when the built-in WIFI module is used again, the configuration file can be read, namely, the type of the WIFI module used by a terminal can be identified, so that the quick WIFI module identification is realized.
Description
Technical field
The present invention relates to technical field of intelligence, more particularly to a kind of WIFI equipment intelligent identification Method and device.
Background technology
With the development of intellectual technology, intelligent terminal is widely used in people's life, wherein, with the whole machine of Android
Intelligent terminal for representing more is welcome by user.Generally, the whole machine of Android (ARIXTRA) includes Master control chip
That is CPU, built-in WIFI (Wireless-Fidelity, Wireless Fidelity) module and other functions module, CPU and built-in WIFI
Pass through USB (Universal Serial Bus, USB (universal serial bus)) or SDIO (Secure Digital Input between module
And Output Card, secure digital input-output card) bus connection communicated.
However, in order to meet the needs of different users, in the whole machine of different Android, different WIFI module can be adopted, that
For different WIFI module, need to carry out different software configuration, that is to say, that different WIFI module are each using corresponding
A set of software arrangements are identified, and for example, WIFI module A is identified using corresponding a set of software arrangements, and WIFI module B is adopted
It is identified with corresponding another set of software arrangements, i.e., the whole machine of each Android can only be managed and a set of can only recognize itself WIFI mould
The software arrangements of block, this is unfavorable for software configuration management.
Content of the invention
Based on this, it is necessary to which the technology that need to be identified using different software configuration for existing difference WIFI module is asked
Topic, provides WIFI equipment intelligent identification Method and dress that a kind of configuration of employing same software can recognize at least one WIFI module
Put.
A kind of WIFI module intelligent identification Method is provided, is comprised the following steps:
When partition holding does not have the configuration file of built-in WIFI module, control the built-in WIFI module work;
Obtain the mark of the module for accessing on interface bus;
According to the mark of the module of the access, whether have in the module for searching the access and be present in default WIFI support
Built-in WIFI module in catalogue, wherein, the default WIFI support catalogue include the mark of at least one WIFI module with
And with the corresponding model of mark;
If so, according to the mark of the built-in WIFI module, obtain from the default WIFI support catalogue interior with described
Put the corresponding model of mark of WIFI module;
The model of the built-in WIFI module is write the partition holding, the generation built-in WIFI module is corresponding to join
Put file.
The present invention also provides a kind of WIFI module intelligent identification device, including:
Control module, for there is no built-in WIFI module when partition holding configuration file when, control described built-in
WIFI module works;
Identifier acquisition module, for obtaining the mark of the module for accessing on interface bus;
Whether enquiry module, for the mark according to the module of the access, have presence in the module for searching the access
The built-in WIFI module in catalogue is supported in default WIFI, wherein, the default WIFI supports that catalogue includes at least one
The mark of WIFI module and with the corresponding model of mark;
Model acquisition module, for the enquiry module Query Result for be when, according to the built-in WIFI module
Mark, supports to obtain model corresponding with the mark of the built-in WIFI module catalogue from the default WIFI;
Configuration file generation module, for the model of the built-in WIFI module is write the partition holding, generates institute
State the corresponding configuration file of built-in WIFI module.
Due to presetting WIFI, above-mentioned WIFI equipment intelligent identification Method and device, support that catalogue includes at least one WIFI
The mark of module and with the corresponding model of mark, so as to, after the mark of module of access is got, can recognize that at least one
WIFI module, that is to say, that even different WIFI module, as long as support in catalogue in default WIFI, you can realize to not
Identification with WIFI module, that is to say, that can achieve at least one WIFI module of identification, by the built-in WIFI module for recognizing
Model writes the partition holding, generates the corresponding configuration file of the built-in WIFI module, subsequently reuses built-in WIFI mould
During block, terminal is recognized by can read the configuration file and uses that type WIFI module, so as to realize Fast W IFI
Module is recognized.
Description of the drawings
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 kind of 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 kind of embodiment.
Specific embodiment
Fig. 1 is referred to, a kind of WIFI module intelligent identification Method of embodiment is provided, is comprised the following steps:
S110:When partition holding does not have the configuration file of built-in WIFI module, control built-in WIFI module work.
For the terminal for being built-in with WIFI module, when needing to open the work of built-in WIFI module, need to built-in WIFI
Module is identified, and is driven accordingly after having recognized again, to start the corresponding function that built-in WIFI module has been selected.Depositing
Storage subregion in do not exist built-in WIFI module configuration file when, represent the built-in WIFI module also unrecognized mistake, that is,
The model of the also unknown built-in WIFI module is said, now needs which is identified, i.e., first built-in WIFI mould is controlled by CPU
Electricity and by the control of built-in WIFI module corresponding pin so that its start-up operation on block.Such as, control built-in WIFI module
Upper electricity, and control the state of the pins such as the RESET of built-in WIFI module to be set to corresponding working condition, allows built-in WIFI module
Work together, that is, built-in WIFI module is opened, so that built-in WIFI module is started working, this can be found so as to corresponding interface bus
On built-in WIFI module carry, the built-in WIFI module can be recognized and existed.
S120:Obtain the mark of the module for accessing on interface bus.
Built-in WIFI module by 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, total by docking port
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, and for example, mouse carry can be carried out data transmission with CPU in interface bus, however, being linked into
Each module of interface bus all has a mark, can distinguish identical or different module by the mark.For example, by interior
The mark for putting 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 producer identification and the combining of 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 of docking port bus, has worked as detection
To after there is module to access, the producer identification of module and product identification can be respectively present/sys/devices/ catalogue under with.usb
With (for example, the production trade mark of module in idVendor the and idProduct file under the catalogue of usb beginning under the catalogue of ending
Know in presence/sys/devices/ff500000.usb/usb1/idVendor), by above-mentioned file is traveled through, obtain the access
The VID of module and PID.
S130:According to the mark of the module for accessing, whether have in the module for searching access and be present in default WIFI support mesh
Built-in WIFI module in record.
If so, following steps are then executed:
S140:According to the mark of built-in WIFI module, support to obtain and built-in WIFI module catalogue from default WIFI
Identify corresponding model.
Wherein, default WIFI support catalogue include the mark of at least one WIFI module and with the corresponding type of mark
Number, that is to say, that support to include the mark of all WIFI module that can support to recognize and corresponding in catalogue in default WIFI
Model, for example, can support to recognize tri- kinds of model WIFI module of A, B and C, then support that catalogue includes A, B and C tri- in default WIFI
Plant the mark of model and corresponding WIFI module.Also have outside including WIFI module due to the module for accessing on interface bus
Other modules, these other modules are not support in catalogue in default WIFI, so access in interface bus is got
After the mark of module, need all modules for accessing are screened, that is, filter out the built-in WIFI module that can support to recognize.Example
Such as, the module that mark is respectively 1 and 2 has been got, in default WIFI support catalogue, has included the WIFI module of support identification
1 is designated, model A is corresponded to, then the module for being designated 1 for getting is that the WIFI module of identification is supported, and model A, will
It is designated 2 module to exclude, the final built-in WIFI module for being designated 1 for obtaining is final lookup result.That is sentence
The identifying whether of the disconnected module for getting is supported, in catalogue, to have found module in the module of the access for obtaining in default WIFI
Mark default WIFI support catalogue in, that is, find support identification built-in WIFI module, in finding
The mark of WIFI module is put, and supports corresponding model to be obtained catalogue from default WIFI.If the module for accessing all is not present
Support in catalogue in default WIFI, that is to say, that do not support the built-in WIFI module for recognizing in the module of access, then point out not
WIFI module can be recognized.
S150:The model of built-in WIFI module is write partition holding, generates the corresponding configuration file of built-in WIFI module.
Find in the module for accessing 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 to recognize in the module that bus is accessed, by the model write storage point of the built-in WIFI module
Area, generates the corresponding configuration file of built-in WIFI module.The built-in WIFI module that terminal itself is used is included in configuration file
Model, that is to say, that the model of the built-in WIFI module that terminal itself is used can be saved in configuration file, subsequently made
With during, only need to read the model that can obtain built-in WIFI module to configuration file, quickly to know use built-in
Which kind of type is WIFI module be, so as to quickly realize the identification of built-in WIFI module.
Due to presetting WIFI, above-mentioned WIFI module intelligent identification Method, supports that catalogue includes at least one WIFI module
Mark and with the corresponding model of mark, so as to, after the mark of module of access is got, recognizable at least one WIFI mould
Block, that is to say, that even different WIFI module, as long as support in catalogue in default WIFI, you can realize to different WIFI
The identification of module, that is to say, that can achieve at least one WIFI module of identification, the model of the built-in WIFI module for recognizing is write
Enter the partition holding, the corresponding configuration file of the built-in WIFI module is generated, when subsequently reusing built-in WIFI module, can
Terminal is recognized by reading the configuration file and uses that type WIFI module, so as to realize the knowledge of Fast W IFI module
Not.
Fig. 2 is referred to, wherein in one embodiment, when partition holding does not have the configuration file of built-in WIFI module
When, the step of control built-in WIFI module to work before S210, also include step:
S201:Reception pattern selection instruction, and the Working mould of terminal built-in WIFI module is selected according to mode selection command
Formula.
When partition holding has the configuration file of built-in WIFI module, or generate the corresponding configuration text of built-in WIFI module
After part, also include step:
S260:Configuration file is read, 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 for loading, start corresponding with the mode of operation of built-in WIFI module
Service.
The corresponding mode of operation of WIFI module has common WIFI pattern (the i.e. common mould for connecting network by WIFI
Formula, also referred to as STA (Station, base station) pattern), support direct-connected or Miracast (be start Wi-Fi CERTIFIED
MiracastTMAuthentication item, user can rapidly equipment room transmit video) WIFI P2P pattern (point-to-point connection mould
Formula), used as the SoftAP pattern of hotspot, (used as the pattern of focus, terminal allows the nothing of exterior terminal as WAP
Gauze is connected to the terminal, is surfed the Net by the network of terminal), user can select corresponding function according to demand.For example, work as user
When needing to connect network, common WIFI mode capabilities are selected, after user selectes the mode of operation of WIFI module, when
When partition holding does not have the configuration file of built-in WIFI module, carry out built-in WIFI module and recognize and configuration file is generated, when
(built-in WIFI module is carried out recognizing and generate before and having joined when partition holding has the configuration file of built-in WIFI module
Put file), or after generating the corresponding configuration file of built-in WIFI module, can carry out opening built-in WIFI mould according to configuration file
The mode of operation that block is selected, that is, read configuration file, obtains the model of built-in WIFI module, and different WIFI module correspond to different
Drive, so as to load driving corresponding with the model of built-in WIFI module, to start the mode of operation pair with built-in WIFI module
The service that answers.That is corresponding service is started according to the mode of operation that selectes, such as common WIFI pattern corresponds to wpa_
Supplicant is serviced, and WIFI P2P pattern corresponds to p2p_supplicant service, and SoftAP pattern corresponds to hostapd service.
Started after corresponding service, when WIFI module unlatching work according to mode of operation, enter corresponding mode of operation and be operated.
Wherein in one embodiment, when partition holding does not have the configuration file of built-in WIFI module, control built-in
The step of WIFI module works S110 includes:When partition holding has factory's subregion, and factory's subregion is not all deposited with user partition
In the corresponding configuration file of built-in WIFI module, or when partition holding does not have factory's subregion, and in user partition is not present
When the corresponding configuration file of WIFI module is put, control built-in WIFI module work.
Include for the system partitioning of memory system data and for storing user using eventually in the partition holding of terminal
The user partition of the data for producing during end, that is to say, that what system partitioning was stored is the data required for system operation, is
During system factory reset, data will not be removed, and user partition storage is data of the user using generation, and system recovery dispatches from the factory
During setting, data are all eliminated, however, factory's subregion is a kind of independent subregion for being different from system partitioning and user partition,
For data storage, but the data for storing in factory's subregion will not be removed when factory reset is carried out, and factory's subregion is root
According to the subregion that product design needs to be configured, that is to say, that the terminal having has factory's subregion, and some terminals do not have factory's subregion,
During so as to whether there is the configuration file of built-in WIFI module in the partition holding for judging terminal, need whether to judge partition holding
There is factory's subregion, when partition holding has factory's subregion, judge whether factory's subregion has the configuration text of built-in WIFI module
Part, if not having, then judges configuration file of the user partition with the presence or absence of built-in WIFI module pair, if also not having, equivalent to factory
All there is no the corresponding configuration file of built-in WIFI module in subregion and user partition, at this time, it may be necessary to carry out to built-in WIFI module
Identification and configuration file are generated, i.e., control built-in WIFI module to work first.Or when partition holding does not have factory's subregion, need
Configuration file that will be to user partition with the presence or absence of built-in WIFI module judges, when user partition does not have built-in WIFI mould
During the corresponding configuration file of block, need to be identified built-in WIFI module and configuration file is generated, control built-in WIFI module
Work.
Wherein in one embodiment, the model of built-in WIFI module is write partition holding, generate built-in WIFI module
The step of corresponding configuration file, S150 included step:When partition holding has factory's subregion, by the type of built-in WIFI module
Number write factory subregion, generates the corresponding configuration file of built-in WIFI module;When there is no factory's subregion in partition holding, will be interior
The user partition of the model write partition holding of WIFI module is put, generates the corresponding configuration file of built-in WIFI module.
During configuration file is generated, select which subregion generation configuration file follow-up startup Working mould to be directly affected at
The efficiency of the corresponding service of formula.When for example, if there is factory's subregion, by the model write factory subregion of built-in WIFI module,
Generate the corresponding configuration file of built-in WIFI module, that is to say, that configuration file is in factory's subregion, it is to avoid during factory reset
User partition data are eliminated needs when causing to open WIFI next time and re-recognize, and efficiency is not good, i.e., when there is factory's subregion,
Configuration file is stored in factory's subregion.However, when there is no factory's subregion, by configuration file be stored in user partition so as to
Follow-up use.
Wherein in one embodiment, after generating the corresponding configuration file of built-in WIFI module, also include step:To joining
Put file and path tag is set.
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, understand that configuration file has factory's subregion or user divides according to the path tag
Area, without the need for carrying out traversal lookup again successively to factory's subregion and user partition, improves reading speed, starts related work(so as to improve
The efficiency of energy.
With a specific embodiment, above-mentioned WIFI module intelligent identification Method is illustrated below.
Selected WIFI function:At present the corresponding function of conventional WiFi module be mode of operation have common WIFI pattern,
The WIFI P2P pattern of the direct-connected or Miracast of support, the SoftAP pattern as hotspot, user selectes phase according to demand
The function of answering.
Judge configuration file whether in factory's subregion:Judge exist either with or without factory subregion, and whether factory's subregion
There is corresponding configuration file, such as whether presence/factory/wifi_type file.
Judge configuration file whether in user partition:I.e. when configuration file is not in factory's subregion, judge that configuration file is
No be stored in user partition, such as whether presence/data/misc/wifi/wifi_type file.
WIFI automatic identification simultaneously generates configuration file:Join when all can not find wifi_type in factory's subregion and user partition
Put file, then the step of built-in WIFI module identification will being carried out and generate configuration file.Comprise the following steps that:
To electricity on WIFI and status pin control:To electricity on built-in WiFi module, and the RESET by built-in WIFI module
Corresponding working condition is set etc. status pin, allows built-in WIFI module or chip operation, can send out so as to corresponding bus
Now on the interface carry, recognize the module and exist.
Obtain the VID and PID of usb bus upper module:The single mesh with .usb ending under traversal/sys/devices/ catalogue
With idVendor the and idProduct file under the catalogue of usb beginning (as/sys/devices/ff500000.usb/ under record
Usb1/idVendor), the VID and PID of the usb module for accessing are obtained.It is total that the single catalogue with .usb ending corresponds to single USB
Line, that is to say, that usb bus correspond to oneWith.usb the catalogue for ending up, in the terminal, may be provided with multiple USB total
Line, can access module on each usb bus, on each usb bus, the mark of the module of access is stored in corresponding with .usb ending
Catalogue in.
Judge whether the VID and PID of the USB module for getting are supported in catalogue in default WIFI successively.
Judge whether next USB module:Judge the VID and PID of the USB module for getting whether default successively
WIFI is supported in catalogue, if the VID and PID that obtain the USB module on single usb bus all do not support catalogue in default WIFI
In, then whether have under judgement/sys/devices catalogue next with.The catalogue of usb ending, and exist under the catalogue and opened with usb
Head catalogue, if any the next one with.Usb ending catalogue and exist under the catalogue with usb beginning catalogue, then it represents that under having
There is access usb module on individual usb bus, and the usb bus, then carry out next traversal processing, you can obtain above-mentioned next one USB
The VID and PID of the module for accessing in bus, then be made whether to support to be judged in catalogue in default WIFI.If any the next one
With.The catalogue of usb ending, but do not exist with the catalogue of usb beginning, then it is further continued for down continuing to search for whether also existing in addition
With.The catalogue of usb ending, the like, until not with.The catalogue of usb ending.If passing through judgement/sys/devices mesh
Do not have under record next with.The catalogue of usb ending, illustrates that usb bus do not have institute in WIFI module, the i.e. terminal for supporting identification
There are usb bus all to there is no the WIFI module for supporting identification, now judge again with the presence or absence of support identification in SDIO bus
WIFI module, that is, execute following steps:
Obtain the VID and PID of SDIO bus upper module:Opened with sdio under traversal/sys/bus/sdio/devices catalogue
Vendor and device file under the catalogue of head is (as/sys/bus/sdio/devices/sdio:0001:1/vendor) obtain
Take the VID and PID of the SDIO module.
Judge whether the VID and PID of the SDIO module for getting are supported in catalogue in default WIFI successively.
Judge whether next SDIO module:Judge the VID and PID of the SDIO module for getting whether default successively
WIFI is supported in catalogue, if the VID and PID of single SDIO module are not present, judgement/sys/bus/sdio/devices mesh
The catalogue for being started with sdio either with or without the next one under record, is such as existed and then indicates that next SDIO equipment is present, then carry out next time time
Process is gone through, if do not existed, is illustrated that SDIO bus does not have the WIFI module for supporting identification, also just say the mould for accessing from SDIO bus
Block is all not present in presetting in WIFI support catalogue, then point out the WIFI module that does not support, and control WIFI power-off.
The WIFI module that prompting is not supported, and control WIFI power-off:When identification is less than current WiFi module, CPU meeting
Automatically the function of selecting built-in WIFI module does closing process, is not supported current WIFI module and WiFi is carried out with prompting
Power down process, it is to avoid the waste of power consumption.But such case user using when be little appearance, in plant produced if it find that
The problem, is only possible to be hardware welding existing problems or electrifying timing sequence problem, respectively corresponding problem can be carried out at reply
Reason.
Judge whether factory's subregion:Mesh is supported when the VID and PID of the USB module for getting are present in default WIFI
In record or when the VID and PID of SDIO module that get are present in default WIFI and support in catalogue, judge whether that factory divides
Area (as/factory), if there is then writing the subregion by the model of the built-in WIFI module for recognizing, it is to avoid recovers to dispatch from the factory
After setting, user partition data are eliminated to cause to open WIFI needs next time and re-recognize, and so as to cause, Consumer's Experience is bad to ask
Topic.Namely the model of the built-in WIFI module for recognizing is write factory's subregion (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 there is no factory's subregion, by recognized
Built-in WIFI model writes user partition (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 after generating configuration file, then execute following steps:
Read configuration file:Wifi_type file is read, obtains the model of the built-in WIFI that terminal is used;
Load WIFI driving:Insmod (by order of the given module loading in kernel) is called to load model corresponding
WIFI drives;
Start correlation function service:Corresponding service, such as wpa_ are started according to the function of selected built-in WIFI module
Supplicant, p2p_supplicant, hostapd are serviced.
By above-mentioned WIFI module intelligent identification Method, can to terminal itself using built-in WIFI module be identified,
Default WIFI supports that catalogue includes the mark of at least one WIFI module and corresponding model, that is to say, that can achieve at least
A kind of identification of WIFI module, without the need for carrying out different software arrangements to realize the knowledge of disparate modules for different WIFI module
Not, software configuration management is lifted, further, due to can achieve at least one WIFI module using identical software arrangements,
Without the need for realizing the identification of multiple module using multiple different software arrangements, so as to avoid various software to configure during plant produced
Providing mistake causes heavy industry to operate, improve production efficiency.In addition, during terminal software upgrading, user need not confirm products configuration, lead to
Cross the identification to built-in WIFI module, you can know the model of itself built-in WIFI module, soft so as to corresponding upgrading can be obtained
Part program is upgraded, and goes again to confirm products configuration without user.Meanwhile, by CPU to built-in WIFI module upper electricity with
And pin control, the working condition of built-in WIFI module can be controlled, when WIFI need not be opened, built-in WIFI mould can be disconnected
The power supply of block, i.e., carried out strict function control to terminal, reduces energy resource consumption.
Fig. 3 is referred to, a kind of WIFI module intelligent identification device of embodiment is provided, including:
Control module 310, for there is no built-in WIFI module when partition holding configuration file when, control built-in WIFI
Module works.
Identifier acquisition module 320, for obtaining the mark of the module for accessing on interface bus.
Enquiry module 330, for according to access module mark, search access module in whether have be present in default
WIFI supports the built-in WIFI module in catalogue, and wherein, default WIFI supports that catalogue includes the mark of at least one WIFI module
Know and with the corresponding model of mark.
Model acquisition module 340, for enquiry module Query Result for be when, according to the mark of built-in WIFI module,
Support to obtain model corresponding with the mark of built-in WIFI module catalogue from default WIFI.
Configuration file generation module 350, for the model of built-in WIFI module is write partition holding, generates built-in WIFI
The corresponding configuration file of module.
Due to presetting WIFI, above-mentioned WIFI module intelligent identification device, supports that catalogue includes at least one WIFI module
Mark and with the corresponding model of mark, so as to, after the mark of module of access is got, recognizable at least one WIFI mould
Block, that is to say, that even different WIFI module, as long as support in catalogue in default WIFI, you can realize to different WIFI
The identification of module, that is to say, that can achieve at least one WIFI module of identification, the model of the built-in WIFI module for recognizing is write
Enter the partition holding, the corresponding configuration file of the built-in WIFI module is generated, when subsequently reusing built-in WIFI module, can
Terminal is recognized by reading the configuration file and uses that type WIFI module, so as to realize the knowledge of Fast W IFI module
Not.
In the present embodiment, WIFI module intelligent identification device also includes reminding module, ties for the inquiry of enquiry module
When fruit is no, prompting can not recognize WIFI module.If the module for accessing all is not present in presetting in WIFI support catalogue, that is,
Say, do not support the built-in WIFI module for recognizing in the module of access, then prompting can not recognize WIFI module.
Fig. 4 is referred to, wherein in one embodiment, WIFI module intelligent identification device also includes that mode of operation selects mould
Block 401, read module 460, load-on module 470 and starting module 480.
Mode of operation selecting module 401, for reception pattern selection instruction, and selectes in terminal according to mode selection command
Put the mode of operation of WIFI module.
Read module 460, for there is built-in WIFI module when partition holding configuration file when, or configuration file generate
After module generates the corresponding configuration file of built-in WIFI module, configuration file is read, obtain the model of built-in WIFI module.
Load-on 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 for loading, starts the work with built-in WIFI module
The corresponding service of pattern.
Wherein in one embodiment, control module, be additionally operable to there is factory's subregion when partition holding, and factory's subregion with
When user partition does not all have built-in WIFI module corresponding configuration file, or when partition holding does not have factory's subregion, and use
When family subregion does not have built-in WIFI module corresponding configuration file, control built-in WIFI module work.
Wherein in one embodiment, configuration file generation module includes:
First generation module, for when partition holding has factory's subregion, the model of built-in WIFI module being write work
Factory's subregion, generates the corresponding configuration file of built-in WIFI module.
Second generation module, for when partition holding does not have factory's subregion, the model of built-in WIFI module being write
The user partition of partition holding, generates the corresponding configuration file of built-in WIFI module.
Wherein in one embodiment, above-mentioned WIFI module intelligent identification device also includes:
Mark module, for arranging path tag to configuration file.
As above-mentioned WIFI module intelligent identification device is corresponded with above-mentioned WIFI module intelligent identification Method, which is concrete
Minutia is also corresponded, and and therefore not to repeat here.
Each technical characteristic of above example arbitrarily can be combined, for making description succinct, not to above-described embodiment
In each technical characteristic all possible combination be all described, as long as however, there is no lance in the combination of these technical characteristics
Shield, is all considered to be the scope of this specification record.
Above example only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but can not
Therefore the restriction being interpreted as to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art,
Without departing from the inventive concept of the premise, some deformation can also be made and is improved, these belong to the protection model of the present invention
Enclose.Therefore, the protection domain of patent of the present invention should be defined by claims.
Claims (10)
1. a kind of WIFI module intelligent identification Method, it is characterised in that comprise the following steps:
When partition holding does not have the configuration file of built-in WIFI module, control the built-in WIFI module work;
Obtain the mark of the module for accessing on interface bus;
According to the mark of the module of the access, whether have in the module for searching the access and be present in default WIFI support catalogue
In built-in WIFI module, wherein, the default WIFI support catalogue include the mark of at least one WIFI module and with
Identify corresponding model;
If so, according to the mark of the built-in WIFI module, obtain from the default WIFI support catalogue built-in with described
The corresponding model of the mark of WIFI module;
The model of the built-in WIFI module is write the partition holding, generates the corresponding configuration text of the built-in WIFI module
Part.
2. WIFI module intelligent identification Method according to claim 1, it is characterised in that
Described there is no built-in WIFI module when partition holding configuration file when, control the step of the built-in WIFI module work
Before rapid, also include step:Reception pattern selection instruction, and terminal built-in WIFI module is selected according to the mode selection command
Mode of operation;
When partition holding has the configuration file of built-in WIFI module, or described generate that the built-in WIFI module is corresponding to join
After putting file, also include step:
The configuration file is read, obtains the model of the built-in WIFI module;
Load driving corresponding with the model of the built-in WIFI module;
According to the driving of the described built-in WIFI module for loading, start clothes corresponding with the mode of operation of the built-in WIFI module
Business.
3. WIFI module intelligent identification Method according to claim 1, it is characterised in that described be not present when partition holding
During the configuration file of built-in WIFI module, the built-in WIFI module is controlled to include the step of work:
When the partition holding has factory's subregion, and all there is no the built-in WIFI mould with user partition in factory's subregion
During the corresponding configuration file of block, or when the partition holding does not have factory's subregion, and the user partition do not exist described interior
When the corresponding configuration file of WIFI module is put, control the built-in WIFI module work.
4. WIFI module intelligent identification Method according to claim 1, it is characterised in that described by the built-in WIFI mould
The model of block writes the partition holding, includes step the step of generate the built-in WIFI module corresponding configuration file:
When the partition holding has factory's subregion, the model of the built-in WIFI module is write factory's subregion, raw
Become the corresponding configuration file of the built-in WIFI module;
When the partition holding does not have factory's subregion, the model of the built-in WIFI module is write the partition holding
User partition, generates the corresponding configuration file of the built-in WIFI module.
5. WIFI module intelligent identification Method according to claim 4, it is characterised in that generate the built-in WIFI module
After corresponding configuration file, also include step:
Path tag is arranged to the configuration file.
6. a kind of WIFI module intelligent identification device, it is characterised in that include:
Control module, for there is no built-in WIFI module when partition holding configuration file when, control the built-in WIFI mould
Block works;
Identifier acquisition module, for obtaining the mark of the module for accessing on interface bus;
Enquiry module, for the mark according to the module of the access, whether have in the module for searching the access be present in pre-
If WIFI supports the built-in WIFI module in catalogue, wherein, the default WIFI supports that catalogue includes at least one WIFI mould
The mark of block and with the corresponding model of mark;
Model acquisition module, for the enquiry module Query Result for be when, according to the mark of the built-in WIFI module,
Support to obtain model corresponding with the mark of the built-in WIFI module catalogue from the default WIFI;
Configuration file generation module, for the model of the built-in WIFI module is write the partition holding, generates described interior
Put the corresponding configuration file of WIFI module.
7. WIFI module intelligent identification device according to claim 6, it is characterised in that also include that mode of operation selects mould
Block, read module, load-on module and starting module;
The work selecting module, for reception pattern selection instruction, and selectes terminal built-in according to the mode selection command
The mode of operation of WIFI module;
The read module, for there is built-in WIFI module when partition holding configuration file when, or the configuration file life
After becoming module to generate the corresponding configuration file of the built-in WIFI module, the configuration file is read, is obtained described built-in
The model of WIFI module;
The load-on module, for loading driving corresponding with the model of the built-in WIFI module;
The starting module, for the driving according to the described built-in WIFI module for loading, starts and the built-in WIFI module
The corresponding service of mode of operation.
8. WIFI module intelligent identification device according to claim 6, it is characterised in that the control module, is additionally operable to
When the partition holding has factory's subregion, and all there is no the built-in WIFI module pair with user partition in factory's subregion
During the configuration file that answers, or when the partition holding does not have factory's subregion, and the user partition do not exist described built-in
During the corresponding configuration file of WIFI module, control the built-in WIFI module work.
9. WIFI module intelligent identification device according to claim 6, it is characterised in that the configuration file generation module
Including:
First generation module, for when the partition holding has factory's subregion, the model of the built-in WIFI module being write
Enter factory's subregion, generate the corresponding configuration file of the built-in WIFI module;
Second generation module, for when the partition holding does not have factory's subregion, by the model of the built-in WIFI module
The user partition of the partition holding is write, generates the corresponding configuration file of the built-in WIFI module.
10. WIFI module intelligent identification device according to claim 9, it is characterised in that also include:
Mark module, for arranging path tag to the configuration file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610843657.3A CN106452847B (en) | 2016-09-21 | 2016-09-21 | Intelligent identification method and device for WIFI equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610843657.3A CN106452847B (en) | 2016-09-21 | 2016-09-21 | Intelligent identification method and device for WIFI equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106452847A true CN106452847A (en) | 2017-02-22 |
CN106452847B 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 | Intelligent identification method and device for WIFI equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106452847B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259209A (en) * | 2017-02-28 | 2018-07-06 | 新华三技术有限公司 | Method for configuring network equipment and device |
CN109951860A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of method, smart television and storage medium obtaining WIFI information |
CN111200877A (en) * | 2020-03-12 | 2020-05-26 | 深圳康佳电子科技有限公司 | Network connection method, terminal and storage medium |
CN112689160A (en) * | 2020-11-27 | 2021-04-20 | 烟台艾睿光电科技有限公司 | 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 |
CN113423116A (en) * | 2021-08-25 | 2021-09-21 | 广州朗国电子科技股份有限公司 | Configuration method of 5G hot spot default mode based on Android system |
CN113489504A (en) * | 2021-07-05 | 2021-10-08 | 深圳市商汤科技有限公司 | Circuit board, electronic equipment, signal processing method and device |
CN113709848A (en) * | 2020-05-20 | 2021-11-26 | 北京奇虎科技有限公司 | Wireless hotspot device classification method, device and storage medium |
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 |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259209A (en) * | 2017-02-28 | 2018-07-06 | 新华三技术有限公司 | Method for configuring network equipment and device |
CN109951860A (en) * | 2017-12-21 | 2019-06-28 | 深圳Tcl新技术有限公司 | A kind of method, smart television and storage medium obtaining WIFI information |
CN109951860B (en) * | 2017-12-21 | 2022-07-08 | 深圳Tcl新技术有限公司 | Method for acquiring WIFI information, smart television and storage medium |
CN111200877A (en) * | 2020-03-12 | 2020-05-26 | 深圳康佳电子科技有限公司 | Network connection method, terminal and storage medium |
CN113709848A (en) * | 2020-05-20 | 2021-11-26 | 北京奇虎科技有限公司 | Wireless hotspot device classification method, device and storage medium |
CN112689160A (en) * | 2020-11-27 | 2021-04-20 | 烟台艾睿光电科技有限公司 | 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 |
CN113489504A (en) * | 2021-07-05 | 2021-10-08 | 深圳市商汤科技有限公司 | Circuit board, electronic equipment, signal processing method and device |
CN113423116A (en) * | 2021-08-25 | 2021-09-21 | 广州朗国电子科技股份有限公司 | Configuration method of 5G hot spot default mode based on Android system |
Also Published As
Publication number | Publication date |
---|---|
CN106452847B (en) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106452847A (en) | Intelligent identification method and device for WIFI equipment | |
CN103916979B (en) | Information processing unit and its control method | |
CN107886952A (en) | Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment | |
CN103870425A (en) | Bridge device, automated production system and method thereof for storage device | |
CN103365688A (en) | Method for automatic installation and synchronization of software between Android intelligent devices | |
CN109360564B (en) | Method and device for selecting language identification mode and household appliance | |
CN103995191A (en) | Method and device for identifying model of air conditioner | |
CN102054190B (en) | Smart card and card writing terminal | |
CN106230713A (en) | A kind of intelligent gateway | |
CN103595717A (en) | Household appliance control protocol conversion method and control terminal | |
CN102662897A (en) | Mobile terminal and data interaction method between mobile terminals | |
CN113498594A (en) | Control method and device of intelligent household system, electronic equipment and storage medium | |
CN103529988A (en) | Mobile terminal touch screen multi-firmware setting method and system | |
CN104581847B (en) | A kind of configuration method and device of wireless device | |
CN103369037A (en) | Method for automatically synchronizing data among Android intelligent equipment | |
CN108877185A (en) | A kind of Bluetooth remote control method and circuit | |
CN104850873B (en) | Communication equipment and its control method and information processing equipment and its control method | |
CN110568946B (en) | Port control method, device and medium | |
CN107006066A (en) | The control method and program of communication equipment, communication equipment | |
CN112423368A (en) | Gateway, intelligent device, mobile terminal, network access method and network access auxiliary method and system | |
CN106445516B (en) | External wireless network card drive loading method and device | |
CN106781369A (en) | Robot operation control method, robot shutdown control method and device | |
CN108399245B (en) | Data processing method and device of intelligent household appliance gateway equipment and intelligent household appliance gateway | |
CN205620994U (en) | Embedded equipment processing apparatus | |
CN107659933A (en) | A kind of wireless device two-way pairing connection method, wireless device and storage medium |
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 |