A method for displaying status information of a smoke alarm device
Through the status information encoding and decoding methods, the specific information and operating parameters of smoke alarm failure are displayed, which solves the problem of difficulty in identifying fault types in the existing technology, and realizes accurate maintenance and efficient fault positioning.
Patent Information
- Application Number
- CN202211580501.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2042-12-09
AI Technical Summary
When the existing smoke alarm fails, the fault type is only indicated by the number of flashes of the LED light, and the specific information and operating parameters cannot be displayed, resulting in difficulty in repair. The LED light is dark at a large number of low levels, making it difficult to accurately judge the fault type.
The state information encoding method is adopted, and the status information code is generated by designing the status dictionary and data frame protocol, and the encoding information is output through the LED light, the receiving device decodes and analyzes, displays the specific information of the fault and the operating parameters, and uses the start code to determine whether the inverse is needed. code to avoid darkening of brightness caused by low levels.
It realizes the rapid determination of the specific causes of smoke alarm failure, improves maintenance efficiency, avoids misjudgment caused by darkening of LED light brightness, and significantly improves the accuracy of fault positioning.
Smart Images

Figure CN115953875B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of status information display of a smoke alarm device, and more particularly to a status information display method of a smoke alarm device. Background Art
[0002] Existing smoke alarms generally have only one LED light. When a fault occurs, the smoke alarm generally controls the buzzer to "beep" and sends the current status information to the LED light. The LED flashes to remind the user that the alarm has a fault, and different flashes indicate different faults. For example, flashing once indicates low battery voltage, and flashing twice indicates an alarm fault alarm. The above method can only know what fault the alarm has, but cannot know the specific fault information and the operating parameters when the alarm fails. It is not convenient to quickly determine the specific cause of the alarm failure and repair it.
[0003] In addition, the existing smoke alarm display mode is as follows Figure 1 As shown in the figure, the high level in the status information means that the LED is on, and the low level means that the LED is off. The fault of the alarm can only be judged by observing the number of flashes. When the modulation frequency is higher than the frequency recognized by the human eye, due to the visual retention effect of the human eye, the human eye can only see one flash of the LED. Moreover, if the status information is a large number of low levels, then when a large number of low levels are maintained for a long time, the brightness of the LED is dim, which makes it difficult for maintenance personnel to find problems. Summary of the invention
[0004] The present invention provides a method for displaying status information of a smoke alarm device, which can display specific information of the fault and the operating parameters of the alarm when the fault occurs to determine the type of fault, thereby facilitating rapid determination of the specific cause of the alarm fault for repair. It will not misjudge the type of fault due to dim brightness of an LED lamp caused by a large number of low levels in the status information, thereby solving the problem that it is difficult for maintenance personnel to find the type of fault.
[0005] In order to solve the above problems, a method for displaying status information of a smoke alarm device is provided, comprising the following steps:
[0006] (1) Obtaining status information of the smoke alarm device and transmitting it to the encoder; the status information includes a status type and its corresponding value and a status content and its corresponding value;
[0007] (2) The encoder obtains the state information code according to the state information encoding method;
[0008] The state information encoding method comprises the following steps:
[0009] Design a state dictionary and a data frame protocol; the data frame protocol is used to establish a state data frame according to the state information including the state type and the state content value; the state data frame includes a start code, a data type code, a data length code, a data content code, a check code and a frame end code arranged in sequence; the state dictionary is used to set the items of the start code, the data type code, the data length code, the data content code, the check code and the frame end code and their corresponding coding values respectively; wherein the state type corresponds to the item of the data type code one by one, and the value of the state type is associated with the coding value of the data type code one by one; the state content corresponds to the item of the data content code one by one, and the value of the state content is associated with the coding value of the data content code one by one;
[0010] Obtain the data type code and data content code according to the status dictionary;
[0011] Calculate the length value of the data content code and the state dictionary to obtain the encoding value of the data length code;
[0012] Set the frame tail code to a fixed coding value;
[0013] Setting a data frame check rule; the data frame check rule is used to perform frame check on the status data frame and obtain the encoding value of the check code;
[0014] Set the encoding value of the start code as needed;
[0015] (3) After receiving the start signal, the status information code is encoded; after the encoding is completed, the coded information is output through the LED light of the smoke alarm device, and at the same time, the status data frame is received by the signal receiving device and the parsed status data frame is output according to the decoding step.
[0016] Particularly, all the coded values of the status data frame are in hexadecimal values.
[0017] In particular, the status types include voltage reminder, device version information, device model information, runtime status information, smoke concentration information, buzzer information, battery voltage information, WiFi mode information, WiFi status information, WiFi configuration information, server connection information, server query command information, server remote control command information, device fault alarm information, and device log information.
[0018] In particular, the coding value of the start code set as needed in step (2) is set according to the start code coding rule; the start code coding rule includes the following steps:
[0019] A. Set the threshold, set the inverted start code to the value of the start code that needs inverting, and set the non-inverted start code to the value of the start code that does not need inverting;
[0020] B. Convert the coded values of the data type code, data length code, and data content code into binary values "0" or "1";
[0021] C. Count whether the proportion of the binary value "0" in the code value is greater than the threshold; if it is greater than the threshold, execute step D; if it is not greater than the threshold, execute step E;
[0022] D. Perform data inversion processing on the data type code, data length code, data content code, check code and frame tail code following the start code; and set the start code to the inverted start code;
[0023] E. Set the start code to a non-inverted start code.
[0024] Particularly, the threshold is 50%.
[0025] In particular, the decoding step of step (3) includes the following steps:
[0026] F. Decoder receives status data frame;
[0027] G. Determine whether inversion is required based on the value of the start code. If the start code is an inverted start code, the data type code, data length code, data content code, check code and frame tail code following the start code are required to perform data inversion processing; if the start code is a non-inverted start code, data inversion processing is not required;
[0028] H. After parsing the status data frame, it is output through the output device.
[0029] Particularly, the output device is a display.
[0030] Beneficial effects of the present invention:
[0031] 1. The present invention obtains the status information code through an encoder according to the status information encoding method. After receiving the start signal, the encoder outputs the status information code to the control end of the LED lamp of the smoke alarm device. The LED lamp can display the specific information of the fault and the operating parameters of the alarm when the fault occurs according to the number of flashes of the status information code, the long-lighting time, and the dark interval, so as to quickly determine the specific cause of the alarm fault and perform maintenance.
[0032] 2. The present invention can display the specific information of the fault and the operating parameters of the alarm when the fault occurs. The modulated signal can be received through a specific signal receiving device, and the corresponding information can be received and parsed through a decoder, and then corresponding decoding can be performed, so that maintenance personnel can quickly determine the specific cause of the alarm failure, thereby performing accurate maintenance and solving the problem that it is not easy for maintenance personnel to find and locate the fault.
[0033] 3. The present invention determines whether the inverse code is needed according to the value of the start code, so that when a large number of low levels appear in the status information code, the brightness of the LED lamp is in a long dark state. When the maintenance personnel look at the LED lamp with the naked eye, it is inconvenient to obtain the correct maintenance information according to the flashing condition of the LED lamp because the LED lamp is in a long dark state. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 The waveform diagram of the state signal of the background technology of the present invention.
[0036] Figure 2 A structural diagram of a device used in a display method according to an embodiment of the present invention.
[0037] Figure 3 The waveform diagram of the state data frame data according to the embodiment of the present invention is combined with the waveform diagram of the clock signal.
[0038] Figure 4 The figure is a simplified flow chart of encoding according to the start code encoding rule according to an embodiment of the present invention.
[0039] Figure 5 The figure is a simplified flowchart of decoding according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0041] It should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, or are the orientation or positional relationship in which the invented product is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0042] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0043] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0044] like Figure 2 As shown, a method for displaying status information of a smoke alarm device in this embodiment, the device includes a smoke alarm LED signal sending device and an LED signal receiving, decoding and displaying device, the smoke alarm LED signal sending device includes a smoke alarm, an encoder, and an LED lamp, the LED signal receiving, decoding and displaying device includes a signal receiving device, a decoder and an output device, and the display method includes the following steps:
[0045] (1) Obtaining the status information of the smoke alarm device and transmitting it to the encoder; the status information includes the status type and its corresponding value and the status content and its corresponding value;
[0046] (2) The encoder obtains the state information code according to the state information encoding method;
[0047] The state information encoding method comprises the following steps:
[0048] Design a state dictionary and a data frame protocol; the data frame protocol is used to establish a state data frame according to the state information including the state type and the state content value; the state data frame includes a start code, a data type code, a data length code, a data content code, a check code and a frame end code arranged in sequence; the state dictionary is used to set the items of the start code, the data type code, the data length code, the data content code, the check code and the frame end code and their corresponding coding values respectively; wherein the state type corresponds to the item of the data type code one by one, and the value of the state type is associated with the coding value of the data type code one by one; the state content corresponds to the item of the data content code one by one, and the value of the state content is associated with the coding value of the data content code one by one;
[0049] Obtain the data type code and data content code according to the status dictionary;
[0050] Calculate the length value of the data content code and the state dictionary to obtain the encoding value of the data length code;
[0051] Set the frame tail code to a fixed coding value;
[0052] Set data frame check rules; data frame check rules are used to perform frame check on the status data frame and obtain the encoding value of the check code;
[0053] Set the encoding value of the start code as needed;
[0054] Table 1 shows the data content of a frame of status data sent out during a certain flash.
[0055] Table 1
[0056]
[0057] (3) If Figure 3 As shown, after receiving the start signal, the encoder will use a clock signal frequency that will not cause visual retention to encode the status information code, and after the encoding is completed, the encoded information is output through the LED light of the smoke alarm device.
[0058] All coded values in the status data frame are in hexadecimal format.
[0059] The status types include voltage reminder, device version information, device model information, runtime status information, smoke concentration information, buzzer information, battery voltage information, WiFi mode information, WiFi status information, WiFi configuration information, server connection information, server query command information, server remote control command information, device fault alarm information, and device log information.
[0060] like Figure 4 As shown, the coding value of the start code set as needed in step (2) is set according to the start code coding rule; the start code coding rule includes the following steps:
[0061] A. Set the threshold, set the inverted start code to the value of the start code that needs inverting, and set the non-inverted start code to the value of the start code that does not need inverting; the threshold is set to 50%.
[0062] B. Convert the coded values of the data type code, data length code, and data content code into binary values "0" or "1";
[0063] C. Count whether the proportion of the binary value "0" in the code value is greater than the threshold value of 50%, that is, count the low level proportion; if it is greater than the threshold value of 50%, execute step D; if it is not greater than the threshold value of 50%, execute step E;
[0064] D. Perform data inversion processing on the data type code, data length code, data content code, check code and frame tail code following the start code; and set the start code to the inverted start code;
[0065] E. Set the start code to a non-inverted start code.
[0066] like Figure 5 As shown, the decoding step of step (3) includes the following steps:
[0067] F. The decoder receives the status data frame through the signal receiving device;
[0068] G. Determine whether inversion is required based on the value of the start code. If the start code is an inverted start code, the data type code, data length code, data content code, check code and frame tail code following the start code are required for data inversion processing; if the start code is a non-inverted start code, data transmission processing is not required;
[0069] H. After parsing the status data frame, it is output through the output device.
[0070] The output device is a display.
[0071] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, the patent owner may make various deformations or modifications within the scope of the attached claims. As long as they do not exceed the protection scope described in the claims of the present invention, they should be within the protection scope of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the methods and core ideas of the present invention. The above are only preferred implementation methods of the present invention. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of the present invention, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the protection scope of the present invention.
Claims
1. A method for displaying status information of a smoke alarm device, characterized in that: The following steps are involved: (1) Obtaining status information of the smoke alarm device and transmitting it to the encoder; the status information includes a status type and its corresponding value and a status content and its corresponding value; (2) The encoder obtains the state information code according to the state information encoding method; The state information encoding method comprises the following steps: Design a state dictionary and a data frame protocol; the data frame protocol is used to establish a state data frame according to the state information including the state type and the state content value; the state data frame includes a start code, a data type code, a data length code, a data content code, a check code and a frame end code arranged in sequence; the state dictionary is used to set the items of the start code, the data type code, the data length code, the data content code, the check code and the frame end code and their corresponding coding values respectively; wherein the state type corresponds to the item of the data type code one by one, and the value of the state type is associated with the coding value of the data type code one by one; the state content corresponds to the item of the data content code one by one, and the value of the state content is associated with the coding value of the data content code one by one; Obtain the data type code and data content code according to the status dictionary; Calculate the length value of the data content code and the state dictionary to obtain the encoding value of the data length code; Set the frame tail code to a fixed code value; Setting a data frame check rule; the data frame check rule is used to perform frame check on the status data frame and obtain the encoding value of the check code; Set the encoding value of the start code as needed; (3) After receiving the start signal, the status information code is encoded; after the encoding is completed, the encoded information is output through the LED light of the smoke alarm device, and at the same time, the status data frame is received by the signal receiving device and the parsed status data frame is output according to the decoding step; All the coded values of the status data frame are in hexadecimal format; The status types include voltage reminder, device version information, device model information, runtime status information, smoke concentration information, buzzer information, battery voltage information, WiFi mode information, WiFi status information, WiFi configuration information, server connection information, server query command information, server remote control command information, device fault alarm information, and device log information; The coding value of the start code is set as required in step (2) according to the start code coding rule; the start code coding rule includes the following steps: A. Set the threshold, set the inverted start code to the value of the start code that needs inverting, and set the non-inverted start code to the value of the start code that does not need inverting; B. Convert the coded values of the data type code, data length code, and data content code into binary values "0" or "1"; C. Count whether the proportion of the binary value "0" in the code value is greater than the threshold; if it is greater than the threshold, execute step D; if it is not greater than the threshold, execute step E; D. Perform data inversion processing on the data type code, data length code, data content code, check code and frame tail code following the start code; and set the start code to the inverted start code; E. Set the start code to a non-inverted start code; The threshold is 50%; The decoding step of step (3) comprises the following steps: F. Decoder receives status data frame; G. Determine whether inversion is required based on the value of the start code. If the start code is an inverted start code, the data type code, data length code, data content code, check code and frame tail code following the start code are required for data inversion processing; if the start code is a non-inverted start code, data transmission processing is not required; H. Analyze the status data frame and output it through the output device; The output device is a display; The encoder uses a clock signal frequency state information code that does not cause visual retention for encoding.
