Multi-mode Bluetooth lamp strip control method, device and system
By verifying the Bluetooth communication status in real time and responding to user instructions to cyclic mode switching and adjusting control parameters, the problem of inaccurate light strip control in the existing technology is solved, intelligent mode switching and accurate lighting control are realized, and user experience is improved.
Patent Information
- Application Number
- CN202510440078.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-04-09
AI Technical Summary
The existing light strip control technology cannot achieve intelligent mode switching and refined adjustment, 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 lighting control, and significantly improves the user's lighting experience.
Smart Images

Figure CN119946961A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of light strip control, and in particular to a multi-mode Bluetooth light strip control method, device and system. Background Art
[0002] As a kind of lighting equipment with both decorative and functional functions, light strips are widely used in homes, businesses and public places. With the development of intelligent technology, users' control requirements for light strips have gradually diversified. In addition to basic switching and brightness adjustment, they also hope to be able to remotely control light strips through Bluetooth, Wi-Fi, etc., and switch different working modes according to specific scenarios to achieve higher convenience and personalized experience.
[0003] The existing light strip control technology has significant deficiencies in mode switching and parameter adjustment, which are mainly reflected in two aspects. First, the mode switching of the existing light strip usually relies on preset fixed modes, such as brightness adjustment, color change or flashing effect, etc. Although these modes can meet basic usage requirements, they cannot be dynamically adjusted according to different scenarios and users' personalized needs. Therefore, users may encounter situations where the lighting effect does not meet their needs in actual use, and cannot achieve accurate lighting effects, which limits the adaptability and flexibility of the light strip; secondly, when adjusting the control parameters, the existing technology usually only makes one-time adjustments and lacks the ability to optimize the control parameters. That is to say, when the user issues an adjustment instruction, the parameter adjustment of the light strip is only completed once, and it is impossible to make further fine adjustments according to the actual use effect. This lack of deep optimization ability leads to the lighting effect and user experience of the light strip failing to reach the best state, limiting the application potential of the light strip in different environments and the satisfaction of user needs. Therefore, the existing technology fails to effectively solve the problems of linkage between modes and parameters, intelligent adjustment and fine adjustment, which makes it difficult for users to obtain a more accurate and personalized lighting experience during use.
[0004] The existing Chinese patent CN112469161A discloses a USB-powered combined light strip control method and controller, including the following steps: S1, providing working power to the light strip 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 drive circuit controls the conversion of the light strip lighting mode according to the control signal, and works according to the following settings: S21, always on in the forward direction; S22, always on in the reverse direction; S23, positive and negative color mixing 1; S24, positive and negative color mixing 2; S25, color mixing gradient; S26, color mixing breathing flash; S27, forward flashing; S28, reverse flashing; S29, single-sided alternating gradual lightening and darkening; S210, positive and negative waves; S211, looping steps S21 to S210 until the MCU control circuit receives a stop signal. The above patent solution mainly relies on fixed, preset working modes of light strips, such as constant light, flashing, mixed color gradient, etc., lacking dynamic feedback to users and intelligent adjustment capabilities. In this solution, the mode switching of the light strip is limited to simple mode selection, and users cannot flexibly adjust the control parameters of the light strip according to actual needs. Therefore, the above patent solution cannot achieve more accurate dynamic adjustment and personalized lighting scene adaptation, and it is still in urgent need of improvement in terms of intelligence, flexibility and user experience.
[0005] Therefore, how to intelligently switch the modes of light strips and adjust the control parameters 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 light strip control method, device and system to solve the problem in the prior art that the light strip cannot be intelligently switched when controlled, resulting in a poor lighting experience for users.
[0007] The technical solution adopted by the present invention is: In a first aspect, the present invention provides a multi-mode Bluetooth light strip control method, the method comprising: 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, the first light strip control parameter is adjusted for a second time to obtain a second light strip control parameter, and the light strip is controlled to operate according to the second light strip control parameter.
[0008] Preferably, 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, a target light strip light effect sub-mode corresponding to the target light strip working mode is determined.
[0009] Preferably, the 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 in combination with a preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode comprises: 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.
[0010] Preferably, when there are more than two second light strip light effect alternative sub-modes, the second light strip light effect alternative sub-modes are screened according to the light strip use time interval and light strip use scenario corresponding to the target light strip working mode, and the screened mode is determined as the target light strip light effect sub-mode, including: 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.
[0011] Preferably, 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.
[0012] Preferably, 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 comprises: 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.
[0013] Preferably, if the classification result is a static working mode, the first brightness value in the first light strip control parameter is adjusted according to a 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.
[0014] Preferably, 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, 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.
[0015] In a second aspect, the present invention provides a multi-mode Bluetooth light strip control device, the device comprising: 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; The light strip adjustment module is used to adjust the first light strip control parameter for the second time in response to the light strip adjustment instruction issued by the user to obtain the second light strip control parameter, and control the operation of the light strip according to the second light strip control parameter.
[0016] In a third aspect, an embodiment of the present invention further provides 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 above method.
[0017] In summary, the beneficial effects of the present invention are as follows: The present invention provides a multi-mode Bluetooth light strip control method, device and system, the method comprising: in response to a communication verification instruction issued by a user, verifying the Bluetooth communication status between the light strip and the user terminal in real time; when the Bluetooth communication status is verified, in response to a mode switching instruction issued by the user, switching the light strip in a cycle mode, and adjusting the preset light strip control parameters according to the switched light strip working mode 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 the light strip adjustment instruction issued by the user, adjusting the first light strip control parameters for a second time to obtain the second light strip control parameters, and controlling the operation of the light strip by the second light strip control parameters. The present invention verifies the Bluetooth communication status in real time to ensure the stable connection between the light strip and the user terminal, thereby solving the problem of inaccurate control caused by unstable communication in the prior art; then, in response to the mode switching instruction issued by the user, the light strip mode is cyclically switched according to different working modes, and the initial control parameters are adjusted after the switching to ensure that the lighting effect in each mode matches the user's needs, and according to the light strip adjustment instruction issued by the user, the first light strip control parameters are adjusted for a second time to refine the lighting control parameters to ensure that the light strip can achieve accurate lighting effects and intelligent adaptive adjustment. Therefore, the present invention solves the problem that the light strip cannot switch modes intelligently and cannot be accurately controlled in the prior art by combining Bluetooth communication, dynamic mode switching and deep parameter adjustment, significantly improves the user's lighting experience, and can adapt to changing usage needs in a more flexibly and personalized manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0019] Figure 1 This is a schematic diagram of the overall working process of the multi-mode Bluetooth light strip control method in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of a process for real-time verification of the Bluetooth communication status between the light strip and the user terminal in Embodiment 1 of the present invention; Figure 3 It is a schematic diagram of a flow chart of determining a target light strip light effect mode and a target light strip light effect sub-mode corresponding to a target light strip operating mode in Embodiment 1 of the present invention; Figure 4 It is a schematic diagram of a process of determining a target light strip light effect sub-mode in Embodiment 1 of the present invention; Figure 5This is a schematic diagram of a process for screening the second light strip light effect candidate sub-modes in Embodiment 1 of the present invention; Figure 6 It is a schematic diagram of a process of switching the cycle mode of the light strip in Embodiment 1 of the present invention, and adjusting the control parameters of the historical light strip according to the switched light strip working mode; Figure 7 is a schematic diagram of a process of adjusting the control parameters of the first light strip for the second time in Embodiment 1 of the present invention; Figure 8 This is a schematic diagram of a process for adjusting a first brightness value in a first light strip control parameter in Embodiment 1 of the present invention; Fig. 9 This is a schematic diagram of a process for adjusting a first color change rate in a first light strip control parameter in Embodiment 1 of the present invention; Fig.10 This is a structural block diagram of a multi-mode Bluetooth light strip control device in Embodiment 2 of the present invention; Fig.11 This is a schematic diagram of the structure of a multi-mode Bluetooth light strip control system in Example 3 of the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, 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 that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which 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 therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.
[0021] Example 1
[0022] See also Figure 1 Embodiment 1 of the present invention discloses a multi-mode Bluetooth light strip control method, the method comprising: Responding to a communication verification instruction issued by a user, verifying the Bluetooth communication status between the light strip and the user terminal in real time; Specifically, in actual application scenarios, Bluetooth communication is susceptible to signal interference, distance limitations, or unstable connections between devices, which can cause delays or loss of light strip control instructions, thereby affecting user experience. Therefore, when receiving a communication verification instruction from the user, the Bluetooth connection status between the light strip 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, thereby ensuring that the communication link between the two parties is stable. If the communication status is normal, continue to perform subsequent light strip control operations; if the communication is abnormal, the system will promptly feedback error information or request reconnection to avoid control failures due to signal problems. This verification mechanism effectively avoids control failures caused by unstable Bluetooth connections during light strip control, ensures a smooth user experience during use, and improves the reliability and intelligence of the device.
[0023] In one embodiment, see Figure 2 , in response to the communication verification instruction issued by the user, real-time verification of the Bluetooth communication status between the light strip and the user terminal includes: In response to the communication verification instruction, obtaining a preset verification time interval period; Specifically, after receiving the communication verification instruction sent by the user terminal, the verification period is first obtained from the preset verification time interval. This period defines how often the system needs to verify the quality of Bluetooth communication. 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 a few minutes. For example, in a static environment, the verification period can be set longer; while in a high-frequency mobile device scenario, 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 verification frequency and system performance, avoid unnecessary frequent verification, and also ensure that the communication status is always under monitoring, ensuring the efficiency and accuracy of communication.
[0024] Sending a verification signal to the user terminal according to the verification time interval period, wherein the verification signal includes a first signal quality value; Specifically, according to a preset verification time interval, a verification signal is sent to the user terminal. This verification signal not only carries a verification request, but also includes the current first signal quality value, usually expressed as an RSSI value, that is, a 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 means that the Bluetooth connection is relatively stable. Conversely, a low signal quality value indicates that the Bluetooth connection may be interfered with or the distance is too far.
[0025] receiving a synchronization signal corresponding to the verification signal from a user terminal, and determining a second signal quality value corresponding to the synchronization signal; 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 based on the verification signal. The user terminal uses this signal to confirm that it has received and is ready to respond. After receiving the synchronization signal, the second signal quality value contained in the synchronization signal is read. The second signal quality value indicates the Bluetooth signal quality of the user terminal when the synchronization signal is returned. For example, if the first signal quality value is -45dBm and the second signal quality value is -50dBm during the same signal transmission process, this indicates that the signal quality has decreased due to environmental changes, such as walls, obstacles, etc.
[0026] Determine the time difference between the sending time and the receiving time according to the sending time of the verification signal and the receiving time of the synchronization signal; Specifically, during the verification process, the sending time of the verification signal and the receiving time of the synchronization signal are recorded, and the difference between these two time points is calculated to obtain the time difference. This time difference reflects the delay in the signal propagation process and can help evaluate the response speed and delay of Bluetooth communication. For example, if the time difference between sending the verification signal and receiving the synchronization signal is very large, it means that there is a long delay in the Bluetooth connection, which affects the response speed of real-time control. This delay information can be used as an important dimension for evaluating communication quality.
[0027] determining a signal quality difference according to the first signal quality value and the second signal quality value; Specifically, the first signal quality value and the second signal quality value are compared, and the difference between them, i.e., the signal quality difference, is calculated. The difference reflects the change of the Bluetooth signal during the sending and receiving process. A larger difference may mean that the signal is subject to greater interference or quality loss during transmission. For example, at a longer distance or in the presence of a wall, the signal strength may drop significantly, resulting in a larger quality difference between the first signal and the second signal. Through this step, the stability of the connection and the communication quality can be evaluated more accurately, providing a reliable signal quality evaluation.
[0028] Determining a communication coefficient according to the signal quality difference and the time difference; Specifically, after obtaining the signal quality difference and time difference, a communication coefficient is calculated based on these two parameters. The communication coefficient is a comprehensive evaluation of signal quality and delay, and is calculated using a weighted formula. For example, the signal quality difference and time difference are weighted according to a pre-set weight to determine the communication coefficient. This communication coefficient can help the system comprehensively judge the stability and responsiveness of the current Bluetooth connection, thereby deciding whether to continue to maintain or re-establish the connection.
[0029] Compare the communication coefficient with a preset coefficient threshold, and if the communication coefficient is greater than the coefficient threshold, the Bluetooth communication status is verification passed; If the communication coefficient is less than or equal to the coefficient threshold, the Bluetooth communication status is verification failure.
[0030] Specifically, the calculated communication coefficient is compared with the preset coefficient threshold. If the communication coefficient is greater than the coefficient threshold, the Bluetooth communication status is considered stable and the verification is 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 delay problem is too serious and the communication is unstable. The Bluetooth communication status verification will be considered to have failed, and you can choose to reconnect or feedback error information. This step quantitatively evaluates the communication quality to ensure that the light strip can only work normally when the signal is stable, avoiding control failure or delay due to poor Bluetooth signal.
[0031] 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; Specifically, after the Bluetooth communication status verification is passed, the subsequent control operations are continued according to the stable connection between the user terminal and the light strip. First, in response to the mode switching command issued by the user, it is determined whether there are saved historical light strip control parameters. The historical light strip control parameters include the brightness, color, flashing mode and other settings 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 the previous usage status after the connection is restored, avoiding the need for users to reconfigure each time they use it, and providing a convenient user experience. For example, the user adjusted the light strip to "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 and continuous personalized settings of the light strip control can be achieved, avoiding unnecessary operations and repeated configurations, and greatly improving the user experience and the intelligence level of the system. If the historical light strip control parameters do not exist, 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 the default light strip control parameters set by the light strip at the factory. For example, the default light strip control parameters are to set the light strip to "constant light mode" and adjust it to medium brightness, ensuring that the device can still work normally when the user's personalized settings cannot be loaded. The technical solution of this step ensures that even if the reading of historical parameters fails, the device can still provide basic lighting functions, avoiding the device from failing to operate normally due to parameter reading failure.
[0032] In one embodiment, see Figure 3 , 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; Specifically, if the historical light strip control parameters exist, the historical control parameters of the light strip are obtained and analyzed 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 chooses a warm-toned monochrome mode at night, and a dynamic jump mode at a party or entertainment event. By obtaining the historical light strip control parameters, a user's usage pattern and demand database can be established to provide data support for the subsequent mode classification and optimization.
[0033] 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; Specifically, the first mode is determined according to the characteristics of the target light strip working mode, such as light color, brightness change, mode conversion speed, etc., to determine which category the working mode belongs to; the target light strip light effect mode includes: monochrome mode, jump mode, gradient mode and strobe mode, 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. The monochrome mode refers to the light strip emitting light of a single color, the jump mode refers to the rapid switching of light color or brightness, the gradient mode refers to the slow change of light color or brightness, and the strobe mode refers to the periodic flashing of light. By analyzing the target light strip working mode, the target light strip working mode can be accurately classified into one of the four modes according to the preset mode classification standard, thereby obtaining the target light strip light effect mode.
[0034] 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, a target light strip light effect sub-mode corresponding to the target light strip working mode is determined.
[0035] Specifically, based on the combination of the target light strip lighting effect mode and the historical light strip control parameters, the mode classification is further refined to determine the target light strip lighting effect sub-mode. First, a preliminary classification is performed based on the target light strip lighting effect mode (such as monochrome mode, jump mode, gradient mode, and strobe mode), and this result is combined with the historical control parameters. For example, if the user has historically often selected blue in monochrome mode, blue is recommended as the target light strip lighting effect sub-mode in monochrome mode. At the same time, further classification optimization will be performed based on the preset mapping relationship. For example, in jump mode, if historical data shows that the user prefers the three-color jump mode, this option will be recommended first. The preset mapping relationship dynamically adjusts the target light strip lighting effect sub-mode according to the actual application scenarios of different modes, user historical preferences, and changes in control parameters, so that the lighting effect can better match the user's needs and environmental conditions.
[0036] In one embodiment, see Figure 4 , the target light strip light effect mode and the historical light strip control parameters are combined with the preset mapping relationship between the light strip light effect mode and the light strip light effect sub-mode to determine the target light strip light effect sub-mode corresponding to the target light strip working mode, including: 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; Specifically, according to the historical light strip control parameters, the user's historical usage frequency of different light strip light effect sub-modes in each light strip light effect mode is analyzed. The historical light strip control parameters provide data about the user's past usage behavior, including factors such as the specific color, brightness, and change speed selected by the user. For example, a user is more inclined to choose red or white in monochrome mode, or prefers three-color jump rather than seven-color jump in jump mode. By analyzing the historical control parameters, the usage frequency of each light strip light effect sub-mode (such as red mode, three-color jump mode, etc.) in a specific first mode is calculated. This historical usage frequency will help understand the user's long-term preferences and provide data support for the recommendation of subsequent modes.
[0037] 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; Specifically, according to the target light strip light effect mode, combined with the preset mapping relationship between the target light strip light effect mode and the target light strip light effect sub-mode, a plurality of first light strip light effect alternative sub-modes corresponding to the target light strip light effect mode are determined, wherein the target light strip light effect mode includes one of the following modes: monochrome mode, jump mode, gradient mode and strobe mode. If the target light strip light effect mode is monochrome mode, then according to the preset mapping relationship, it is determined that the first light strip light effect alternative sub-mode includes red mode, green mode, blue mode, cyan mode, purple mode, yellow mode and white mode; if the target light strip light effect mode is jump mode, then it is determined that the first light strip light effect alternative sub-mode includes three-color jump mode or seven-color jump mode; if the target light strip light effect mode is gradient mode, then according to the preset mapping relationship, it is determined that the first light strip light effect alternative sub-mode includes three-color gradient mode or seven-color gradient mode; if the target light strip light effect mode is strobe mode, then according to the preset mapping relationship, it is determined that the first light strip light effect alternative sub-mode includes white strobe mode.
[0038] 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; Specifically, the historical usage frequency of each light strip light effect sub-mode is used in combination with the set of first light strip light effect alternative sub-modes to comprehensively evaluate the usage frequency of each first light strip light effect alternative sub-mode. Assuming that users have selected red, green, or blue more often in the monochrome mode in the past, the system will judge the popularity of each first light strip light effect alternative sub-mode based on these frequencies. For example, if users often select the three-color jump mode in the jump mode, the three-color jump mode has a higher usage frequency. In this way, a usage frequency value is assigned to each first light strip light effect alternative sub-mode based on historical data, so as to better understand the popularity of different first light strip light effect alternative sub-modes.
[0039] 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; Specifically, by comparing the usage frequency of each first light strip light effect alternative sub-mode with a preset frequency threshold, the modes with a higher usage frequency in the user's historical data are screened out. The preset frequency threshold is a standard set according to actual needs and usage scenarios to help screen out modes with a higher degree of user preference. For example, if the usage frequency of a certain mode exceeds a preset threshold (such as 50%), then this mode will be considered as a second light strip light effect alternative sub-mode that meets the user's needs. Through this screening process, it is possible to effectively focus on those modes that meet the user's long-term usage habits and avoid recommending infrequently used modes.
[0040] 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; Specifically, if after screening, only one candidate mode is found to meet the frequency threshold requirement (i.e., there is only one candidate sub-mode for the second light strip light effect), the second light strip light effect candidate sub-mode is automatically selected 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 the frequency of use of the red mode is significantly higher than that of other colors in the monochrome mode, red is automatically selected as the target light strip light effect sub-mode to ensure that the recommended lighting mode can meet user needs to the greatest extent.
[0041] 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.
[0042] 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.
[0043] 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: Determining a first priority of each second light strip light effect alternative sub-mode according to the light strip use time interval; 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.
[0044] 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; 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.
[0045] Obtain a first weight coefficient corresponding to a preset first priority and a second weight coefficient corresponding to a preset second priority; Specifically, obtain a first weight coefficient corresponding to a preset first priority and a second weight coefficient corresponding to a second priority. The first weight coefficient and the second weight coefficient reflect the importance of time interval priority and usage scenario priority in the selection of light strip modes, and 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.
[0046] 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; Specifically, according to the first weight coefficient and the second weight coefficient, the first priority and the second priority of each second light strip light effect alternative sub-mode are weighted and calculated to obtain a comprehensive target priority. This weighted calculation method comprehensively considers time and situational factors, so as to more accurately evaluate the priority of each mode. For example, if a mode has a higher time interval priority but a lower situational priority, the target priority of the mode will depend on the weight coefficient of the time factor. In this way, the most appropriate mode can be flexibly selected according to different environments and usage requirements.
[0047] 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.
[0048] Specifically, all target priorities obtained through weighted calculation are compared to find the second light strip lighting effect alternative sub-mode with the highest target priority. Since each mode has been weighted according to the priority of the time interval and 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 lighting effect sub-mode; at this time, the light strip will automatically adjust to this mode 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 final selected mode. If this mode has the highest target priority, the system will display it as the final result.
[0049] In one embodiment, see Figure 6 , when the Bluetooth communication status 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; Specifically, first obtain the target light strip light effect mode and 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 monochrome, jump, gradient, strobe, etc.); and 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 jump 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 to ensure that the switching between different modes is orderly, coherent, and meets user expectations. For example, set the monochrome mode to switch to the gradient mode, and the red mode to switch to the green mode.
[0050] 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; Specifically, 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, the adjacent light strip working mode is determined. The adjacent light strip working mode refers to the next mode that the light strip will switch to when responding to the user's mode switching command. According to the target light strip light effect mode, in combination with the first switching order and the second switching order, the mode adjacent to the target light strip light effect mode is determined. For example, assuming that when the user issues a mode switching command, the target light strip light effect mode is "blue monochrome mode". According to the preset switching order, it is determined that the red mode and the green mode are adjacent light strip working modes adjacent to the current mode, and it may be selected to switch to the "red mode" or "green mode" first according to the priority. This step ensures the continuity and natural fluency of the system when switching the light strip mode, and avoids 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 the modes, thereby improving the user experience and the intelligent level of control.
[0051] 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; Specifically, in response to the mode switching command issued by the user, the mode is switched according to the working mode of the adjacent light strip. When the user issues a mode switching command through input devices such as Bluetooth, APP, physical buttons, etc., the corresponding mode switching operation is performed according to the difference between the working mode of the target light strip and the working mode of the adjacent light strip to ensure that the display effect of the light strip meets the user's needs. For example, when switching from gradient mode to strobe mode, the system will automatically adjust the relevant control parameters to ensure a natural transition without interruption.
[0052] 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.
[0053] Specifically, the difference in light strip control parameters between the adjacent light strip working mode and the target light strip working mode is calculated, and the initial light strip control parameters are adjusted accordingly. The light strip control parameters include brightness, color, flashing frequency, etc. By calculating the difference and adjusting it, it is ensured that the display effect of the light strip is consistent with the user's expectations. For example, assuming that the current mode is "monochrome mode-red" and the target mode is "jump mode-three colors", the difference in control parameters of the two modes is calculated, mainly including color changes and flashing speed. Then, the control parameters are adjusted so that it can smoothly transition to the "jump mode" to ensure that the color jump of the light strip is natural and in line with expectations. By accurately calculating the difference in control parameters and adjusting them, it can be ensured that the performance of the light strip can achieve the expected effect after each mode switch, avoiding abrupt visual changes, and making the user experience smoother and more comfortable.
[0054] In response to a light strip adjustment instruction issued by a user, the first light strip control parameter is adjusted for a second time to obtain a second light strip control parameter, and the light strip is controlled to operate according to the second light strip control parameter.
[0055] Specifically, 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 further adjust the display effect of the light strip, such as adjusting the brightness, color, and flashing 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 monochrome mode, adjusting the speed of color temperature change in gradient mode, or adjusting the frequency of color transition in jump mode. The second adjustment allows the user to perform more detailed customization based on the first control parameter setting, further improving personalization and flexibility, while avoiding complicated operations and improving the overall user experience.
[0056] In one embodiment, see Figure 7 , 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; Specifically, when a light strip adjustment instruction issued by a user is received, the user's light strip adjustment instruction includes changing the brightness of the light strip, the color change rate, etc., and the first light strip control parameter is obtained according to the light strip adjustment instruction, and the first light strip control parameter at least includes. Assuming that the user chooses to adjust the brightness and color change rate of the light strip in the application, if the current setting is "blue monochrome mode" and the brightness is 50% and the color change rate is "medium speed", these two parameters are first obtained 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 adjustments can be ensured based on the user's adjustment instruction to avoid misoperation and unnecessary adjustments.
[0057] 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; 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 monochrome lighting mode, which mainly relies on fixed brightness and color for lighting; while the dynamic working mode covers three-color jump mode, seven-color jump mode, three-color gradient mode, seven-color gradient mode and monochrome strobe mode, which usually rely on the change of color, flashing frequency and other parameters to achieve dynamic effects. Assuming that the user currently sets the monochrome mode, the brightness value is low, and the color change rate is "no change", it is classified as a static working mode. If the user sets the "seven-color jump mode", it is classified as a dynamic working mode because this mode involves frequent changes in color.
[0058] Through mode classification, the working mode of the light strip can be managed more accurately. The distinction between static and dynamic modes helps with subsequent parameter adjustment and mode switching, thereby providing a lighting effect that better meets user needs.
[0059] 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; Specifically, when it is confirmed that the light strip is in a 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 number of preset brightness adjustment gears to ensure that the brightness change of the light strip meets the user's needs. For example, the preset brightness adjustment gears include 1 to 10 brightness adjustment gears, each brightness adjustment gear represents a specific brightness level, and according to the adjustment instruction issued by the user, a suitable brightness gear is selected, and the first brightness value in the first light strip control parameter is adjusted, and it is updated to a 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 users to flexibly adjust the brightness of the light strip so as to optimize the lighting effect according to different scene requirements. Through the preset brightness gear, users are provided with an accurate and convenient control method, making the adjustment process more intuitive and easy to use.
[0060] In one embodiment, see Figure 8 If the classification result is a static working mode, the first brightness value in the first light strip control parameter is adjusted according to a plurality of preset brightness 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 a target brightness adjustment gear selected by the user from among the preset brightness adjustment gears; Specifically, according to the light strip adjustment instruction, the light strip adjustment instruction issued by the user includes a specific brightness value, and 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 level is a fixed brightness level set in advance, and the target brightness adjustment level is determined according to the user instruction.
[0061] 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; Specifically, when it is determined that the target brightness adjustment gear is within a preset brightness adjustment gear interval, for example, the preset gear interval is set to, for example, an integer range from gear 3 to 6, that is, a medium brightness gear, and each gear corresponds to a certain brightness range. When the target brightness adjustment gear is within this interval, it is further classified according to the position of the target brightness adjustment gear. For example, multiple gear categories are set, such as medium-low brightness gear, medium brightness gear, and medium-high brightness gear, and each gear category is corresponded to a specific index adjustment coefficient and brightness adjustment amplitude. Through classification, personalized adjustment solutions can be provided for different brightness adjustment needs, ensuring that users have a more accurate and delicate experience when adjusting different brightnesses.
[0062] According to the gear category, obtaining a first index adjustment coefficient corresponding to the gear category; Specifically, according to the gear category, an exponential adjustment coefficient table is preset for each gear category. For example, the exponential adjustment coefficient of the medium-low brightness gear is set to 0.8, the medium brightness gear is set to 1.0, and the medium-high brightness gear is set to 1.2. By looking up the table, the corresponding exponential adjustment coefficient is 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 it is classified as "medium brightness gear", the corresponding exponential adjustment coefficient is 1.0, and the system will use this coefficient to participate in subsequent calculations to achieve nonlinear optimization of brightness adjustment.
[0063] 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; Specifically, by establishing a mapping table or defining a linear function, the brightness adjustment gear and the adjustment amplitude parameter are mapped one by one. 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 is directly output from the mapping relationship to ensure that the amplitude of the brightness change can meet the actual needs of the user. For example, if 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 will not produce an abrupt transition effect.
[0064] Determining a brightness adjustment value according to the target brightness adjustment amplitude parameter and a preset brightness adjustment gain coefficient; Specifically, the final brightness adjustment value is determined by multiplying the target brightness adjustment amplitude parameter by the preset gain coefficient. The gain coefficient can be preset according to the user's scene requirements, for example, it is set to 1.2 for the daytime environment and 0.8 for the night environment, so that the same brightness amplitude parameter produces different brightness adjustment effects in different scenes. 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, which provides a basis for the subsequent brightness value calculation.
[0065] Calculating a preliminary brightness value according to the brightness adjustment value and the first brightness value; 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 change of brightness adjustment is based on the current actual brightness state, thereby achieving continuous and smooth brightness adjustment.
[0066] 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.
[0067] Specifically, in order to perform nonlinear optimization processing on the preliminary brightness value, a preset exponential function y=x can be used. k , where x is the initial brightness value and k is the first exponential adjustment coefficient. Through the nonlinear 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 brightness value changes tend to be smooth, which is suitable for soft low-brightness scenes. For example, if the initial brightness value is 150 and the first exponential adjustment coefficient k is 1.2, the optimized brightness value is 150 1.2 ≈180, which is more in line with the user's demand for high brightness adjustment. Through this nonlinear optimization, not only the refinement of the lighting effect can be improved, but also the user's adjustment experience in different scenes and the adaptability of the light strip can be enhanced.
[0068] 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.
[0069] Specifically, in the dynamic working mode, by defining multiple rate adjustment gears (such as "slow", "medium", and "fast") and corresponding rate parameters (such as 0.5, 1.0, and 1.5), combined with the rate requirements in the light strip adjustment instructions, the color change rate of the light strip is dynamically adjusted. For example, when the user selects the "fast" gear and issues an adjustment instruction to increase the rate, the rate parameter is adjusted from 1.5 to 2.0, thereby accelerating the switching speed of the light strip color and improving the visual effect. This solution is suitable for dynamic lighting scenes, such as festivals or party environments, and can enhance the user's sense of participation and entertainment experience.
[0070] In one embodiment, see Fig. 9 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, and the second light strip control parameter is determined to include: According to the light strip adjustment instruction, determining the target speed change gear selected by the user from among the preset speed adjustment gears; Specifically, in response to the user's light strip adjustment instruction, the specific speed requirement is determined by analyzing the target speed change gear selected by the user in the preset speed adjustment gear. 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 a high-speed adjustment category. Through this step, user needs can be accurately captured to provide a more targeted light strip adjustment effect.
[0071] Classifying the dynamic working modes and determining target classification results; Specifically, according to the characteristics of the dynamic working mode, it is classified into target classification results such as jump mode or gradient mode. For example, when the color change of the light strip is periodic and sudden, the classification result is jump mode; if the change is smooth and gradual, it is classified as gradient mode. Through classification, the adjustment strategy can be further refined, providing a clear direction for subsequent optimization and nonlinear processing.
[0072] 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; Specifically, after the classification is completed, the corresponding optimization coefficient is extracted according to the target classification result. The jump mode uses the first optimization coefficient to enhance the flexibility and visual impact of color switching; the gradient 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, and the second optimization coefficient of the gradient mode is 0.8. The optimization coefficient provides basic parameter support for subsequent rate adjustment and improves the accuracy of light strip control.
[0073] Optimizing the first color change rate according to the first optimization coefficient or the second optimization coefficient to determine a preliminary color change rate; 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 initial 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.
[0074] Determining a second index adjustment coefficient according to the target classification result and in combination with the target rate change gear; Specifically, the second exponential adjustment coefficient is determined according to the target classification result and the target rate change gear. For example, if the classification result is a 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 at the same gear may be 1.8. This adjustment coefficient enables the rate change to adapt to the dynamic characteristics of different modes, bringing users a more layered light strip performance.
[0075] 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.
[0076] Specifically, combining the second exponential adjustment coefficient and the preset exponential function y=x k , nonlinear optimization is performed on the initial color change rate. For example, if the initial rate is 3 Hz and the exponential adjustment coefficient is 1.3, the optimization result is 3 1.3 ≈3.9Hz. This nonlinear processing makes the color change rate dynamically adaptable, presenting a more delicate visual effect in both gradient mode and jump mode, and finally outputs the optimized control parameters of the second light strip, improving the user experience and the quality of the light strip performance.
[0077] Example 2
[0078] See also Fig.10 Embodiment 2 of the present invention further provides a multi-mode Bluetooth light strip control device, the device comprising: 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; The light strip adjustment module is used to adjust the first light strip control parameter for the second time in response to the light strip adjustment instruction issued by the user to obtain the second light strip control parameter, and control the operation of the light strip according to the second light strip control parameter.
[0079] Specifically, a multi-mode Bluetooth light strip control device provided by an embodiment of the present invention is adopted, and the device includes: a communication verification module, which is 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 a user; a mode switching module, which is used to switch the light strip mode in a cycle in response to a mode switching instruction issued by the user when the Bluetooth communication status is verified passed, and adjust the preset light strip control parameters according to the switched light strip working mode 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; a light strip adjustment module, which is used to adjust the first light strip control parameters for a second time in response to a light strip adjustment instruction issued by the user to obtain the second light strip control parameters, and control the operation of the light strip by the second light strip control parameters. The device verifies the Bluetooth communication status in real time to ensure the stable connection between the light strip and the user terminal, thereby solving the problem of inaccurate control caused by unstable communication in the prior art; then, in response to the mode switching command issued by the user, the light strip mode is cyclically switched according to different working modes, and the initial control parameters are adjusted after the switch to ensure that the lighting effect in each mode matches the user's needs, and the first light strip control parameters are adjusted for the second time according to the light strip adjustment command issued by the user, and the lighting control parameters are refined to ensure that the light strip can achieve accurate lighting effects and intelligent adaptive adjustment. Therefore, the device solves the problem of the inability of light strips to switch modes intelligently and accurately control in the prior art by combining Bluetooth communication, dynamic mode switching and deep parameter adjustment, significantly improves the user's lighting experience, and can adapt to changing usage needs in a more flexibly and personalized manner.
[0080] Example 3
[0081] In addition, if Fig.11 As shown, embodiment 3 of the present invention further provides a multi-mode Bluetooth light strip control system, the system comprising an LED light strip and a controller, and the controller is used to implement the method described in embodiment 1.
[0082] In summary, the embodiments of the present invention provide a multi-mode Bluetooth light strip control method, device and system.
[0083] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is 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, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0084] The functional blocks shown in the structural block diagram described above 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 function card, etc. 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 on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0085] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used 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 must comply with the relevant laws, regulations and standards of the relevant location, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0086] 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 performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0087] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should 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: Responding to a communication verification instruction issued by a user, verifying 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, the first light strip control parameter is adjusted for a second time to obtain a second light strip control parameter, and the light strip is controlled to operate according to the second light strip control parameter.
2. The multi-mode Bluetooth light strip control method according to claim 1, characterized in that: 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, a target light strip light effect sub-mode corresponding to the target light strip working mode is determined.
3. The multi-mode Bluetooth light strip control method according to claim 2, 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 second light strip light effect alternative sub-modes, each of the second light strip light effect alternative sub-modes is screened according to the light strip usage time interval and light strip usage scenario corresponding to the target light strip working mode, and the screened sub-mode is determined 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 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.
5. The multi-mode Bluetooth light strip control method according to claim 4, 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.
6. The multi-mode Bluetooth light strip control method according to any one of claims 1 to 5, characterized in that: 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.
7. The multi-mode Bluetooth light strip control method according to claim 6, 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, a nonlinear optimization process is performed on the preliminary brightness value to determine the second light strip control parameter.
8. The multi-mode Bluetooth light strip control method according to claim 6, 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.
9. 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; The light strip adjustment module is used to adjust the first light strip control parameter for the second time in response to the light strip adjustment instruction issued by the user to obtain the second light strip control parameter, and control the operation of the light strip according to the second light strip control parameter.
10. 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 8.
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
Intelligent lamp control method and device, intelligent lamp, equipment and medium
CN115250561A
LED lighting system
US20120217882A1