Household intelligent gateway and alarm reporting method

By designing the function of actively reporting alarm events on the processor in the home intelligent gateway, the problems of low efficiency and overhead of alarm events in the prior art are solved, and timely reporting and efficient handling of alarm events are achieved.

CN120017484APending Publication Date: 2025-05-16HISENSE BROADBAND MULTIMEDIA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311514862.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, when a terminal device discovers an alarm, if the server query is not in time, the alarm event cannot be handled in time; and if the server intensively queryes, it will increase the overhead of the server and the terminal.

Method used

Design a home intelligent gateway to receive configuration information through the interface. The configuration information includes the detection cycle of different types of alarm vectors. The processor detects alarm events and actively reports newly added and cancelled alarm events to the server to reduce duplicate reports.

Benefits of technology

It improves the efficiency of handling alarm events, reduces the overhead of server handling alarm events, and ensures timely reporting and handling of alarm events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017484A_ABST
    Figure CN120017484A_ABST
Patent Text Reader

Abstract

The invention provides a home intelligent gateway and an alarm reporting method, the home intelligent gateway comprises an interface, a memory and a processor, the interface is used for receiving configuration information, the configuration information comprises detection periods of different types of alarm vectors, and the different types of alarm vectors have different priorities; the memory comprises different registers for storing different types of alarm vectors, and the alarm vectors comprise alarm events and alarm state tables corresponding to the alarm events; the processor detects the alarm events, modifies the alarm states of the corresponding alarm events in the corresponding alarm vectors according to the alarm events, obtains the alarm state tables of the alarm vectors according to the detection periods, performs first and second logical operations on the alarm state tables of the adjacent detection periods to obtain newly added alarm events and alarm releasing events, and actively reports the newly added alarm events and the alarm releasing events. According to the method and the device, the newly added alarm and the removed alarm of the alarm vector in the adjacent detection period are quickly identified by using logical operation and are actively reported, so that the alarm reporting efficiency of the gateway is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of optical communication technology, and in particular to a home smart gateway and an alarm reporting method. Background Art

[0002] In order to ensure the normal development of communication services of terminal devices (such as home smart gateways), it is necessary to monitor, report and process the alarm events generated by the gateway in a timely and effective manner so that network operation and maintenance personnel can handle the corresponding faults in time and provide good communication services.

[0003] The current mainstream alarm method is passive alarm. When the terminal device is running, if it is identified that an alarm is needed, the alarm event will be recorded in the alarm list. The server will periodically query the alarm list of the terminal device. Only when the server queries the alarm status can the terminal passively return the alarm list to the server.

[0004] However, when passive alarm is used, when the terminal finds an alarm, if the server query is not timely, the alarm event cannot be processed in time. If the server queries intensively, the overhead of both the server and the terminal will be increased. Summary of the invention

[0005] The disclosed embodiments provide a home smart gateway and an alarm reporting method to improve the alarm efficiency of terminal devices and reduce the overhead of a server in processing alarm events.

[0006] In a first aspect, the present disclosure provides a home smart gateway, comprising:

[0007] An interface configured to receive configuration information, the configuration information including detection periods of different types of alarm vectors, the different types of alarm vectors having different priorities;

[0008] A memory, comprising a plurality of registers, wherein different types of alarm vectors are stored in different registers, wherein the alarm vector comprises at least one alarm event and an alarm state table corresponding to the alarm event;

[0009] A processor is connected to the multiple registers, and the processor is configured to detect an alarm event, modify the alarm status of a corresponding alarm event in a corresponding alarm vector according to the alarm event, obtain an alarm status table of the alarm vector according to the detection period, perform a first logical operation on the alarm status table of an adjacent detection period to obtain a new alarm event corresponding to the changed alarm status; perform a second logical operation on the alarm status table of an adjacent detection period to obtain an alarm release event corresponding to the changed alarm status, and actively report the new alarm event and the alarm release event to the server.

[0010] In a second aspect, the present disclosure provides an alarm reporting method for a home smart gateway, the method comprising:

[0011] Acquire detection periods of different types of alarm vectors, where the different types of alarm vectors have different priorities;

[0012] Detecting an alarm event, and modifying an alarm state of a corresponding alarm event in a corresponding alarm vector according to the alarm event;

[0013] Acquire an alarm status table of the alarm vector according to the detection period;

[0014] Performing a first logical operation on the alarm status table of adjacent detection cycles to obtain a newly added alarm event corresponding to the changed alarm status;

[0015] Performing a second logic operation on the alarm status table of adjacent detection cycles to obtain an alarm release event corresponding to the changed alarm status;

[0016] Actively report the newly added alarm events and the alarm cancellation events to the server.

[0017] As can be seen from the above embodiments, the home smart gateway provided by the embodiments of the present disclosure includes an interface, a memory and a processor. The interface is used to receive configuration information sent by a server. The configuration information includes detection periods of different types of alarm vectors. Different types of alarm vectors have different priorities. That is, the server divides the alarm events of the home smart gateway into different priorities, and stores the alarm events in the home smart gateway according to the priorities. Alarm events of the same priority constitute a type of alarm vector, and different alarm periods are assigned to alarm vectors of different priorities; the memory includes a plurality of registers, and different registers store different types of alarm vectors. The alarm vector includes at least one alarm event and an alarm status table corresponding to the alarm event; the processor is connected to the plurality of registers, and the processor is configured to detect the alarm events of the home smart gateway. , modify the alarm status of the corresponding alarm event in the corresponding alarm vector according to the alarm event, obtain the alarm status table of the alarm vector according to the detection period, perform a first logical operation on the alarm status table of the adjacent detection period, and obtain the newly added alarm event corresponding to the changed alarm status, thereby obtaining the newly added (first appearing) alarm event in the adjacent detection period through the first logical operation, and actively reporting the newly added alarm event to the server, which can remove the alarm events that appear repeatedly in the adjacent detection period, thereby avoiding the same alarm event from being repeatedly reported to the server; perform a second logical operation on the alarm status table of the adjacent detection period, and obtain the alarm release event corresponding to the changed alarm status, thereby obtaining the alarm event released in the adjacent detection period through the second logical operation, and actively reporting the alarm release event to the server.

[0018] The home smart gateway in the present invention classifies alarm events of different priorities to obtain alarm vectors of different types, and assigns different alarm periods to alarm vectors of different types, so as to periodically detect the alarm vectors, and use logical operations to quickly identify new alarm events and alarm cancellation events in the alarm vectors, and actively report the new alarm events and alarm cancellation events to the server, thereby improving the alarm reporting efficiency of the gateway and reducing the overhead of the server in processing alarm events. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required to be used in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams, and are not intended to limit the actual size of the product involved in the embodiments of the present disclosure, the actual process of the method, the actual timing of the signal, etc.

[0020] Figure 1 This is an application scenario diagram of a home smart gateway provided according to some embodiments of the present disclosure;

[0021] Figure 2 A block diagram of a connection between a home smart gateway and a server provided according to some embodiments of the present disclosure;

[0022] Figure 3 A partial block diagram of a home smart gateway provided according to some embodiments of the present disclosure;

[0023] Figure 4 A block diagram of detecting a new alarm event in a home smart gateway according to some embodiments of the present disclosure;

[0024] Figure 5 A detection block diagram of a clearing alarm event in a home smart gateway provided according to some embodiments of the present disclosure;

[0025] Figure 6 A timing diagram of alarm reporting of a home smart gateway provided according to some embodiments of the present disclosure;

[0026] Figure 7 A flowchart of an alarm reporting method for a home smart gateway provided according to some embodiments of the present disclosure;

[0027] Figure 8 A detailed process of an alarm reporting method for a home smart gateway provided according to some embodiments of the present disclosure Figure 1 ;

[0028] Fig. 9A detailed process of an alarm reporting method for a home smart gateway provided according to some embodiments of the present disclosure Figure 2 ;

[0029] Fig.10 A detailed process of an alarm reporting method for a home smart gateway provided according to some embodiments of the present disclosure Figure 3 . DETAILED DESCRIPTION

[0030] Some embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. However, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of the present disclosure.

[0031] Unless the context requires otherwise, throughout the specification and claims, the term "comprising" is to be interpreted as having an open, inclusive meaning, that is, "including, but not limited to"; the terms "first" and "second" are not to be understood as indicating or implying relative importance or indicating an upper limit on quantity; the term "plurality" means two or more; the term "connected" is to be understood in a broad sense, for example, "connected" can be a fixed connection, a detachable connection, or an integral connection, and can be directly connected or indirectly connected through an intermediate medium; the use of the terms "suitable for" or "configured to" implies open and inclusive language, which does not exclude devices that are suitable for or configured to perform additional tasks or steps; descriptions such as "parallel", "perpendicular", "same", "consistent", and "flush" are not limited to absolute mathematical theoretical relationships, but also include an acceptable error range generated in practice, and also include differences based on the same design concept but due to manufacturing reasons.

[0032] Figure 1 FIG. 1 is an application scenario diagram of a home smart gateway provided according to some embodiments of the present disclosure. Figure 1 As shown, the user terminal 1000 proposes access information, and the home smart gateway 2000 includes a router, which selects a message path according to routing, bridging or other business rules and connects to the external server 3000. The external server 3000 responds to the access information and sends a response message. The router receives the response message and forwards the response message to the user terminal 1000.

[0033] When the home smart gateway 2000 is running, if an event that requires an alarm is identified, the alarm event will be recorded in the alarm list. The server obtains the alarm list mainly in passive alarm mode and active alarm mode. The passive alarm mode is: the server 3000 will periodically query the alarm list of the home smart gateway 2000. Only when the server 3000 queries the alarm status can the home smart gateway 2000 passively return the alarm list to the server 3000.

[0034] The active alarm method is: when the home smart gateway 2000 identifies an alarm event, it records the alarm event in the alarm list and directly reports the alarm list to the server 3000, that is, when an alarm event is identified, the home smart gateway 2000 reports the alarm event to the server 3000.

[0035] The disadvantage of the passive alarm method is that when the home intelligent gateway 2000 finds an alarm, if the server 3000 does not query in time, the alarm event cannot be processed in time. If the server 3000 queries intensively, the overhead of both the server 3000 and the home intelligent gateway 2000 will increase.

[0036] The disadvantage of the active notification method is that the home smart gateway 2000 periodically detects alarm events. If an alarm event persists, the home smart gateway 2000 will repeatedly detect the alarm event and repeatedly upload the same alarm event, increasing the overhead of the server 3000.

[0037] In response to the above problems, the present invention provides a home smart gateway, which uses active alarms. The server will receive the alarm events of the home smart gateway in a timely manner so as to handle the exceptions in a timely manner. Compared with the existing active alarms, the present invention classifies the alarm events according to the priority, and groups the alarm events of the same priority into a type of alarm vector. The alarm state of the alarm vector is quickly identified by using the logic bit operation method to obtain the first alarm event and the alarm release event, so that the home smart gateway only reports the first alarm event and the alarm release event, thereby reducing the number of alarm event reports, improving the alarm efficiency, and reducing the server's overhead in processing alarm events.

[0038] Figure 2 FIG. 1 is a block diagram of a connection between a home smart gateway and a server according to some embodiments of the present disclosure. Figure 2 As shown, the home smart gateway provided by the embodiment of the present disclosure includes an interface, a memory and a processor. The memory includes multiple registers. Different registers store different types of alarm vectors. The alarm vector includes at least one alarm event and an alarm status table corresponding to the alarm event.

[0039] Specifically, when the home smart gateway is running, different types of alarm events may occur. The home smart gateway classifies the alarm events of its own faults according to priority, such as serious alarms, major alarms and minor alarms. The home smart gateway groups the alarm events of the same type into a type of alarm vector and sets the alarm status corresponding to the alarm event in the alarm vector, such as alarm occurrence or alarm cancellation.

[0040] For example, the first type of alarm vector includes all serious alarm events and the alarm status table corresponding to the serious alarm events, the second type of alarm vector includes all major alarm events and the alarm status table corresponding to the major alarm events, and the third type of alarm vector includes all minor alarm events and the alarm status table corresponding to the minor alarm events.

[0041] In some embodiments, to facilitate the home smart gateway to store alarm vectors in a register, the home smart gateway sets an alarm number for the alarm event, and the alarm number is set one-to-one with the alarm event. For example, the alarm number of a WLAN application failure is 104013.

[0042] The home smart gateway forms a device alarm information specification based on the alarm number, alarm category and other information of the alarm event. The device alarm information specification is:

[0043]

[0044]

[0045] When WLAN application failure, high CPU usage, and high RAM usage occur at the same time, the home smart gateway obtains alarm numbers 104013, 104030, and 104036 according to the device alarm information specification, and uploads the alarm events to the alarm list, which is 104013, 104030, and 104036. The home smart gateway then reports the alarm list to the server through the interface to facilitate the server to process the alarm events.

[0046] Figure 3 FIG. 1 is a partial block diagram of a home smart gateway provided according to some embodiments of the present disclosure. Figure 3 As shown, to facilitate the storage of different types of alarm vectors, the memory includes a first register, a second register and a third register. The first register stores the first type of alarm vectors, the second register stores the second type of alarm vectors, and the third register stores the third type of alarm vectors. The priority of the first type of alarm vector is higher than that of the second type of alarm vector, and the priority of the second type of alarm vector is higher than that of the third type of alarm vector.

[0047] In some embodiments, each alarm vector includes multiple alarm events and an alarm status table corresponding to the alarm events. The alarm status can be yes or no, where yes represents that an alarm event has occurred, and no represents that an alarm event has not occurred.

[0048] The alarm status of an alarm event may also include a bit value, such as a first bit value of 1 represents an alarm event occurs, and a second bit value of 0 represents no alarm event occurs. Each alarm vector is composed of a bit string consisting of the first bit value and / or the second bit value.

[0049] In some embodiments, each alarm vector is a 32-bit integer. In the alarm vector, each bit represents the alarm status of an alarm event. The alarm vector format is as follows:

[0050] 31 30 29 28 … … 3 2 1 0 104030 104013 104012 104006 0 0 0 0 … … 0 0 0 0

[0051] When an alarm event occurs in the home intelligent gateway, the alarm state of each alarm event is 0, and the bit string of the alarm vector is 0000000000000000000000000000000000.

[0052] When an alarm event occurs or is released in the home intelligent gateway, the processor modifies the alarm state of the corresponding alarm event in the corresponding alarm vector according to the alarm event to modify the alarm state table of the alarm vector.

[0053] Specifically, the processor modifies the alarm state to the first bit value or the second bit value according to the alarm event, and obtains the bit string of the alarm vector according to the bit value corresponding to the alarm event in the alarm vector.

[0054] For example, when the home smart gateway detects a WLAN application failure alarm, it is learned according to the device alarm information specification that the WLAN application failure is a serious alarm and its alarm number is 104013. The processor of the home smart gateway changes the bit value corresponding to 104013 in the first type of alarm vector in the first register from 0 to 1 to indicate that the home smart gateway has added a new alarm event 104013. At this time, the bit string of the first type of alarm vector is 00000000000000000000000000000100.

[0055] 31 30 29 28 … … 3 2 1 0 104030 104013 104012 104006 0 0 0 0 … … 0 1 0 0

[0056] In some embodiments, to facilitate the acquisition of new alarm events in the home smart gateway, the processor of the home smart gateway may periodically obtain the alarm status table of the alarm vector, and the processor obtains the new alarm events based on the changes in the alarm status table of adjacent detection cycles.

[0057] Because the home smart gateway divides the alarm events into the first category alarm vector, the second category alarm vector and the third category alarm vector according to the priority, the priority of the first category alarm vector is greater than the priority of the second category alarm vector, and the priority of the second category alarm vector is greater than the priority of the third category alarm vector. In order to enable the home smart gateway to report the alarm events to the server according to the priority of the alarm events, the server and the home smart gateway can negotiate the detection cycles of different types of alarm vectors.

[0058] Specifically, when the home smart gateway is started, the home smart gateway will send a startup message to the server. After receiving the startup message, the server will send configuration information to the home smart gateway. The configuration information includes detection periods of different types of alarm vectors, such as severe alarm detection period, major alarm detection period, and minor alarm detection period. The home smart gateway sets the corresponding detection period according to the configuration information sent by the server, such as the severe alarm detection period is 5s, the major alarm detection period is 30s, and the minor alarm detection period is 1h.

[0059] Figure 4 A block diagram of detecting a new alarm event in a home smart gateway according to some embodiments of the present disclosure is provided. Figure 4 As shown, the processor obtains the first bit string of the first alarm vector of the previous detection cycle and the second bit string of the first alarm vector of the current detection cycle. The processor performs a first logical operation on the first bit string and the second bit string to obtain a new serious alarm event corresponding to the changed bit value.

[0060] The processor obtains the third bit string of the second alarm vector of the previous detection cycle and the fourth bit string of the second alarm vector of the current detection cycle. The processor performs a first logical operation on the third bit string and the fourth bit string to obtain a new major alarm event corresponding to the changed bit value.

[0061] The processor obtains the fifth bit string of the third alarm vector of the previous detection cycle and the sixth bit string of the third alarm vector of the current detection cycle. The processor performs a first logical operation on the fifth bit string and the sixth bit string to obtain a new minor alarm event corresponding to the changed bit value.

[0062] In some embodiments, a first logic operation module may be provided in the processor, and the first logic operation module performs a first logic operation on the bit strings of adjacent detection cycles to obtain the number of changed bits in the two bit strings, and obtains a new alarm event according to the number of bits.

[0063] Specifically, the processor obtains the first bit string of the previous detection cycle of the first alarm vector and the second bit string of the current detection cycle, the first logic operation module performs a negation operation on the second bit string, performs an OR operation on the second bit string after the negation operation and the first bit string, obtains the number of bits that are not the first value in the bit string after the OR operation, and obtains the newly added alarm event in the first alarm vector according to the number of bits. In some embodiments, the bit string consists of 0 and 1, and the first value is 1.

[0064] For example, in the previous detection cycle, the first alarm vector is:

[0065] 31 30 29 28 .。。。 。。。 3 2 1 0 104030 104013 104012 104006 0 0 1 1 。。。 。。。 0 0 1 0

[0066] In the previous detection cycle, the first bit string A of the first alarm vector=0011000000000000000000000000000010.

[0067] In the current detection cycle, if a WLAN application fault alarm is detected, the alarm state corresponding to 104013 in the first alarm vector is changed from 0 to 1, and the first alarm vector becomes

[0068] 31 30 29 28 .。。。 。。。 3 2 1 0 104030 104013 104012 104006 0 0 1 1 。。。 。。。 0 1 1 0

[0069] In the current detection cycle, the second bit string B of the first alarm vector=0011000000000000000000000000000110.

[0070] After the first logic operation module obtains the first bit string A and the second bit string B, the first logic operation module performs a negation operation on the second bit string, ~B=11001111111111111111111111111001, and then performs an OR operation on the second bit string after the negation operation and the right bit string. Since 1|1=1, 1|0=1, 0|1=1, 0|0=0, A|(~B)=111111111111111111111111111111011, the bit that is not 1 is the bit number that has changed, and a new alarm event 104013 corresponding to the bit number is obtained. The processor actively reports the new alarm event 104013 to the server via the interface.

[0071] If the WLAN application failure in the home smart gateway still exists, the bit string B' of the first alarm vector detected in the subsequent detection cycle is 0011000000000000000000000000000110, and the bit string B' is negated, ~B'=11001111111111111111111111111001, and then the bit string B after the negation operation is or-operated with the bit string B', B|(~B')=11111111111111111111111111111111, there is no bit that is not 1 in this bit string, indicating that there is no new alarm event in the first alarm vector, and the processor does not need to report the alarm event to the server.

[0072] In this way, when a certain alarm event repeatedly occurs in the home smart gateway, the processor only needs to actively report the alarm event to the server when the alarm event occurs for the first time, and there is no need to repeatedly report the alarm event to the server.

[0073] In some embodiments, after the server receives the alarm event reported by the home smart gateway, the staff repairs the fault of the home smart gateway according to the alarm event displayed by the server. After the fault of the home smart gateway is repaired, the home smart gateway needs to report the alarm release event to the server.

[0074] For example, when the home smart gateway detects that the WLAN application failure alarm has been lifted, it is learned according to the device alarm information specification that the WLAN application failure is a serious alarm and its alarm number is 104013. The processor of the home smart gateway changes the bit value corresponding to 104013 in the first alarm vector from 1 to 0 to indicate that the home smart gateway has lifted the 104013 alarm event. At this time, the bit string of the first type of alarm vector is 0000000000000000000000000000000000.

[0075] 31 30 29 28 … … 3 2 1 0 104030 104013 104012 104006 0 0 0 0 … … 0 0 0 0

[0076] In some embodiments, in order to facilitate the acquisition of alarm events that are lifted in the home smart gateway, the processor of the home smart gateway can periodically obtain the alarm status table of the alarm vector, and the processor obtains the alarm lifting event based on the changes in the alarm status table in adjacent detection cycles.

[0077] Figure 5 The present invention is a block diagram of a detection method for clearing an alarm event in a home smart gateway according to some embodiments of the present invention. Figure 5As shown, the processor obtains the first bit string of the first alarm vector of the previous detection cycle and the second bit string of the first alarm vector of the current detection cycle. The processor performs a second logical operation on the first bit string and the second bit string to obtain a serious alarm release event corresponding to the changed bit value.

[0078] The processor obtains the third bit string of the second alarm vector of the previous detection cycle and the fourth bit string of the second alarm vector of the current detection cycle. The processor performs a second logical operation on the third bit string and the fourth bit string to obtain a major alarm release event corresponding to the changed bit value.

[0079] The processor obtains the fifth bit string of the third alarm vector of the previous detection cycle and the sixth bit string of the third alarm vector of the current detection cycle, and performs a second logical operation on the fifth bit string and the sixth bit string to obtain a release minor alarm event corresponding to the changed bit value.

[0080] In some embodiments, a second logic operation module may be provided in the processor, and the second logic operation module performs a second logic operation on the bit strings of adjacent detection cycles to obtain the number of changed bits in the two bit strings, and obtains the alarm release event according to the number of bits.

[0081] Specifically, the processor obtains the first bit string of the previous detection cycle of the first alarm vector and the second bit string of the current detection cycle, the second logic operation module performs a negation operation on the second bit string, and performs an AND operation on the second bit string after the negation operation and the first bit string, to obtain the number of bits that are not the second value in the bit string after the AND operation, and obtains the alarm release event in the first alarm vector according to the number of bits. In some embodiments, the bit string consists of 0 and 1, and the second value is 0.

[0082] For example, in the previous detection cycle, the first alarm vector is:

[0083] 31 30 29 28 .。。。 。。。 3 2 1 0 104030 104013 104012 104006 0 0 1 1 。。。 。。。 0 1 1 0

[0084] In the previous detection cycle, the first bit string A of the first alarm vector=001100000000000000000000000000110.

[0085] In the current detection cycle, if a deletion WLAN application failure alarm is detected, the alarm state corresponding to 104013 in the first alarm vector is changed from 1 to 0, and the first alarm vector becomes:

[0086] 31 30 29 28 .。。。 。。。 3 2 1 0 104030 104013 104012 104006 0 0 1 1 。。。 。。。 0 0 1 0

[0087] In the current detection cycle, the second bit string B of the first alarm vector=0011000000000000000000000000000010.

[0088] After the second logic operation module obtains the first bit string A and the second bit string B, the second logic operation module performs a negation operation on the second bit string, ~B=11001111111111111111111111111101, and then performs an AND operation on the second bit string after the negation operation and the first special string. Since 1&1=1, 1&0=0, 0&1=0, 0&0=0, then A&~B=00000000000000000000000000000000100, the bit that is not 0 is exactly the bit number that has changed, and the alarm release event 104013 corresponding to the bit number is obtained, and the processor actively reports the alarm release event 104013 to the server via the interface.

[0089] Figure 6 FIG. 1 is a timing diagram of an alarm report of a home smart gateway provided according to some embodiments of the present disclosure. Figure 6 As shown, when the home smart gateway is started, the home smart gateway will send a startup message to the server. After receiving the startup message, the server will send configuration information to the home smart gateway, and the configuration information includes detection periods of different types of alarm vectors; the home smart gateway first detects the alarm event, and modifies the alarm state of the corresponding alarm event in the corresponding alarm vector according to the alarm event, such as changing the alarm state from 0 to 1, or changing the alarm state from 1 to 0; then the home smart gateway obtains the bit strings of alarm vectors of different periods according to the configured detection period, performs a first logical operation on the bit strings of adjacent detection periods, obtains the number of bits that have changed in the two bit strings, and obtains the newly added alarm event according to the number of bits; performs a second logical operation on the bit strings of adjacent detection periods, obtains the number of bits that have changed in the two bit strings, and obtains the alarm release event according to the number of bits; then the newly added alarm event and the alarm release event are actively reported to the server.

[0090] The home smart gateway provided by the embodiment of the present disclosure classifies alarm events of different priorities to obtain alarm vectors of different categories, and assigns different alarm periods to alarm vectors of different categories, so as to periodically detect the alarm vectors, and use logical operations to quickly identify new alarm events and alarm cancellation events in the alarm vectors, and actively report the new alarm events and alarm cancellation events to the server, thereby improving the alarm reporting efficiency of the home smart gateway and reducing the overhead of the server in processing alarm events.

[0091] With respect to the home smart gateway described in the above-mentioned embodiment, the embodiment of the present disclosure further provides an alarm reporting method for the home smart gateway, which classifies alarm events according to priority, groups alarm events of the same priority into a type of alarm vector, and uses logical bit operations to quickly identify the alarm status of the alarm vector to obtain the first alarm event and the alarm release event, so that the home smart gateway only reports the first alarm event and the alarm release event, thereby reducing the number of alarm event reports, improving alarm efficiency, and reducing the server overhead of processing alarm events.

[0092] Figure 7 The following is a flow chart of an alarm reporting method for a home smart gateway according to some embodiments of the present disclosure. Figure 7 As shown, the alarm reporting method of the home smart gateway provided by the embodiment of the present disclosure includes:

[0093] S100: Acquire detection periods of different types of alarm vectors, where different types of alarm vectors have different priorities.

[0094] When the home smart gateway is started, the home smart gateway will send a startup message to the server. After receiving the startup message, the server will send configuration information to the home smart gateway. The configuration information includes the detection period of different types of alarm vectors, such as severe alarm detection period, major alarm detection period, and minor alarm detection period. The home smart gateway sets the corresponding detection period according to the configuration information sent by the server.

[0095] S200: Detect an alarm event, and modify the alarm state of the corresponding alarm event in the corresponding alarm vector according to the alarm event.

[0096] When the home intelligent gateway is running, the processor of the home intelligent gateway detects an alarm event, and the processor modifies the alarm state of the corresponding alarm event in the corresponding alarm vector according to the alarm event to modify the alarm state table of the alarm vector.

[0097] The specific method of the home intelligent gateway to modify the alarm state table of the alarm vector according to the detected alarm event is as follows: Figure 8 As shown:

[0098] S201: modifying the alarm state to a first bit value or a second bit value according to an alarm event.

[0099] S202: Obtain a bit string of the alarm vector according to the bit value corresponding to the alarm event in the alarm vector.

[0100] When the home smart gateway detects a fault alarm, the priority and alarm number of the alarm event are obtained according to the device alarm information specification. The processor changes the alarm state corresponding to the corresponding alarm number in the corresponding alarm vector from 0 to 1 according to the priority and alarm number of the alarm event.

[0101] For example, when the home smart gateway detects a WLAN application failure alarm, it is learned according to the device alarm information specification that the WLAN application failure is a serious alarm and its alarm number is 104013. The processor of the home smart gateway changes the bit value corresponding to 104013 in the first type of alarm vector in the first register from 0 to 1, and changes the bit string of the first type of alarm vector from 0000000000000000000000000000000 to 0000000000000000000000000000100.

[0102] S300: Acquire an alarm status table of an alarm vector according to a detection period.

[0103] When the home smart gateway is started, the server sends configuration information to the home smart gateway, which includes detection periods of different types of alarm vectors. The home smart gateway periodically obtains the alarm status table of the alarm vector according to the detection period to obtain the alarm status table of alarm vectors with different periods.

[0104] S400: Perform a first logical operation on the alarm status table of adjacent detection cycles to obtain a newly added alarm event corresponding to the changed alarm status.

[0105] The processor obtains the first bit string of the previous detection cycle and the second bit string of the current detection cycle of the alarm vector, performs a first logical operation on the first bit string and the second bit string to obtain the number of changed bits in the two bit strings, and obtains a new alarm event according to the number of bits.

[0106] The specific method of the home smart gateway identifying the newly added alarm events in the adjacent detection cycle through the first logical operation is as follows: Fig. 9 As shown:

[0107] S401: Obtain a first bit string of a previous detection cycle and a second bit string of a current detection cycle.

[0108] S402: Perform a negation operation on the second bit string.

[0109] S403: Perform an OR operation on the second bit string after the negation operation and the first bit string.

[0110] S404: Obtain the number of bits that are not 1 in the bit string after the OR operation, and obtain a newly added alarm event according to the number of bits.

[0111] The home intelligent gateway obtains that the first bit string A of the previous detection cycle of the first alarm vector is 00110000000000000000000000000000010, and the second bit string B of the current detection cycle of the first alarm vector is 001100000000000000000000000000110. The processor of the home intelligent gateway performs a negation operation on the second bit string, ~B=1100111111111111111111111111001, and then performs an OR operation on the second bit string after the negation operation and the bit string, A|(~B)=1111111111111111111111111111011, and the bit that is not 1 is the bit that has changed, and the newly added alarm event 104013 corresponding to the bit is obtained.

[0112] S500: Perform a second logic operation on the alarm status table of adjacent detection cycles to obtain an alarm release event corresponding to the changed alarm status.

[0113] The processor obtains the first bit string of the previous detection cycle and the second bit string of the current detection cycle of the alarm vector, performs a second logical operation on the first bit string and the second bit string to obtain the number of bits changed in the two bit strings, and obtains the alarm release event according to the number of bits.

[0114] The specific method of the home smart gateway identifying the alarm release event in the adjacent detection cycle through the second logic operation is as follows: Fig.10 As shown:

[0115] S501: Obtain a first bit string of a previous detection cycle and a second bit string of a current detection cycle.

[0116] S502: Perform a negation operation on the second bit string.

[0117] S503: Perform an AND operation on the second bit string after the negation operation and the first bit string.

[0118] S504: Obtain the number of bits that are not 0 in the bit string after the AND operation, and obtain the alarm release event according to the number of bits.

[0119] The home intelligent gateway obtains that the first bit string A of the previous detection cycle of the first alarm vector is 0011000000000000000000000000000110, and the second bit string B of the current detection cycle of the first alarm vector is 001100000000000000000000000000010. The processor of the home intelligent gateway performs a negation operation on the second bit string, ~B=110011111111111111111111111101, and then performs an AND operation on the second bit string after the negation operation and the first bit string, A&~B=000000000000000000000000000000100, and the bit that is not 0 is the bit that has changed, and the alarm release event 104013 corresponding to the bit is obtained.

[0120] S600: Actively report new alarm events and alarm cancellation events to the server.

[0121] The home smart gateway performs a first logical operation on the alarm status table of adjacent detection cycles of the alarm vector to obtain new alarm events in different detection cycles. The home smart gateway performs a first logical operation on the alarm status table of adjacent detection cycles of the alarm vector to obtain cleared alarm events in different detection cycles. Then the home smart gateway actively reports the new alarm events and cleared alarm events to the server to facilitate the server to handle the alarm events in time.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A home smart gateway, characterized in that: include: An interface configured to receive configuration information, the configuration information including detection periods of different types of alarm vectors, the different types of alarm vectors having different priorities; A memory, comprising a plurality of registers, wherein different types of alarm vectors are stored in different registers, wherein the alarm vector comprises at least one alarm event and an alarm state table corresponding to the alarm event; A processor is connected to the multiple registers, and the processor is configured to detect an alarm event, modify the alarm status of a corresponding alarm event in a corresponding alarm vector according to the alarm event, obtain an alarm status table of the alarm vector according to the detection period, perform a first logical operation on the alarm status table of an adjacent detection period to obtain a new alarm event corresponding to the changed alarm status; perform a second logical operation on the alarm status table of an adjacent detection period to obtain an alarm release event corresponding to the changed alarm status, and actively report the new alarm event and the alarm release event to the server.

2. The home smart gateway according to claim 1, characterized in that: The alarm state includes a bit value, and the processor is further configured to modify the alarm state to a first bit value or a second bit value according to the alarm event, and obtain a bit string of the alarm vector according to the bit value corresponding to the alarm event in the alarm vector.

3. The home smart gateway according to claim 2, characterized in that: The processor is further configured to obtain a first bit string in a previous detection cycle and a second bit string in a current detection cycle, perform a negation operation on the second bit string, perform an OR operation on the second bit string after the negation operation and the first bit string, obtain the number of bits in the bit string after the OR operation that is not the first value, and obtain a new alarm event based on the number of bits.

4. The home smart gateway according to claim 2, characterized in that: The processor is further configured to obtain a first bit string in a previous detection cycle and a second bit string in a current detection cycle, perform a negation operation on the second bit string, perform an AND operation on the second bit string after the negation operation and the first bit string, obtain the number of bits that is not the second value in the bit string after the AND operation, and obtain a release alarm event according to the number of bits.

5. The home smart gateway according to claim 1, characterized in that: The register includes a first register, a second register and a third register, the first register stores a first type of alarm vector, the second register stores a second type of alarm vector, and the third register stores a third type of alarm vector; The priority of the first type of alarm vector is greater than the priority of the second type of alarm vector, and the priority of the second type of alarm vector is greater than the priority of the third type of alarm vector.

6. The home smart gateway according to claim 5, characterized in that: The detection period of the first type of alarm vector is smaller than the detection period of the second type of alarm vector, and the detection period of the second type of alarm vector is smaller than the detection period of the third type of alarm vector.

7. A method for reporting an alarm of a home intelligent gateway, characterized in that: The method comprises: Acquire detection periods of different types of alarm vectors, where the different types of alarm vectors have different priorities; Detecting an alarm event, and modifying an alarm state of a corresponding alarm event in a corresponding alarm vector according to the alarm event; Acquire an alarm status table of the alarm vector according to the detection period; Performing a first logical operation on the alarm status table of adjacent detection cycles to obtain a newly added alarm event corresponding to the changed alarm status; Performing a second logic operation on the alarm status table of adjacent detection cycles to obtain an alarm release event corresponding to the changed alarm status; Actively report the newly added alarm event and the alarm cancellation event to the server.

8. The alarm reporting method of the home intelligent gateway according to claim 7, characterized in that: The step of modifying the alarm state of the corresponding alarm event in the corresponding alarm vector according to the alarm event specifically includes: Modify the alarm state to a first bit value or a second bit value according to the alarm event; A bit string of the alarm vector is obtained according to the bit value corresponding to the alarm event in the alarm vector.

9. The alarm reporting method of the home intelligent gateway according to claim 7, characterized in that: The step of performing a first logic operation on the alarm state table of adjacent detection cycles to obtain a newly added alarm event corresponding to the changed alarm state specifically includes: Obtaining a first bit string of a previous detection cycle and a second bit string of a current detection cycle; performing a negation operation on the second bit string; Performing an OR operation on the second bit string after the negation operation and the first bit string; The number of bits that are not 1 in the bit string after the OR operation is obtained, and a newly added alarm event is obtained according to the number of bits.

10. The alarm reporting method of the home intelligent gateway according to claim 7, characterized in that: The step of performing a second logic operation on the alarm state table of adjacent detection cycles to obtain an alarm release event corresponding to the changed alarm state specifically includes: Obtaining a first bit string of a previous detection cycle and a second bit string of a current detection cycle; performing a negation operation on the second bit string; Performing an AND operation on the second bit string after the negation operation and the first bit string; The number of bits that are not 0 in the bit string after the AND operation is obtained, and the alarm release event is obtained according to the number of bits.