A gateway networking method, a gateway networking system and an intelligent gateway device
By distinguishing history and real-time supervision, calculating the scores of gateway equipment and performing network adjustments, the problems of insufficient abnormal switching of gateway equipment and poor network convergence in the existing technology are solved, long-term effective supervision and real-time supervision of gateway equipment are realized, and gateway networking technology is optimized.
Patent Information
- Application Number
- CN202411285800.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-09-13
AI Technical Summary
The existing gateway networking technology has insufficient switching when the gateway equipment is abnormal, fails to achieve long-term effective supervision, and the switching depends on direct control signals, fails to effectively integrate with existing network equipment, and cannot obtain effective data for abnormal analysis.
A gateway networking method is proposed, which obtains historical and real-time data, calculates historical and real-time scores, performs network adjustments and generates early warnings and alarms, and performs manual processing to realize long-term supervision and real-time supervision of gateway equipment.
Long-term effective supervision and real-time supervision of gateway equipment are realized, data reference and judgment conditions are provided through historical and real-time scoring, gateway networking technology is optimized, and device switching accuracy and network convergence efficiency are improved.
Smart Images

Figure CN118945080B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gateway networking technology, and specifically to a gateway networking method, a gateway networking system and an intelligent gateway device. Background Art
[0002] With the development of network technology and gateway technology, it becomes possible for more intelligent devices to access the network through gateway devices and realize intelligent control. Therefore, research on gateway networking is necessary in this context.
[0003] However, the existing gateway networking technology has the following technical problems:
[0004] 1. Switching the gateway device is only performed when an abnormality occurs in the gateway device, and the gateway device is not effectively supervised in the long term;
[0005] 2. The switching of gateway devices mostly relies on direct control signals, and fails to achieve effective integration with various devices in the existing network;
[0006] 3. When an abnormality occurs in the gateway device, it is impossible to obtain effective data to analyze the abnormality of the gateway device.
[0007] In summary, the prior art urgently needs a technical solution for gateway networking that can solve the above technical problems. Summary of the invention
[0008] The purpose of this application is to provide a gateway networking method, a gateway networking system and an intelligent gateway device to solve the technical problems raised in the above background technology.
[0009] To achieve the above objectives, this application discloses the following technical solutions:
[0010] In a first aspect, the present application discloses a gateway networking method, the method comprising:
[0011] S1: Preset a historical networking supervision cycle and a real-time networking supervision cycle, and the historical networking supervision cycle is much longer than the real-time networking supervision cycle;
[0012] S2: acquiring historical networking data of each corresponding gateway device based on the historical networking supervision cycle, and calculating a historical networking score of each gateway device based on the historical networking data;
[0013] S3: acquiring the corresponding real-time networking data of each gateway device based on the real-time networking supervision cycle, and calculating the real-time networking score of each gateway device based on the real-time networking data;
[0014] S4: performing a first networking adjustment based on the historical networking score, and generating a first networking warning; the first networking adjustment is used to switch the gateway device based on the historical networking score, and the first networking warning is used to warn the gateway device based on the historical networking score;
[0015] S5: Execute a second networking adjustment based on the real-time networking score, and generate a second networking alarm; the second networking adjustment is used to turn on or switch the gateway device based on the real-time networking score, and the second networking alarm is used to alarm the gateway device based on the real-time networking score;
[0016] S6: Manually process the corresponding gateway device based on the first networking warning and the second networking alarm.
[0017] Preferably, the historical networking data includes flow data, network speed data and connection status data;
[0018] The traffic data is used to characterize the size of the traffic flowing through the gateway device within one of the historical networking supervision cycles;
[0019] The network speed data is used to represent the average size of the network speed provided by the gateway device within a historical network monitoring cycle;
[0020] The connection status data is used to characterize the number of external devices connected to the gateway device and the corresponding connection duration within a historical networking supervision cycle.
[0021] Preferably, the calculating of the historical networking score of each gateway device based on the historical networking data specifically includes:
[0022] The historical networking score of the gateway device is calculated using a historical networking score formula, wherein the historical networking score formula is specifically:
[0023]
[0024]
[0025] Among them, e is the natural base, CD j is the connection time of the external device numbered j, CD τ is the preset connection duration threshold, CDR j Score the connection time of the external device numbered j. is the connection duration scoring indicative function, when CDR j ≥0 when established otherwise Σ is the summation symbol, k is the number of external devices and corresponds to number j, ASNST is the network speed data of the Tth historical network supervision cycle, E_ASNS is the expected value of the preset network speed data, T B is the starting time of the Tth historical network supervision cycle, T E is the end time of the Tth historical network supervision cycle, ∫ is the integral symbol, SNT τ is the preset flow data threshold, SNT T is the traffic data of the Tth historical networking supervision cycle, and HS is the historical networking score.
[0026] Preferably, the real-time networked data includes sensor data and device status data;
[0027] The sensor data includes temperature data, humidity data and light intensity data;
[0028] The device status data includes a gateway device operation signal and an external device operation signal.
[0029] Preferably, the calculating of the real-time networking score of each gateway device based on the real-time networking data specifically includes:
[0030] The temperature real-time networking score is calculated using the temperature real-time networking score formula, wherein the temperature real-time networking score formula is specifically:
[0031]
[0032] Among them, e is the natural base, tem is the temperature data, tem τ is the preset temperature data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_tem is the real-time network score of temperature;
[0033] The humidity real-time online scoring formula is used to calculate the humidity real-time online scoring formula, wherein the humidity real-time online scoring formula is specifically:
[0034]
[0035] Among them, e is the natural base, hum is the humidity data, hum τ is the preset humidity data threshold, β is the external device operation signal, when the external device is normal, β = 1, otherwise β = 0, α is the gateway device operation signal, when the gateway device is normal, α = 1, otherwise α = 0, S_hum is the real-time network score of humidity;
[0036] The light intensity real-time networking scoring formula is used to calculate the light intensity real-time networking scoring formula, wherein the light intensity real-time networking scoring formula is specifically:
[0037]
[0038] Among them, e is the natural base, lig is the light intensity data, and lig τ is the preset light intensity data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_lig is the real-time networking score of light intensity.
[0039] Preferably, the performing the first networking adjustment based on the historical networking score and generating the first networking warning specifically includes:
[0040] The historical networking score is compared with a preset historical networking score threshold. When the historical networking score is less than the historical networking score threshold, the network task of the corresponding gateway device is switched to a preset redundant gateway device, and the historical networking data of the corresponding gateway device is packaged to generate the first networking warning and transmit it to the administrator.
[0041] Preferably, the performing the second networking adjustment based on the real-time networking score and generating the second networking alarm specifically includes:
[0042] Determine whether the temperature real-time network score is greater than zero, if yes, turn on the corresponding gateway device, otherwise deconstruct the temperature real-time network score judgment If yes, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate the second networking alarm and transmit it to the administrator;
[0043] Determine whether the humidity real-time network score is greater than zero, if yes, turn on the corresponding gateway device, otherwise deconstruct the humidity real-time network score judgment If yes, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate the second networking alarm and transmit it to the administrator;
[0044] Determine whether the light intensity real-time networking score is less than zero, if yes, turn on the corresponding gateway device, otherwise deconstruct the light intensity real-time networking score judgment If so, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate the second networking alarm and transmit it to the administrator.
[0045] Preferably, the manual processing of the corresponding gateway device based on the first network warning and the second network alarm specifically includes:
[0046] Determine whether the second networking alarm exists, and if so, perform manual processing of the gateway device corresponding to the second networking alarm, otherwise, perform manual processing of the gateway device corresponding to the first networking warning.
[0047] In a second aspect, the present application discloses a gateway networking system, which is applicable to the gateway networking method as described above, and the system includes:
[0048] A cycle management module, wherein the cycle management module is configured to: preset a historical networking supervision cycle and a real-time networking supervision cycle, and the historical networking supervision cycle is much longer than the real-time networking supervision cycle;
[0049] A historical networking scoring module, wherein the historical networking scoring module is configured to: obtain historical networking data of each corresponding gateway device based on the historical networking supervision cycle, and calculate a historical networking score of each gateway device based on the historical networking data;
[0050] A real-time networking scoring module, wherein the real-time networking scoring module is configured to: obtain the real-time networking data of each corresponding gateway device based on the real-time networking supervision cycle, and calculate the real-time networking score of each gateway device based on the real-time networking data;
[0051] A first networking adjustment module, wherein the first networking adjustment module is configured to: perform a first networking adjustment based on the historical networking score, and generate a first networking warning;
[0052] A second networking adjustment module, wherein the second networking adjustment module is configured to: perform a second networking adjustment based on the real-time networking score, and generate a second networking alarm;
[0053] A manual processing module, wherein the manual processing module is configured to: perform manual processing on the corresponding gateway device based on the first network warning and the second network alarm.
[0054] In a third aspect, the present application discloses an intelligent gateway device, which includes at least one processor and at least one memory, wherein the memory is communicatively connected to the processor; the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, the gateway networking method as described above is implemented.
[0055] Beneficial effects: The gateway networking method, gateway networking system and intelligent gateway device of the present application realize differentiated supervision of gateway networking by distinguishing between historical supervision and real-time supervision, obtain historical networking data to provide a data basis for historical networking scoring, and also provide a data basis for analysis of gateway early warning for historical networking, provide data reference for long-term gateway device supervision through historical networking scoring, and provide judgment conditions for gateway networking, obtain real-time networking data to provide a data basis for real-time networking scoring, and also provide a data basis for analysis of gateway alarm for real-time networking, provide a data basis for real-time gateway device supervision through real-time networking scoring, and provide judgment conditions for gateway networking, thereby realizing optimization of gateway networking technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 A flowchart of a gateway networking method provided in an embodiment of the present application;
[0058] Figure 2 This is a structural block diagram of the gateway networking system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0060] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0061] In a first aspect, this embodiment discloses Figure 1 A gateway networking method is shown, the method comprising:
[0062] S1: The historical network supervision cycle and the real-time network supervision cycle are preset, and the historical network supervision cycle is much longer than the real-time network supervision cycle.
[0063] S2: Based on the historical networking supervision cycle, the historical networking data of each corresponding gateway device is obtained, and the historical networking score of each gateway device is calculated based on the historical networking data.
[0064] S3: Based on the real-time networking supervision cycle, the real-time networking data of each corresponding gateway device is obtained, and the real-time networking score of each gateway device is calculated based on the real-time networking data.
[0065] S4: Execute a first networking adjustment based on the historical networking score and generate a first networking warning. The first networking adjustment is used to switch the gateway device based on the historical networking score, and the first networking warning is used to warn the gateway device based on the historical networking score.
[0066] S5: Execute a second networking adjustment based on the real-time networking score and generate a second networking alarm. The second networking adjustment is used to enable or switch the gateway device based on the real-time networking score, and the second networking alarm is used to alarm the gateway device based on the real-time networking score.
[0067] S6: Manually process the corresponding gateway device based on the first network warning and the second network alarm.
[0068] In this embodiment, differentiated supervision of gateway networking is achieved by distinguishing between historical supervision and real-time supervision. Acquisition of historical networking data provides a data basis for historical networking scoring, and also provides a data basis for analysis of gateway early warnings for historical networking. Historical networking scoring provides a data reference for long-term gateway device supervision, and provides judgment conditions for gateway networking. Acquisition of real-time networking data provides a data basis for real-time networking scoring, and also provides a data basis for analysis of gateway alarms for real-time networking. Real-time networking scoring provides a data basis for real-time gateway device supervision, and provides judgment conditions for gateway networking, thereby optimizing gateway networking technology.
[0069] Specifically, historical Internet data includes traffic data, network speed data, and connection status data.
[0070] Traffic data is used to characterize the volume of traffic flowing through a gateway device during a historical networking supervision cycle.
[0071] The network speed data is used to represent the average network speed provided by the gateway device during a historical network monitoring cycle.
[0072] The connection status data is used to characterize the number of external devices connected to the gateway device and the corresponding connection duration during a historical networking supervision cycle.
[0073] Through historical networking data, effective supervision of the long-term operation of gateway devices is achieved, and through long-term supervision, early manual processing is achieved when no abnormalities occur in gateway devices, so as to reduce unnecessary losses caused by abnormalities of gateway devices.
[0074] Specifically, the historical networking score of each gateway device is calculated based on the historical networking data, including:
[0075] The historical networking score formula is used to calculate the historical networking score of the gateway device, where the historical networking score formula is specifically:
[0076]
[0077]
[0078] Among them, e is the natural base, CD j is the connection time of the external device numbered j, CD τ is the preset connection duration threshold, CDR j Score the connection time of the external device numbered j. is the connection duration scoring indicative function, when CDR j ≥0 when established otherwise ∑ is the summation symbol, k is the number of external devices and corresponds to number j, ASNS T is the network speed data of the Tth historical network supervision cycle, E_ASNS is the expected value of the preset network speed data, T B is the starting time of the Tth historical network supervision cycle, T E is the end time of the Tth historical network supervision cycle, ∫ is the integral symbol, SNT τ is the preset flow data threshold, SNT T is the traffic data of the Tth historical networking supervision cycle, and HS is the historical networking score.
[0079] It should be noted that, in this embodiment, each network management device is scored for historical networking, where: (SNT τ -SNT T ) is used to measure the traffic load of the gateway device. Used to measure the network speed performance of the gateway device. It is used to measure the consumption of gateway devices by external devices, so as to achieve comprehensive supervision of gateway devices and provide accurate data basis for the first networking adjustment and first networking warning in the following text.
[0080] Specifically, real-time networked data includes sensor data and device status data.
[0081] The sensor data includes temperature data, humidity data and light intensity data.
[0082] The device status data includes the gateway device operation signal and the external device operation signal.
[0083] In this embodiment, real-time monitoring of gateway devices is achieved through real-time networking data, and the success rate of gateway networking is optimized by integrating device status data with sensor data to avoid networking failures. Furthermore, this embodiment achieves effective integration with various devices under the existing network by acquiring and processing sensor data, thereby providing the applicability of gateway networking, avoiding network congestion caused by a large number of unused gateways accessing the network, and realizing optimized gateway networking technology.
[0084] Specifically, the real-time networking score of each gateway device is calculated based on the real-time networking data, including:
[0085] The temperature real-time networking scoring formula is used to calculate the temperature real-time networking score, where the temperature real-time networking scoring formula is specifically:
[0086]
[0087] Among them, e is the natural base, tem is the temperature data, tem τ is the preset temperature data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_tem is the real-time networked temperature score.
[0088] It should be noted that this embodiment provides accurate data reference for gateway networking by setting corresponding temperature data thresholds, and provides accurate judgment conditions for gateway networking by comprehensively considering the operating status of the gateway device itself and the corresponding external devices. Among them, the collection of operating signals of the gateway device and the external device is any one of the existing equipment operation supervision technologies, which aims to provide the correct equipment operation status for real-time networking scoring. The humidity data threshold and light intensity data threshold in the following text correspond to this, and will not be repeated in the following text.
[0089] The humidity real-time online scoring formula is used to calculate the humidity real-time online scoring formula, wherein the humidity real-time online scoring formula is specifically:
[0090]
[0091] Among them, e is the natural base, hum is the humidity data, hum τis the preset humidity data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_hum is the real-time network score of humidity.
[0092] The light intensity real-time networking scoring formula is used to calculate the light intensity real-time networking scoring formula, wherein the light intensity real-time networking scoring formula is specifically:
[0093]
[0094] Among them, e is the natural base, lig is the light intensity data, and lig τ is the preset light intensity data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_lig is the real-time networking score of light intensity.
[0095] Specifically, performing the first networking adjustment based on the historical networking score and generating the first networking warning specifically includes:
[0096] The historical networking score is compared with the preset historical networking score threshold. When the historical networking score is less than the historical networking score threshold, the network task of the corresponding gateway device is switched to the preset redundant gateway device. The redundant gateway device here is a gateway device reserved for emergency during network architecture design. The redundant gateway devices involved in the following text are the same as here. The historical networking data of the corresponding gateway device is packaged to generate the first networking warning and transmit it to the administrator, providing a data basis for the analysis of long-term warnings for gateway devices.
[0097] In this embodiment, through long-term and effective supervision of the gateway device itself, necessary technical means are provided for early detection of abnormalities in the gateway device and early warning. Through the first networking adjustment, the gateway device can be switched and maintained without shutting down, thereby optimizing the gateway networking technology.
[0098] Specifically, performing the second networking adjustment based on the real-time networking score and generating the second networking alarm specifically includes:
[0099] Determine whether the temperature real-time network score is greater than zero. If so, turn on the corresponding gateway device. Otherwise, deconstruct the temperature real-time network score judgment. If it is true, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate a second networking alarm and transmitted to the administrator.
[0100] Determine whether the real-time network score of humidity is greater than zero. If so, turn on the corresponding gateway device. Otherwise, deconstruct the real-time network score judgment of humidity If it is true, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate a second networking alarm and transmitted to the administrator.
[0101] Determine whether the light intensity real-time networking score is less than zero. If it is, turn on the corresponding gateway device. Otherwise, deconstruct the light intensity real-time networking score judgment. If it is true, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate a second networking alarm and transmitted to the administrator.
[0102] It should be noted that the gateway device of this embodiment is connected to the existing network and the corresponding sensor device in the transmission of the control signal, and is connected to the corresponding external device in the downstream. The external device may be but is not limited to a temperature control device.
[0103] In this embodiment, the second networking adjustment realizes the effective integration of the devices in the existing network with the gateway device and the corresponding external devices, realizes the intelligent start and stop of the gateway device, and uses the gateway device to perform intelligent control of the external devices. Further, the second network management alarm provides a data basis for the analysis of the gateway alarm for real-time networking, which is convenient for associating and discovering where the equipment failure occurs, and when the preset gateway device cannot operate normally, the second networking adjustment switches to the redundant gateway device to realize the gateway networking without stopping, realizing the optimization of gateway networking technology.
[0104] Specifically, manually processing the corresponding gateway device based on the first network warning and the second network alarm includes:
[0105] Determine whether there is a second networking alarm. If so, perform manual processing of the gateway device corresponding to the second networking alarm. Otherwise, perform manual processing of the gateway device corresponding to the first networking warning.
[0106] In this embodiment, the real-time performance of alarm processing is improved by giving priority to the second networking alarm, and the historical networking data and real-time networking data provide a precise data basis for manual processing. The manual processing is any one of the existing technologies for processing gateway networking.
[0107] In a second aspect, this embodiment discloses Figure 2 A gateway networking system is shown, the system is applicable to the gateway networking method as described above, and the system includes:
[0108] The cycle management module is configured as follows: a historical network supervision cycle and a real-time network supervision cycle are preset, and the historical network supervision cycle is much larger than the real-time network supervision cycle.
[0109] The historical networking scoring module is configured to obtain the historical networking data of each corresponding gateway device based on the historical networking supervision cycle, and calculate the historical networking score of each gateway device based on the historical networking data.
[0110] The real-time networking scoring module is configured to: obtain the real-time networking data of each corresponding gateway device based on the real-time networking supervision cycle, and calculate the real-time networking score of each gateway device based on the real-time networking data.
[0111] The first networking adjustment module is configured to: perform a first networking adjustment based on a historical networking score and generate a first networking warning.
[0112] The second networking adjustment module is configured to: perform a second networking adjustment based on the real-time networking score and generate a second networking alarm.
[0113] A manual processing module is configured to perform manual processing on the corresponding gateway device based on the first network warning and the second network alarm.
[0114] It should be noted that the gateway networking system of this embodiment corresponds to the aforementioned gateway networking method. Therefore, the contents not specifically described in the gateway networking system of this embodiment may have, but are not limited to, the same functional definition, working principle and technical effect as the aforementioned gateway networking method, and this text will not elaborate on them.
[0115] In a third aspect, this embodiment discloses an intelligent gateway device, which includes at least one processor and at least one memory, wherein the memory is communicatively connected to the processor. The memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, the gateway networking method described above is implemented.
[0116] In summary, the gateway networking method, gateway networking system and intelligent gateway device of the present embodiment realize differentiated supervision of gateway networking by distinguishing between historical supervision and real-time supervision, obtain historical networking data to provide a data basis for historical networking scoring, and also provide a data basis for analysis of gateway early warning for historical networking, provide a data reference for long-term gateway device supervision through historical networking scoring, and provide judgment conditions for gateway networking, obtain real-time networking data to provide a data basis for real-time networking scoring, and also provide a data basis for analysis of gateway alarm for real-time networking, provide a data basis for real-time gateway device supervision through real-time networking scoring, and provide judgment conditions for gateway networking, thereby realizing optimization of gateway networking technology.
[0117] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, other electronic units designed to implement the functions described herein or their combination. For software implementation, part or all of the flow of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a computer can access. The computer-readable storage medium can include but is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.
[0118] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A gateway networking method, characterized in that: The method includes: S1: Preset a historical networking supervision cycle and a real-time networking supervision cycle, and the historical networking supervision cycle is much longer than the real-time networking supervision cycle; S2: acquiring historical networking data of each corresponding gateway device based on the historical networking supervision cycle, and calculating a historical networking score of each gateway device based on the historical networking data; S3: acquiring the corresponding real-time networking data of each gateway device based on the real-time networking supervision cycle, and calculating the real-time networking score of each gateway device based on the real-time networking data; S4: performing a first networking adjustment based on the historical networking score, and generating a first networking warning; the first networking adjustment is used to switch the gateway device based on the historical networking score, and the first networking warning is used to warn the gateway device based on the historical networking score; S5: Execute a second networking adjustment based on the real-time networking score, and generate a second networking alarm; the second networking adjustment is used to turn on or switch the gateway device based on the real-time networking score, and the second networking alarm is used to alarm the gateway device based on the real-time networking score; S6: Performing manual processing on the corresponding gateway device based on the first networking warning and the second networking alarm; The historical networking data includes traffic data, network speed data and connection status data; The traffic data is used to characterize the size of the traffic flowing through the gateway device within one of the historical networking supervision cycles; The network speed data is used to represent the average size of the network speed provided by the gateway device within a historical network monitoring cycle; The connection status data is used to characterize the number of external devices connected to the gateway device and the corresponding connection duration within a historical networking supervision cycle; The real-time networked data includes sensor data and device status data; The sensor data includes temperature data, humidity data and light intensity data; The device status data includes a gateway device operation signal and an external device operation signal; The calculating of the historical networking score of each gateway device based on the historical networking data specifically includes: The historical networking score of the gateway device is calculated using a historical networking score formula, wherein the historical networking score formula is specifically: Among them, e is the natural base, CD j is the connection time of the external device numbered j, CD τ is the preset connection duration threshold, CDR j Score the connection time of the external device numbered j. is the connection duration scoring indicative function, when CDR j ≥0 when established otherwise ∑ is the summation symbol, k is the number of external devices and corresponds to number j, ASNS T is the network speed data of the Tth historical network supervision cycle, E_ASNS is the expected value of the preset network speed data, T B is the starting time of the Tth historical network supervision cycle, T E is the end time of the Tth historical network supervision cycle, ∫ is the integral symbol, SNT τ is the preset flow data threshold, SNT T is the traffic data of the Tth historical networking supervision cycle, and HS is the historical networking score; The calculating of the real-time networking score of each gateway device based on the real-time networking data specifically includes: The temperature real-time networking score is calculated using the temperature real-time networking score formula, wherein the temperature real-time networking score formula is specifically: Among them, e is the natural base, tem is the temperature data, tem τ is the preset temperature data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_tem is the real-time network score of temperature; The humidity real-time online scoring formula is used to calculate the humidity real-time online scoring formula, wherein the humidity real-time online scoring formula is specifically: Among them, e is the natural base, hum is the humidity data, hum τ is the preset humidity data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_hum is the real-time network score of humidity; The light intensity real-time networking scoring formula is used to calculate the light intensity real-time networking scoring formula, wherein the light intensity real-time networking scoring formula is specifically: Among them, e is the natural base, lig is the light intensity data, and lig τ is the preset light intensity data threshold, β is the external device operation signal, when the external device is normal, β=1, otherwise β=0, α is the gateway device operation signal, when the gateway device is normal, α=1, otherwise α=0, S_lig is the real-time networking score of light intensity; The performing the first networking adjustment based on the historical networking score and generating the first networking warning specifically includes: Compare the historical networking score with a preset historical networking score threshold, and when the historical networking score is less than the historical networking score threshold, switch the network task of the corresponding gateway device to a preset redundant gateway device, and package the historical networking data of the corresponding gateway device to generate the first networking warning and transmit it to the administrator; The performing of the second networking adjustment based on the real-time networking score and generating the second networking alarm specifically includes: Determine whether the temperature real-time network score is greater than zero, if yes, turn on the corresponding gateway device, otherwise deconstruct the temperature real-time network score judgment If yes, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate the second networking alarm and transmit it to the administrator; Determine whether the humidity real-time network score is greater than zero, if yes, turn on the corresponding gateway device, otherwise deconstruct the humidity real-time network score judgment If yes, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate the second networking alarm and transmit it to the administrator; Determine whether the light intensity real-time networking score is less than zero, if yes, turn on the corresponding gateway device, otherwise deconstruct the light intensity real-time networking score judgment If so, the network task of the corresponding gateway device is switched to the preset redundant gateway device; otherwise, the corresponding real-time networking data is packaged to generate the second networking alarm and transmit it to the administrator.
2. The gateway networking method according to claim 1, characterized in that: The manual processing of the corresponding gateway device based on the first networking warning and the second networking alarm specifically includes: Determine whether the second networking alarm exists, and if so, perform manual processing of the gateway device corresponding to the second networking alarm, otherwise, perform manual processing of the gateway device corresponding to the first networking warning.
3. A gateway networking system, the system being applicable to the gateway networking method as described in any one of claims 1-2, characterized in that: The system includes: A cycle management module, wherein the cycle management module is configured to: preset a historical networking supervision cycle and a real-time networking supervision cycle, and the historical networking supervision cycle is much longer than the real-time networking supervision cycle; A historical networking scoring module, wherein the historical networking scoring module is configured to: obtain historical networking data of each corresponding gateway device based on the historical networking supervision cycle, and calculate a historical networking score of each gateway device based on the historical networking data; A real-time networking scoring module, wherein the real-time networking scoring module is configured to: obtain the real-time networking data of each corresponding gateway device based on the real-time networking supervision cycle, and calculate the real-time networking score of each gateway device based on the real-time networking data; A first networking adjustment module, wherein the first networking adjustment module is configured to: perform a first networking adjustment based on the historical networking score, and generate a first networking warning; A second networking adjustment module, wherein the second networking adjustment module is configured to: perform a second networking adjustment based on the real-time networking score, and generate a second networking alarm; A manual processing module, wherein the manual processing module is configured to: perform manual processing on a corresponding gateway device based on the first network warning and the second network alarm; The historical networking data includes traffic data, network speed data and connection status data; The traffic data is used to characterize the size of the traffic flowing through the gateway device within one of the historical networking supervision cycles; The network speed data is used to represent the average size of the network speed provided by the gateway device within a historical network monitoring cycle; The connection status data is used to characterize the number of external devices connected to the gateway device and the corresponding connection duration within a historical networking supervision cycle; The real-time networked data includes sensor data and device status data; The sensor data includes temperature data, humidity data and light intensity data; The device status data includes a gateway device operation signal and an external device operation signal.
4. An intelligent gateway device, characterized in that: The device includes at least one processor and at least one memory, and the memory is communicatively connected to the processor; the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, the gateway networking method as described in any one of claims 1-2 is implemented.
Citation Information
Patent Citations
Intelligent gateway application method and system
CN116095128A
Network early warning method and computer storage medium
CN116566845A