CN106793012B - The method of wifi configuration management is realized in a kind of family gateway equipment - Google Patents
The method of wifi configuration management is realized in a kind of family gateway equipment Download PDFInfo
- Publication number
- CN106793012B CN106793012B CN201710042398.9A CN201710042398A CN106793012B CN 106793012 B CN106793012 B CN 106793012B CN 201710042398 A CN201710042398 A CN 201710042398A CN 106793012 B CN106793012 B CN 106793012B
- Authority
- CN
- China
- Prior art keywords
- wifi
- configuration
- wifi module
- file
- gateway equipment
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method of wifi configuration management is realized in a kind of family gateway equipment, it is related to family gateway equipment field, it include: to preset, the configuration information that wifi module is read in family gateway equipment is stored in memory directory, Template Information is stored in the Reading Sections of flash subarea, configuration information is stored in read-write subregion with uci file format;When family gateway equipment starts, Template Information is copied, synchronous wifi module configuration file is completed after rebuilding, and wifi module reads configuration file, and come into force configuration information;It when family gateway equipment modifies to wifi configuration item, is modified in the wifi module configuration file of memory directory, configuration information is stored in uci file, come into force configuration information.The present invention is versatile and configuration item modification is flexible, reduces the read-write operation frequency to flash, extends family gateway equipment service life.
Description
Technical field
Wifi configuration is realized the present invention relates to family gateway equipment field, in particular to a kind of family gateway equipment
The method of management.
Background technique
Since family gateway equipment is gradually evolved into FTTH access terminal in home network, need to access by wifi mode
The user of family gateway equipment also dramatically increases.Currently, standard type family gateway equipment is equipped with wifi module substantially, with reality
The covering of existing interior wifi access.Realize the networking more more flexible than traditional wire mode in this way, but wifi chip
Type it is very more, control logic also has larger difference.
Although current home gateway has the method controlled wifi module, due to the management to different manufacturers
Platform dependence is larger, and every kind of wifi operation script is different, therefore existing control method versatility is not strong, and configuration modification is ineffective
It is living.Meanwhile modification configuration every time, the flash of family gateway equipment can be written and read, reduce family gateway equipment
Service life.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide realize in a kind of family gateway equipment
The method of wifi configuration management, the modification of versatile and configuration item flexibly, reduce the read-write operation frequency to flash, extend house
Front yard gateway service life.
To achieve the above objectives, the present invention takes a kind of method that wifi configuration management is realized in family gateway equipment, packet
It includes: presetting, the configuration information that wifi module is read in family gateway equipment is stored in memory directory, wifi module configuration
The Template Information of file is stored in the Reading Sections of flash subarea, and the configuration information of wifi module is deposited with uci file format
It is placed in the read-write subregion of flash subarea;When family gateway equipment starts, the template letter of copy wifi module configuration file
Breath, synchronous wifi module configuration file, after the reconstruction for completing wifi module configuration file, wifi module reads configuration file, raw
Imitate configuration information;When family gateway equipment modifies to wifi configuration item, configuration information is modified to the wifi of memory directory
In module Configuration file, and configuration information is stored in uci file, then re-reads configuration file and come into force with confidence
Breath completes the setting that comes into force of wifi configuration item variation.
Based on the above technical solution, the configuration information that the wifi module is read, in addition to uci file format with
Outer document form is stored in memory directory.
Based on the above technical solution, the Template Information of the wifi module configuration file, in addition to uci tray
Document form other than formula is stored in Reading Sections, and initial value is the default configuration information of wifi module.
Based on the above technical solution, the Template Information of wifi module configuration file, by read-only point of flash subarea
It is copied under memory directory in area, the configuration template as wifi module configuration file.
Based on the above technical solution, when family gateway equipment starts, mark is loaded according to the wifi module that it reads
Will judges whether to load wifi module, if so, synchronous wifi module configuration file;If it is not, load wifi module.
Based on the above technical solution, before synchronous wifi module configuration file, family gateway equipment is matched according to wifi
The wifi configuration information in the rule verification uci file of item is set, the entry by the wifi configuration item after verification is synchronized.
Based on the above technical solution, the configuration item include each SSID name, each SSID key and encryption mode,
Whether SSID hide, chip emission power and wifi bandwidth.
Based on the above technical solution, when family gateway equipment modifies to wifi configuration item, configuration item is verified
It is whether legal, configuration information is modified again after legal.
Based on the above technical solution, the setting that comes into force for completing the variation of wifi configuration item, specifically, notice
The wifi module configuration file that wifi driving is read under memory directory comes into force, and wifi module is according in wifi module configuration file
The register value of each configuration amount modification wifi chip, come into force wifi function.
The beneficial effects of the present invention are:
1, the configuration information of the wifi module of family gateway equipment is stored in uci file, wifi module configuration file
Template Information be stored in the Reading Sections of flash subarea, wifi module read configuration information (come into force configuration information)
It is stored in memory directory, replacement wifi chip in this way is small to other module modification amounts of software, reduces wifi configuration format and becomes
Change, the generation that the process that comes into force is inconsistent, configures versatile.
2, a configuration item and the multiple configuration items of modification are modified, can be realized in the methods of the invention, and only successively
It comes into force, configuration item modification is more flexible.
3, the configuration information that comes into force of all wifi is stored in memory directory, and corresponding is memory, to this configuration file
It modifies not by flash read-write operation frequency limit;The configuration information of all users is all stored in uci file, modification
Wifi configuration file will not bring additional configuration item to save and write flash movement, reduce other than being once stored on flash
To the read-write operation frequency of flash, extend family gateway equipment service life.
Detailed description of the invention
Fig. 1 is family gateway equipment Booting sequence figure in the embodiment of the present invention;
Fig. 2 is that family gateway equipment modifies flow chart to wifi configuration item in the embodiment of the present invention.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
The method of wifi configuration management is realized in family gateway equipment of the present invention, comprising:
It presets, the configuration information that wifi module is read in family gateway equipment is stored in memory directory, wifi mould
The Template Information of block configuration file is stored in the Reading Sections of flash subarea, and the configuration information of wifi module is with uci tray
Formula is stored in the read-write subregion of flash subarea;
When family gateway equipment starts, the Template Information of wifi module configuration file, synchronous wifi module configuration text are copied
Part, after the reconstruction for completing wifi module configuration file, wifi module reads configuration file, and come into force configuration information;
When family gateway equipment modifies to wifi configuration item, configuration information is modified to the wifi module of memory directory
In configuration file, and wifi configuration information is stored in uci file, then re-reads configuration file and come into force with confidence
Breath completes the setting that comes into force of wifi configuration item variation.
As shown in Figure 1, the detailed step of family gateway equipment starting is as follows:
A1. due to, without wifi module configuration file, being needed from home network under memory directory (/var catalogue) under original state
It in read-only (rom) subregion for closing equipment flash subarea, copies under memory directory (/var catalogue), is configured as wifi module
The configuration template of file.
A2. family gateway equipment loads according to the wifi module of reading and indicates, judges whether wifi module loads, if so,
Into A4;If it is not, into A3;Preferably, wifi module load mark is /var/wifi_driver_insmod, if there is this
A file, then it is assumed that wifi module has loaded, if illustrating that wifi module does not load without this file.
A3. family gateway equipment loads wifi module module.
A4. family gateway equipment verifies the wifi configuration in uci file according to the rule of wifi configuration item.Specifically, matching
Set item include each SSID (Service Set Identifier, service set) title, each SSID key and encryption mode,
Whether SSID hide, chip emission power and wifi module bandwidth etc., can school according to the existing verification mode of each configuration item
It tests.For the entry of the wifi configuration item by verification, the entry of wifi configuration item is synchronized under right/var catalogue, is completed
The reconstruction of wifi module configuration file.
A5. family gateway equipment is after completing wifi module configuration file and rebuilding, and notice wifi module is under/var catalogue
Wifi module configuration file is directly read, according to the configuration information of wifi module configuration file, realizes that wifi function comes into force.
As shown in Fig. 2, the process that family gateway equipment modifies to wifi configuration item is as follows:
S1. family gateway equipment modifies to wifi configuration item, such as modification SSID name etc..
S2. according to the verification of configuration item rule, whether verification configuration item is legal, if so, into S3;If it is not, returning to S1.
S3. after verification passes through, configuration information is modified in the wifi module configuration file in memory directory;Meanwhile family
Configuration information is stored in uci file by front yard gateway.
S4. notice wifi module reads the wifi module configuration file under memory directory, the configuration in the configuration file that comes into force
Information completes the setting that comes into force of wifi configuration item variation, specifically, wifi driving is according to respectively matching in wifi module configuration file
The register value of item modification wifi chip is set, come into force wifi function.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (9)
1. realizing the method for wifi configuration management in a kind of family gateway equipment characterized by comprising
It presets, the configuration information that wifi module is read in family gateway equipment is stored in memory directory, and wifi module is matched
The Template Information for setting file is stored in the Reading Sections of flash subarea, the configuration information of wifi module with uci file format,
It is stored in the read-write subregion of flash subarea;
When family gateway equipment starts, the Template Information of wifi module configuration file is copied, synchronous wifi module configuration file is complete
After reconstruction at wifi module configuration file, wifi module reads configuration file, and come into force configuration information;
When family gateway equipment modifies to wifi configuration item, the wifi module that configuration information is modified to memory directory is configured
In file, and configuration information is stored in uci file, then re-reads configuration file and the configuration information that comes into force, completed
The setting that comes into force of wifi configuration item variation.
2. realizing the method for wifi configuration management in family gateway equipment as described in claim 1, it is characterised in that: described
The configuration information that wifi module is read, is stored in memory directory with the document form other than uci file format.
3. realizing the method for wifi configuration management in family gateway equipment as claimed in claim 1 or 2, it is characterised in that: institute
The Template Information of wifi module configuration file is stated, is stored in Reading Sections with the document form other than uci file format,
Initial value is the default configuration information of wifi module.
4. realizing the method for wifi configuration management in family gateway equipment as described in claim 1, it is characterised in that: wifi mould
The Template Information of block configuration file is configured by copying under memory directory in the Reading Sections of flash subarea as wifi module
The configuration template of file.
5. realizing the method for wifi configuration management in family gateway equipment as described in claim 1, it is characterised in that: home network
When closing equipment starting, the wifi module load mark read according to it judges whether to have loaded wifi module, if so, synchronous
Wifi module configuration file;If it is not, load wifi module.
6. realizing the method for wifi configuration management in family gateway equipment as described in claim 1, it is characterised in that: synchronous
Before wifi module configuration file, family gateway equipment matches confidence according to the wifi in the rule verification uci file of wifi configuration item
Breath synchronizes the entry by the wifi configuration item after verification.
7. realizing the method for wifi configuration management in family gateway equipment as claimed in claim 6, it is characterised in that: described to match
Set item include each SSID name, each SSID key and encryption mode, SSID whether hide, chip emission power and wifi frequency
It is wide.
8. realizing the method for wifi configuration management in family gateway equipment as described in claim 1, it is characterised in that: home network
When pass equipment modifies to wifi configuration item, whether verification configuration item is legal, modifies configuration information again after legal.
9. realizing the method for wifi configuration management in family gateway equipment as described in claim 1, it is characterised in that: described complete
At the setting that comes into force that wifi configuration item changes, specifically, the wifi module under memory directory is read in notice wifi driving configures text
Part comes into force, and wifi module comes into force according to the register value of each configuration amount modification wifi chip in wifi module configuration file
Wifi function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042398.9A CN106793012B (en) | 2017-01-20 | 2017-01-20 | The method of wifi configuration management is realized in a kind of family gateway equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042398.9A CN106793012B (en) | 2017-01-20 | 2017-01-20 | The method of wifi configuration management is realized in a kind of family gateway equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106793012A CN106793012A (en) | 2017-05-31 |
CN106793012B true CN106793012B (en) | 2019-09-27 |
Family
ID=58944878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710042398.9A Active CN106793012B (en) | 2017-01-20 | 2017-01-20 | The method of wifi configuration management is realized in a kind of family gateway equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106793012B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107566158A (en) * | 2017-08-04 | 2018-01-09 | 上海斐讯数据通信技术有限公司 | A kind of route configuration information backup method and system, restoration methods and system |
CN108683740A (en) * | 2018-05-18 | 2018-10-19 | 烽火通信科技股份有限公司 | A kind of method and system of the promotion configuration access speed based on UCI |
CN108683537A (en) * | 2018-05-18 | 2018-10-19 | 烽火通信科技股份有限公司 | The configuring management method and system of home gateway node based on UCI files |
CN109831329A (en) * | 2019-01-30 | 2019-05-31 | 网经科技(苏州)有限公司 | A kind of method that gateway configuration is mutually separated with gateway system |
CN112351423B (en) * | 2020-11-06 | 2023-05-23 | 合肥美菱物联科技有限公司 | Wifi key burning system and method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132312A (en) * | 2007-08-14 | 2008-02-27 | 中兴通讯股份有限公司 | Method for device configuration recovery using configuration file under mixed insertion condition |
CN101419571A (en) * | 2008-12-04 | 2009-04-29 | 上海大学 | Method for storing configuration parameter in NOR FLASH based on Hash arithmetic |
CN101566943A (en) * | 2008-04-24 | 2009-10-28 | 深圳市同洲电子股份有限公司 | Method, terminal and system for controlling terminal software functions |
CN105871598A (en) * | 2016-03-28 | 2016-08-17 | 上海斐讯数据通信技术有限公司 | Router equipment and upgrade method of router equipment |
CN106130799A (en) * | 2016-08-29 | 2016-11-16 | 烽火通信科技股份有限公司 | There is family gateway equipment and the changing method thereof of multi-operator handoff functionality |
-
2017
- 2017-01-20 CN CN201710042398.9A patent/CN106793012B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132312A (en) * | 2007-08-14 | 2008-02-27 | 中兴通讯股份有限公司 | Method for device configuration recovery using configuration file under mixed insertion condition |
CN100561948C (en) * | 2007-08-14 | 2009-11-18 | 中兴通讯股份有限公司 | Mixed insertion condition uses configuration file to carry out the method for device configuration recovery down |
CN101566943A (en) * | 2008-04-24 | 2009-10-28 | 深圳市同洲电子股份有限公司 | Method, terminal and system for controlling terminal software functions |
CN101419571A (en) * | 2008-12-04 | 2009-04-29 | 上海大学 | Method for storing configuration parameter in NOR FLASH based on Hash arithmetic |
CN105871598A (en) * | 2016-03-28 | 2016-08-17 | 上海斐讯数据通信技术有限公司 | Router equipment and upgrade method of router equipment |
CN106130799A (en) * | 2016-08-29 | 2016-11-16 | 烽火通信科技股份有限公司 | There is family gateway equipment and the changing method thereof of multi-operator handoff functionality |
Also Published As
Publication number | Publication date |
---|---|
CN106793012A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106793012B (en) | The method of wifi configuration management is realized in a kind of family gateway equipment | |
CN103942058B (en) | A kind of EMBEDDED AVIONICS method for upgrading software and system | |
EP2857965B1 (en) | Method and device for generating firmware over-the-air upgrade package | |
CN105446769B (en) | Image file upgrade processing method, device and terminal device | |
CN103678319B (en) | Resource file update method, device and system and server | |
CN105912421A (en) | Backup method and device for storing data in mobile terminals, mobile terminals and terminals | |
CN104052818B (en) | The version upgrading method and device of a kind of mobile terminal | |
CN107329741A (en) | A kind of software distribution upgrade method and device based on fingerprint recognition | |
CN109908585B (en) | File processing method and system, computing device and storage medium | |
CN105591825B (en) | The method of modification configuration in household gateway update | |
CN109309725A (en) | Using downloading and update method, device, computer equipment and storage medium | |
CN106066802A (en) | A kind of method and apparatus loading MBN file | |
CN107360265A (en) | A kind of equipment exclusive identification code acquisition methods, device and mobile terminal | |
CN107368513A (en) | The method and device of client database renewal | |
CN102081542A (en) | Calibration data recovery method | |
CN106506249A (en) | Collecting method and device | |
KR20080083512A (en) | Firmware over the air system | |
WO2019129271A1 (en) | Method for electronic device authentication and firmware update, and electronic device | |
CN105988943B (en) | A kind of method and device driving wireless adapter | |
CN106130799B (en) | Family gateway equipment and its switching method with multi-operator handoff functionality | |
CN106506163B (en) | ROM packet processing method and device | |
TW201615252A (en) | Control system and method of electronic device | |
CN108829443B (en) | Design method, loading method and application of terminal equipment configuration data | |
CN107168748A (en) | A kind of method that multinomial upgrading task is realized by a upgrade file bag | |
CN106210087A (en) | The remote synchronization method and apparatus of application card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |