Multi-state representation method, device, processor and storage medium for a single LED of a wireless device

Through hierarchical control and Redis records, the problem of a single LED light on a wireless device indicating multiple states is solved, accurate and rapid control of the device state is achieved, and accurate identification of the device in complex states is ensured.

CN115022995BActive Publication Date: 2025-09-12TAICANG T&W ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210606693.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-09-12
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

When a wireless device only has a single LED light, how can it effectively indicate multiple complex operating states? Especially when functions are superimposed, existing technologies make it difficult to achieve accurate status identification.

Method used

A hierarchical strategy is adopted to divide the state control of LED lights into a logical control layer and a behavioral control layer. The logical control layer defines the device operating status such as temperature alarm, WPS status and Wi-Fi signal level. The behavioral control layer defines the display status such as color and flashing status, and records the status information through Redis. The display behavior is determined in combination with the priority strategy.

Benefits of technology

It realizes the multi-state representation of wireless devices under a single LED light, ensuring the accuracy of status identification and quick control of device operation status, and can accurately identify device status under complex conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022995B_ABST
    Figure CN115022995B_ABST
Patent Text Reader

Abstract

The present invention relates to a multi-state representation system for a single LED of a wireless device, wherein the system comprises: a hierarchical design strategy is adopted to divide the state control of the LED light into a logic control layer and a behavior control layer, the logic control layer is used to provide a functional interface of the LED light and display the logical control state of the LED light; the behavior control layer is used to provide a display interface of the LED light to control the actual display state of the LED light. The present invention also relates to a method, device, processor and storage medium for implementing multi-state representation for a single LED of a wireless device. The multi-state representation system, method, device, processor and storage medium for a single LED of a wireless device of the present invention uses Redis to record the various logical states of the device and the behavioral states of the LED light. During the operation of the device, the state can be quickly read and set, facilitating the system's calculation and control of complex states of the device. It can also provide users with accurate state identification when the wireless device only has a single LED light.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication terminal technology, and in particular to the field of wireless device LED light status display technology, specifically to a multi-state display system, method, device, processor and computer-readable storage medium for a single LED of a wireless device. Background Art

[0002] The internet is an indispensable tool for modern life. The development of wireless networks has brought greater convenience to users and has led to the widespread use of wireless devices. During use, wireless devices require indicator lights to communicate the device's operating status to users, enabling them to take timely and effective action. The market demand for wireless devices is enormous. Due to cost considerations, most devices only feature a single LED light. However, wireless devices typically have numerous functions, such as WPS, network status, Wi-Fi signal, overheat protection, alarms, and power saving features, all of which require LED indicators to indicate their various states. Each function has different states, and these states can often overlap. Managing these logical states so that a single LED accurately represents the device's current operating status is a significant concern for manufacturers and users. This requires a comprehensive solution to manage device states and LED behavior. Summary of the Invention

[0003] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a multi-state representation system, method, device, processor and computer-readable storage medium for a single LED of a wireless device that integrates the functions of the wireless device and the characteristics of the LED light.

[0004] To achieve the above objectives, the present invention provides a multi-state display system, method, apparatus, processor, and computer-readable storage medium for a single LED of a wireless device as follows:

[0005] The main features of the multi-state representation system for a single LED of a wireless device are as follows: the system includes: using a hierarchical design strategy to divide the state control of the LED light into a logic control layer and a behavior control layer, wherein:

[0006] The logic control layer is used to provide a functional interface for the LED lamp to display the logic control status of the LED lamp;

[0007] The behavior control layer is used to provide a display interface for the LED light to control the actual display state of the LED light.

[0008] Preferably, the logic control layer includes but is not limited to defining the device operating status of the LED lamp as temperature alarm status, WPS status, WIFI signal level status and network status, and each logic control status can be superimposed and coexist, and can determine the logic control status currently displayed by the wireless device according to the priority order preset by the system for each control status.

[0009] Preferably, the behavior control layer includes but is not limited to defining the display state of the LED light as a display color state, a flashing light state, different color display states and different flashing light display states, and no overlapping processing is performed between the various display states.

[0010] Preferably, the system is characterized in that it uses redis recording to store and process the current logical control state and display state of the wireless device.

[0011] The method for implementing a multi-state indication method for a single LED of a wireless device using the above-mentioned system is characterized in that the method comprises the following steps:

[0012] (1) Setting a priority strategy for the behavior control layer and placing a configuration file of the priority strategy in the system;

[0013] (2) Start the LED daemon process and initialize the various status parameters of redis;

[0014] (3) The LED daemon process periodically reads the current status information of the wireless device and determines whether the corresponding status parameters need to be modified according to the changes in the current status information;

[0015] (4) determining the current logical control state displayed by the wireless device according to the logical control layer interface called by the wireless device;

[0016] (5) The behavior control layer adjusts the display state of the LED light according to the called behavior display interface.

[0017] Preferably, the step (3) is specifically as follows:

[0018] (3.1) The LED daemon process periodically reads the current temperature alarm status information, WPS status information, WIFI signal level status information and network status information of the wireless device;

[0019] (3.2) The wireless device compares the temperature alarm status information, WPS status information, WIFI signal level status information and network status information with the threshold data of each status preset by the system;

[0020] (3.3) Based on the comparison result and the pre-saved state information, determine whether the state information in the current state has changed. If so, proceed to step (3.4); otherwise, maintain the current state unchanged and wait for the next cycle;

[0021] (3.4) The wireless device directly modifies the temperature alarm level parameter information, WIFI signal level number information, network connection status parameter information and WPS connection status parameter information in redis, and calls the corresponding function interface in the logic control layer.

[0022] Preferably, the step (4) is specifically as follows:

[0023] (4.1) The logic control layer reads the corresponding logic state parameter value from the redis according to the called interface;

[0024] (4.2) The logic control layer determines the current logical state to be displayed based on the preset priority strategy and the state level within the same logical state, and the current device mode of the wireless device;

[0025] (4.3) The logic control layer calls the behavior display interface of the behavior control layer.

[0026] Preferably, the step (5) is specifically as follows:

[0027] The behavior control layer adjusts the RGB parameters and flashing parameter information of the LED light corresponding to the behavior display according to the called behavior display interface to change the display behavior of the LED.

[0028] Preferably, the device modes include: power saving mode, alarm mode and normal mode;

[0029] When the user modifies the device mode through the page, if the device mode is set to power saving mode, when the logic control layer determines that the current logic state priority is lower than the WPS state, the behavior control layer is called to turn off the LED light;

[0030] If the device mode is set to the alarm mode, when the logic control layer determines that the current logic state priority is lower than the alarm state, the behavior control layer is called to turn off the LED light;

[0031] If the device mode is set to normal mode, the logic control layer sets the LED light behavior corresponding to the currently called highest priority logic state to the LED through the behavior control layer.

[0032] The main features of the device for multi-state display of a single LED of a wireless device are as follows:

[0033] a processor configured to execute computer-executable instructions;

[0034] The memory stores one or more computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the above-mentioned method for indicating multiple states of a single LED of a wireless device are implemented.

[0035] The main feature of this processor for multi-state display of a single LED of a wireless device is that the processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the various steps of the multi-state display method for a single LED of a wireless device are implemented.

[0036] The main feature of the computer-readable storage medium is that a computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned multi-state indication method for a single LED of a wireless device.

[0037] The multi-state representation system, method, device, processor and computer-readable storage medium for a single LED of a wireless device of the present invention are used. The display state of the device LED light can be defined as a behavioral state according to product requirements, including the display color and flashing state of the LED light. Different colors and flashing states of the LED light are regarded as different behavioral states and cannot be superimposed. This technical solution uses redis to record the various logical states of the device and the behavioral states of the LED light. The state can be quickly read and set during the operation of the device, which facilitates the system's calculation and control of the complex state of the device. The method can use different combinations of colors and flashing modes to represent a variety of complex device operating states, so that the wireless device can provide users with accurate status identification even when there is only a single LED light. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a structural diagram of the multi-state indication system for a single LED of a wireless device according to the present invention.

[0039] Figure 2 The flowchart of the method for realizing multi-state indication of a single LED of a wireless device according to the present invention is shown. DETAILED DESCRIPTION

[0040] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.

[0041] Before describing in detail embodiments according to the present invention, it should be noted that, hereinafter, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, whereby a process, method, article, or apparatus comprising a list of elements includes not only those elements, but also other elements not expressly listed or inherent to such process, method, article, or apparatus.

[0042] See also Figure 1 As shown, the multi-state representation system for a single LED of a wireless device includes: using a hierarchical design strategy to divide the state control of the LED light into a logic control layer and a behavior control layer, wherein:

[0043] The logic control layer is used to provide a functional interface for the LED lamp to display the logic control status of the LED lamp;

[0044] The behavior control layer is used to provide a display interface for the LED light to control the actual display state of the LED light.

[0045] As a preferred embodiment of the present invention, the logic control layer includes but is not limited to defining the device operating status of the LED lamp as a temperature alarm status, a WPS status, a WIFI signal level status and a network status, and each logic control status can be superimposed and coexist, and the logic control status currently displayed by the wireless device can be determined according to the priority order preset by the system for each control status.

[0046] As a preferred embodiment of the present invention, the behavior control layer includes but is not limited to defining the display state of the LED light as a display color state, a flashing state, different color display states, and different flashing display states, and no superposition processing is performed between the various display states.

[0047] As a preferred embodiment of the present invention, the system uses redis records to store and process the current logical control state and display state of the wireless device.

[0048] In practical applications, the multi-state display system for a single LED of a wireless device of this technical solution specifically includes the following processing:

[0049] 1. Using a layered design strategy, the control of LED lights is divided into a logic control layer and a behavior control layer. The logic control layer provides an interface for other modules to control LED lights, and the behavior control layer actually controls the display behavior of LED lights.

[0050] 2. Define the device operating status as a logical state, which is divided into alarm state, WPS state, control state, etc. Each logical state can be superimposed and coexist. Define different priorities for each state, and determine which logical state the device displays based on the priority.

[0051] 3. The display status of the device LED light is defined as the behavior state, including the color and flashing state of the LED light. Different colors and flashing states of the LED light are considered different behavior states and cannot be superimposed.

[0052] 4. Use redis to record the various logical states of the device and the behavioral states of the LED lights. During the operation of the device, the state can be quickly read and set, which facilitates the system's calculation and control of the complex state of the device.

[0053] 5. Start the LED monitoring process, which is responsible for monitoring the real-time changes in the device's temperature, Wi-Fi signal, network status, and other information. If the change in information parameters triggers a corresponding change in the logical state, the logic layer interface is called to modify the device's logical state. The logic layer compares the priorities of each logical state, sets the highest priority logical state, and then adjusts the LED display behavior by calling the behavior control layer.

[0054] See also Figure 2 As shown, the above system is used to implement a multi-state representation method for a single LED of a wireless device, wherein the method includes the following steps:

[0055] (1) Setting a priority strategy for the behavior control layer and placing a configuration file of the priority strategy in the system;

[0056] (2) Start the LED daemon process and initialize the various status parameters of redis;

[0057] (3) The LED daemon process periodically reads the current status information of the wireless device and determines whether the corresponding status parameters need to be modified according to the changes in the current status information;

[0058] (4) determining the current logical control state displayed by the wireless device according to the logical control layer interface called by the wireless device;

[0059] (5) The behavior control layer adjusts the display state of the LED light according to the called behavior display interface.

[0060] As a preferred embodiment of the present invention, the step (3) is specifically as follows:

[0061] (3.1) The LED daemon process periodically reads the current temperature alarm status information, WPS status information, WIFI signal level status information and network status information of the wireless device;

[0062] (3.2) The wireless device compares the temperature alarm status information, WPS status information, WIFI signal level status information and network status information with the threshold data of each status preset by the system;

[0063] (3.3) Based on the comparison result and the pre-saved state information, determine whether the state information in the current state has changed. If so, proceed to step (3.4); otherwise, maintain the current state unchanged and wait for the next cycle;

[0064] (3.4) The wireless device directly modifies the temperature alarm level parameter information, WIFI signal level number information, network connection status parameter information and WPS connection status parameter information in redis, and calls the corresponding function interface in the logic control layer.

[0065] As a preferred embodiment of the present invention, the step (4) is specifically as follows:

[0066] (4.1) The logic control layer reads the corresponding logic state parameter value from the redis according to the called interface;

[0067] (4.2) The logic control layer determines the current logical state to be displayed based on the preset priority strategy and the state level within the same logical state, and the current device mode of the wireless device;

[0068] (4.3) The logic control layer calls the behavior display interface of the behavior control layer.

[0069] As a preferred embodiment of the present invention, the step (5) is specifically as follows:

[0070] The behavior control layer adjusts the RGB parameters and flashing parameter information of the LED light corresponding to the behavior display according to the called behavior display interface to change the display behavior of the LED.

[0071] As a preferred embodiment of the present invention, the device modes include: power saving mode, alarm mode and normal mode;

[0072] When the user modifies the device mode through the page, if the device mode is set to power saving mode, when the logic control layer determines that the current logic state priority is lower than the WPS state, the behavior control layer is called to turn off the LED light;

[0073] If the device mode is set to the alarm mode, when the logic control layer determines that the current logic state priority is lower than the alarm state, the behavior control layer is called to turn off the LED light;

[0074] If the device mode is set to normal mode, the logic control layer sets the LED light behavior corresponding to the currently called highest priority logic state to the LED through the behavior control layer.

[0075] In a specific embodiment of the present invention, the multi-state representation method for a single LED of a wireless device is implemented, which specifically includes the following implementation steps:

[0076] 1. Develop a behavior layer priority policy, such as prioritizing WPS status over alarm status, alarm status over network status, or network status over other statuses, and place the policy setting layer configuration file in the device system.

[0077] 2. After the device is started, the LED daemon is started and the Redis state parameters are initialized, such as the default device control mode and the initial values ​​of each logical state.

[0078] 3. The daemon process periodically reads information such as CPU temperature, Wi-Fi signal, and network status.

[0079] 4. Taking CPU temperature as an example, the real-time CPU temperature read by the process is compared with the threshold set by the system. Based on the comparison result and the previously saved alarm status, it is determined whether the CPU temperature alarm status has changed. If it has changed, it is set in Redis and the logic control layer interface is called to set the logic status.

[0080] 5. When the logic control layer interface is called, it reads the parameter values ​​of each logic state from Redis and determines the current logic state to be displayed based on the priority of each logic state. Finally, it determines the state of the device's LED light based on the current device mode and calls the corresponding LED light behavior interface of the behavior state layer.

[0081] 6. When the behavior control layer interface is called, the RGB parameters of the LED are adjusted according to the corresponding behavior, and the flashing state is changed at the same time.

[0082] 7. Device modes are divided into power saving mode, alarm mode, and normal mode. When the user changes the device mode through the page, if it is set to power saving mode, the logic control layer will call the behavior control layer to turn off the LED light if it determines that the current logic state priority is lower than the WPS state. If it is set to alarm mode, the logic control layer will call the behavior state layer to turn off the LED light if it determines that the current logic state priority is lower than the alarm state. If it is set to normal mode, the logic control layer will set the LED light behavior corresponding to the currently turned on highest priority logic state through the behavior control layer.

[0083] 8. When other modules such as WPS trigger a change in the device's logical state, they modify the corresponding state parameters in redis and refer to step 5 to call the logic control layer interface. The logic control layer reads each logical state value, determines the state that the device's LED light should display based on the priority order and the current device mode, and finally sets the corresponding LED light behavior by calling the behavior state layer interface.

[0084] The device for multi-state indication of a single LED of a wireless device, wherein the device comprises:

[0085] a processor configured to execute computer-executable instructions;

[0086] The memory stores one or more computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the above-mentioned method for indicating multiple states of a single LED of a wireless device are implemented.

[0087] The processor for multi-state representation of a single LED of a wireless device is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the multi-state representation method for a single LED of a wireless device are implemented.

[0088] The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the various steps of the above-mentioned method for multi-state indication of a single LED of a wireless device.

[0089] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.

[0090] It should be understood that each part of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device.

[0091] Those skilled in the art will understand that all or part of the steps of the method for implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0092] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0093] Throughout this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "embodiment" indicate that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0094] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0095] The multi-state representation system, method, device, processor and computer-readable storage medium for a single LED of a wireless device of the present invention are used. The display state of the device LED light can be defined as a behavioral state according to product requirements, including the display color and flashing state of the LED light. Different colors and flashing states of the LED light are regarded as different behavioral states and cannot be superimposed. This technical solution uses redis to record the various logical states of the device and the behavioral states of the LED light. The state can be quickly read and set during the operation of the device, which facilitates the system's calculation and control of the complex state of the device. The method can use different combinations of colors and flashing modes to represent a variety of complex device operating states, so that the wireless device can provide users with accurate status identification even when there is only a single LED light.

[0096] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Accordingly, the specification and drawings are to be regarded as illustrative rather than restrictive.

Claims

1. A method for implementing a multi-state indication method for a single LED of a wireless device using a multi-state indication system for a single LED of a wireless device, the system comprising: The hierarchical design strategy is used to divide the state control of LED lights into the logic control layer and the behavior control layer, among which, The logic control layer is used to provide a functional interface for the LED lamp to display the logic control status of the LED lamp; The behavior control layer is used to provide a display interface for the LED light to control the actual display state of the LED light; The logic control layer includes but is not limited to defining the device operating state of the LED lamp as a temperature alarm state, a WPS state, a WIFI signal level state, and a network state, and each logic control state can overlap and coexist, and can determine the current logic control state displayed by the wireless device according to the priority order preset by the system for each control state; The behavior control layer includes but is not limited to defining the display state of the LED light as a display color state, a flashing light state, different color display states, and different flashing light display states, and no overlapping processing is performed between the various display states; The system uses redis records to store and process the current logical control state and display state of the wireless device; It is characterized in that the method comprises the following steps: (1) Setting a priority strategy for the behavior control layer and placing a configuration file of the priority strategy in the system; (2) Start the LED daemon process and initialize the various status parameters of redis; (3) The LED daemon process periodically reads the current status information of the wireless device and determines whether the corresponding status parameters need to be modified according to the changes in the current status information; (4) determining the current logical control state displayed by the wireless device according to the logical control layer interface called by the wireless device; (5) The behavior control layer adjusts the display state of the LED light according to the called behavior display interface.

2. The method for realizing multi-state representation of a single LED of a wireless device according to claim 1, characterized in that: The step (3) is specifically as follows: (3.1) The LED daemon process periodically reads the current temperature alarm status information, WPS status information, WIFI signal level status information and network status information of the wireless device; (3.2) The wireless device compares the temperature alarm status information, WPS status information, WIFI signal level status information and network status information with the threshold data of each status preset by the system; (3.3) Based on the comparison result and the pre-saved state information, determine whether the state information in the current state has changed. If so, proceed to step (3.4); otherwise, maintain the current state unchanged and wait for the next cycle; (3.4) The wireless device directly modifies the temperature alarm level parameter information, WIFI signal level number information, network connection status parameter information and WPS connection status parameter information in redis, and calls the corresponding function interface in the logic control layer.

3. The method for realizing multi-state representation of a single LED of a wireless device according to claim 2, characterized in that: The step (4) is specifically as follows: (4.1) The logic control layer reads the corresponding logic state parameter value from the redis according to the called interface; (4.2) The logic control layer determines the current logical state to be displayed based on the preset priority strategy and the state level within the same logical state, and the current device mode of the wireless device; (4.3) The logic control layer calls the behavior display interface of the behavior control layer.

4. The method for realizing multi-state representation of a single LED of a wireless device according to claim 3, characterized in that: The step (5) is specifically as follows: The behavior control layer adjusts the RGB parameters and flashing parameter information of the LED light corresponding to the behavior display according to the called behavior display interface to change the display behavior of the LED.

5. The method for realizing multi-state representation of a single LED of a wireless device according to claim 3, characterized in that: The device modes include: power saving mode, alarm mode and normal mode; When the user modifies the device mode through the page, if the device mode is set to power saving mode, when the logic control layer determines that the current logic state priority is lower than the WPS state, the behavior control layer is called to turn off the LED light; If the device mode is set to the alarm mode, when the logic control layer determines that the current logic state priority is lower than the alarm state, the behavior control layer is called to turn off the LED light; If the device mode is set to normal mode, the logic control layer sets the LED light behavior corresponding to the currently called highest priority logic state to the LED through the behavior control layer.

6. A device for multi-state display of a single LED of a wireless device, characterized in that: The device comprises: a processor configured to execute computer-executable instructions; A memory storing one or more computer executable instructions, wherein when the computer executable instructions are executed by the processor, the steps of the multi-state representation method for a single LED of a wireless device according to any one of claims 1 to 5 are implemented.

7. A processor for multi-state display of a single LED of a wireless device, characterized in that: The processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the multi-state representation method for a single LED of a wireless device according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that A computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the multi-state indication method for a single LED of a wireless device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Ordering equipment and system

    CN113129173A

  • Synchronous control system for double-side RGB (red, green and blue) tricolor lamps

    CN113346583A