Method and system for dynamically controlling object model reporting frequency and storage medium

By constructing a script module and service module for shielding and unblocking IP addresses, combined with the TR069 protocol and GUI interface, the object model reporting frequency is dynamically configured, which solves the problem of difficulty in adjusting the object model reporting frequency in the existing technology and realizes server traffic management. The flexibility of synchronizing with device status improves user experience and GMV.

CN118784681APending Publication Date: 2024-10-15SHENZHEN FENGYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411049586.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult to dynamically adjust the object model reporting frequency with the existing technology, causing the server to have excessive traffic or low frequency when the device level is high, resulting in device status not being synchronized in time, affecting user experience and GMV.

Method used

By building a script module and service module for shielding and unblocking IP addresses, combined with the TR069 protocol and GUI interface, IP address shielding and time intervals are dynamically configured to achieve flexible control of the reporting frequency of the object model.

Benefits of technology

Without affecting the normal consumption of users, the upstream traffic consumption of the server is reduced, the carrying capacity of the server is improved, emergencies can be flexibly responded to, and order anomalies and user losses are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784681A_ABST
    Figure CN118784681A_ABST
Patent Text Reader

Abstract

The invention discloses a method for dynamically controlling the reporting frequency of an object model. The method comprises the following steps: S1, constructing a first script module for shielding an IP address and removing the shielding of the IP address; s2, presetting the first script module constructed in the step S1 under a predetermined directory, and presetting a default IP shielding address; and S3, a first service module and a second service module are constructed, the first service module is used for starting the first script module to shield the IP address, and the second service module is used for stopping the first script module to remove the shielding of the IP address. According to the method, the reporting frequency of the physical model can be dynamically configured, and the uplink flow consumption of the server can be reduced without influencing the normal consumption of a user, so that the server can bear more equipment magnitudes, and meanwhile, the reporting frequency can be adjusted anytime and anywhere, emergency situations can be flexibly coped with, and the practicability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things platforms, and in particular to a method, system and storage medium for dynamically controlling the reporting frequency of an object model. Background Art

[0002] The object model is a data model defined by the IoT platform for products, which is used to describe the functions of products. The client needs to report some important information of MCU industrial control, such as network status, system status, geographic location, etc. to the platform server. These data change frequently. If the reporting frequency is not controlled, once the number of devices reaches more than 100,000, it will cause huge pressure on the server access traffic, and even directly cause the server to crash during the peak period of device use. On the other hand, if the reporting frequency is reduced rashly, the device status will not be updated in time, resulting in some abnormal failures and affecting user use.

[0003] How to set the reporting frequency? The existing method is to evaluate a reporting time interval based on experience, and then the client modifies the version according to this experience and releases it online. Through continuous trial and error, a relatively reasonable frequency is finally found. The disadvantage is that the client version release cycle is long and cannot respond in time. In addition, for high-sales order devices, the trial and error cost is too high, which affects the user experience. Once the frequency setting is unreasonable and cannot be modified dynamically and in time, it will cause a large number of abnormal orders and affect GMV. Summary of the invention

[0004] The purpose of the present invention is to provide a method, system and storage medium for dynamically controlling the reporting frequency of object models, which can dynamically configure the reporting frequency of object models, reduce the server uplink traffic consumption without affecting the normal consumption of users, so that the server can carry more device levels.

[0005] To achieve the above objectives, the following technical solutions are adopted:

[0006] A method for dynamically controlling the reporting frequency of an object model comprises the following steps:

[0007] S1: construct a first script module for blocking and unblocking IP addresses;

[0008] S2: presetting the first script module constructed in S1 in a predetermined directory, and presetting a default IP masking address;

[0009] S3: construct a first service module and a second service module, wherein the first service module is used to start the first script module to mask the IP address, and the second service module is used to stop the first script module to release the IP address mask;

[0010] S4: construct a start-stop control module, which is used to receive the IP shielding address and time interval sent from the outside to alternately execute the first service module and the second service module constructed in S3.

[0011] Furthermore, the method further includes step S5: configuring the IP shielding address and time interval, and sending the configuration to the start / stop control module.

[0012] Furthermore, the step S5 specifically includes the following steps:

[0013] Build a network management platform based on TR069 protocol;

[0014] Construct node data model for IP address masking and time interval setting;

[0015] Based on the node data model, a corresponding GUI interface is constructed, wherein the GUI interface provides an entry for setting shielded IP addresses and time intervals.

[0016] Furthermore, the first script module is written in shell script language.

[0017] Furthermore, in S2, the first script module is preset in the system / bin directory of the Android system, and at the same time, a default IP masking address is preset in the system.prop of the Android system.

[0018] Furthermore, in S3, the first service module and the second service module are constructed in the Android init.rc file.

[0019] Furthermore, in S4, the start-stop control module uses a pre-written binary BIN program file.

[0020] A system for dynamically controlling the reporting frequency of an object model, comprising:

[0021] A first script module, the first script module is used to block and unblock IP addresses;

[0022] A first service module, wherein the first service module is used to start a first script module;

[0023] a second service module, the second service module being used to stop the first script module;

[0024] The start-stop control module is used to receive the IP shielding address and time interval sent from the outside to alternately execute the first service module and the second service module.

[0025] Furthermore, it also includes

[0026] An attribute storage unit, wherein the attribute storage unit is used to store a default IP masked address;

[0027] A node model definition unit, wherein the node model definition unit is used to construct a data node model for IP address shielding and time interval setting;

[0028] A GUI configuration unit, the GUI configuration unit is used to configure the GUI interface and construct an entry for setting the shielding IP address and time interval in the GUI interface;

[0029] A parameter sending unit is used to send the IP shielding address and time interval set in the GUI interface to the start-stop control module.

[0030] A computer-readable storage medium stores a computer program, wherein the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the above method.

[0031] By adopting the above scheme, the beneficial effects of the present invention are:

[0032] The present invention can dynamically configure the reporting frequency of the object model, which can reduce the server uplink traffic consumption without affecting the normal consumption of users, so that the server can carry more equipment levels. At the same time, the reporting frequency can be adjusted anytime and anywhere to flexibly respond to emergencies, and is highly practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0034] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0035] Reference Figure 1 As shown, the present invention provides a method for dynamically controlling the reporting frequency of an object model. In one embodiment, the method comprises the following steps:

[0036] S1: Construct a first script module for blocking and unblocking IP addresses.

[0037] The first script module is written in shell script language.

[0038] The present invention controls the frequency of data reporting of object models by dynamically shielding the reported IP addresses, that is, controls the data reporting time interval, and the method of dynamically shielding the IP addresses is realized by constructing an iptables firewall instruction script; wherein, iptables is an important component of the Linux firewall system, and the main function of iptables is to realize the control of network data packets entering and exiting the device and forwarding. When the data packets need to enter the device, flow out of the device, or be forwarded and routed by the device, iptables can be used for control, and the IP filtering rules are designed with the help of the tool, including the implementation of the IP or host restriction instruction set and the IP restriction release instruction. The next step is to construct a shell program to execute the above defined instructions.

[0039] Shell is a program written in C language, which is a bridge for users to use Linux. Shell is both a command language and a programming language. The present invention first writes a first script module based on shell script language to shield and remove IP address shielding.

[0040] S2: Preset the first script module constructed by S1 in a predetermined directory and preset a default IP masking address.

[0041] In S2, the first script module is preset in the system / bin directory of the Android system, and at the same time, a default IP masking address is preset in the system.prop of the Android system.

[0042] S3: construct a first service module and a second service module, wherein the first service module is used to start the first script module to shield the IP address, and the second service module is used to stop the first script module to release the IP address shielding.

[0043] In S3, the first service module and the second service module are constructed in the Android init.rc file.

[0044] After the script module is written, the timing of executing the script instructions needs to be designed. The present invention is based on the Android system. The script defined above can be preset in the / system / bin directory, and then two services are defined in init.rc, one is to start the IP shielding script service, and the other is to stop the IP shielding script service. After defining the script service, the above two services can be started alternately according to the shielded IP address and time interval.

[0045] S4: construct a start-stop control module, which is used to receive the IP shielding address and time interval sent from the outside to alternately execute the first service module and the second service module constructed in S3.

[0046] In S4, the start-stop control module uses a pre-written binary BIN program file.

[0047] The method also includes step S5: configuring the IP shielding address and time interval, and sending them to the start / stop control module.

[0048] The step S5 specifically includes the following steps:

[0049] Build a network management platform based on TR069 protocol;

[0050] Construct node data model for IP address masking and time interval setting;

[0051] Based on the node data model, a corresponding GUI interface is constructed, wherein the GUI interface provides an entry for setting shielded IP addresses and time intervals.

[0052] Dynamic configuration of shielded IP addresses and time intervals requires control based on the TR069 network management protocol platform. TR069 is a communication protocol between CPE and ACS. CPE can use this protocol to complete necessary operations such as service activation, function setting, file upload and download, system detection, etc. After the platform ACS sends the IP address and time interval, the client CPE receives the parameters, changes the corresponding attribute value of the system, and the BIN program reads the attribute value and executes the shielding strategy.

[0053] First, define the node data model for IP address shielding and time interval settings, and then implement the corresponding get / set methods on the CPE side, so that the communication link between the device side and the network management platform is opened. By setting one or a group of shielded IP addresses through the GUI interface of the network management, and configuring the time interval value at the same time, you can indirectly achieve the effect of dynamically controlling the reporting frequency of the object model. After the IP address reported by the object model is shielded, the object model data will be prevented from being reported to the server. After the shielding is lifted, the data reporting link can return to normal. Setting the shielding time interval can control the frequency of data reaching the server. In addition, the default shielded IP can be preset in the device system in advance. After the IP changes later, it can be modified through the network management platform.

[0054] At the same time, a system for dynamically controlling the reporting frequency of object models is also provided, including

[0055] A first script module, the first script module is used to block and unblock IP addresses;

[0056] A first service module, wherein the first service module is used to start a first script module;

[0057] a second service module, the second service module being used to stop the first script module;

[0058] The start-stop control module is used to receive the IP shielding address and time interval sent from the outside to alternately execute the first service module and the second service module.

[0059] An attribute storage unit, wherein the attribute storage unit is used to store a default IP masked address;

[0060] A node model definition unit, wherein the node model definition unit is used to construct a data node model for IP address shielding and time interval setting;

[0061] A GUI configuration unit, the GUI configuration unit is used to configure the GUI interface and construct an entry for setting the shielding IP address and time interval in the GUI interface;

[0062] A parameter sending unit is used to send the IP shielding address and time interval set in the GUI interface to the start-stop control module.

[0063] The system provided by the present invention can dynamically configure the frequency of object model reporting, which can reduce the server's uplink traffic consumption without affecting the normal consumption of users, so that the server can carry more equipment levels. During the peak period of consumer orders, the device dynamically adjusts the reporting frequency, which can effectively respond to emergencies and avoid economic losses and user loss caused by a large number of abnormal orders. During the low-use time period of the device, such as at night, the reporting frequency can be lowered to save server traffic. In addition, the reporting frequency can be modified anytime and anywhere according to the data dashboard, avoiding the long-term method of adjustment through experience values ​​and re-issuing the client version. It is flexible and convenient, simple to operate, does not require the participation of technical personnel, and the product is dynamically configured, effectively saving time and labor costs.

[0064] In addition, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the above method.

[0065] The computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0066] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for dynamically controlling the reporting frequency of an object model, characterized in that: The steps include: S1: construct a first script module for blocking and unblocking IP addresses; S2: presetting the first script module constructed in S1 in a predetermined directory, and presetting a default IP masking address; S3: construct a first service module and a second service module, wherein the first service module is used to start the first script module to mask the IP address, and the second service module is used to stop the first script module to release the IP address mask; S4: construct a start-stop control module, which is used to receive the IP shielding address and time interval sent from the outside to alternately execute the first service module and the second service module constructed in S3.

2. The method for reporting frequency of a dynamic control object model according to claim 1, characterized in that: The method also includes step S5: configuring the IP shielding address and time interval, and sending them to the start / stop control module.

3. The method for reporting frequency of a dynamic control object model according to claim 2, characterized in that: The step S5 specifically includes the following steps: Build a network management platform based on TR069 protocol; Construct node data model for IP address masking and time interval setting; Based on the node data model, a corresponding GUI interface is constructed, wherein the GUI interface provides an entry for setting shielded IP addresses and time intervals.

4. The method for reporting frequency of a dynamic control object model according to claim 1, characterized in that: The first script module is written in shell script language.

5. The method for reporting frequency of a dynamic control object model according to claim 1, characterized in that: In S2, the first script module is preset in the system / bin directory of the Android system, and at the same time, a default IP masking address is preset in the system.prop of the Android system.

6. The method for reporting frequency of a dynamic control object model according to claim 1, characterized in that: In S3, the first service module and the second service module are constructed in the Android init.rc file.

7. The method for reporting frequency of a dynamic control object model according to claim 1, characterized in that: In S4, the start-stop control module uses a pre-written binary BIN program file.

8. A system for dynamically controlling the reporting frequency of object models, characterized in that: include A first script module, the first script module is used to block and unblock IP addresses; A first service module, wherein the first service module is used to start a first script module; a second service module, the second service module being used to stop the first script module; The start-stop control module is used to receive the IP shielding address and time interval sent from the outside to alternately execute the first service module and the second service module.

9. The system for dynamically controlling object model reporting frequency according to claim 8, characterized in that: Also included is an attribute storage unit, the attribute storage unit is used to store a default IP masked address; A node model definition unit, wherein the node model definition unit is used to construct a data node model for IP address shielding and time interval setting; A GUI configuration unit, the GUI configuration unit is used to configure the GUI interface and construct an entry for setting the shielding IP address and time interval in the GUI interface; A parameter sending unit is used to send the IP shielding address and time interval set in the GUI interface to the start-stop control module.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 7.