Light rhythm control method based on star flash technology
By adopting a light rhythm control method based on star flash technology in the smart home lighting control system, the problem of delay in lighting response is solved, realizing instant synchronization between light and music, and improving user experience and scene aesthetics.
Patent Information
- Application Number
- CN202411945850.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-06
AI Technical Summary
There is a problem of delay in lighting effect response in smart home lighting control systems, mainly due to delays in data transmission and processing, as well as limitations in lighting equipment hardware performance.
The light rhythm control method based on star flash technology is adopted, through the connection between the main control module and the user's mobile device, the star flash technology is used to pair and connect between devices, and the audio feature data is transmitted in real time to calculate the lighting effect data to ensure the synchronous changes of the light and music rhythm.
It realizes the immediacy and high sensitivity of lighting control, significantly improves the user experience, ensures synchronous control between multiple lighting devices, and enhances the immersion and aesthetics of the scene atmosphere.
Smart Images

Figure CN119946945A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a lighting rhythm control method based on star flash technology. Background Art
[0002] Smart home lighting control refers to a system for intelligent control and management of lights. It mainly realizes dimming of lights, one-click scenes, one-to-one remote control and full on and off management of zoned lights, thereby achieving the energy-saving, environmental protection, comfort and convenience functions of smart lighting.
[0003] In smart home lighting control systems, lighting effect response delay is also an issue that cannot be ignored. This is mainly caused by delays in system data transmission and processing. Specifically, when the smart home system receives the user's lighting control instructions, it needs to go through a series of data transmission and processing processes, including network transmission, data analysis, and instruction execution. Any delay in any link in these processes will lead to a delay in lighting effect response. In addition, the hardware performance of the lighting equipment itself also affects the lighting effect response speed, including slow CPU processing speed and insufficient memory problems, which will lead to lighting effect response delays. Summary of the invention
[0004] In order to overcome the above technical problems, the object of the present invention is to provide a lighting rhythm control method based on star flash technology.
[0005] The purpose of the present invention is achieved through the following technical solutions:
[0006] A lighting rhythm control method based on star flash technology comprises the following steps:
[0007] Step 1: Initialization and connection: Start the main control module, Star Flash module, sound source acquisition module and execution module. The main control module connects to the user's mobile device through BLE technology or TCP / IP communication technology to establish a communication channel. Use Star Flash technology to pair and connect devices. During the pairing process, follow the standard process of Star Flash technology, including using JustWorks pairing mode.
[0008] Step 2: Sound source acquisition and processing: The sound source acquisition module acquires sound source data from an external device or a mobile device, and transmits the sound source data to the main control module for further processing. The main control module extracts audio features from the received sound source data, including audio type classification and audio feature data extraction, and matches the corresponding music rhythm features according to the audio feature data;
[0009] Step 3: Calculation and transmission of lighting effects: The main control module calculates the lighting effect data based on the extracted audio feature data and the matched music rhythm features. The lighting effect data includes the switching state of the light, the brightness, and the change rules of the color parameters. The main control module transmits the lighting effect data to other main control modules or execution modules through the star flash technology to ensure the real-time and synchronization of data transmission to achieve the rhythmic effect of the light.
[0010] Step 4: Lighting control execution: The execution module receives the lighting control instruction from the main control module. The instruction includes the specific value or change rule of the light's on / off state, brightness, and color parameters. The execution module controls the light's on / off state, brightness, and color parameters according to the received instruction to achieve synchronous changes in the light and the music rhythm.
[0011] Step 5: System monitoring and feedback: The main control module continuously monitors the system status, including lighting control effects and device connection status, to ensure stable system operation and timely detect and handle abnormal situations. Users interact with the main control module through mobile devices and provide feedback on lighting control effects. The main control module adjusts the lighting control strategy based on user feedback to optimize the user experience.
[0012] As a further solution of the present invention: in the step 1, the TCP / IP protocol family adopts a layered structure to divide network communication into different levels, each layer has specific functions, the lowest layer in the TCP / IP model is responsible for managing data transmission on the physical medium, two devices need to be connected through the physical medium to ensure that data packets can be transmitted between them, the network layer is responsible for data transmission between different networks, the network layer assigns a unique IP address to each device connected to the network, this address is used to identify and locate the device in the network, at the transport layer, the TCP protocol uses a three-way handshake process to establish a connection, which includes the client sending a connection request (SYN) to the server, the server replies with an acknowledgment message (SYN-ACK) after receiving the request, and finally the client sends an acknowledgment message (ACK) again, this process ensures that both parties can correctly receive and send data, once the connection is established, both parties start to transmit data, and the correct transmission of data is guaranteed by sequence numbers, acknowledgment mechanisms, flow control and congestion control measures.
[0013] As a further solution of the present invention: in the step 2, the audio feature extraction method includes:
[0014] (1) Time domain analysis: Analyze the audio signal directly in the time domain and extract statistical features, including mean, variance, and peak, and dynamic features, including zero crossing rate and short-time energy. These features can reflect the changing characteristics of the audio signal in the time domain.
[0015] (2) Frequency domain analysis: The audio signal is converted from the time domain to the frequency domain for analysis. Through short-time Fourier transform, the spectrum of the audio signal is obtained, that is, the intensity of the signal at each frequency. The spectrum reflects the frequency characteristics of the audio signal, including the scale of music and human voice;
[0016] (3) Cepstrum analysis: It is used to extract periodic features in audio signals. The Mel-frequency cepstrum coefficients are first filtered using a filter bank, then the logarithm is taken, and then a discrete cosine transform is performed. Finally, the coefficients are taken as features. These features reflect the periodic characteristics of the audio signal, including the phonemes in the audio.
[0017] As a further solution of the present invention: in the step three, after receiving the sound source data and performing audio feature extraction, the main control module obtains parameters that can reflect the characteristics of the audio signal, including frequency, amplitude, and rhythm. These parameters are used as inputs for calculating the lighting effect data. Next, the main control module converts these audio feature parameters into lighting effect parameters according to a preset lighting effect algorithm and parameter mapping relationship. This conversion process involves multiple steps and algorithms, including mapping of frequency to brightness and mapping of amplitude to color. During the conversion process, the main control module takes into account the physical characteristics and limitations of the lighting equipment, including the brightness range, color range, and change speed of the light.
[0018] As a further solution of the present invention: in the step 4, the execution module receives the lighting control instructions from the main control module, and these instructions include the switch status, brightness level, and color value parameters of the light. Then, the execution module performs corresponding control operations on the lighting equipment according to the received instructions. For the switch control of the light, the execution module directly sends a switch signal to the lighting equipment to turn the light on or off. For the brightness control of the light, the execution module adjusts the current or voltage of the lighting equipment according to the brightness level in the instruction to achieve the brightness change. The execution module converts these values to corresponding current or voltage values and sends them to the lighting equipment. For the color control of the light, the execution module adjusts the red, green, and blue inside the lighting equipment according to the color value in the instruction to achieve the color change. The color value is represented by hexadecimal code, RGB value or value in other color space. The execution module converts these color values to corresponding color channel ratios and sends them to the lighting equipment.
[0019] Beneficial effects of the present invention:
[0020] 1. The low latency of Star Flash technology enables the control signal to be quickly received and responded to by the lighting equipment, thus achieving the immediacy of lighting control. This high-sensitivity control can significantly improve the user experience. For example, in a smart home scenario, users can immediately see the changes in light brightness and color. In addition, high sensitivity also means that the system can more accurately capture the user's control intention, reduce the possibility of misoperation, and further improve user satisfaction.
[0021] 2. The high concurrency of Star Flash technology enables multiple lighting devices to receive control signals at the same time and achieve synchronized lighting effects. This synchronized control is essential for creating a specific scene atmosphere. For example, in scenes such as concerts, stage plays or home theaters, synchronized lighting changes can enhance the audience's immersion and visual experience. At the same time, synchronized control can also ensure the coordination between multiple lighting devices, avoid confusion or inconsistency in lighting effects, and thus enhance the beauty and viewing experience of the overall scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The present invention will be further described below in conjunction with the accompanying drawings.
[0023] Figure 1 It is a schematic diagram of the steps of the present invention;
[0024] Figure 2 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] include Figure 1-2 As shown, a lighting rhythm control method based on star flash technology includes the following steps:
[0027] Step 1, initialization and connection: start the main control module, Star Flash module, sound source acquisition module and execution module. The main control module connects to the user's mobile device through BLE technology or TCP / IP communication technology to establish a communication channel. Use Star Flash technology to pair and connect devices. During the pairing process, follow the standard process of Star Flash technology, including using JustWorks pairing mode. In step 1, the TCP / IP protocol family adopts a layered structure, dividing network communication into different levels, each with specific functions. The bottom layer in the TCP / IP model is responsible for managing data transmission on the physical medium. The two devices need to be connected through a physical medium to ensure that the data packet can The network layer is responsible for data transmission between different networks. The network layer assigns a unique IP address to each device connected to the network. This address is used to identify and locate the device in the network. At the transport layer, the TCP protocol uses a three-way handshake process to establish a connection, which includes the client sending a connection request (SYN) to the server, the server responding with a confirmation message (SYN-ACK) after receiving the request, and finally the client sending a confirmation message (ACK) again. This process ensures that both parties can correctly receive and send data. Once the connection is established, both parties start to transmit data, and the correct transmission of data is guaranteed by sequence numbers, confirmation mechanisms, flow control, and congestion control.
[0028] Step 2: Acquisition and processing of sound source: The sound source acquisition module acquires sound source data from an external device or a mobile device, and transmits the sound source data to the main control module for further processing. The main control module extracts audio features from the received sound source data, including audio type classification and audio feature data extraction. According to the audio feature data, the corresponding music rhythm features are matched. In step 2, the audio feature extraction method includes:
[0029] (1) Time domain analysis: Analyze the audio signal directly in the time domain and extract statistical features, including mean, variance, and peak, and dynamic features, including zero crossing rate and short-time energy. These features can reflect the changing characteristics of the audio signal in the time domain.
[0030] (2) Frequency domain analysis: The audio signal is converted from the time domain to the frequency domain for analysis. Through short-time Fourier transform, the spectrum of the audio signal is obtained, that is, the intensity of the signal at each frequency. The spectrum reflects the frequency characteristics of the audio signal, including the scale of music and human voice;
[0031] (3) Cepstrum analysis: used to extract periodic features in audio signals. The Mel-frequency cepstrum coefficients are first filtered using a filter bank, then logarithmic, and then discrete cosine transformed. Finally, the coefficients are taken as features. These features reflect the periodic characteristics of the audio signal, including the phonemes in the audio.
[0032] Step 3, calculation and transmission of lighting effects: The main control module calculates the lighting effect data based on the extracted audio feature data and the matched music rhythm features. The lighting effect data includes the switch state of the light, the brightness, and the change law of the color parameters. The main control module transmits the lighting effect data to other main control modules or execution modules through the star flash technology to ensure the real-time and synchronization of data transmission to achieve the rhythm effect of the light. In the step 3, after receiving the sound source data and extracting the audio features, the main control module obtains parameters that can reflect the characteristics of the audio signal, including frequency, amplitude, and rhythm. These parameters are used as inputs for calculating the lighting effect data. Next, the main control module converts these audio feature parameters into lighting effect parameters according to the preset lighting effect algorithm and parameter mapping relationship. This conversion process involves multiple steps and algorithms, including mapping from frequency to brightness and mapping from amplitude to color. During the conversion process, the main control module considers the physical characteristics and limitations of the lighting equipment, including the brightness range, color range, and change speed of the light.
[0033] Step 4, lighting control execution: the execution module receives the lighting control instructions from the main control module, the instructions include the specific values or change rules of the switch state, brightness, and color parameters of the light, and the execution module controls the switch, brightness, and color parameters of the light according to the received instructions to achieve the synchronous change of the light and the music rhythm. In the step 4, the execution module receives the lighting control instructions from the main control module, and these instructions include the switch state, brightness level, and color value parameters of the light. Then, the execution module performs corresponding control operations on the lighting equipment according to the received instructions. For the switch control of the light, the execution module directly sends a switch signal to the lighting equipment to turn the light on or off. For the brightness control of the light, the execution module adjusts the current or voltage of the lighting equipment according to the brightness level in the instruction to achieve the brightness change. The execution module converts these values into corresponding current or voltage values and sends them to the lighting equipment. For the color control of the light, the execution module adjusts the red, green, and blue inside the lighting equipment according to the color value in the instruction to achieve the color change. The color value is represented by hexadecimal code, RGB value, or other values in color space. The execution module converts these color values into corresponding color channel ratios and sends them to the lighting equipment;
[0034] Step 5: System monitoring and feedback: The main control module continuously monitors the system status, including lighting control effects and device connection status, to ensure stable system operation and timely detect and handle abnormal situations. Users interact with the main control module through mobile devices and provide feedback on lighting control effects. The main control module adjusts the lighting control strategy based on user feedback to optimize the user experience.
[0035] Working principle of the present invention:
[0036] After the whole system is started, the initialization and connection phase is first carried out. The main control module, Star Flash module, sound source acquisition module and execution module are activated, and connected to the user's mobile device through BLE technology or TCP / IP communication technology to establish a stable communication channel. The TCP / IP protocol family plays a key role in this process. Its layered structure ensures the smooth progress of network communication. The bottom physical layer is responsible for the physical media connection of data transmission. The network layer assigns a unique IP address to the device to achieve network positioning, and the TCP protocol of the transport layer ensures that both parties can correctly and reliably receive and send data through a three-way handshake process. At the same time, Star Flash technology is used for pairing and connection between devices, following standard processes, such as the Just Works pairing mode, to ensure efficient and secure communication between devices.
[0037] Entering the sound source acquisition and processing stage, the sound source acquisition module captures the sound source data from the external device or the mobile device, and transmits it to the main control module. The main control module then conducts in-depth analysis of the received sound source data and extracts audio features, including audio type classification and specific audio feature data. These feature data are obtained through a variety of methods such as time domain analysis, frequency domain analysis and cepstrum analysis, which can fully reflect the changing characteristics and periodic characteristics of the audio signal. Based on these feature data, the main control module further matches the corresponding music rhythm features to provide a basis for the calculation of subsequent lighting effects;
[0038] In the stage of lighting effect calculation and transmission, the main control module uses the extracted audio feature data and the matching music rhythm features to calculate the lighting effect data, including the switch status of the light, the brightness, and the change law of the color parameters. These data are transmitted to other main control modules or execution modules in real time and synchronously through the Star Flash technology to ensure the accurate realization of the lighting effect. When converting the audio feature parameters into the lighting effect parameters, the main control module will fully consider the physical characteristics and limitations of the lighting equipment to ensure the feasibility and stability of the lighting effect.
[0039] After receiving the lighting control command from the main control module, the execution module performs precise control operations on the lighting equipment according to the specific values or change rules in the command, including the switch control, brightness adjustment and color change of the lighting, which is achieved by adjusting the current, voltage or color channel ratio of the lighting equipment. In this way, the lighting can change synchronously with the rhythm of the music, creating a unique visual effect;
[0040] Finally, in the system monitoring and feedback stage, the main control module continuously monitors the system's operating status, including lighting control effects and device connection status, to ensure the stable operation of the system. Users can interact with the main control module through mobile devices and provide feedback on the lighting control effects. The main control module continuously adjusts the lighting control strategy based on these feedbacks to optimize the user experience and achieve more personalized and intelligent lighting control effects.
[0041] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All changes and improvements made according to the scope of application of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A lighting rhythm control method based on star flash technology, characterized in that: The following steps are involved: Step 1: Initialization and connection: Start the main control module, Star Flash module, sound source acquisition module and execution module. The main control module connects to the user's mobile device through BLE technology or TCP / IP communication technology to establish a communication channel. Use Star Flash technology to pair and connect devices. During the pairing process, follow the standard process of Star Flash technology, including using the Just Works pairing mode. Step 2: Sound source acquisition and processing: The sound source acquisition module acquires sound source data from an external device or a mobile device, and transmits the sound source data to the main control module for further processing. The main control module extracts audio features from the received sound source data, including audio type classification and audio feature data extraction, and matches the corresponding music rhythm features according to the audio feature data; Step 3: Calculation and transmission of lighting effects: The main control module calculates the lighting effect data based on the extracted audio feature data and the matched music rhythm features. The lighting effect data includes the switching state of the light, the brightness, and the change rules of the color parameters. The main control module transmits the lighting effect data to other main control modules or execution modules through the star flash technology to ensure the real-time and synchronization of data transmission to achieve the rhythmic effect of the light. Step 4: Lighting control execution: The execution module receives the lighting control instruction from the main control module. The instruction includes the specific value or change rule of the light's on / off state, brightness, and color parameters. The execution module controls the light's on / off state, brightness, and color parameters according to the received instruction to achieve synchronous changes in the light and the music rhythm. Step 5: System monitoring and feedback: The main control module continuously monitors the system status, including lighting control effects and device connection status, to ensure stable system operation and timely detect and handle abnormal situations. Users interact with the main control module through mobile devices and provide feedback on lighting control effects. The main control module adjusts the lighting control strategy based on user feedback to optimize the user experience.
2. According to claim 1, a lighting rhythm control method based on star flash technology is characterized in that: In the step 1, the TCP / IP protocol family adopts a layered structure to divide network communication into different levels, each of which has specific functions. The lowest layer in the TCP / IP model is responsible for managing data transmission on the physical medium. Two devices need to be connected through the physical medium to ensure that data packets can be transmitted between them. The network layer is responsible for data transmission between different networks. The network layer assigns a unique IP address to each device connected to the network. This address is used to identify and locate the device in the network. At the transport layer, the TCP protocol uses a three-way handshake process to establish a connection, which includes the client sending a connection request (SYN) to the server, the server responding with an acknowledgment message (SYN-ACK) after receiving the request, and finally the client sending an acknowledgment message (ACK) again. This process ensures that both parties can correctly receive and send data. Once the connection is established, both parties start to transmit data, and the correct transmission of data is guaranteed by sequence numbers, acknowledgment mechanisms, flow control and congestion control.
3. The lighting rhythm control method based on star flash technology according to claim 1 is characterized in that: In the step 2, the audio feature extraction method includes: (1) Time domain analysis: Analyze the audio signal directly in the time domain and extract statistical features, including mean, variance, and peak, and dynamic features, including zero crossing rate and short-time energy. These features can reflect the changing characteristics of the audio signal in the time domain. (2) Frequency domain analysis: The audio signal is converted from the time domain to the frequency domain for analysis. Through short-time Fourier transform, the spectrum of the audio signal is obtained, that is, the intensity of the signal at each frequency. The spectrum reflects the frequency characteristics of the audio signal, including the scale of music and human voice; (3) Cepstrum analysis: It is used to extract periodic features in audio signals. The Mel-frequency cepstrum coefficients are first filtered using a filter bank, then the logarithm is taken, and then a discrete cosine transform is performed. Finally, the coefficients are taken as features. These features reflect the periodic characteristics of the audio signal, including the phonemes in the audio.
4. The lighting rhythm control method based on star flash technology according to claim 1 is characterized in that: In step three, after receiving the sound source data and performing audio feature extraction, the main control module obtains parameters that can reflect the characteristics of the audio signal, including frequency, amplitude, and rhythm. These parameters are used as inputs for calculating the lighting effect data. Next, the main control module converts these audio feature parameters into lighting effect parameters according to a preset lighting effect algorithm and parameter mapping relationship. This conversion process involves multiple steps and algorithms, including mapping from frequency to brightness and mapping from amplitude to color. During the conversion process, the main control module takes into account the physical characteristics and limitations of the lighting equipment, including the brightness range, color range, and change speed of the light.
5. The lighting rhythm control method based on star flash technology according to claim 1 is characterized in that: In step 4, the execution module receives the lighting control instructions from the main control module. These instructions include the switch status, brightness level, and color value parameters of the light. Then, the execution module performs corresponding control operations on the lighting device according to the received instructions. For the switch control of the light, the execution module directly sends a switch signal to the lighting device to turn the light on or off. For the brightness control of the light, the execution module adjusts the current or voltage of the lighting device according to the brightness level in the instruction to achieve the brightness change. The execution module converts these values into corresponding current or voltage values and sends them to the lighting device. For the color control of the light, the execution module adjusts the red, green, and blue inside the lighting device according to the color value in the instruction to achieve the color change. The color value is represented by hexadecimal code, RGB value or value in other color space. The execution module converts these color values into corresponding color channel ratios and sends them to the lighting device.
Citation Information
Patent Citations
Light effect control method and device, equipment and storage medium
CN113613369A
Light signal rhythm control method, device and equipment and storage medium
CN117528872A
Music and light combined rhythm method and device, readable storage medium and terminal equipment
CN117944569A
Vehicle light control method, device and system and medium
CN118890744A
Current noise detection method and apparatus, terminal, and storage medium
WO2021248522A1