CN106793012A - A kind of method that wifi configuration managements are realized in family gateway equipment - Google Patents

A kind of method that wifi configuration managements are realized in family gateway equipment Download PDF

Info

Publication number
CN106793012A
CN106793012A CN201710042398.9A CN201710042398A CN106793012A CN 106793012 A CN106793012 A CN 106793012A CN 201710042398 A CN201710042398 A CN 201710042398A CN 106793012 A CN106793012 A CN 106793012A
Authority
CN
China
Prior art keywords
configuration
wifi
wifi module
gateway equipment
family gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710042398.9A
Other languages
Chinese (zh)
Other versions
CN106793012B (en
Inventor
田智炜
屈兰
胡波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201710042398.9A priority Critical patent/CN106793012B/en
Publication of CN106793012A publication Critical patent/CN106793012A/en
Application granted granted Critical
Publication of CN106793012B publication Critical patent/CN106793012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [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

A kind of method that wifi configuration managements are realized in family gateway equipment, is related to family gateway equipment field, including:Pre-set, the configuration information that wifi module reads in family gateway equipment is stored in memory directory, and Template Information is stored in the Reading Sections of flash subarea, and configuration information is stored in read-write subregion with uci file formats;When family gateway equipment starts, copy Template Information, synchronous wifi module configuration file, after completing to rebuild, wifi module reads configuration file, and come into force configuration information;When family gateway equipment is modified to wifi configuration items, it is modified in the wifi module configuration file of memory directory, configuration information is stored in uci files, is come into force configuration information.Highly versatile of the present invention and configuration item modification is flexible, reduces the read-write operation frequency to flash, extends family gateway equipment service life.

Description

A kind of method that wifi configuration managements are realized in family gateway equipment
Technical field
The present invention relates to family gateway equipment field, realize that wifi is configured in particular to a kind of family gateway equipment The method of management.
Background technology
FTTH access terminals by wifi modes, it is necessary to be accessed during home network is gradually evolved into due to family gateway equipment The user of family gateway equipment also dramatically increases.At present, standard type family gateway equipment is equipped with wifi module substantially, with reality The covering that existing interior wifi is accessed.The networking more more flexible than traditional wire mode is realized by this mode, but wifi chip Type it is very many, control logic also has larger difference.
Although the method that current home gateway has been controlled to wifi module, due to the management to different manufacturers Platform dependence is larger, and every kind of wifi operations script is different, therefore existing control method versatility is not strong, and configuration modification is ineffective It is living.Meanwhile, modification configuration, can be written and read operation to the flash of family gateway equipment every time, reduce family gateway equipment Service life.
The content of the invention
For defect present in prior art, realized it is an object of the invention to provide in a kind of family gateway equipment The method of wifi configuration managements, highly versatile and configuration item modification flexibly, reduce the read-write operation frequency to flash, extend house Front yard gateway device service life.
To achieve the above objectives, the present invention takes a kind of method that wifi configuration managements are realized in family gateway equipment, bag Include:Pre-set, the configuration information that wifi module reads 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 formats It is placed in the read-write subregion of flash subarea;When family gateway equipment starts, the template letter of wifi module configuration file is copied Breath, synchronous wifi module configuration file, after completing the reconstruction of wifi module configuration file, wifi module reads configuration file, raw Effect configuration information;When family gateway equipment is modified to wifi configuration items, configuration information is modified to the wifi of memory directory In module Configuration file, and configuration information is stored in uci files, then re-reads configuration file and come into force with confidence Breath, completes the setting that comes into force of wifi configuration items change.
On the basis of above-mentioned technical proposal, the configuration information that the wifi module reads, with except uci file formats with Outer document form is stored in memory directory.
On the basis of above-mentioned technical proposal, the Template Information of the wifi module configuration file, with except uci trays Document form beyond formula is stored in Reading Sections, and initial value is the default configuration information of wifi module.
On the basis of above-mentioned technical proposal, the Template Information of wifi module configuration file, by read-only point of flash subarea Copied under memory directory in area, as the configuration template of wifi module configuration file.
On the basis of above-mentioned technical proposal, when family gateway equipment starts, the wifi module read according to it loads mark Will judges whether to load wifi module, if so, synchronous wifi module configuration file;If it is not, loading wifi module.
On the basis of above-mentioned technical proposal, before synchronous wifi module configuration file, family gateway equipment is matched somebody with somebody according to wifi The wifi configuration informations in the rule verification uci files of item are put, to being synchronized by the entry of the wifi configuration items after verification.
On the basis of above-mentioned technical proposal, the configuration item include each SSID name, each SSID keys and encryption mode, Whether SSID hides, chip emission power and wifi frequency ranges.
On the basis of above-mentioned technical proposal, when family gateway equipment is modified to wifi configuration items, configuration item is verified It is whether legal, it is legal after change configuration information again.
On the basis of above-mentioned technical proposal, the setting that comes into force of the completion wifi configuration items change, specifically, notifying Wifi drives the wifi module configuration file read under memory directory to come into force, and wifi module is according in wifi module configuration file Each configuration amount changes the register value of wifi chip, and come into force wifi functions.
The beneficial effects of the present invention are:
1st, the configuration information of the wifi module of family gateway equipment is stored in uci files, 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) Storage is in memory directory, and so replacing wifi chip is small to other module modification amounts of software, reduces wifi configuration formats and becomes Change, the generation that the flow that comes into force is inconsistent, configure highly versatile.
2nd, a configuration item and the multiple configuration items of modification are changed, can be realized in the methods of the invention, and only successively Come into force, configuration item modification is more flexible.
3rd, the configuration information that comes into force of all wifi is stored in memory directory, and corresponding is internal memory, to this configuration file Modify and do not receive flash read-write operation frequency limits;The configuration information of all of user is all stored in uci files, modification Wifi configuration files will not bring extra configuration item to preserve and write flash actions in addition to being once stored on flash, reduce To the read-write operation frequency of flash, extend family gateway equipment service life.
Brief description of the drawings
Fig. 1 is family gateway equipment Booting sequence figure in the embodiment of the present invention;
Fig. 2 is that family gateway equipment is modified flow chart to wifi configuration items in the embodiment of the present invention.
Specific embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
The method that wifi configuration managements are realized in family gateway equipment of the present invention, including:
Pre-set, the configuration information that wifi module reads in family gateway equipment is stored in memory directory, wifi moulds 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 trays 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 completing the reconstruction of wifi module configuration file, wifi module reads configuration file, and come into force configuration information;
When family gateway equipment is modified to wifi configuration items, configuration information is modified to the wifi module of memory directory In configuration file, and wifi configuration informations are stored in uci files, then re-read configuration file and come into force with confidence Breath, completes the setting that comes into force of wifi configuration items change.
As shown in figure 1, the detailed step that family gateway equipment starts is as follows:
A1. due under memory directory (/var catalogues) under original state without wifi module configuration file, it is necessary to from home network In read-only (rom) subregion of pass equipment flash subarea, copy under memory directory (/var catalogues), configured as wifi module The configuration template of file.
A2. family gateway equipment loads mark according to the wifi module for reading, and judges whether wifi module loads, if so, Into A4;If it is not, into A3;Preferably, wifi module loading is masked as/var/wifi_driver_insmod, if there is this Individual file, then it is assumed that wifi module has been loaded, if without this file, illustrating that wifi module is not loaded.
A3. family gateway equipment loads wifi module module.
A4. family gateway equipment verifies the wifi configurations in uci files according to the rule of wifi configuration items.Specifically, matching somebody with somebody Put item including each SSID (Service Set Identifier, service set) title, each SSID keys and encryption mode, Whether SSID hides, chip emission power and wifi module frequency range etc., and the existing verification mode according to each configuration item can school Test.For the entry of the wifi configuration items by verifying, the entry of wifi configuration items is synchronized under right/var catalogues, is completed The reconstruction of wifi module configuration file.
A5. family gateway equipment is completing after wifi module configuration file rebuilds, and notifies wifi module from under/var catalogues Wifi module configuration file is directly read, according to the configuration information of wifi module configuration file, realizes that wifi functions come into force.
As shown in Fig. 2 family gateway equipment is as follows to flow that wifi configuration items are modified:
S1. family gateway equipment is modified to wifi configuration items, for example, change SSID name etc..
Whether the S2. verification rule according to configuration item, 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 Be stored in configuration information in uci files by front yard gateway device.
S4. notify that 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 items change, specifically, wifi drives respectively matching somebody with somebody in wifi module configuration file The register value that item changes wifi chip is put, come into force wifi functions.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from On the premise of the principle of the invention, some 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 not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.

Claims (9)

1. a kind of method that wifi configuration managements are realized in family gateway equipment, it is characterised in that including:
Pre-set, the configuration information that wifi module reads in family gateway equipment is stored in memory directory, and wifi module is matched somebody with somebody The Template Information for putting file is stored in the Reading Sections of flash subarea, the configuration information of wifi module with uci file formats, 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 Into after the reconstruction of wifi module configuration file, wifi module reads configuration file, and come into force configuration information;
When family gateway equipment is modified to wifi configuration items, configuration information is modified to the wifi module configuration of memory directory In file, and configuration information is stored in uci files, then re-reads configuration file and the configuration information that comes into force, completed The setting that comes into force of wifi configuration items change.
2. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 1, it is characterised in that:It is described The configuration information that wifi module reads, is stored in memory directory with the document form in addition to uci file formats.
3. the method that wifi configuration managements are realized 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 in addition to uci file formats, Initial value is the default configuration information of wifi module.
4. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 1, it is characterised in that:Wifi moulds The Template Information of block configuration file, by being copied under memory directory in the Reading Sections of flash subarea, configures as wifi module The configuration template of file.
5. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 1, it is characterised in that:Home network When pass equipment starts, the wifi module loading mark read according to it judges whether to load wifi module, if so, synchronization wifi moulds Block configuration file;If it is not, loading wifi module.
6. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 1, it is characterised in that:It is synchronous Before wifi module configuration file, wifi of the family gateway equipment in the rule verification uci files of wifi configuration items matches somebody with somebody confidence Breath, to being synchronized by the entry of the wifi configuration items after verification.
7. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 6, it is characterised in that:It is described to match somebody with somebody Put item whether hidden including each SSID name, each SSID keys and encryption mode, SSID, chip emission power and wifi frequently It is wide.
8. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 1, it is characterised in that:Home network When pass equipment is modified to wifi configuration items, verification configuration item it is whether legal, it is legal after change configuration information again.
9. the method that wifi configuration managements are realized in family gateway equipment as claimed in claim 1, it is characterised in that:It is described complete Into the setting that comes into force of wifi configuration items change, specifically, notifying that wifi drives the wifi module configuration text read under memory directory Part comes into force, and each configuration amount of the wifi module in wifi module configuration file changes the register value of wifi chip, comes into force Wifi functions.
CN201710042398.9A 2017-01-20 2017-01-20 The method of wifi configuration management is realized in a kind of family gateway equipment Active CN106793012B (en)

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 true CN106793012A (en) 2017-05-31
CN106793012B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN108683537A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 The configuring management method and system of home gateway node based on UCI files
CN108683740A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 A kind of method and system of the promotion configuration access speed based on UCI
CN109831329A (en) * 2019-01-30 2019-05-31 网经科技(苏州)有限公司 A kind of method that gateway configuration is mutually separated with gateway system
CN112351423A (en) * 2020-11-06 2021-02-09 合肥美菱物联科技有限公司 Wifi key burning system and method thereof

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Cited By (7)

* Cited by examiner, † Cited by third party
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
WO2019024385A1 (en) * 2017-08-04 2019-02-07 上海斐讯数据通信技术有限公司 Method and system for backing up router configuration information, and recovery method and system
CN108683537A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 The configuring management method and system of home gateway node based on UCI files
CN108683740A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 A kind of method and system of the promotion configuration access speed based on UCI
CN109831329A (en) * 2019-01-30 2019-05-31 网经科技(苏州)有限公司 A kind of method that gateway configuration is mutually separated with gateway system
CN112351423A (en) * 2020-11-06 2021-02-09 合肥美菱物联科技有限公司 Wifi key burning system and method thereof
CN112351423B (en) * 2020-11-06 2023-05-23 合肥美菱物联科技有限公司 Wifi key burning system and method thereof

Also Published As

Publication number Publication date
CN106793012B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN106793012A (en) A kind of method that wifi configuration managements are realized in family gateway equipment
US7774382B2 (en) Method and apparatus for configuring a control device, and corresponding control device
CN105446769B (en) Image file upgrade processing method, device and terminal device
CN107436787B (en) Method for processing resource, device, storage medium and electronic device
CN106775723A (en) The method and Android device of the system firmware customization based on Android platform
CN104679532B (en) kernel module loading method and device
CN106648787A (en) Resource updating method and terminal
CN108090168A (en) A kind of general F2FS file system analytic method, terminal device and storage medium
CN107402788A (en) Resource packing management method and device
CN104461667B (en) The brush machine method and apparatus of intelligent terminal
CN107797826A (en) A kind of regular collocation method, terminal and the equipment of rule-based engine
CN106066802A (en) A kind of method and apparatus loading MBN file
CN106339247A (en) Loading system and loading method for DLL (Dynamic Link Library) file
CN106776082A (en) The method of attaching and device of text
CN109309725A (en) Using downloading and update method, device, computer equipment and storage medium
CN107911741A (en) Free memory method for improving, smart television and computer-readable recording medium
KR20150096782A (en) Virtual boundary codes in a data image of a read-write memory device
CN106445900A (en) Table style processing method and device
CN107360265A (en) A kind of equipment exclusive identification code acquisition methods, device and mobile terminal
CN109101232A (en) A kind of method, apparatus of product development, computer equipment and storage medium
CN112114823B (en) Burning reading system based on modified MAC address
CN106909351A (en) A kind of implementation method of the EXT file system based on UEFI firmwares
US8001443B2 (en) Data storage apparatus, data storage controller, and related automated testing method
CN107391178A (en) A kind of terminal installation kit deployment and implementation method and device
CN106997296A (en) Device identification matching process and the network equipment

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