CN106059785A - Method of configuring wireless device and wireless device - Google Patents

Method of configuring wireless device and wireless device Download PDF

Info

Publication number
CN106059785A
CN106059785A CN201610290826.5A CN201610290826A CN106059785A CN 106059785 A CN106059785 A CN 106059785A CN 201610290826 A CN201610290826 A CN 201610290826A CN 106059785 A CN106059785 A CN 106059785A
Authority
CN
China
Prior art keywords
node
wireless device
path
nodes
configuration
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.)
Pending
Application number
CN201610290826.5A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610290826.5A priority Critical patent/CN106059785A/en
Publication of CN106059785A publication Critical patent/CN106059785A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/829Topology based

Abstract

The present invention provides a method of configuring a wireless device and the wireless device. The method is applied to a wireless terminal device in a remote management system, and the remote management system also comprises a remote management device. The method comprises the following steps of S1 receiving a configuration file coming from the remote management device, wherein the configuration file comprises node paths and the configuration information; S2 creating a tree-shaped storage structure according to the node paths in the configuration file; S3 saving the configuration information in the last-stage nodes of the node paths. The beneficial effects of the technical scheme are that: the configuration information corresponding to the node paths in the configuration file is saved in the corresponding nodes in the tree-shaped storage structure, so that the corresponding nodes in the tree-shaped storage structure are convenient to traverse, and the corresponding configuration information is obtained rapidly.

Description

A kind of configuration wireless device method and wireless device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of configuration wireless device method and wireless device.
Background technology
Remote management apparatus, is generally connected with multiple wireless devices, it is achieved manage multiple wireless devices concentratedly, make Wireless device can be managed by user quickly and easily, and the most concrete management content includes, real-time monitoring is wireless to be set Standby operation conditions, issues configuration file to wireless device and completes the configuration to wireless device.Process at configuration wireless device In, configuration file is generally issued to wireless device by TR069 agreement by remote management apparatus, and wherein configuration file is with node The form in path carries out organizing, and also includes the configuration information corresponding with node path, and wireless device is receiving configuration After file, configuration file is resolved and find the configuration information of correspondence to complete wireless according to node path by mapping method The configuration of equipment, and the existing mapping method by node path to configuration information uses, and is set up by script file Array, the subscript of array is then node path, specific as follows: node_array [node path]=configuration information.And on using The form of the array stated, it is achieved the mapping method of node path to configuration information is needing to travel through the child node of each node path Time, deal with very is loaded down with trivial details.For example, it is assumed that node path is " A.B. ", then the node path started with " A.B. " is all Being the child node of A.B., as it is shown in figure 1, wherein " A.B.C ", " A.B.D ", " A.B.E. ", " A.B.E.F " is all the son of " A.B. " Node, so needs to travel through whole array, and resolves each array element, and efficiency can be the lowest.
Summary of the invention
The problems referred to above existed for the mapping method in prior art interior joint path to configuration information, existing offer one is logical Cross tree-like memory structure to realize node path level and become apparent from, and realize node path to configuration information mapping efficiency more High configuration wireless device method and wireless device.
Concrete technical scheme is as follows:
A kind of configuration wireless device method, the wireless terminal device being applied in long-distance management system, described long-range management System also includes remote management apparatus, wherein, comprises the following steps:
Step S1, receive from the described configuration file of remote management apparatus, described configuration file include node path and Configuration information;
Step S2, create a tree-like memory structure according to the described node path in described configuration file;
Step S3, by described configuration information preserve to described node path most end first nodes in.
Preferably, in described step S2, create described tree-like memory structure according to described node path and comprise the following steps:
Step S21, to make root node be current parent, and the first order node making node path is current comparison node;
Step S22, judge that whether described current comparison node is a child node of described current parent, if then holding Row step S23, if the most first setting current comparison node to perform step S23 again as a child node of current parent;
Step S23, it is judged that whether current comparison node is the most end first nodes of described node path, if otherwise order is current Comparison node is current parent, make the next stage node of current comparison node in described node path be current comparison node also Perform step S22;If then terminating.
Preferably, in described step S21, described root node is a Multidimensional numerical, and the described child node of described root node is Element in described Multidimensional numerical.
Preferably, the form of described node path is the sequence node of an expression node relationship between superior and subordinate.
Preferably, the method searching described tree-like memory structure comprises the following steps:
Step A, the described node path read in configuration file;
Step B, to make root node be current parent, and the first order node making node path is current comparison node;
Step C, judge that whether described current comparison node is a child node of described current parent, if then performing Step D;
If the most first setting current comparison node to perform step D again as a child node of current parent;
Step D, it is judged that whether current comparison node is the most end first nodes of described node path, if otherwise order currently than Relatively node is current parent, makes the next stage node of current comparison node in described node path be current comparison node and hold Row step C;
If then obtaining described most end first nodes.
Preferably, in described step D, when obtaining after described most end first nodes, described configuration information is write described in End first nodes, and/or
After obtaining described most end first nodes, obtain described configuration information in described most end first nodes.
Preferably, described configuration file is based on TR069 agreement.
Preferably, the form of described configuration file is LuCI form.
Also include a kind of wireless device, wherein, including described configuration wireless device method.
Preferably, described wireless device is WAP.
Technique scheme has the advantage that or beneficial effect: tie by node path correspondence creates into tree-like storage Structure, such that it is able to preserve node corresponding to tree-like memory structure by configuration information corresponding for configuration file interior joint path In, such that it is able to the convenient node traversing correspondence from tree-like memory structure quickly obtains the configuration information of correspondence, overcome In prior art, the defect that traversal that mapping between node path and configuration information exists is loaded down with trivial details and inefficient.
Accompanying drawing explanation
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.But, appended accompanying drawing be merely to illustrate and Illustrate, be not intended that limitation of the scope of the invention.
Fig. 1 is the structural representation of array in background technology;
Fig. 2 is a kind of flow chart configuring wireless device embodiment of the method for the present invention;
Fig. 3 is in one of the present invention configuration wireless device embodiment of the method, about the flow chart creating tree-like memory structure;
Fig. 4 is in one of the present invention configuration wireless device embodiment of the method, about the stream searching described tree-like memory structure Cheng Tu.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of not making creative work all its His embodiment, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and the feature in embodiment can phases Combination mutually.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
The present invention includes a kind of configuration wireless device method.
A kind of embodiment configuring wireless device method, the wireless terminal device being applied in long-distance management system, remotely Management system also includes remote management apparatus, wherein, as in figure 2 it is shown, comprise the following steps:
Step S1, receiving from the configuration file of remote management apparatus, configuration file includes node path and configuration information;
Step S2, create a tree-like memory structure according to the node path in configuration file;
Step S3, configuration information is preserved in the most end first nodes of node path.
In technique scheme, configuration file generally exists with the version of directory tree, including node path, with And the configuration information that on node path, each node is corresponding, receive, at wireless device, the configuration file that remote management apparatus sends After, create tree-like memory structure according to the node path in configuration file, so that each node of tree-like memory structure is to tree The path of the root node of shape memory structure is corresponding with the node path in configuration file, by wireless device by configuration file Configuration information preserves to the most end first nodes of node path.By the tree-like memory structure created, wireless device can be facilitated The node traversing correspondence in tree-like memory structure obtains configuration information, completes the configuration operation of wireless device.
In one preferably embodiment, as it is shown on figure 3, in step S2, create tree-like storage according to node path correspondence Deposit structure to comprise the following steps:
Step S21, to make root node be current parent, and the first order node making node path is current comparison node;
Step S22, judge that whether current comparison node is a child node of current parent, if then performing step S23, if the most first setting current comparison node to perform step S23 again as a child node of current parent;
Step S23, it is judged that whether current comparison node is the most end first nodes of node path, currently compares if otherwise making Node is current parent, makes the next stage node of current comparison node in node path be current comparison node and perform step S22;If then terminating.
In technique scheme, concrete according to the child node in the sequence node tree-like memory structure of establishment under root node For, making root node is father node, and the first order node making node path is current comparison node, it is judged that whether comparison node is father A child node under node, if then continuing to judge the most end first nodes whether current comparison node is node path, If the most tree-like memory structure creates successfully;
If the child node of the current non-father node of comparison node, then using current comparison node as of current parent Child node, and this child node is judged, if for the most end first nodes of node path, the most tree-like memory structure Create successfully, as no, then continue to carry out the next stage node in sequence node processing all nodes until in node path It is disposed, creates the success of tree-like memory structure according to node path.
In one preferably embodiment, in step S23, root node is a Multidimensional numerical, and the child node of root node is Element in Multidimensional numerical.
In technique scheme, child node preserves using the form as the element in the Multidimensional numerical of father node, The father node of bottom leaf node is one-dimension array, and the father node of one-dimension array corresponding node is two-dimensional array, by that analogy, from And can realize traveling through easily all child nodes of a father node.
In one preferably embodiment, the form of node path is the node sequence of an expression node relationship between superior and subordinate Row.
In one preferably embodiment, as shown in Figure 4, the method searching tree-like memory structure comprises the following steps:
Step A, the node path read in configuration file;
Step B, to make root node be current parent, and the first order node making node path is current comparison node;
Step C, judge that whether current comparison node is a child node of current parent, if then performing step D;
If the most first setting current comparison node to perform step D again as a child node of current parent;
Step D, it is judged that whether current comparison node is the most end first nodes of node path, currently compares joint if otherwise making Point is current parent, makes the next stage node of current comparison node in node path be current comparison node and perform step C;
If then obtaining most end first nodes.
In one preferably embodiment, in step D, after obtaining most end first nodes, configuration information is write End first nodes,
In technique scheme, the method for write configuration information specially makes root node be father node, makes node path First order node is current comparison node, it is judged that whether comparison node is a child node under father node, if then continuing to sentence Whether disconnected current comparison node is the most end first nodes of node path, if configuration information then writes first segment node;
If the child node of the current non-father node of comparison node, then using current comparison node as of current parent Child node, and this child node is judged, if for the most end first nodes of node path, the most then configuration information is write Enter most end first nodes;
If it is not, then continue to carry out the next stage node in sequence node processing at until all nodes in node path Manage complete, according to node path, configuration information write most end first nodes.
In one preferably embodiment, in step D, after obtaining most end first nodes, described configuration information is write Enter described most end first nodes, obtain described configuration information in described most end first nodes.
In technique scheme, the method for acquisition configuration information, specifically, making root node is father node, makes node path First order node is current comparison node, it is judged that whether comparison node is a child node under father node, if then continuing to sentence Whether disconnected current comparison node is the most end first nodes of node path, if then obtaining configuration letter in most end first nodes Breath;
If the child node of the current non-father node of comparison node, then using current comparison node as of current parent Child node, and this child node is judged, if for the most end first nodes of node path, the most then save in most end one-level Point obtains configuration information;
If it is not, then continue the next stage node in sequence node is processed, until all nodes in node path It is disposed, after most end first nodes being found according to node path, in most end first nodes, obtains configuration information complete nothing The configuration of line equipment.
In one preferably embodiment, configuration file is based on TR069 agreement.
In one preferably embodiment, remote management apparatus provides a storage element, in order to preserve configuration file.
In one preferably embodiment, wireless device provides a script file, forms tree in order to operative configuration file Shape memory structure.
In one preferably embodiment, the form of configuration literary composition is LuCI form.
Technical scheme also includes, a kind of wireless device, wherein, including configuration wireless device method.
In one preferably embodiment, wireless device is WAP.
In a particular embodiment, after wireless device receives the configuration file that remote management apparatus issues, by wireless Configuration file is operated by the script file that equipment provides, and is specially and creates tree-like storage according to the node path in configuration file Deposit structure, so that each node of tree-like memory structure is in path and the configuration file of the root node of tree-like memory structure Node path is corresponding, is preserved configuration information corresponding for each node in configuration file to tree-like storage knot by wireless device In node corresponding in structure;
When wireless device needs to get configuration information corresponding in configuration file, obtain tree according to node path correspondence Node corresponding in shape memory structure, travel through in tree-like memory structure according to node get corresponding configuration information realize right The configuration of wireless device.
Above-mentioned script file is LUA (script) script file, and LUA script is easily by C/C++ code call, it is possible to Actively to call the function of C/C++, make LUA script can be widely used in the application.
The foregoing is only preferred embodiment of the present invention, not thereby limit embodiments of the present invention and protection model Enclose, to those skilled in the art, it should can appreciate that done by all utilization description of the invention and diagramatic content Scheme obtained by equivalent and obvious change, all should be included in protection scope of the present invention.

Claims (10)

1. a configuration wireless device method, the wireless terminal device being applied in long-distance management system, described long-range management system System also includes remote management apparatus, it is characterised in that comprise the following steps:
Step S1, receiving from the described configuration file of remote management apparatus, described configuration file includes node path and configuration Information;
Step S2, create a tree-like memory structure according to the described node path in described configuration file;
Step S3, by described configuration information preserve to described node path most end first nodes in.
Configuration wireless device method the most according to claim 1, it is characterised in that in described step S2, according to described joint Point path creates described tree-like memory structure and comprises the following steps:
Step S21, to make root node be current parent, and the first order node making node path is current comparison node;
Step S22, judge that whether described current comparison node is a child node of described current parent, if then performing step Rapid S23, if the most first setting current comparison node to perform step S23 again as a child node of current parent;
Step S23, it is judged that whether current comparison node is the most end first nodes of described node path, currently compares if otherwise making Node is current parent, makes the next stage node of current comparison node in described node path be current comparison node and perform Step S22;If then terminating.
Configuration wireless device method the most according to claim 2, it is characterised in that in described step S21, described root node Being a Multidimensional numerical, the described child node of described root node is the element in described Multidimensional numerical.
Configuration wireless device method the most according to claim 1, it is characterised in that the form of described node path is a table Show the sequence node of node relationship between superior and subordinate.
Configuration wireless device method the most according to claim 1, it is characterised in that search the side of described tree-like memory structure Method comprises the following steps:
Step A, the described node path read in configuration file;
Step B, to make root node be current parent, and the first order node making node path is current comparison node;
Step C, judge that whether described current comparison node is a child node of described current parent, if then performing step D;
If the most first setting current comparison node to perform step D again as a child node of current parent;
Step D, it is judged that whether current comparison node is the most end first nodes of described node path, currently compares joint if otherwise making Point is current parent, makes the next stage node of current comparison node in described node path be current comparison node and perform step Rapid C;
If then obtaining described most end first nodes.
Configuration wireless device method the most according to claim 5, it is characterised in that in described step D, described in obtain After the first nodes of end, described configuration information is write described most end first nodes, and/or
After obtaining described most end first nodes, obtain described configuration information in described most end first nodes.
Configuration wireless device method the most according to claim 1, it is characterised in that described configuration file is assisted based on TR069 View.
Configuration wireless device method the most according to claim 1, it is characterised in that the form of described configuration file is LuCI Form.
9. a wireless device, it is characterised in that include the arbitrary described configuration wireless device method of claim 1-8.
Wireless device the most according to claim 9, it is characterised in that described wireless device is WAP.
CN201610290826.5A 2016-05-04 2016-05-04 Method of configuring wireless device and wireless device Pending CN106059785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610290826.5A CN106059785A (en) 2016-05-04 2016-05-04 Method of configuring wireless device and wireless device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610290826.5A CN106059785A (en) 2016-05-04 2016-05-04 Method of configuring wireless device and wireless device

Publications (1)

Publication Number Publication Date
CN106059785A true CN106059785A (en) 2016-10-26

Family

ID=57177069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610290826.5A Pending CN106059785A (en) 2016-05-04 2016-05-04 Method of configuring wireless device and wireless device

Country Status (1)

Country Link
CN (1) CN106059785A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686458A (en) * 2008-09-28 2010-03-31 华为技术有限公司 Terminal configuration, management method and terminal device
US20110276675A1 (en) * 2010-05-06 2011-11-10 Nec Laboratories America, Inc. Methods and systems for migrating networked systems across administrative domains
CN104158692A (en) * 2014-08-25 2014-11-19 烽火通信科技股份有限公司 Method of implementing configuration and management of data of home gateway based on XML (Extensible Markup Language)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686458A (en) * 2008-09-28 2010-03-31 华为技术有限公司 Terminal configuration, management method and terminal device
US20110276675A1 (en) * 2010-05-06 2011-11-10 Nec Laboratories America, Inc. Methods and systems for migrating networked systems across administrative domains
CN104158692A (en) * 2014-08-25 2014-11-19 烽火通信科技股份有限公司 Method of implementing configuration and management of data of home gateway based on XML (Extensible Markup Language)

Similar Documents

Publication Publication Date Title
CN102346747B (en) Method for searching parameters in data model
CN103516541A (en) Configuration information automatic management method based on intelligent transformer substation
CN104239511B (en) A kind of user's space file system implementation method towards MongoDB
CN104539502B (en) A kind of method of self-defined addition modbus equipment
CN103561133A (en) IP address ownership information indexing and fast querying method
CN105426375A (en) Relationship network calculation method and apparatus
CN104331343A (en) File backup method and system
CN102737108A (en) Method and device for processing flow diagram
US20180199175A1 (en) M2m node management method and apparatus, and computer storage medium
CN105827460A (en) Automatic testing method, device and system of network device
CN106101412A (en) The information session processing method of mobile communication terminal and mobile communication terminal
CN113094355A (en) Model instantiation method, device, equipment and medium based on domestic communication protocol
CN105247814A (en) Method and apparatus for managing physical address of network device
CN105447105A (en) NoSQL-based single field section index query method for distributed Internet of things data
CN106354775A (en) Data dynamic configuration system and method based on custom fields
CN105824944A (en) XML (X Extensible Markup Language) configuration data maintenance method and system based on scripting language
CN105610899A (en) Text file parallel uploading method and device
CN104579979A (en) Network topology discovery method based on MAC information
CN108762979B (en) Terminal information backup method and backup device based on matching tree
CN105808748A (en) MIB (Management Information Base) version contrast method and device
CN106059785A (en) Method of configuring wireless device and wireless device
CN105207825A (en) Fast synchronizing system and synchronizing method for network elements
CN103248649B (en) Sort management method, equipment and the system of application
CN102098288B (en) Method for optimizing TCP (Transmission Control Protocol) connection management by adopting static linked list to structure TCP node pool
CN104735097A (en) Information collecting method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20200407