A multi-mode Bluetooth strip light control method, device and system
By real-time verification of Bluetooth communication status and responding to user instructions to cyclic mode switching and parameter adjustment, the problem of inaccurate light strip control in the existing technology is solved, intelligent mode switching and precise control are realized, and user experience is improved.
Patent Information
- Application Number
- CN202510440078.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-04-09
AI Technical Summary
The existing light strip control technology cannot achieve intelligent mode switching and precise control, making it difficult for users to obtain a personalized lighting experience.
By verifying the Bluetooth communication status in real time, cyclic mode switching is performed in response to the user's mode switching command, and adjusting the light strip control parameters according to the switched working mode to achieve dynamic adjustment and refined adjustment.
It ensures a stable connection between the light strip and the user terminal, realizes intelligent mode switching and precise control, and significantly improves the user's lighting experience.
Smart Images

Figure CN119946961B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of strip light control, and particularly to a multi-mode Bluetooth strip light control method, device and system. Background Art
[0002] As a lighting device with both decorative and functional features, strip lights are widely used in homes, commercial places and public areas. With the development of intelligent technologies, users' control requirements for strip lights have gradually become diversified. In addition to basic on / off and brightness adjustment, users also hope to remotely control strip lights via Bluetooth, Wi-Fi, etc., and switch different working modes according to specific scenarios to achieve higher convenience and personalized experiences.
[0003] Existing strip light control technologies have significant deficiencies in mode switching and parameter adjustment, mainly in two aspects. First, the mode switching of existing strip lights usually relies on preset fixed modes, such as brightness adjustment, color change or flashing effects, etc. Although these modes can meet basic usage requirements, they cannot be dynamically adjusted according to different scenarios and users' personalized needs. Therefore, in actual use, users will encounter situations where the lighting effects do not meet their requirements, and it is impossible to achieve precise lighting effects, restricting the adaptability and flexibility of strip lights. Second, when adjusting control parameters, existing technologies usually only make one-time adjustments and lack the ability to optimize control parameters a second time. That is to say, when a user issues an adjustment instruction, the parameter adjustment of the strip light is only completed once and cannot be further refined according to the actual usage effect. This lack of in-depth optimization ability results in the lighting effect and user experience of the strip light not reaching the best state, restricting the application potential of strip lights in different environments and the satisfaction of users' needs. Therefore, existing technologies have not effectively solved problems such as the linkage between modes and parameters, intelligent adjustment and refined adjustment, resulting in users having difficulty obtaining a more precise and personalized lighting experience during use.
[0004] The existing Chinese patent CN112469161A discloses a combined strip light control method and controller powered by USB, including the following steps: S1. Provide a working power supply for the strip light controller through a power access circuit; S2. The MCU control circuit generates a control signal according to the signal collected by the acquisition circuit, and the driving circuit controls the conversion of the strip light lighting mode according to the control signal, and works according to the following settings: S21. Constant forward lighting; S22. Constant reverse lighting; S23. Positive and negative color mixing 1; S24. Positive and negative color mixing 2; S25. Color mixing gradual change; S26. Color mixing breathing flash; S27. Forward flashing; S28. Reverse flashing; S29. Unilateral alternating fade-in and fade-out; S210. Positive and negative waves; S211. Loop steps S21 to S210 until the MCU control circuit receives a stop signal. The above patent solution mainly relies on fixed and preset strip light working modes, such as constant lighting, flashing, color mixing gradual change, etc., lacking dynamic feedback to users and intelligent adjustment capabilities. In this solution, the mode switching of the strip light is limited to simple mode selection, and users cannot flexibly adjust the control parameters of the strip light according to actual needs. Therefore, the above patent solution cannot achieve more precise dynamic adjustment and personalized lighting scene adaptation, and there is an urgent need for improvement in terms of intelligence, flexibility, and user experience.
[0005] Therefore, how to perform intelligent mode switching and control parameter adjustment on the strip light to improve the user's lighting experience is an urgent problem to be solved. Summary of the Invention
[0006] In view of this, the present invention provides a multi-mode Bluetooth strip light control method, device, and system to solve the problem of poor lighting experience for users due to the inability to perform intelligent mode switching during strip light control in the prior art.
[0007] The technical solution adopted by the present invention is:
[0008] In the first aspect, the present invention provides a multi-mode Bluetooth strip light control method, and the method includes:
[0009] Respond to the communication verification instruction issued by the user, and verify the Bluetooth communication status between the strip light and the user terminal in real time;
[0010] When the Bluetooth communication status is verified to pass, respond to the mode switching instruction issued by the user, perform cyclic mode switching on the strip light, adjust the preset strip light control parameters according to the switched strip light working mode, and determine the first strip light control parameter, where the preset strip light control parameters include the historical strip light control parameters pre-saved on the strip light or the default strip light control parameters set at the factory of the strip light;
[0011] In response to the light strip adjustment instruction issued by the user, the first light strip control parameter is adjusted for the second time to obtain a second light strip control parameter, and the light strip is controlled to work through the second light strip control parameter.
[0012] Preferably, when the preset light strip control parameter is the historical light strip control parameter, when the Bluetooth communication state is verified to pass, in response to the mode switching instruction issued by the user, the light strip is switched to a cyclic mode, and according to the switched light strip working mode, before adjusting the preset light strip control parameter to determine the first light strip control parameter, it further includes:
[0013] Obtain the target light strip working mode corresponding to the historical light strip control parameter;
[0014] Classify the target light strip working mode, and according to the classification result, obtain the target light strip light effect mode corresponding to the target light strip working mode in the preset light strip light effect mode set, where each light strip light effect mode in the light strip light effect mode set includes multiple light strip light effect sub-modes;
[0015] According to the target light strip light effect mode and the historical light strip control parameter, combined with the preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode, determine the target light strip light effect sub-mode corresponding to the target light strip working mode.
[0016] Preferably, the step of determining the target light strip light effect sub-mode corresponding to the target light strip working mode according to the target light strip light effect mode and the historical light strip control parameter, combined with the preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode, includes:
[0017] According to the historical light strip control parameter and each light strip light effect mode in the light strip light effect mode set, determine the historical usage frequency corresponding to each light strip light effect sub-mode corresponding to each light strip light effect mode;
[0018] According to the preset mapping relationship and the target light strip light effect mode, determine a plurality of first light strip light effect alternative sub-modes corresponding to the target light strip light effect mode;
[0019] According to the historical usage frequency corresponding to each light strip light effect sub-mode, determine the usage frequency corresponding to each first light strip light effect alternative sub-mode;
[0020] Compare the usage frequency corresponding to each first light strip light effect alternative sub-mode with a preset frequency threshold, and extract the first light strip light effect alternative sub-modes with a usage frequency greater than the frequency threshold as the second light strip light effect alternative sub-modes;
[0021] When there is only one second light strip light effect alternative sub-mode, use this second light strip light effect alternative sub-mode as the target light strip light effect sub-mode;
[0022] When there are two or more second light strip light effect alternative sub - modes, screen each of the second light strip light effect alternative sub - modes according to the light strip usage time interval and light strip usage scenario corresponding to the target light strip working mode, and determine the screened sub - mode as the target light strip light effect sub - mode.
[0023] Preferably, when there are two or more second light strip light effect alternative sub - modes, screening each of the second light strip light effect alternative sub - modes according to the light strip usage time interval and light strip usage scenario corresponding to the target light strip working mode, and determining the screened mode as the target light strip light effect sub - mode includes:
[0024] Determine the first priority of each second light strip light effect alternative sub - mode according to the light strip usage time interval;
[0025] Determine the second priority of each second light strip light effect alternative sub - mode according to the light strip usage scenario;
[0026] Obtain the first weight coefficient corresponding to the preset first priority and the second weight coefficient corresponding to the second priority;
[0027] According to the first weight coefficient and the second weight coefficient, perform weighted calculation on the first priority and the second priority of each second light strip light effect alternative sub - mode to determine the target priority of each second light strip light effect alternative sub - mode;
[0028] Compare the target priorities of each second light strip light effect alternative sub - mode, and use the second light strip light effect alternative sub - mode corresponding to the highest priority as the target light strip light effect sub - mode.
[0029] Preferably, when the Bluetooth communication status is verified to be passed, in response to a mode switching instruction issued by the user, perform cyclic mode switching on the light strip, and adjust the preset light strip control parameters according to the switched light strip working mode. Determining the first light strip control parameters includes:
[0030] Obtain the target light strip light effect mode and the target light strip light effect sub - mode corresponding to the target light strip working mode, and determine the first switching order between each light strip light effect mode and the second switching order between each light strip light effect sub - mode;
[0031] According to the first switching order and the second switching order, combine the target light strip light effect mode and the target light strip light effect sub - mode to determine the adjacent light strip working mode corresponding to the target light strip working mode;
[0032] In response to a mode switching instruction issued by the user, switch the target light strip working mode to the adjacent light strip working mode;
[0033] Adjust the historical strip control parameter according to the difference in the strip control parameter between the working mode of the adjacent strip and the working mode of the target strip, and determine the first strip control parameter.
[0034] Preferably, in response to the strip adjustment instruction issued by the user, the first strip control parameter is adjusted for the second time to obtain a second strip control parameter. Controlling the strip to work through the second strip control parameter includes:
[0035] When receiving the strip adjustment instruction issued by the user, obtain the first strip control parameter, where the first strip control parameter at least includes a first brightness value and a first color change rate;
[0036] Classify the working mode of the strip controlled by the first strip control parameter, and determine that the classification result is a static working mode or a dynamic working mode, where the static working mode at least includes a single-color dimming mode, and the dynamic working mode at least includes a three-color jump mode, a seven-color jump mode, a three-color fade mode, a seven-color fade mode, and a single-color stroboscopic mode;
[0037] If the classification result is a static working mode, adjust the first brightness value in the first strip control parameter according to a preset number of brightness adjustment levels and the strip adjustment instruction, and determine the second strip control parameter;
[0038] If the classification result is a dynamic working mode, adjust the first color change rate in the first strip control parameter according to a preset number of rate adjustment levels and the strip adjustment instruction, and determine the second strip control parameter.
[0039] Preferably, if the classification result is a static working mode, adjusting the first brightness value in the first strip control parameter according to the preset brightness adjustment level and the strip adjustment instruction to determine the second strip control parameter includes:
[0040] According to the strip adjustment instruction, determine the target brightness adjustment level selected by the user among the preset brightness adjustment levels;
[0041] Judge whether the target brightness adjustment level is within the preset brightness adjustment level range;
[0042] When it is judged that the target brightness adjustment level is within the preset brightness adjustment level range, classify the target brightness adjustment level to determine the level category;
[0043] According to the level category, obtain the first exponential adjustment coefficient corresponding to the level category;
[0044] Determine the target brightness adjustment amplitude parameter corresponding to the target brightness adjustment level according to the mapping relationship between the brightness adjustment level and the brightness adjustment amplitude parameter;
[0045] Determine the brightness adjustment value according to the target brightness adjustment amplitude parameter and the preset brightness adjustment gain coefficient;
[0046] Calculate the preliminary brightness value according to the brightness adjustment value and the first brightness value;
[0047] Perform non - linear optimization processing on the preliminary brightness value according to the preset exponential function and the first exponential adjustment coefficient to determine the second light strip control parameter.
[0048] Preferably, if the classification result is the dynamic working mode, then according to a plurality of preset rate adjustment levels and the light strip adjustment instruction, adjust the first color change rate in the first light strip control parameter to determine the second light strip control parameter, including:
[0049] Determine the target rate change level selected by the user among the preset rate adjustment levels according to the light strip adjustment instruction;
[0050] Classify the dynamic working mode to determine the target classification result;
[0051] When the target classification result is the jump mode or the gradual change mode, obtain the first optimization coefficient corresponding to the jump mode or the second optimization coefficient corresponding to the gradual change mode;
[0052] Perform optimization processing on the first color change rate according to the first optimization coefficient or the second optimization coefficient to determine the preliminary color change rate;
[0053] Determine the second exponential adjustment coefficient according to the target classification result in combination with the target rate change level;
[0054] Perform non - linear optimization processing on the preliminary color change rate according to the second exponential adjustment coefficient and the preset exponential function to determine the second light strip control parameter.
[0055] In a second aspect, the present invention provides a multi - mode Bluetooth light strip control device, and the device includes:
[0056] A communication verification module, configured to respond to a communication verification instruction issued by a user and verify the Bluetooth communication status between the light strip and the user terminal in real time;
[0057] A mode switching module, configured to, when the Bluetooth communication status is verified to pass, in response to a mode switching instruction issued by the user, perform a cyclic mode switching on the LED strip, adjust preset LED strip control parameters according to the switched working mode of the LED strip, and determine first LED strip control parameters, wherein the preset LED strip control parameters include historical LED strip control parameters pre-stored on the LED strip or default LED strip control parameters set at the factory of the LED strip;
[0058] An LED strip adjustment module, configured to, in response to an LED strip adjustment instruction issued by the user, perform a second adjustment on the first LED strip control parameters to obtain second LED strip control parameters, and control the operation of the LED strip through the second LED strip control parameters.
[0059] In a third aspect, an embodiment of the present invention further provides a multi-mode Bluetooth LED strip control system, characterized in that the system includes an LED strip and a controller, and the controller is configured to implement the method as described above.
[0060] In summary, the beneficial effects of the present invention are as follows:
[0061] The multi-mode Bluetooth LED strip control method, device and system provided by the present invention, the method includes: in response to a communication verification instruction issued by the user, verifying the Bluetooth communication status between the LED strip and the user terminal in real time; when the Bluetooth communication status is verified to pass, in response to a mode switching instruction issued by the user, performing a cyclic mode switching on the LED strip, adjusting preset LED strip control parameters according to the switched working mode of the LED strip, and determining first LED strip control parameters, wherein the preset LED strip control parameters include historical LED strip control parameters pre-stored on the LED strip or default LED strip control parameters set at the factory of the LED strip; in response to an LED strip adjustment instruction issued by the user, performing a second adjustment on the first LED strip control parameters to obtain second LED strip control parameters, and controlling the operation of the LED strip through the second LED strip control parameters. By verifying the Bluetooth communication status in real time, the present invention ensures a stable connection between the LED strip and the user terminal, and solves the problem of inaccurate control caused by unstable communication in the prior art; subsequently, in response to a mode switching instruction issued by the user, performing a cyclic mode switching on the LED strip according to different working modes, and adjusting the initial control parameters after the switching to ensure that the lighting effect in each mode matches the user's needs. According to an LED strip adjustment instruction issued by the user, performing a second adjustment on the first LED strip control parameters to refine the lighting control parameters, and ensuring that the LED strip can achieve accurate lighting effects and intelligent adaptive adjustment. Therefore, by combining Bluetooth communication, dynamic mode switching and in-depth parameter adjustment, the present invention solves the problem that the LED strip in the prior art cannot perform intelligent mode switching and precise control, significantly improves the user's lighting experience, and can more flexibly and personalizedly adapt to changing usage requirements. Description of the Drawings
[0062] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, and all of these are within the protection scope of the present invention.
[0063] Figure 1 It is a schematic flowchart of the overall operation of the multi-mode Bluetooth strip light control method in Embodiment 1 of the present invention;
[0064] Figure 2 It is a schematic flowchart of the process of real-time verifying the Bluetooth communication status between the strip light and the user terminal in Embodiment 1 of the present invention;
[0065] Figure 3 It is a schematic flowchart of the process of determining the target strip light light effect mode and the target strip light light effect sub-mode corresponding to the target strip light working mode in Embodiment 1 of the present invention;
[0066] Figure 4 It is a schematic flowchart of the process of determining the target strip light light effect sub-mode in Embodiment 1 of the present invention;
[0067] Figure 5 It is a schematic flowchart of the process of screening the second strip light light effect alternative sub-modes in Embodiment 1 of the present invention;
[0068] Figure 6 It is a schematic flowchart of the process of cyclically switching the working mode of the strip light and adjusting the historical strip light control parameters according to the switched strip light working mode in Embodiment 1 of the present invention;
[0069] Figure 7 It is a schematic flowchart of the process of performing a second adjustment on the first strip light control parameters in Embodiment 1 of the present invention;
[0070] Figure 8 It is a schematic flowchart of the process of adjusting the first brightness value in the first strip light control parameters in Embodiment 1 of the present invention;
[0071] Figure 9 It is a schematic flowchart of the process of adjusting the first color change rate in the first strip light control parameters in Embodiment 1 of the present invention;
[0072] Figure 10 It is a structural block diagram of the multi-mode Bluetooth strip light control device in Embodiment 2 of the present invention;
[0073] Figure 11 It is a structural schematic diagram of the multi-mode Bluetooth strip light control system in Embodiment 3 of the present invention. Detailed Embodiments
[0074] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be noted that, in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or sequence between these entities or operations. In the description of the present invention, it should be understood that the orientation or positional relationship indicated by terms such as "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation of the present invention. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the elements defined by the statement "comprising..." do not exclude the presence of additional identical elements in the process, method, article or device comprising the said elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments may be combined with each other, and all are within the protection scope of the present invention.
[0075] Embodiment 1
[0076] Please refer to Figure 1 , Embodiment 1 of the present invention discloses a multi-mode Bluetooth strip light control method, and the method includes:
[0077] In response to a communication verification instruction issued by a user, the Bluetooth communication status between the strip light and the user terminal is verified in real time;
[0078] Specifically, in actual application scenarios, Bluetooth communication is vulnerable to problems such as signal interference, distance limitations, or unstable connections between devices, which can lead to delays or losses of the strip light control instructions, thus affecting the user experience. Therefore, when receiving the communication verification instruction issued by the user, the Bluetooth connection status between the strip light and the user terminal is detected through a real-time verification mechanism. The verification process includes checking the strength of the Bluetooth signal, whether the connection is successful, and whether the communication channel is normal, so as to ensure that the communication link between the two parties is stable. If the communication status is normal, the subsequent strip light control operations are continued; if the communication is abnormal, the system will promptly feedback error information or request a reconnection to avoid control failures caused by signal problems. This verification mechanism effectively avoids control failures caused by unstable Bluetooth connections during the strip light control process, ensures a smooth experience for users during use, and improves the reliability and intelligence level of the device.
[0079] In one embodiment, please refer to Figure 2 , the real-time verification of the Bluetooth communication status between the strip light and the user terminal in response to the communication verification instruction issued by the user includes:
[0080] In response to the communication verification instruction, obtain a preset verification time interval period;
[0081] Specifically, after receiving the communication verification instruction issued by the user terminal, first obtain the verification period from the preset verification time interval. This period defines how often the system needs to verify the Bluetooth communication quality. This time interval is usually set according to the usage scenario and communication environment of the device, and may range from a few seconds to several minutes. For example, in a static environment, the verification period can be set longer; while in a scenario of high-frequency mobile devices, the verification period may be set to a shorter time to ensure continuous stability. Setting a reasonable time interval helps to balance the relationship between the verification frequency and system performance, avoids unnecessary frequent verification, and at the same time ensures that the communication status is always under monitoring, guaranteeing the efficiency and accuracy of communication.
[0082] According to the verification time interval period, send a verification signal to the user terminal, where the verification signal includes a first signal quality value;
[0083] Specifically, according to the preset verification time interval period, send a verification signal to the user terminal. This verification signal not only carries a verification request but also includes the current first signal quality value, usually represented as the RSSI value, i.e., the received signal strength indication. The first signal quality value reflects the stability and strength of the current Bluetooth communication link. For example, if the first signal quality value is high, it indicates that the Bluetooth connection is relatively stable; on the contrary, a low signal quality value means that the Bluetooth connection may be interfered or the distance is too far.
[0084] Receive a synchronization signal corresponding to the verification signal from the user terminal, and determine a second signal quality value corresponding to the synchronization signal;
[0085] Specifically, when the user terminal receives the verification signal, it responds and sends a synchronization signal back to the controller within a specified time. The synchronization signal is a feedback signal sent according to the verification signal, and the user terminal uses this signal to confirm that it has received and is ready to respond. After receiving the synchronization signal, read the second signal quality value included in the synchronization signal. The second signal quality value represents the Bluetooth signal quality when the user terminal transmits the synchronization signal back. For example, if during the same signal transmission process, the first signal quality value is -45 dBm and the second signal quality value is -50 dBm, this indicates that due to environmental changes such as walls and obstacles, the signal quality has decreased.
[0086] Determine the time difference between the transmission time of the verification signal and the reception time of the synchronization signal;
[0087] Specifically, during the verification process, record the transmission time of the verification signal and the reception time of the synchronization signal, calculate the difference between these two time points to obtain the time difference. This time difference reflects the time delay during the signal propagation process and can help evaluate the response speed and latency of the Bluetooth communication. For example, if the time difference between sending the verification signal and receiving the synchronization signal is abnormally large, it means that there is a long delay in the Bluetooth connection, affecting the response speed of real-time control. This time delay information can be used as an important dimension for evaluating communication quality.
[0088] Determine a signal quality difference according to the first signal quality value and the second signal quality value;
[0089] Specifically, compare the first signal quality value and the second signal quality value, and calculate the difference between them, which is the signal quality difference. This difference reflects the change in the Bluetooth signal during the transmission and reception processes. A larger difference may mean that the signal has been significantly interfered with or has suffered quality loss during transmission. For example, at a relatively long distance or in the presence of wall barriers, the signal strength may decrease significantly, resulting in a large quality difference between the first signal and the second signal. Through this step, the stability of the connection and the communication quality can be more accurately evaluated, providing a reliable signal quality assessment.
[0090] Determine a communication coefficient according to the signal quality difference and the time difference;
[0091] Specifically, after obtaining the signal quality difference and the time difference, a communication coefficient is calculated based on these two parameters. The communication coefficient is a comprehensive evaluation of signal quality and latency, and is calculated through a weighting formula. For example, the signal quality difference and the time difference are weighted according to preset weights to determine the communication coefficient. This communication coefficient can help the system comprehensively judge the stability and response ability of the current Bluetooth connection, so as to decide whether to continue to maintain or re - establish the connection.
[0092] Compare the communication coefficient with a preset coefficient threshold. If the communication coefficient is greater than the coefficient threshold, the Bluetooth communication status is verified as passed;
[0093] If the communication coefficient is less than or equal to the coefficient threshold, the Bluetooth communication status is verified as failed.
[0094] Specifically, compare the calculated communication coefficient with the preset coefficient threshold. If the communication coefficient is greater than the coefficient threshold, it is considered that the Bluetooth communication status is stable and verified as passed, and it can continue to be used; if the communication coefficient is less than or equal to the threshold, it means that the signal quality or latency problem is too serious and the communication is unstable. It will be considered that the Bluetooth communication status verification fails, and you can choose to reconnect or feedback error information. This step quantifies the evaluation of communication quality to ensure that the light strip can work properly only when the signal is stable, avoiding control failure or delay caused by poor Bluetooth signals.
[0095] When the Bluetooth communication status is verified as passed, in response to a mode - switching instruction issued by the user, perform a cyclic mode - switching on the light strip, and adjust the preset light - strip control parameters according to the switched light - strip working mode to determine the first light - strip control parameters, where the preset light - strip control parameters include historical light - strip control parameters pre - saved on the light strip or default light - strip control parameters set at the factory of the light strip;
[0096] Specifically, when the Bluetooth communication status is verified, subsequent control operations are continued based on the stable connection between the user terminal and the light strip. First, in response to a mode switching instruction issued by the user, it is determined whether there are saved historical light strip control parameters. The historical light strip control parameters include settings such as the brightness, color, and flashing mode of the light strip. These settings are usually personalized control parameters adjusted by the user according to personal needs or environmental conditions. The purpose of reading the historical control parameters is to ensure that the light strip can maintain its previous usage state after reconnecting, avoiding the need for the user to reconfigure it every time, and providing a convenient user experience. For example, if the user adjusted the light strip to the "gradient mode" during the last use, then when the Bluetooth connection is re-established, it will restore the light strip to the "gradient mode" state according to the read historical control parameters. In this way, seamless connection of light strip control and continuous personalized settings can be achieved, avoiding unnecessary operations and repeated configurations, and greatly improving the user experience and the intelligent level of the system. If there are no such historical light strip control parameters, for example, the light strip is used for the first time, or the historical parameters are not saved, lost, damaged, or cannot be read for other reasons, the preset light strip control parameters are set to the default light strip control parameters set at the factory of the light strip. For example, the default light strip control parameters are to set the light strip to the "constant on mode" and adjust it to medium brightness, ensuring that the device can still work properly when the user's personalized settings cannot be loaded. The technical solution of this step ensures that even when the historical parameter reading fails, the device can still provide basic lighting functions, preventing the device from malfunctioning due to parameter reading failure.
[0097] In one embodiment, please refer to Figure 3 , when the preset light strip control parameters are the historical light strip control parameters, when the Bluetooth communication status is verified, in response to a mode switching instruction issued by the user, before cycling through the mode switching of the light strip and adjusting the preset light strip control parameters according to the switched light strip working mode to determine the first light strip control parameter, it further includes:
[0098] Obtain the target light strip working mode corresponding to the historical light strip control parameters;
[0099] Specifically, if there are the historical light strip control parameters, obtain and analyze the historical control parameters of the light strip to determine the target light strip working mode. The historical light strip control parameters include the previous working mode, brightness setting, color selection, switching time, and scene environment, which can reflect the performance and user preferences of the light strip in different time periods and different usage scenarios. For example, the user selects a warm-color single-color mode at night, and a dynamic jump mode during parties or entertainment activities. By obtaining the historical light strip control parameters, a database of the user's usage patterns and needs can be established, providing data support for subsequent mode classification and optimization.
[0100] Classify the working modes of the target light strip. According to the classification results, obtain the target light strip light effect mode corresponding to the working mode of the target light strip in a preset set of light strip light effect modes, where each light strip light effect mode in the set of light strip light effect modes includes multiple light strip light effect sub - modes;
[0101] Specifically, classify according to the characteristics of the target light strip working mode, such as light color, brightness change, mode conversion speed, etc., to determine the first mode to which the working mode belongs; the target light strip light effect modes include: single - color mode, jump - change mode, gradual - change mode, and stroboscopic mode. Among them, each light strip light effect mode in the set of light strip light effect modes includes multiple light strip light effect sub - modes. The single - color mode means that the light strip emits light of a single color. The jump - change mode means that the light color or brightness quickly switches. The gradual - change mode means that the light color or brightness slowly changes. The stroboscopic mode is that the light flashes periodically. By analyzing the target light strip working mode, it is possible to accurately classify the target light strip working mode into one of these four modes according to the preset mode classification criteria, so as to obtain the target light strip light effect mode.
[0102] According to the target light strip light effect mode and the historical light strip control parameters, combined with the preset mapping relationship between the light strip light effect mode and the light strip light effect sub - mode, determine the target light strip light effect sub - mode corresponding to the target light strip working mode.
[0103] Specifically, based on the combination of the target light strip light effect mode and the historical light strip control parameters, further refine the mode classification to determine the target light strip light effect sub - mode. First, make a preliminary classification according to the target light strip light effect mode (such as single - color mode, jump - change mode, gradual - change mode, stroboscopic mode), and combine this result with the historical control parameters. For example, if the user has often selected blue in the single - color mode in the past, then recommend blue as the target light strip light effect sub - mode in the single - color mode. At the same time, further classification optimization will also be carried out according to the preset mapping relationship. For example, in the jump - change mode, if the historical data shows that the user is more inclined to the three - color jump - change mode, this option will be recommended first. The preset mapping relationship dynamically adjusts the target light strip light effect sub - mode according to the actual application scenarios of different modes, the user's historical preferences, and the changes in control parameters, so that the lighting effect can better match the user's needs and environmental conditions.
[0104] In one embodiment, please refer to Figure 4 that the step of determining the target light strip light effect sub - mode corresponding to the target light strip working mode according to the target light strip light effect mode and the historical light strip control parameters, combined with the preset mapping relationship between the light strip light effect mode and the light strip light effect sub - mode, includes:
[0105] Determine the historical usage frequencies corresponding to each light strip light effect sub - mode for each light strip light effect mode according to the historical light strip control parameters and each light strip light effect mode in the light strip light effect mode set;
[0106] Specifically, according to the historical light strip control parameters, analyze the usage frequencies of different light strip light effect sub - modes by users historically under each light strip light effect mode. The historical light strip control parameters provide data on users' past usage behaviors, including factors such as the specific colors, brightness, transformation speeds selected by users. For example, a certain user is more inclined to choose red or white in the single - color mode, or prefers three - color jumping rather than seven - color jumping in the jumping mode. By analyzing the historical control parameters, calculate the usage frequencies of each light strip light effect sub - mode (such as red mode, three - color jumping mode, etc.) under a specific first mode. This historical usage frequency will help understand users' long - term preferences and provide data support for subsequent mode recommendations.
[0107] Determine multiple first light strip light effect alternative sub - modes corresponding to the target light strip light effect mode according to the preset mapping relationship and the target light strip light effect mode;
[0108] Specifically, according to the target light strip light effect mode, in combination with the preset mapping relationship between the target light strip light effect mode and the target light strip light effect sub - mode, determine multiple first light strip light effect alternative sub - modes corresponding to the target light strip light effect mode, where the target light strip light effect mode includes one of the following modes: single - color mode, jumping mode, gradient mode, and stroboscopic mode. If the target light strip light effect mode is the single - color mode, then according to the preset mapping relationship, determine that the first light strip light effect alternative sub - modes include red mode, green mode, blue mode, cyan mode, purple mode, yellow mode, and white mode; if the target light strip light effect mode is the jumping mode, then determine that the first light strip light effect alternative sub - modes include three - color jumping mode or seven - color jumping mode; if the target light strip light effect mode is the gradient mode, then according to the preset mapping relationship, determine that the first light strip light effect alternative sub - modes include three - color gradient mode or seven - color gradient mode; if the target light strip light effect mode is the stroboscopic mode, then according to the preset mapping relationship, determine that the first light strip light effect alternative sub - modes include white stroboscopic mode.
[0109] Determine the usage frequencies corresponding to each first light strip light effect alternative sub - mode according to the historical usage frequencies corresponding to each light strip light effect sub - mode;
[0110] Specifically, by using the historical usage frequencies of each light strip light effect sub - mode and combining with the first set of alternative light strip light effect sub - modes, a comprehensive evaluation of the usage frequency of each first alternative light strip light effect sub - mode is carried out. Suppose the user has more often selected red, green, or blue in the monochromatic mode in the past, the system will judge the popularity of each first alternative light strip light effect sub - mode according to these frequencies. For example, if the user often selects the three - color jump mode in the jump mode, the usage frequency of the three - color jump mode is relatively high. In this way, a usage frequency value is assigned to each first alternative light strip light effect sub - mode based on historical data, so as to better understand the popularity of different first alternative light strip light effect sub - modes.
[0111] Compare the usage frequencies corresponding to each first alternative light strip light effect sub - mode with a preset frequency threshold, and extract the first alternative light strip light effect sub - modes with usage frequencies greater than the frequency threshold as the second alternative light strip light effect sub - modes;
[0112] Specifically, by comparing the usage frequencies of each first alternative light strip light effect sub - mode with a preset frequency threshold, those modes with relatively high usage frequencies in the user's historical data are screened out. The preset frequency threshold is a standard set according to actual requirements and usage scenarios, which helps to screen out the modes with relatively high user preference levels. For example, if the usage frequency of a certain mode exceeds the preset threshold (e.g., 50%), then this mode will be considered as a second alternative light strip light effect sub - mode that meets the user's needs. Through this screening process, it is possible to effectively focus on those modes that conform to the user's long - term usage habits and avoid recommending infrequently used modes.
[0113] When there is only one second alternative light strip light effect sub - mode, use this second alternative light strip light effect sub - mode as the target light strip light effect sub - mode;
[0114] Specifically, if after screening, it is found that only one alternative mode meets the requirements of the frequency threshold (i.e., there is only one second alternative light strip light effect sub - mode), then automatically select the second alternative light strip light effect sub - mode as the final target light strip light effect sub - mode. In this case, no additional selection is required because the most suitable mode has been found through historical data and frequency analysis. For example, if in the monochromatic mode, the usage frequency of the red mode is significantly higher than other colors, automatically select red as the target light strip light effect sub - mode to ensure that the recommended lighting mode can best meet the user's needs.
[0115] When there are more than two second alternative light strip light effect sub - modes, screen each of the second alternative light strip light effect sub - modes according to the light strip usage time interval and light strip usage scenario corresponding to the target light strip working mode, and determine the screened sub - mode as the target light strip light effect sub - mode.
[0116] Specifically, if there are multiple alternative sub-modes of the second light strip lighting effect that meet the frequency threshold after screening (that is, the usage frequencies of multiple alternative modes are all high), it is necessary to further make a selection based on the time interval and usage scenario of the target light strip working mode. For example, if the user currently uses the light strip at night and the environment is relatively quiet, a softer single-color mode (such as warm colors or white) is recommended; if it is at a party or entertainment, a more dynamic jump mode will be selected. Analysis of the target light strip working mode and usage scenario helps determine the mode that best suits the current environment, thereby optimizing the user's lighting experience.
[0117] In one embodiment, see Figure 5 , when there are more than two second light strip light effect alternative sub-modes, screening each of the second light strip light effect alternative sub-modes according to the light strip use time interval and light strip use scenario corresponding to the target light strip working mode, and determining the screened mode as the target light strip light effect sub-mode includes:
[0118] Determining a first priority of each second light strip light effect alternative sub-mode according to the light strip use time interval;
[0119] Specifically, the first priority of each alternative sub-mode of the second light strip light effect is determined according to the current use time interval of the light strip. Users have different needs for light strips in different time periods; for example, during the day, users prefer bright and clear colors (such as white or yellow modes), while at night, users prefer soft lights (such as warm colors or low brightness modes). For example, brighter modes during the day are given higher priority, while softer gradient or strobe modes are given higher priority at night.
[0120] Determining, according to the usage scenario of the light strip, a second priority level of each of the second light strip light effect alternative sub-modes;
[0121] Specifically, according to the user input instruction, the usage scenario of the light strip is determined, and according to the usage scenario of the light strip, the priority of the alternative sub-mode of the second light strip light effect is determined. The usage scenario of the light strip is usually related to the environment, scene or activity, such as family gatherings, parties, reading, leisure, etc. In different scenarios, the demand for light modes is also different. For example, at family gatherings or parties, dynamic jump mode or multi-color mode is more inclined to enhance the atmosphere; while when reading or working, monochrome mode (such as white light or warm white light) is a more suitable choice. According to these scenarios, a second priority is assigned to each alternative sub-mode of the second light strip light effect to ensure that the light strip can perform the most appropriate light display according to the actual usage scenario.
[0122] Obtain a first weight coefficient corresponding to a preset first priority and a second weight coefficient corresponding to a preset second priority;
[0123] Specifically, obtain the first weight coefficient corresponding to the preset first priority and the second weight coefficient corresponding to the second priority. The first weight coefficient and the second weight coefficient reflect the importance of the time interval priority and the usage scenario priority in the selection of the light strip mode. The setting of the first weight coefficient and the second weight coefficient is based on the actual needs and usage habits of the user. For example, if the usage time of the light strip has a greater impact on the mode selection, a higher weight coefficient is assigned to the first priority. On the contrary, if the user's usage scenario has a more significant impact on the mode selection, the second priority will obtain a higher weight coefficient. By presetting the first weight coefficient and the second weight coefficient, weighted calculation is performed according to the priorities of different scenarios, so as to achieve more accurate and personalized mode recommendations.
[0124] According to the first weight coefficient and the second weight coefficient, perform weighted calculation on the first priority and the second priority of each alternative sub-mode of the second light strip light effect to determine the target priority of each alternative sub-mode of the second light strip light effect;
[0125] Specifically, according to the first weight coefficient and the second weight coefficient, perform weighted calculation on the first priority and the second priority of each alternative sub-mode of the second light strip light effect to obtain a comprehensive target priority. This weighted calculation method comprehensively considers time and scenario factors, so as to more accurately evaluate the priority of each mode. For example, if a certain mode has a higher time interval priority but a lower scenario priority, the target priority of this mode will depend on the weight coefficient of the time factor. Through this method, the most suitable mode can be preferentially selected flexibly according to different environments and usage requirements.
[0126] Compare the target priorities of each alternative sub-mode of the second light strip light effect, and use the alternative sub-mode of the second light strip light effect corresponding to the highest priority as the target light strip light effect sub-mode.
[0127] Specifically, compare all the target priorities obtained through weighted calculation, and find out the alternative sub-mode of the second light strip light effect with the highest target priority. Since each mode has been weighted according to the priorities of the time interval and the usage scenario, the highest value of the target priority will represent the mode that best meets the current usage conditions. The mode with the highest target priority will be selected as the final target light strip light effect sub-mode; at this time, the light strip will automatically adjust to this mode, so as to provide the best user experience. For example, if it is at night and the user's scenario requirement is a family gathering, the jump mode is the finally selected mode. If this mode has the highest target priority, the system will display it as the final result.
[0128] In one embodiment, please refer to Figure 6, when the Bluetooth communication status is verified, in response to a mode switching instruction issued by the user, perform a cyclic mode switching on the light strip, and adjust the preset light strip control parameters according to the switched light strip working mode. The determined first light strip control parameters include:
[0129] Obtain the target light strip light effect mode and the target light strip light effect sub-mode corresponding to the target light strip working mode, and determine the first switching order between each light strip light effect mode and the second switching order between each light strip light effect sub-mode;
[0130] Specifically, first obtain the target light strip light effect mode and the target light strip light effect sub-mode corresponding to the target light strip working mode. The first mode classification is a rough classification based on the current state of the light strip (such as single color, jumping, gradual change, stroboscopic, etc.); while the light strip light effect sub-mode classification further refines the specific modes in each major category (such as red, green, blue modes or three-color, seven-color jumping modes, etc.). Define the conversion logic between different modes based on the preset first switching order between each light strip light effect mode and the second switching order between each light strip light effect sub-mode, ensuring that the switching between different modes is orderly, coherent, and meets user expectations. For example, set the single color mode to switch to the gradual change mode, and the red mode to switch to the green mode.
[0131] According to the first switching order and the second switching order, combined with the target light strip light effect mode and the target light strip light effect sub-mode, determine the adjacent light strip working mode corresponding to the target light strip working mode;
[0132] Specifically, according to the first switching order and the second switching order, combined with the target light strip light effect mode and the target light strip light effect sub-mode, determine the adjacent light strip working mode. The adjacent light strip working mode refers to the next mode to which the light strip will switch when responding to the user's mode switching instruction. According to the target light strip light effect mode, combined with the first switching order and the second switching order, determine the mode adjacent to the target light strip light effect mode. For example, assume that when the user issues a mode switching instruction, the target light strip light effect mode is "blue single color mode". According to the preset switching order, determine that the red mode and the green mode are the adjacent light strip working modes adjacent to the current mode, and according to the priority, it may be selected to switch to the "red mode" or the "green mode" first. This step ensures the coherence and natural flow of the system during the light strip mode switching, avoiding the situation where the light strip jumps between different modes. The system can intelligently select the next target mode according to the preset order between modes, improving the user experience and the intelligent level of control.
[0133] In response to a mode switching instruction issued by the user, switch the target light strip working mode to the adjacent light strip working mode;
[0134] Specifically, in response to a mode switching instruction issued by the user and based on the working modes of adjacent light strips for switching, when the user issues a mode switching instruction through input devices such as Bluetooth, APP, physical buttons, etc., corresponding mode switching operations are performed according to the differences between the target light strip working mode and the adjacent light strip working mode to ensure that the display effect of the light strip meets the user's requirements. For example, when switching from a gradient mode to a stroboscopic mode, the system will automatically adjust relevant control parameters to ensure a natural transition without interruption.
[0135] Adjust the historical light strip control parameters according to the difference in light strip control parameters between the adjacent light strip working mode and the target light strip working mode to determine the first light strip control parameters.
[0136] Specifically, calculate the difference in light strip control parameters between the adjacent light strip working mode and the target light strip working mode, and adjust the initial light strip control parameters accordingly. The light strip control parameters include brightness, color, blinking frequency, etc. By calculating the difference and making adjustments, ensure that the display effect of the light strip matches the user's expectations. For example, assume the current mode is "monochromatic mode - red" and the target mode is "jumping mode - three colors". Calculate the control parameter differences between these two modes, mainly including color changes and blinking speeds. Then, adjust the control parameters to enable a smooth transition to the "jumping mode", ensuring that the color jump of the light strip is natural and meets expectations. By accurately calculating and adjusting the control parameter differences, it can be ensured that after each mode switch, the performance of the light strip can achieve the expected effect, avoiding abrupt visual changes and making the user experience smoother and more comfortable.
[0137] In response to a light strip adjustment instruction issued by the user, perform a second adjustment on the first light strip control parameters to obtain second light strip control parameters, and control the operation of the light strip through the second light strip control parameters.
[0138] Specifically, in response to a light strip adjustment instruction issued by the user, perform a second adjustment on the first light strip control parameters to further adjust the display effect of the light strip. For example, adjust the brightness, color, and blinking frequency to ensure that the lighting effect of the light strip better meets the user's needs. The second adjustment includes adjusting the brightness in the monochromatic mode, adjusting the speed of color temperature change in the gradient mode, or adjusting the frequency of color transition in the jumping mode. The second adjustment allows the user to make more detailed customization based on the first control parameter setting, further improving personalization and flexibility, while avoiding complex operations and enhancing the overall user experience.
[0139] In one embodiment, please refer to Figure 7 , the performing a second adjustment on the first light strip control parameters in response to a light strip adjustment instruction issued by the user to obtain second light strip control parameters, and controlling the operation of the light strip through the second light strip control parameters includes:
[0140] When receiving a light strip adjustment instruction issued by a user, obtain the first light strip control parameter, where the first light strip control parameter at least includes a first brightness value and a first color change rate;
[0141] Specifically, when receiving a light strip adjustment instruction issued by a user, the user's light strip adjustment instruction includes changing the brightness, color change rate, etc. of the light strip. According to the light strip adjustment instruction, obtain the first light strip control parameter, and the first light strip control parameter at least includes. Suppose the user selects to adjust the brightness and color change rate of the light strip in the application. If the current setting is "blue single color mode", the brightness is 50%, and the color change rate is "medium speed", first obtain these two parameters as the first light strip control parameter for subsequent adjustment. By obtaining the first light strip control parameter, the current working state can be accurately identified, and effective adjustment can be ensured based on the user's adjustment instruction, avoiding misoperation and unnecessary adjustment.
[0142] Classify the working mode of the light strip controlled by the first light strip control parameter, and determine that the classification result is a static working mode or a dynamic working mode, where the static working mode at least includes a single color dimming mode, and the dynamic working mode at least includes a three-color jump mode, a seven-color jump mode, a three-color gradient mode, a seven-color gradient mode, and a single color stroboscopic mode;
[0143] Specifically, according to the first light strip control parameter, determine whether the working mode of the light strip belongs to the static mode or the dynamic mode. The static working mode includes the single color dimming mode, which mainly depends on fixed brightness and color for lighting; while the dynamic working mode includes modes such as the three-color jump mode, the seven-color jump mode, the three-color gradient mode, the seven-color gradient mode, and the single color stroboscopic mode, which usually rely on changes in parameters such as color changes and flashing frequencies to achieve dynamic effects. Suppose the user's current setting is the single color mode, the brightness value is low, and the color change rate is "no change", then it is classified as the static working mode. If the user sets the "seven-color jump mode", it is classified as the dynamic working mode because this mode involves frequent color changes.
[0144] Through mode classification, the working mode of the light strip can be managed more precisely. The distinction between static and dynamic modes helps with subsequent parameter adjustment and mode switching, thereby providing a lighting effect that better meets the user's needs.
[0145] If the classification result is the static working mode, then according to a preset number of brightness adjustment gears and the light strip adjustment instruction, adjust the first brightness value in the first light strip control parameter to determine the second light strip control parameter;
[0146] Specifically, when it is confirmed that the light strip is in the static working mode, the brightness value in the first light strip control parameter is adjusted. At this time, the brightness is adjusted according to a preset number of brightness adjustment levels to ensure that the brightness change of the light strip meets the user's needs. For example, the preset number of brightness adjustment levels includes 1 to 10 brightness adjustment levels, and each brightness adjustment level represents a specific brightness level. According to the adjustment instruction issued by the user, the appropriate brightness level is selected to adjust the first brightness value in the first light strip control parameter and update it to the new second light strip control parameter, and then the second light strip control parameter is applied to control the lighting effect of the light strip. This step enables the user to flexibly adjust the brightness of the light strip to optimize the lighting effect according to different scenario requirements. Through the preset brightness levels, a precise and convenient control method is provided for the user, making the adjustment process more intuitive and user-friendly.
[0147] In one embodiment, please refer to Figure 8 , if the classification result is the static working mode, then according to a preset number of brightness adjustment levels and the light strip adjustment instruction, the first brightness value in the first light strip control parameter is adjusted, and determining the second light strip control parameter includes:
[0148] According to the light strip adjustment instruction, determine the target brightness adjustment level selected by the user among the preset brightness adjustment levels;
[0149] Specifically, according to the light strip adjustment instruction, the light strip adjustment instruction issued by the user contains a specific brightness value. According to the specific brightness value, the target brightness level selected by the user is identified from the preset brightness adjustment levels. The preset brightness adjustment levels are fixed brightness levels set in advance, and the target brightness level is determined according to the user instruction.
[0150] Judge whether the target brightness adjustment level is within the preset brightness adjustment level range;
[0151] When it is judged that the target brightness adjustment level is within the preset brightness adjustment level range, classify the target brightness adjustment level to determine the level category;
[0152] Specifically, when it is determined that the target brightness adjustment gear is within a preset range of brightness adjustment gears. For example, the preset gear range is set to an integer range from gear 3 to 6, i.e., the medium brightness gear, and each gear corresponds to a certain brightness range. When the target brightness adjustment gear is within this range, it is further classified according to the position of the target brightness adjustment gear. For example, multiple gear categories are set, including low - medium brightness gear, medium brightness gear, and high - medium brightness gear, and each gear category is corresponded to a specific exponential adjustment coefficient and brightness adjustment amplitude. Through classification, personalized adjustment solutions can be provided for different brightness adjustment requirements, ensuring that users have a more precise and delicate experience when adjusting different brightness levels.
[0153] Obtain the first exponential adjustment coefficient corresponding to the gear category according to the gear category;
[0154] Specifically, according to the gear category, a table of exponential adjustment coefficients is preset for each gear category. For example, the exponential adjustment coefficient of the low - medium brightness gear is set to 0.8, the medium brightness gear is set to 1.0, and the high - medium brightness gear is set to 1.2. By looking up the table, the corresponding exponential adjustment coefficient can be quickly obtained according to the category to which the target brightness adjustment gear belongs. This technical solution can simplify the calculation process of the adjustment coefficient while ensuring the flexibility of the adjustment process. For example, when the target brightness adjustment gear is 4 and its classification is "medium brightness gear", the corresponding exponential adjustment coefficient is 1.0, and the system will participate in subsequent calculations with this coefficient to achieve non - linear optimization of brightness adjustment.
[0155] Determine the target brightness adjustment amplitude parameter corresponding to the target brightness adjustment gear according to the mapping relationship between the brightness adjustment gear and the brightness adjustment amplitude parameter;
[0156] Specifically, by establishing a mapping table or defining a linear function, the brightness adjustment gear is made to correspond one - to - one with the adjustment amplitude parameter. For example, the adjustment amplitude parameter corresponding to gear 3 is 20, gear 4 is 30, and gear 5 is 40. By inputting the target brightness adjustment gear, the corresponding amplitude parameter can be directly output from the mapping relationship to ensure that the amplitude of brightness change can meet the actual needs of users. For example, when the user sets the target brightness adjustment gear to 5, the system will output the amplitude parameter 40 for subsequent brightness calculations to ensure that the brightness adjustment change is significant enough but does not produce a sudden transition effect.
[0157] Determine the brightness adjustment value according to the target brightness adjustment amplitude parameter and the preset brightness adjustment gain coefficient;
[0158] Specifically, the final brightness adjustment value is determined by multiplying the target brightness adjustment amplitude parameter by a preset gain coefficient. The gain coefficient can be preset according to the user's scenario requirements. For example, it is set to 1.2 in the daytime environment and 0.8 in the nighttime environment, so that the same brightness amplitude parameter produces different brightness adjustment effects in different scenarios. For example, when the target brightness adjustment amplitude parameter is 40 and the gain coefficient is 1.2, the brightness adjustment value is 40 × 1.2 = 48, providing a basis for subsequent brightness value calculation.
[0159] Calculate a preliminary brightness value based on the brightness adjustment value and the first brightness value;
[0160] Specifically, the preliminary brightness value is calculated by adding the brightness adjustment value to the initial brightness value. For example, if the current first brightness value is 100 and the brightness adjustment value is 48, the preliminary brightness value is 100 + 48 = 148. This step ensures that the brightness adjustment change is based on the current actual brightness state, thus achieving continuous and smooth brightness adjustment.
[0161] Perform a non - linear optimization process on the preliminary brightness value according to a preset exponential function and the first exponential adjustment coefficient to determine the second light strip control parameter.
[0162] Specifically, to perform a non - linear optimization process on the preliminary brightness value, the preset exponential function y = x k , where x is the preliminary brightness value and k is the first exponential adjustment coefficient. Through the non - linear characteristics of the exponential function, the brightness value can be finely adjusted to show dynamic changes in different brightness ranges. For example, when k > 1, the brightness value increases more significantly with the increase of the exponent, which is suitable for enhancing the visual impact of high - brightness scenes; when k < 1, the change of the brightness value tends to be smooth, suitable for soft low - brightness scenes. For example, if the preliminary brightness value is 150 and the first exponential adjustment coefficient k is 1.2, the optimized brightness value is 150 1.2 ≈180, thus better meeting the user's requirements for high - brightness adjustment. Through this non - linear optimization, not only can the refinement degree of the lighting effect be improved, but also the user's adjustment experience in different scenarios and the adaptability of the light strip can be enhanced.
[0163] If the classification result is the dynamic working mode, adjust the first color change rate in the first light strip control parameter according to a preset number of rate adjustment gears and the light strip adjustment instruction to determine the second light strip control parameter.
[0164] Specifically, in the dynamic working mode, by defining multiple speed adjustment gears (such as "slow", "medium", "fast") and corresponding speed parameters (such as 0.5, 1.0, 1.5), and combining with the speed requirement in the light strip adjustment instruction, the color change speed of the light strip is dynamically adjusted. For example, when the user selects the "fast" gear and issues an adjustment instruction to increase the speed, the speed parameter is adjusted from 1.5 to 2.0, thereby accelerating the color switching speed of the light strip and enhancing the visual effect. This solution is applicable to dynamic lighting scenarios, such as festival or party environments, and can enhance the user's sense of participation and entertainment experience.
[0165] In one embodiment, please refer to Figure 9 , if the classification result is the dynamic working mode, then according to a plurality of preset speed adjustment gears and the light strip adjustment instruction, the first color change speed in the first light strip control parameter is adjusted, and it is determined that the second light strip control parameter includes:
[0166] According to the light strip adjustment instruction, determine the target speed change gear selected by the user among the preset speed adjustment gears;
[0167] Specifically, in response to the user's light strip adjustment instruction, by analyzing the target speed change gear selected by the user among the preset speed adjustment gears, the specific speed requirement is determined. For example, if the speed adjustment gear range is from 1 to 10 and the user selects gear 7, the system determines the target speed change gear as the high-speed adjustment category. Through this step, the user's needs can be accurately captured, and a more targeted light strip adjustment effect can be provided.
[0168] Classify the dynamic working mode to determine the target classification result;
[0169] Specifically, according to the characteristics of the dynamic working mode, it is classified into target classification results such as the jump mode or the gradual change mode. For example, when the color change of the light strip is periodic and presents a sudden change, the classification result is the jump mode; if the change is a smooth gradual change, it is classified into the gradual change mode. Through classification, the adjustment strategy can be further refined, providing a clear direction for subsequent optimization and non-linear processing.
[0170] When the target classification result is the jump mode or the gradual change mode, obtain the first optimization coefficient corresponding to the jump mode or the second optimization coefficient corresponding to the gradual change mode;
[0171] Specifically, after classification is completed, according to the target classification result, the corresponding optimization coefficient is extracted. The jump mode uses the first optimization coefficient to enhance the flexibility of color switching and visual impact; the gradual change mode uses the second optimization coefficient to ensure the smoothness of color transition. For example, the first optimization coefficient of the jump mode is 1.5, while the second optimization coefficient of the gradual change mode is 0.8. The optimization coefficient provides the basic parameter support for subsequent rate adjustment and improves the accuracy of strip light control.
[0172] According to the first optimization coefficient or the second optimization coefficient, optimize the first color change rate to determine the preliminary color change rate;
[0173] Specifically, according to the above optimization coefficient, the system linearly adjusts the first color change rate. For example, if the initial rate is 2 Hz and the optimization coefficient is 1.5, the optimized preliminary rate is 2×1.5 = 3 Hz. This step ensures that the rate optimization meets the characteristic requirements of the target mode and enhances the expressiveness of the dynamic effect.
[0174] According to the target classification result, in combination with the target rate change gear, determine the second exponential adjustment coefficient;
[0175] Specifically, according to the target classification result and the target rate change gear, determine the second exponential adjustment coefficient. For example, if the classification result is the gradual change mode and the target rate change gear is 7, the adjustment coefficient may be 1.3, while the coefficient of the jump mode in the same gear may be 1.8. This adjustment coefficient enables the rate change to adapt to the dynamic characteristics of different modes and brings a more layered strip light performance to the user.
[0176] According to the second exponential adjustment coefficient and the preset exponential function, perform non-linear optimization on the preliminary color change rate to determine the second strip light control parameter.
[0177] Specifically, in combination with the second exponential adjustment coefficient and the preset exponential function y = x k , perform non-linear optimization on the preliminary color change rate. For example, the preliminary rate is 3 Hz and the exponential adjustment coefficient is 1.3, then the optimization result is 3 1.3 ≈3.9 Hz. This non-linear processing enables the color change rate to have dynamic adaptability, and can present a more delicate visual effect whether in the gradual change mode or the jump mode, and finally output the optimized second strip light control parameter to improve the user experience and the quality of strip light performance.
[0178] Embodiment 2
[0179] Please refer to Figure 10 , Embodiment 2 of the present invention also provides a multi-mode Bluetooth strip light control device, and the device includes:
[0180] A communication verification module, configured to respond to a communication verification instruction issued by a user and verify the Bluetooth communication status between the light strip and the user terminal in real time;
[0181] A mode switching module, configured to, when the Bluetooth communication status is verified to be passed, respond to a mode switching instruction issued by the user, perform a cyclic mode switching on the light strip, adjust preset light strip control parameters according to the switched light strip working mode, and determine first light strip control parameters, wherein the preset light strip control parameters include historical light strip control parameters pre-saved on the light strip or default light strip control parameters set at the factory of the light strip;
[0182] A light strip adjustment module, configured to respond to a light strip adjustment instruction issued by the user, perform a second adjustment on the first light strip control parameters to obtain second light strip control parameters, and control the operation of the light strip through the second light strip control parameters.
[0183] Specifically, by using the multi-mode Bluetooth light strip control device provided in the embodiment of the present invention, the device includes: a communication verification module, configured to respond to a communication verification instruction issued by a user and verify the Bluetooth communication status between the light strip and the user terminal in real time; a mode switching module, configured to, when the Bluetooth communication status is verified to be passed, respond to a mode switching instruction issued by the user, perform a cyclic mode switching on the light strip, adjust preset light strip control parameters according to the switched light strip working mode, and determine first light strip control parameters, wherein the preset light strip control parameters include historical light strip control parameters pre-saved on the light strip or default light strip control parameters set at the factory of the light strip; a light strip adjustment module, configured to respond to a light strip adjustment instruction issued by the user, perform a second adjustment on the first light strip control parameters to obtain second light strip control parameters, and control the operation of the light strip through the second light strip control parameters. By verifying the Bluetooth communication status in real time, this device ensures a stable connection between the light strip and the user terminal, and solves the problem of inaccurate control caused by unstable communication in the prior art; subsequently, in response to a mode switching instruction issued by the user, it performs a cyclic switching of the light strip mode according to different working modes, and adjusts the initial control parameters after the switching to ensure that the lighting effect in each mode matches the user's needs. According to the light strip adjustment instruction issued by the user, it performs a second adjustment on the first light strip control parameters to refine the light control parameters, ensuring that the light strip can achieve precise lighting effects and intelligent adaptive adjustment. Therefore, by combining Bluetooth communication, dynamic mode switching, and in-depth parameter adjustment, this device solves the problem that the light strip in the prior art cannot perform intelligent mode switching and precise control, significantly improves the user's lighting experience, and can more flexibly and personalizedly adapt to changing usage requirements.
[0184] Embodiment 3
[0185] In addition, as Figure 11As shown in the figure, Embodiment 3 of the present invention further provides a multi-mode Bluetooth strip light control system, which includes an LED strip light and a controller, and the controller is used to implement the method described in Embodiment 1.
[0186] In summary, the embodiments of the present invention provide a multi-mode Bluetooth strip light control method, device and system.
[0187] It should be clear that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, the detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications and additions, or change the order between steps after understanding the spirit of the present invention.
[0188] The functional blocks shown in the above block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave on a transmission medium or a communication link. "Machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.
[0189] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. And the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant location, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0190] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps. That is, the steps can be executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.
[0191] As described above, this is only a specific implementation manner of the present invention. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A multi-mode Bluetooth light strip control method, characterized in that: The method comprises: In response to a communication verification instruction issued by a user, verify the Bluetooth communication status between the light strip and the user terminal in real time; When the Bluetooth communication state is verified, in response to a mode switching instruction issued by the user, the light strip is cyclically switched in mode, and according to the switched light strip working mode, the preset light strip control parameters are adjusted to determine the first light strip control parameters, wherein the preset light strip control parameters include the historical light strip control parameters pre-saved on the light strip or the default light strip control parameters set by the light strip at the factory; In response to a light strip adjustment instruction issued by a user, adjusting the first light strip control parameter for a second time to obtain a second light strip control parameter, and controlling the light strip to operate according to the second light strip control parameter; When the preset light strip control parameter is the historical light strip control parameter, when the Bluetooth communication state is verified, in response to a mode switching instruction issued by a user, the light strip is cyclically switched in mode, and the preset light strip control parameter is adjusted according to the switched light strip working mode, and before determining the first light strip control parameter, the method further includes: Get the target light strip working mode corresponding to the historical light strip control parameters; Classifying the target light strip operating mode, and obtaining a target light strip light effect mode corresponding to the target light strip operating mode from a preset light strip light effect mode set according to the classification result, wherein each light strip light effect mode in the light strip light effect mode set includes a plurality of light strip light effect sub-modes; According to the target light strip light effect mode and the historical light strip control parameters, combined with a preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode, determine the target light strip light effect sub-mode corresponding to the target light strip working mode; In response to the light strip adjustment instruction issued by the user, adjusting the first light strip control parameter for a second time to obtain a second light strip control parameter, and controlling the light strip operation by using the second light strip control parameter includes: When receiving a light strip adjustment instruction issued by a user, acquiring the first light strip control parameter, wherein the first light strip control parameter at least includes a first brightness value and a first color change rate; Classify the light strip working mode under the control of the first light strip control parameter, and determine the classification result as a static working mode or a dynamic working mode, wherein the static working mode at least includes a single-color dimming mode, and the dynamic working mode at least includes a three-color jump mode, a seven-color jump mode, a three-color gradient mode, a seven-color gradient mode, and a single-color strobe mode; If the classification result is a static working mode, adjusting the first brightness value in the first light strip control parameter according to a plurality of preset brightness adjustment gears and the light strip adjustment instruction, and determining the second light strip control parameter; If the classification result is a dynamic working mode, the first color change rate in the first light strip control parameter is adjusted according to a plurality of preset rate adjustment gears and the light strip adjustment instruction to determine the second light strip control parameter.
2. The multi-mode Bluetooth light strip control method according to claim 1, characterized in that: The determining, according to the target light strip light effect mode and the historical light strip control parameter, of the target light strip light effect mode and the preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode, of the target light strip light effect sub-mode corresponding to the target light strip working mode includes: Determine, according to the historical light strip control parameters and each light strip light effect mode in the light strip light effect mode set, the historical usage frequency corresponding to each light strip light effect sub-mode corresponding to each light strip light effect mode; According to the preset mapping relationship and the target light strip light effect mode, determining a plurality of first light strip light effect candidate sub-modes corresponding to the target light strip light effect mode; Determine the usage frequency corresponding to each first light strip light effect alternative sub-mode according to the historical usage frequency corresponding to each light strip light effect sub-mode; Compare the usage frequency corresponding to each first light strip light effect candidate sub-mode with a preset frequency threshold, and extract the first light strip light effect candidate sub-mode whose usage frequency is greater than the frequency threshold as the second light strip light effect candidate sub-mode; When there is only one second light strip light effect candidate sub-mode, the second light strip light effect candidate sub-mode is used as the target light strip light effect sub-mode; When there are more than two alternative sub-modes of the second light strip lighting effect, the alternative sub-modes of the second light strip lighting effect are screened according to the light strip usage time interval and the light strip usage scenario corresponding to the target light strip working mode, and the screened sub-mode is determined as the target light strip lighting effect sub-mode.
3. The multi-mode Bluetooth light strip control method according to claim 2, characterized in that: When there are more than two second light strip light effect alternative sub-modes, screening each of the second light strip light effect alternative sub-modes according to the light strip use time interval and the light strip use scenario corresponding to the target light strip working mode, and determining the screened mode as the target light strip light effect sub-mode includes: Determining a first priority of each second light strip light effect alternative sub-mode according to the light strip use time interval; Determining, according to the usage scenario of the light strip, a second priority level of each of the second light strip light effect alternative sub-modes; Obtain a first weight coefficient corresponding to a preset first priority and a second weight coefficient corresponding to a preset second priority; Performing weighted calculation on the first priority and the second priority of each second light strip light effect candidate sub-mode according to the first weight coefficient and the second weight coefficient, to determine the target priority of each second light strip light effect candidate sub-mode; The target priorities of the second light strip light effect candidate sub-modes are compared, and the second light strip light effect candidate sub-mode corresponding to the highest priority is used as the target light strip light effect sub-mode.
4. The multi-mode Bluetooth light strip control method according to claim 3, characterized in that: When the Bluetooth communication state is verified, in response to a mode switching instruction issued by a user, the light strip is cyclically switched in mode, and the preset light strip control parameters are adjusted according to the switched light strip working mode, and determining the first light strip control parameter includes: Acquire the target light strip light effect mode and the target light strip light effect sub-mode corresponding to the target light strip operating mode, and determine a first switching order between the light strip light effect modes and a second switching order between the light strip light effect sub-modes; According to the first switching order and the second switching order, in combination with the target light strip light effect mode and the target light strip light effect sub-mode, determining an adjacent light strip operating mode corresponding to the target light strip operating mode; In response to a mode switching instruction issued by a user, switching the target light strip operating mode to the adjacent light strip operating mode; According to the light strip control parameter difference between the adjacent light strip working mode and the target light strip working mode, the historical light strip control parameter is adjusted to determine the first light strip control parameter.
5. The multi-mode Bluetooth light strip control method according to claim 1, characterized in that: If the classification result is a static working mode, adjusting the first brightness value in the first light strip control parameter according to the preset brightness adjustment gear and the light strip adjustment instruction, and determining the second light strip control parameter includes: According to the light strip adjustment instruction, determining a target brightness adjustment gear selected by the user from among the preset brightness adjustment gears; Determining whether the target brightness adjustment gear is within a preset brightness adjustment gear range; When it is determined that the target brightness adjustment gear is within a preset brightness adjustment gear range, classifying the target brightness adjustment gear to determine a gear category; According to the gear category, obtaining a first index adjustment coefficient corresponding to the gear category; Determine the target brightness adjustment amplitude parameter corresponding to the target brightness adjustment gear according to the mapping relationship between the brightness adjustment gear and the brightness adjustment amplitude parameter; Determining a brightness adjustment value according to the target brightness adjustment amplitude parameter and a preset brightness adjustment gain coefficient; Calculating a preliminary brightness value according to the brightness adjustment value and the first brightness value; According to a preset exponential function and the first exponential adjustment coefficient, nonlinear optimization processing is performed on the preliminary brightness value to determine the second light strip control parameter.
6. The multi-mode Bluetooth light strip control method according to claim 1, characterized in that: If the classification result is a dynamic working mode, adjusting the first color change rate in the first light strip control parameter according to a plurality of preset rate adjustment gears and the light strip adjustment instruction, and determining the second light strip control parameter includes: According to the light strip adjustment instruction, determining the target speed change gear selected by the user from among the preset speed adjustment gears; Classifying the dynamic working modes and determining target classification results; When the target classification result is a jump mode or a gradual mode, obtaining a first optimization coefficient corresponding to the jump mode or a second optimization coefficient corresponding to the gradual mode; Optimizing the first color change rate according to the first optimization coefficient or the second optimization coefficient to determine a preliminary color change rate; Determining a second index adjustment coefficient according to the target classification result and in combination with the target rate change gear; According to the second exponential adjustment coefficient and a preset exponential function, a nonlinear optimization process is performed on the preliminary color change rate to determine the second light strip control parameter.
7. A multi-mode Bluetooth light strip control device, characterized in that: include: A communication verification module, used to verify the Bluetooth communication status between the light strip and the user terminal in real time in response to a communication verification instruction issued by the user; A mode switching module, for, when the Bluetooth communication state is verified, responding to a mode switching instruction issued by a user, switching the light strip in a cycle, adjusting the preset light strip control parameters according to the switched light strip working mode, and determining the first light strip control parameters, wherein the preset light strip control parameters include the historical light strip control parameters pre-saved on the light strip or the default light strip control parameters set by the light strip at the factory; a light strip adjustment module, configured to adjust the first light strip control parameter for a second time in response to a light strip adjustment instruction issued by a user, obtain a second light strip control parameter, and control the operation of the light strip by using the second light strip control parameter; When the preset light strip control parameter is the historical light strip control parameter, when the Bluetooth communication state is verified, in response to a mode switching instruction issued by a user, the light strip is cyclically switched in mode, and the preset light strip control parameter is adjusted according to the switched light strip working mode, and before determining the first light strip control parameter, the method further includes: Get the target light strip working mode corresponding to the historical light strip control parameters; Classifying the target light strip operating mode, and obtaining a target light strip light effect mode corresponding to the target light strip operating mode from a preset light strip light effect mode set according to the classification result, wherein each light strip light effect mode in the light strip light effect mode set includes a plurality of light strip light effect sub-modes; According to the target light strip light effect mode and the historical light strip control parameters, combined with a preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode, determine the target light strip light effect sub-mode corresponding to the target light strip working mode; In response to the light strip adjustment instruction issued by the user, adjusting the first light strip control parameter for a second time to obtain a second light strip control parameter, and controlling the light strip operation by using the second light strip control parameter includes: When receiving a light strip adjustment instruction issued by a user, acquiring the first light strip control parameter, wherein the first light strip control parameter at least includes a first brightness value and a first color change rate; Classify the light strip working mode under the control of the first light strip control parameter, and determine the classification result as a static working mode or a dynamic working mode, wherein the static working mode at least includes a single-color dimming mode, and the dynamic working mode at least includes a three-color jump mode, a seven-color jump mode, a three-color gradient mode, a seven-color gradient mode, and a single-color strobe mode; If the classification result is a static working mode, adjusting the first brightness value in the first light strip control parameter according to a plurality of preset brightness adjustment gears and the light strip adjustment instruction, and determining the second light strip control parameter; If the classification result is a dynamic working mode, the first color change rate in the first light strip control parameter is adjusted according to a plurality of preset rate adjustment gears and the light strip adjustment instruction to determine the second light strip control parameter.
8. A multi-mode Bluetooth light strip control system, characterized in that: The system comprises an LED light strip and a controller, and the controller is used to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
USB-powered combined lamp strip control method and controller
CN112469161A
Lamp strip control circuit and lighting assembly
CN112399664A
Multifunctional Bluetooth lamp strip controller
CN114286484A