Gateway configuration management method and system and storage medium

By adding a UUS object to each online subgateway on the main gateway and registering its configuration management top-level node and standard node access UUS method, the problem of high memory and flash requirements of the main gateway access caused by large-capacity subgateway access is solved, and flexible adaptation and efficient configuration management of the new capability set subgateway are achieved.

CN120034433APending Publication Date: 2025-05-23FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510226395.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the scenario of large-capacity subgateway access, the nodes of the storage subgateway configuration defined on the main gateway grow multiple times, resulting in high memory and flash requirements of the main gateway and the subgateway with a new capability set that cannot adapt to the access.

Method used

By adding a Ubus object to each online subgateway on the main gateway, registering its subgateway configuration to manage top-level nodes and standard node access Ubus methods, forwarding call messages to obtain the subgateway configuration, and the actual subgateway configuration node is stored on the subgateway.

Benefits of technology

It avoids the large consumption of main gateway memory, reduces dependence on flash, and does not require the main gateway to adapt to the new capability set of subgateways for access, improving the flexibility and efficiency of gateway configuration management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034433A_ABST
    Figure CN120034433A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of gateways, and discloses a gateway configuration management method and system and a storage medium, and the method comprises the steps: responding to an access request for sub-gateway configuration, searching a ubus object associated with a sub-gateway configuration management top node from a main gateway, and calling a standard node of the ubus object to access a ubus method; and forwarding the standard node access ubus method and the to-be-accessed node parameters to a sub-gateway, mapping to a sub-gateway configuration management node according to a node full path in the to-be-accessed node parameters in the sub-gateway, accessing a sub-gateway memory parameter tree according to the standard node access ubus method, and obtaining an access result. The sub-gateway configuration management node is stored on the sub-gateway, the access of the high-capacity sub-gateway does not cause the large consumption of the memory of the main gateway, and the main gateway does not need to maintain the sub-gateway configuration management node, so that the main gateway does not need to be additionally adapted even if the sub-gateway with a brand new capability set is accessed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of gateway technology, and in particular to a gateway configuration management method, system and readable storage medium. Background Art

[0002] In the field of FTTR (Fiber to The Room) management, a common sub-gateway configuration solution is to define and store sub-gateway configuration nodes on the main gateway, and send the configuration to the sub-gateway configuration node on the main gateway through the management module of the main gateway (Web / TR069 / intelligent module, etc.). The main gateway synchronizes the configuration to the sub-gateway through a pre-established channel.

[0003] The limitation of the above scheme is that in the scenario of large-capacity sub-gateway access, the nodes of the storage sub-gateway configuration defined on the main gateway increase exponentially, and the memory and flash requirements of the main gateway are relatively high; and, since the nodes of the storage sub-gateway configuration defined on the main gateway are required to be the union of all nodes that may access the sub-gateway, for example, the nodes of the sub-gateway include whether it supports WIFI, whether it supports voice, how many WANs are supported, how many LAN ports exist, etc., if the nodes accessing the sub-gateway exceed the previously defined node support range, the main gateway needs to be re-adapted. Summary of the invention

[0004] The present invention aims to provide a gateway configuration management method, system and readable storage medium which support large-capacity sub-gateway access and adapt to the requirements of new sub-gateway nodes.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, a gateway configuration management method is provided, comprising:

[0007] In response to the access request to the sub-gateway configuration, the main gateway searches for the ubus object associated with the sub-gateway configuration management top-level node, and calls the standard node access ubus method of the ubus object;

[0008] The standard node access ubus method and the node parameters to be accessed are forwarded to the sub-gateway, and the node full path in the node parameters to be accessed is mapped to the sub-gateway configuration management node in the sub-gateway, and the sub-gateway memory parameter tree is accessed according to the standard node access ubus method to obtain the access result.

[0009] Furthermore, the method for the main gateway to manage the sub-gateway includes:

[0010] Monitor the sub-gateway online message;

[0011] In response to the sub-gateway online message, register the sub-gateway and obtain the gateway serial number of the sub-gateway, where the gateway serial number is the serial number of all sub-gateways attached to the main gateway by the sub-gateway;

[0012] In the main gateway, a new ubus object is added according to the gateway serial number of the sub-gateway, and the sub-gateway configuration management top-level node and standard node access ubus method of the ubus object are registered.

[0013] Furthermore, it also includes:

[0014] In response to the sub-gateway offline message, the ubus object corresponding to the sub-gateway is deregistered.

[0015] Furthermore, the standard node access ubus method includes:

[0016] GetParameterNames, used to obtain supported nodes;

[0017] GetParameterValues, used to obtain node values;

[0018] SetParameterValues, used to set node values;

[0019] AddObject, used to add new objects;

[0020] DeleteObject, used to delete an object.

[0021] In a second aspect, a gateway configuration management system is provided, including:

[0022] The main gateway proxy module runs on the main gateway and is used to respond to the access request of the sub-gateway configuration, find the ubus object associated with the sub-gateway configuration management top-level node, call the standard node access ubus method of the ubus object, and forward the standard node access ubus method and the node parameters to be accessed to the sub-gateway proxy module;

[0023] The sub-gateway proxy module runs on the sub-gateway and is used to map the node full path in the node parameter to be accessed to the sub-gateway configuration management node, access the sub-gateway memory parameter tree according to the standard node access ubus method, obtain the access result, and feed back the access result to the main gateway proxy module.

[0024] Furthermore, the system further comprises:

[0025] The sub-gateway management module runs on the main gateway and is used to monitor the sub-gateway online messages;

[0026] The sub-gateway management module is further used to respond to a sub-gateway online message, register the sub-gateway, and obtain a gateway serial number of the sub-gateway, where the gateway serial number is the serial number of all sub-gateways attached to the main gateway.

[0027] Furthermore, the main gateway proxy module is also used to add a new ubus object according to the gateway sequence number of the sub-gateway.

[0028] Furthermore, the main gateway proxy module is also used to respond to the sub-gateway offline message and cancel the ubus object corresponding to the sub-gateway.

[0029] Furthermore, the system further comprises:

[0030] The sys_bus module runs on the main gateway and is used to save the correspondence between the ubus objects and the top-level nodes of the sub-gateway configuration management;

[0031] The ubusd module runs on the main gateway and is used to save the correspondence between ubus objects and standard node access ubus methods.

[0032] Based on the same inventive concept, the present invention also provides a computer storage medium, in which computer executable instructions are stored, and the computer executable instructions can implement the aforementioned gateway configuration management method when executed.

[0033] Technical effects and advantages of the present invention:

[0034] (1) The main gateway adds a new ubus object for each sub-gateway that goes online. The main gateway registers the sub-gateway configuration management top-level node and standard node access ubus method of the object, obtains the sub-gateway configuration by forwarding the call message, and the actual sub-gateway configuration node is stored on the sub-gateway. Therefore, even if a large number of sub-gateways are connected, it will not cause a large amount of memory consumption of the main gateway, and does not involve flash;

[0035] (2) Since the main gateway only perceives the top-level node of the sub-gateway configuration management, the main gateway does not need to maintain the nodes of the sub-gateway. Therefore, even if a sub-gateway with a completely new capability set is connected, the main gateway does not need additional adaptation;

[0036] (3) When the sub-gateway goes offline, the main gateway deregisters the corresponding ubus object. Therefore, when the main gateway accesses the node of the sub-gateway, it will return directly because it cannot find the corresponding ubus object. There is no need to additionally detect whether the sub-gateway is online, saving waiting time.

[0037] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 This is a comparison chart between the centralized data model and the distributed data model;

[0040] Figure 2 This is a flow chart of a gateway configuration management method in a first embodiment of the present invention;

[0041] Figure 3 This is a schematic diagram of the structure of a gateway configuration management system in a second embodiment of the present invention;

[0042] Figure 4 A schematic diagram of a main gateway managing a sub-gateway in a specific embodiment of the present invention;

[0043] Figure 5 The figure is a schematic diagram of communication between a main gateway and a sub-gateway in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] ubusd, or ubus bus, provides an efficient, object-oriented communication mechanism for interaction between different daemons and services. It serves as a message routing center, handling the communication between applications from the ubus client and the ubusd server daemon.

[0046] ubus object: an object is an entity with a specific function and can have multiple instances; an object path is a unique identifier of an object, which enables an application to reference and operate a specific object instance.

[0047] ubus method: A ubus method is a callable operation on an object that can take input parameters and return output results.

[0048] All ubus objects are registered with ubusd. When accessing ubus objects, ubusd forwards the access request from one ubus client to another. Ubus allows ubusd to call methods, receive notifications, and transfer data by sending and receiving messages.

[0049] Node: A node is a way to express the capabilities of a device. The full path (complete address) of the node is used to obtain accurate device information.

[0050] In the prior art, node data management can be performed through centralized data models and distributed data models. Figure 1 As shown, there is only one memory parameter tree in the centralized data model device, including all nodes supported by the device. Each module loads the centralized memory parameter tree into its own process in the form of shared memory and accesses the memory parameter tree in the same way as accessing local memory.

[0051] Exemplarily, the node InternetGatewayDevice.DeviceInfo. contains general device information;

[0052] Nodes InternetGatewayDevice.WANDevice.{i}.WANConnectionDevice.{i}., each instance of which contains objects associated with a given WAN link;

[0053] InternetGatewayDevice.LANDevice.{i}.LANEthernetInterfaceConfig.{i}., whose object is a model of the Ethernet LAN connection on the CPE device

[0054] InternetGatewayDevice.LANDevice.{i}.WLANConfiguration.{i}{i}., defines the connection model of the 802.11LAN of the CPE device.

[0055] Distributed data model is relative to centralized data model. In distributed data model, each module has a memory parameter tree, which only contains nodes belonging to the module. Each module registers its own namespace with sys_bus module when it starts, including the name of the module's ubus object and the full path of the top-level node belonging to the module's node. When each module accesses the memory parameter tree, it first searches for the ubus object associated with the node to be accessed from the namespace based on the longest path matching principle (i.e. the longest match of the full path of the node to be accessed in the namespace), and then calls the standard node access method of the corresponding ubus object. The accessed module accesses its own memory parameter tree in the way of accessing local memory according to the called ubus method and input parameters, and then returns the result.

[0056] In order to improve the gateway node management capability, the first embodiment of the present invention discloses a gateway configuration management method based on a distributed data model, such as Figure 2 As shown, the gateway configuration management method includes:

[0057] Step S1, in response to an access request to the sub-gateway configuration, searching the ubus object associated with the sub-gateway configuration management top-level node from the main gateway, and calling the standard node access ubus method of the ubus object;

[0058] Step S2: forward the standard node access ubus method and the node parameters to be accessed to the sub-gateway, map the node full path in the node parameters to be accessed to the sub-gateway configuration management node in the sub-gateway, access the sub-gateway memory parameter tree according to the standard node access ubus method, and obtain the access result.

[0059] In the embodiment of the present invention, each sub-gateway that is online has a unique corresponding ubus object on the main gateway. The main gateway is registered with the sub-gateway configuration management top-level node of the ubus object and the standard node access ubus method. The main gateway accesses the sub-gateway configuration management node by calling the ubus method and forwarding the message. The actual sub-gateway configuration management node is stored on the sub-gateway. Therefore, even if a large-capacity sub-gateway is connected, it will not cause a large amount of memory consumption of the main gateway, and does not involve flash. In addition, since the main gateway only perceives the sub-gateway configuration management top-level node, the main gateway does not need to maintain the sub-gateway configuration management node stored on the sub-gateway. Even if a sub-gateway with a completely new capability set is connected, the main gateway does not need additional adaptation.

[0060] According to an embodiment of the present invention, before accessing the sub-gateway configuration, the main gateway needs to perform node management on the sub-gateway that is online, and the method for the main gateway to manage the sub-gateway includes:

[0061] Monitor the sub-gateway online message;

[0062] In response to the sub-gateway online message, register the sub-gateway and obtain the gateway serial number of the sub-gateway, where the gateway serial number is the serial number of all sub-gateways attached to the main gateway by the sub-gateway;

[0063] In the main gateway, a new ubus object is added according to the gateway serial number of the sub-gateway, and the sub-gateway configuration management top-level node and standard node access ubus method of the ubus object are registered.

[0064] Further, according to a preferred implementation manner, in response to a sub-gateway offline message, a ubus object corresponding to the sub-gateway is deregistered in the main gateway.

[0065] Among them, the standard node access ubus method of the ubus object registered in the main gateway includes:

[0066] GetParameterNames is used to obtain the node name and synchronously obtain the capability set through the node name; GetParameterValues ​​is used to obtain the node value; SetParameterValues ​​is used to set the node value; AddObject is used to add a new object; DeleteObject is used to delete an object.

[0067] In the embodiment of the present invention, the main gateway adds a ubus object for each sub-gateway that goes online, registers the sub-gateway configuration management top-level node and the standard node access ubus method of the ubus object on the main gateway, and the sub-gateway configuration management node is stored on the sub-gateway. Therefore, after the main gateway finds the ubus object associated with the sub-gateway configuration management top-level node, the standard node access ubus method (one or more of GetParameterNames, GetParameterValues, SetParameterValues, AddObject and DeleteObject) of the ubus object is called according to the input operation name in the main gateway memory parameter tree, and then the standard node access ubus method and the input node parameter to be accessed are forwarded to the sub-gateway through a pre-established channel, so that the sub-gateway accesses its own memory parameter tree in a manner of accessing local memory according to the standard node access ubus method and the node parameter to be accessed, and feeds back the access result to the main gateway.

[0068] In the prior art, the status and performance data of the sub-gateway generally need to be obtained from the sub-gateway in real time. Before each acquisition, it is necessary to determine whether the sub-gateway is online. If the sub-gateway is offline, it is necessary to wait. According to the method of this embodiment, when the sub-gateway is offline, the ubus object corresponding to the sub-gateway is deregistered in the main gateway. Therefore, when the main gateway accesses the node of the sub-gateway, it will directly return because it cannot find the corresponding ubus object. There is no need to detect whether the sub-gateway is online, avoiding waiting timeout when the sub-gateway is offline.

[0069] like Figure 3 As shown, the second embodiment of the present invention further provides a gateway configuration management system, the system comprising:

[0070] The main gateway proxy module runs on the main gateway and is used to respond to the access request of the sub-gateway configuration, find the ubus object associated with the sub-gateway configuration management top-level node, call the standard node access ubus method of the ubus object, and forward the standard node access ubus method and the node parameters to be accessed to the sub-gateway proxy module;

[0071] The sub-gateway proxy module runs on the sub-gateway and is used to map the node full path in the node parameter to be accessed to the sub-gateway configuration management node, access the sub-gateway memory parameter tree according to the standard node access ubus method, obtain the access result, and feed back the access result to the main gateway proxy module.

[0072] In the embodiment of the present invention, the gateway configuration management system further includes a sub-gateway management module.

[0073] The sub-gateway management module runs on the main gateway and is used to monitor the sub-gateway online message. The sub-gateway management module is also used to respond to the sub-gateway online message, register the sub-gateway, and obtain the gateway sequence number of the sub-gateway, which is the sequence number of all sub-gateways of the sub-gateway under the main gateway.

[0074] In the embodiment of the present invention, the main gateway proxy module is further used to add a new ubus object according to the gateway sequence number of the sub-gateway, and to respond to the sub-gateway offline message and cancel the ubus object corresponding to the sub-gateway.

[0075] Furthermore, the gateway configuration management system also includes a message cache middleware module sys_bus and a ubus bus module ubusd.

[0076] The sys_bus module runs on the main gateway and is used to save the correspondence between ubus objects and the top-level nodes of the sub-gateway configuration management; the ubusd module runs on the main gateway and is used to save the correspondence between ubus objects and the standard node access ubus methods.

[0077] The sys_bus module caches the correspondence between the names of the ubus objects registered by all modules and the top-level node full paths of the nodes to which they belong, so that the ubus objects can be judged according to the given node full paths during subsequent access. The ubusd module is the message routing center, which is used to handle the communication between the client application and the server daemon, and calls the ubus methods of the ubus objects, receives notifications and transmits data by sending and receiving messages.

[0078] The following is a detailed description through a specific embodiment:

[0079] See also Figures 3 to 5 The specific process of the main gateway managing the sub-gateway is as follows:

[0080] Step 1: The main gateway assigns a gateway serial number x to the sub-gateway according to the registration message of the sub-gateway;

[0081] The specific operation is: use the sub-gateway management module subontmgr running on the main gateway to register and authorize the sub-gateway that is online, assign the gateway serial number x to the sub-gateway and configure the PON channel. The gateway serial number x is the serial number of all sub-gateways attached to the main gateway.

[0082] Step 2, the sub-gateway management module subontmgr notifies the main gateway proxy module of the gateway serial number x;

[0083] Step 3, the main gateway proxy module adds a new ubus object to the sub-gateway according to the gateway serial number x, registers the sub-gateway configuration management top-level node of the ubus object with the sys_bus module, and registers the standard node access ubus method of the ubus object with the ubusd module;

[0084] The node expresses the device information through the full path. For example, the node IGD.Deviceinfo.Manufacture expresses the manufacturer information of the device. It expresses the manufacturer information of the main gateway on the main gateway and expresses the manufacturer information of the sub-gateway on the sub-gateway.

[0085] IGD.Connectedont.{i}.Deviceinfo.Manufacture on the main gateway indicates the manufacturer information of the i-th sub-gateway.

[0086] In this step, the main gateway proxy module registers the sub-gateway configuration management top-level node of the ubus object connectedont_x to the sys_bus module as follows:

[0087] IGD.X_FH_PONInterfaceConfig.1.ConnectedONT.{x}.

[0088] Register the standard node access ubus methods of the ubus object to the ubusd module, including GetParameterNames, GetParameterValues, SetParameterValues, AddObject, and DeleteObject.

[0089] Step 4: The ACS platform accesses the above-mentioned sub-gateway configuration management top-level node and its sub-nodes on the main gateway;

[0090] ACS (Auto-Configuration Server) interacts with the main gateway through the TR069 protocol and uses nodes as a way to access resources.

[0091] For example, obtain the manufacturer information of the sub-gateway through the following node:

[0092] IGD.X_FH_PONInterfaceConfig.1.ConnectedONT.{x}.DeviceInfo.Manufacture

[0093] This node is a child node of the top-level node IGD.X_FH_PONInterfaceConfig.1.ConnectedONT.{x}.

[0094] Step 5, search the ubus object associated with the sub-gateway configuration management top-level node from the sys_bus module, and call the standard node access ubus method of the ubus object from the ubusd module;

[0095] For example, find the top-level node from the namespace of the sys_bus module

[0096] IGD.X_FH_PONInterfaceConfig.1.ConnectedONT.{x}.ubus object to which it belongs, such as Figure 4 As shown, it belongs to the ubus object connectedont_x.

[0097] Access the ubus object according to the TR069 protocol, and call the standard node access ubus method by entering the operation name, for example, enter GetParameterNames to get the node name, enter GetParameterValues ​​to get the node value, enter SetParameterValues ​​to set the node value, enter AddObject to add a new object, and enter DeleteObject to delete an object.

[0098] Step 6, sending the called standard node access ubus method and the parameters of the node to be accessed to the main gateway proxy module through the ubus message;

[0099] For example, when accessing the manufacturer information of a sub-gateway, call the standard node access ubus method GetParameterValues ​​and enter the node parameters to be accessed:

[0100] IGD.X_FH_PONInterfaceConfig.1.ConnectedONT.{x}.DeviceInfo.Manufacture

[0101] Step 7, the main gateway proxy module forwards the standard node access ubus method and the parameters of the node to be accessed to the sub-gateway proxy module;

[0102] There is no restriction on the communication method between the main gateway and the sub-gateway. Taking mqtt communication as an example, both the main gateway and the sub-gateway are registered to the mqtt bus. When the sub-gateway goes online, it registers a topic with the mqtt bus. The full path is topic / fh / action / request / sub_fttr_x / data_model. The sub-gateway and the main gateway agree on the same communication topic. The sub-gateway subscribes to the topic. When the main gateway publishes the topic, the sub-gateway can receive the message. The main gateway proxy module encapsulates the received ubus method and the node parameters to be accessed into an mqtt message and sends it to the above topic for the sub-gateway proxy module to subscribe. Since the input parameter blob_buf of the ubus method is in json format, the message encapsulation process only needs to additionally encapsulate the operation name of the ubus method.

[0103] Step 8, after the sub-gateway proxy module obtains the ubus method and the parameters of the node to be accessed, it maps the full path of the node in the parameters of the node to be accessed to the sub-gateway node, accesses the sub-gateway memory parameter tree, and returns the access result;

[0104] For example, based on the pre-stored mapping relationship between the sub-gateway configuration management top-level node and the sub-gateway memory parameter tree, the sub-gateway proxy module parses the ubus method and the node parameters to be accessed from the received mqtt message, and maps the node full path (the complete address of the node on the device) IGD.X_FH_PONInterfaceConfig.1.ConnectedONT.{x}.DeviceInfo.Manufacture in the node parameters to be accessed to the sub-gateway node IGD.DeviceInfo.Manufacture, calls the ubus method GetParameterValues ​​to access the sub-gateway memory parameter tree, and obtains the manufacturer information of the sub-gateway.

[0105] Step 9: When the sub-gateway goes offline, the main gateway agent module deregisters the ubus object corresponding to the sub-gateway to the sys_bus module and the ubusd module.

[0106] After the sub-gateway goes offline, the main gateway will directly return when accessing the node of the sub-gateway because it cannot find the corresponding ubus object. There is no need to detect whether the sub-gateway is online, avoiding waiting timeout when the sub-gateway is offline.

[0107] In the embodiment of the present invention, the main gateway runs a main gateway proxy module, and the sub-gateway proxy module runs a sub-gateway proxy module. The main gateway proxy module allocates a ubus object to each sub-gateway that is online, registers the sub-gateway configuration management top-level node of the object with sys_bus, and registers the standard node access ubus method of the object with ubusd. Each module accesses a sub-gateway configuration management node, that is, accesses the standard node access ubus method of the corresponding ubus object registered on the main gateway proxy module. The main gateway proxy module forwards the access to the sub-gateway proxy module, and the sub-gateway proxy module returns the access result after processing. Since the actual sub-gateway configuration management node is stored on the sub-gateway, even if a large-capacity sub-gateway is connected, it will not cause a large amount of memory consumption of the main gateway, and does not involve flash. Moreover, since the main gateway only perceives the sub-gateway configuration management top-level node, the main gateway does not need to maintain the sub-gateway configuration management node stored on the sub-gateway, and even if a sub-gateway with a completely new capability set is connected, the main gateway does not need additional adaptation.

[0108] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, in which computer executable instructions are stored, and when the computer executable instructions are executed, the aforementioned gateway configuration management method is implemented.

[0109] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules.

[0110] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional modules in the various embodiments of the present invention may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0111] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0112] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0113] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not used to limit the present invention. Although the present invention is described in detail with reference to the above embodiments, for those skilled in the art, they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A gateway configuration management method, characterized in that: The method comprises: In response to the access request to the sub-gateway configuration, the main gateway searches for the ubus object associated with the sub-gateway configuration management top-level node, and calls the standard node access ubus method of the ubus object; The standard node access ubus method and the node parameters to be accessed are forwarded to the sub-gateway, and the node full path in the node parameters to be accessed is mapped to the sub-gateway configuration management node in the sub-gateway, and the sub-gateway memory parameter tree is accessed according to the standard node access ubus method to obtain the access result.

2. The method according to claim 1, characterized in that The methods for the main gateway to manage the sub-gateway include: Monitor the sub-gateway online message; In response to the sub-gateway online message, register the sub-gateway and obtain the gateway serial number of the sub-gateway, where the gateway serial number is the serial number of all sub-gateways attached to the main gateway by the sub-gateway; In the main gateway, a new ubus object is added according to the gateway serial number of the sub-gateway, and the sub-gateway configuration management top-level node and standard node access ubus method of the ubus object are registered.

3. The method according to claim 2, characterized in that Also includes: In response to the sub-gateway offline message, the ubus object corresponding to the sub-gateway is deregistered.

4. The method according to claim 1, characterized in that The standard node access ubus method includes: GetParameterNames, used to obtain the node name; GetParameterValues, used to obtain node values; SetParameterValues, used to set node values; AddObject, used to add new objects; DeleteObject, used to delete an object.

5. A gateway configuration management system, characterized in that: The system comprises: The main gateway proxy module runs on the main gateway and is used to respond to the access request of the sub-gateway configuration, find the ubus object associated with the sub-gateway configuration management top-level node, call the standard node access ubus method of the ubus object, and forward the standard node access ubus method and the node parameters to be accessed to the sub-gateway proxy module; The sub-gateway proxy module runs on the sub-gateway and is used to map the node full path in the node parameter to be accessed to the sub-gateway configuration management node, access the sub-gateway memory parameter tree according to the standard node access ubus method, obtain the access result, and feed back the access result to the main gateway proxy module.

6. The system according to claim 5, characterized in that The system further comprises: The sub-gateway management module runs on the main gateway and is used to monitor the sub-gateway online messages; The sub-gateway management module is further used to respond to a sub-gateway online message, register the sub-gateway, and obtain a gateway serial number of the sub-gateway, where the gateway serial number is the serial number of all sub-gateways attached to the main gateway.

7. The system according to claim 6, characterized in that The main gateway proxy module is also used to add a new ubus object according to the gateway sequence number of the sub-gateway.

8. The system according to claim 7, characterized in that The main gateway proxy module is also used to respond to the sub-gateway offline message and cancel the ubus object corresponding to the sub-gateway.

9. The system according to claim 7, characterized in that The system further comprises: The sys_bus module runs on the main gateway and is used to save the correspondence between the ubus objects and the top-level nodes of the sub-gateway configuration management; The ubusd module runs on the main gateway and is used to save the correspondence between ubus objects and standard node access ubus methods.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions, when executed, implement the method according to any one of claims 1 to 4.