Atmosphere lamp control method and system based on star flash transmission
By adopting the method based on star flash transmission in the automotive ambient light control system, the problems of high latency and poor anti-interference ability of the existing system are solved, and a more stable and lower energy-consuming ambient light control effect is achieved.
Patent Information
- Application Number
- CN202411136508.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-01-24
AI Technical Summary
The existing automotive ambient light control system has problems such as high delay and poor anti-interference ability, which leads to unstable transmission and affected vehicle battery life.
Using the atmosphere light control method based on star flash transmission, by establishing asynchronous and synchronous data links, obtaining audio spectrum and volume information, converting to HSL data, and transmitting to the atmosphere light module through the star flash synchronization data link Dynamic adjustment of brightness.
It realizes the elimination of wire harness control, simplifies the installation process and cost, reduces the power consumption of the car, increases the anti-interference ability, reduces the delay, and can achieve better ambient lighting effects.
Smart Images

Figure CN119364613A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile atmosphere light control, and in particular to an atmosphere light control method and system based on star flash transmission. Background Art
[0002] The control network of the car atmosphere light can control the car atmosphere light to adjust the color and brightness of the multi-color atmosphere light according to the rhythm and sound pickup. The existing technology mainly includes wired solutions based on LIN or CAN bus transmission and wireless solutions based on Bluetooth or WIFI transmission. Wired connection transmission is stable, but complex wiring is required in the car, which not only increases the difficulty of installation and the cost of wiring harness, but also increases the weight of the whole vehicle. The maximum rate of the LIN bus is 20Kbit / s, with a maximum of 16 slave nodes. The maximum rate of the CAN bus is 1Mbit / s, and theoretically supports up to 120 nodes. Both cannot meet the requirements of more nodes and higher rates, and the LIN bus and CAN bus have no time synchronization mechanism, and the music rhythm function cannot be used very conveniently. The wireless transmission method of Bluetooth or WIFI has the problems of high latency and instability, and the WIFI technology has high power consumption, which will also affect the endurance of the whole vehicle.
[0003] For example, there is a Chinese patent with publication number CN113811052A, which involves an atmosphere light control method. First, the light sensor, door sensor and speed sensor respectively sense the external light intensity, door switch status and vehicle speed, and transmit them to the player control module respectively; then the player control module transmits the Bluetooth transmission information and audio output to the atmosphere light control module; finally, the atmosphere light control module adjusts the luminous intensity of the atmosphere light according to the external light intensity, door opening and closing, and vehicle speed. The atmosphere light control method can adjust the luminous intensity of the atmosphere light to avoid the reflection of the atmosphere light on the inner wall of the windshield when driving at night, and reduce the safety hazards caused by the atmosphere light to night driving. However, the Chinese patent with publication number CN113811052A uses Bluetooth BLE to transmit data, which has the problems of low transmission rate and high latency. Summary of the invention
[0004] In order to solve the problems of high delay and poor anti-interference ability of the atmosphere light control system, the present invention proposes an atmosphere light control method and system based on star flash transmission, which can eliminate wire harness control, simplify installation process and cost, have strong anti-interference ability, increase time synchronization mechanism, and have low delay, so as to achieve better atmosphere light effect.
[0005] In order to achieve the above object, the present invention adopts the following technical solution: a method for controlling an atmosphere light based on star flash transmission, comprising the following steps: S1: Establish asynchronous data link and synchronous data link; S2: Get the frequency spectrum and volume information of the audio; S3: Convert the audio spectrum and volume information into specific color and brightness information to generate lighting effects; S4: converts color and brightness information into HSL data and transmits it to the ambient light module through a synchronous data link; S5: The ambient light module converts the received HSL data into the color and brightness of the lamp beads and sends it to each lamp bead.
[0006] In this technical solution, the asynchronous data link and synchronous data link of the star flash are first established, and then the audio input module obtains the spectrum and volume information of the audio, and then converts the spectrum and volume information into specific color and brightness information, and then converts it into HSL data and transmits it to the atmosphere light module through the star flash synchronous data link. Finally, the atmosphere light module converts the received HSL data into the color and brightness of the lamp beads and sends it to each lamp bead.
[0007] The atmosphere light control method based on Star Flash transmission of this embodiment uses Star Flash SLE technology to enable fast and stable data transmission; through audio preprocessing and feature extraction, and in conjunction with Star Flash's synchronous data link transmission, the atmosphere light effect is best achieved; the use of wiring harnesses is reduced, costs are saved, and the power consumption of the car is also reduced.
[0008] The present invention is further configured as follows: Step S1 comprises: S11: The vehicle computer and all ambient lights establish an asynchronous data link; S12: Establish a synchronous data link through an asynchronous data link.
[0009] In this technical solution, the vehicle computer starts scanning and creates an asynchronous data link with all the ambient lights, and establishes a synchronous data link through this asynchronous data link. Subsequently, control information is transmitted on the asynchronous data link, and HSL information is transmitted on the synchronous data link.
[0010] The present invention is further configured as follows: Step S2 comprises: S21: preprocessing the audio data, the preprocessing of the audio data includes framing and windowing; S22: Obtain the frequency spectrum and volume information of the audio through feature extraction.
[0011] In this technical solution, the audio input module obtains audio information, obtains relevant information through preprocessing and feature extraction of audio data, and finally generates lighting effects and transmits them to the atmosphere light module through the star flash synchronization link multicast. The preprocessing of audio data includes framing and windowing operations.
[0012] The present invention is further configured as follows: Step S3 comprises: S31: Convert spectrum information into ambient light colors, with high frequencies of the spectrum mapped to cool colors, i.e., blue and purple, and low frequencies of the spectrum mapped to warm colors, i.e., red and orange; S32: converting the volume information into the brightness of the ambient light, wherein a high volume corresponds to a high brightness of the light, and a low volume corresponds to a low brightness of the light.
[0013] In this technical solution, the color and brightness information of the lamp beads are converted from the audio spectrum and volume information obtained by the audio input module. The spectrum information is converted into the color of the atmosphere light, high frequency corresponds to cold colors, and low frequency corresponds to warm colors; the volume information is converted into the brightness of the atmosphere light, and the higher the volume, the higher the brightness.
[0014] The present invention is further configured as follows: Step S4 comprises: S41: Convert color and brightness into HSL format data; S42: adjust the physical layer parameters of the star flash to 8PSK waveform modulation, 4M symbol rate for transmission, and adjust to the appropriate polar coding method according to the data volume; S43: Send the generated HSL data to the ambient light module via the synchronous data link.
[0015] In this technical solution, the physical layer parameters of Star Flash are adjusted to 8PSK waveform modulation and 4M symbol rate for transmission. The appropriate polar coding method is adjusted according to the data volume to improve the anti-interference ability while ensuring the transmission rate. HSL data is sent to the atmosphere light module through Star Flash's synchronous data link. Audio data has only a limited number of sending opportunities and can only be retransmitted within a limited time, ensuring that the atmosphere light effect and music remain synchronized.
[0016] The present invention is further configured as follows: Step S21 includes: S211: Frame division, dividing the audio signal into short time windows for analysis, where the short time windows are the same as the data discarding period in the star flash synchronization data link; S212: Windowing: applying a Hanning window function to each frame of audio signal.
[0017] In this technical solution, the preprocessing of audio data includes framing and windowing operations. Framing is to divide the audio signal into short time windows for analysis. The time window here is the same as the data discarding period in the star flash synchronization data link to achieve the best rhythm effect. Windowing is to apply the Hanning window function to each frame of audio signal to reduce spectrum leakage.
[0018] The present invention is further configured as follows: Step S22 includes: S221: Convert the time domain signal into a frequency domain signal by fast Fourier transform to obtain the frequency spectrum of the audio; S222: Calculate the energy of each frame to obtain the energy envelope of each frame of the audio signal; S223: Obtaining audio volume information according to the energy envelope.
[0019] In this technical solution, the feature extraction step obtains information such as frequency domain and volume by analyzing the audio data of a short time window. First, the time domain signal is converted into a frequency domain signal using a fast Fourier transform to obtain the spectrum of the audio. Then, the square sum of each frame is calculated to obtain the energy envelope of each frame of the audio signal, and the audio volume information is obtained based on the energy envelope.
[0020] The present invention is further configured as follows: in step S1: the asynchronous data link can transmit control information, and the synchronous data link can transmit HSL information.
[0021] In this technical solution, Star Flash is used to transmit information, control information is transmitted by Star Flash asynchronous data link, and HSL information is transmitted by Star Flash synchronous data link.
[0022] The present invention also adopts the following technical solution: an atmosphere light control system based on star flash transmission, using the above-mentioned atmosphere light control method based on star flash transmission, comprising: Audio input module, which can obtain and parse audio data; The atmosphere light module can convert the received HSL information into the color and brightness information of specific lamp beads and send it to each lamp bead.
[0023] In this technical solution, the atmosphere light control system based on Star Flash transmission includes an audio input module and an atmosphere light module. The audio input module can be connected to the car computer through USB, identified as an audio device and obtain the music of the car computer, or set to the sound pickup mode, and then the microphone of the audio input module transmits the sound of the environment to the chip through the PDM protocol. After the audio information is obtained, it is converted into the HSL information of the atmosphere light and sent to each atmosphere light module through the synchronous multicast link of Star Flash.
[0024] The present invention is further configured as follows: the atmosphere light module is arranged in the lamp bead, and the color and brightness information of the specific lamp bead is sent to the lamp bead through the WS2812 protocol.
[0025] In this technical solution, the atmosphere light module is responsible for converting the received HSL information into the RGB color information and brightness information of the specific lamp beads and sending it to each lamp bead through the WS2812 protocol for display.
[0026] The beneficial effects of the present invention are: 1) Eliminate wiring harness control, simplify installation process and cost, save costs, and reduce the power consumption of the car; 2) Use Star Flash SLE technology to enable fast and stable data transmission, reduce latency, and add a time synchronization mechanism; 3) Increase anti-interference ability to achieve better atmosphere lighting effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of an atmosphere light control method based on star flash transmission according to an embodiment of the present invention.
[0028] Figure 2 It is a system block diagram of an atmosphere light control system based on star flash transmission according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0030] Ambient lighting is used in car interior decoration, including but not limited to the center console, door panels, roof, footlights, cup holders, and welcome pedals. It can accurately control the independent lighting and color adjustment of different areas, which can not only add color to the car, but also create different atmospheres in different driving scenarios and enhance driving pleasure.
[0031] With the popularity of the concept of smart car cockpits, ambient lights are now more dynamic, from the initial single-color ambient lights to 64-color or even 128-color ambient lights, and then to the current 256-color ambient lights. There is also a sound pickup mode that allows the lights to move with the rhythm of the music. The functions of ambient lights are becoming more and more powerful.
[0032] The existing technology mainly includes the following technical solutions.
[0033] Solution 1: Wired solution. In the existing automotive ambient light control system, the wired connection solution mainly relies on LIN or CAN bus technology to control the ambient light. The user sends control instructions through the vehicle control panel, and these instructions are transmitted to the ambient light control node through LIN or CAN bus to control the ambient light.
[0034] Solution 2: Control the car's interior ambient light accessories wirelessly via Bluetooth, WIFI, etc. Users can control the ambient light directly via a mobile phone app.
[0035] However, the solutions in the prior art have the following disadvantages.
[0036] Using wired connection, the transmission is stable, but the wired connection requires complex wiring in the car, which increases the difficulty of installation and the cost of the wiring harness, and also causes problems such as increased weight of the vehicle.
[0037] The maximum rate of the LIN bus is 20Kbit / s and there are a maximum of 16 slave nodes. The maximum rate of the CAN bus is 1Mbit / s and theoretically supports a maximum of 120 nodes, which cannot meet the requirements of more nodes and higher rates.
[0038] The LIN bus and CAN bus do not have mechanisms such as time synchronization, so functions such as music rhythm cannot be used conveniently.
[0039] The wireless communication methods of BLE and WIFI will have the problems of high latency and instability. In addition, the high power consumption of WIFI technology will affect the battery life of the whole vehicle.
[0040] Example 1 This embodiment provides an atmosphere light control method based on star flash transmission, which is applied to the control network of automobile atmosphere lights. It can control the automobile atmosphere lights to adjust the color and brightness of multi-color atmosphere lights according to music and sound pickup. The use of this method can not only simplify the installation process and cost of the atmosphere light control system, but also has strong anti-interference ability, and adds a time synchronization mechanism with low latency, thereby achieving better atmosphere light effects.
[0041] like Figure 1 As shown, the flowchart on the left is the workflow of the audio input module. First, the atmosphere light is connected, the asynchronous data link and synchronous data link of the star flash are created, and then the audio data is obtained. Then, audio processing and feature extraction are performed, and the color and brightness information are obtained according to the audio data. Then, the color and brightness information is converted into HSL data, and finally, the HSL data is transmitted to the atmosphere light module through the star flash synchronous data link.
[0042] The right side shows the working process of the atmosphere light module. First, it detects whether the atmosphere light is connected. If it is not connected, the default lighting effect is used. If it is connected, the sound effect information transmitted by the audio input module is used to parse the received HSL information into the color and brightness information of the lamp beads, and then the light is controlled through the WS2812 protocol.
[0043] A method for controlling an ambient light based on star flash transmission includes the following steps.
[0044] Step S1: First, establish a star flash asynchronous data link and a synchronous data link. Specifically, connect the vehicle computer and the ambient light. The vehicle computer starts scanning and creates an asynchronous data link with all the ambient lights, and then establishes a synchronous data link through the asynchronous data link.
[0045] In this embodiment, the audio input module and the ambient light module transmit control information on an asynchronous data link and transmit HSL information on a synchronous data link.
[0046] Step S2: Secondly, the audio input module obtains the frequency spectrum and volume information of the audio through preprocessing and feature extraction of the audio data.
[0047] In this embodiment, the preprocessing of audio data includes framing and windowing operations. Framing is to divide the audio signal into short time windows for analysis. The time window here is the same as the data discarding period in the star flash synchronization data link to achieve the best rhythm effect. Windowing is to apply the Hanning window function to each frame of audio signal to reduce spectrum leakage.
[0048] Step S3: Again, the frequency spectrum and volume information of the audio are converted into specific color and brightness information according to a specific set rule to generate a lighting effect for the atmosphere light.
[0049] In this embodiment, the frequency spectrum and volume information of the audio may be obtained from the vehicle computer by the audio input module, or may be obtained from the ambient sound input from the microphone.
[0050] Step S4: Then, the chip of the audio input module converts the acquired color and brightness information into HSL data, and then transmits it to the atmosphere light module through the synchronous data link of Star Flash.
[0051] In this embodiment, the chip of the audio input module can convert the specific color and brightness information of each ambient light into transmittable HSL data, and then transmit it to the ambient light module through the synchronous data link of Star Flash.
[0052] Step S5: Finally, the ambient light module converts the received HSL data into the color and brightness of the lamp beads and sends it to each lamp bead.
[0053] In this embodiment, the ambient light module finally needs to parse the received HSL data into specific RGB color and brightness information, and then send it to each lamp bead.
[0054] The atmosphere light control method based on Star Flash transmission of this embodiment uses Star Flash SLE technology to enable fast and stable data transmission; through audio preprocessing and feature extraction, and in conjunction with Star Flash's synchronous data link transmission, the atmosphere light effect is best achieved; the use of wiring harnesses is reduced, costs are saved, and the power consumption of the car is also reduced.
[0055] Example 2 This embodiment describes the steps of embodiment 1 in detail.
[0056] For step S1, in more detail, it mainly includes the following sub-steps.
[0057] Step S11: First, the vehicle computer and the audio input module are connected via USB, and the vehicle computer and all the ambient lights establish a star flash asynchronous data link.
[0058] In this embodiment, the information transmission between the audio input module and the atmosphere light module is based on the star flash technology. The audio input module is connected to the vehicle computer via USB, and establishes a star flash asynchronous data link with all the atmosphere lights. The control information is transmitted on the asynchronous data link. The vehicle computer is recognized as an audio device, and the audio input module obtains the music of the vehicle computer.
[0059] Step S12: Then, a star flash synchronous data link is established through the star flash asynchronous data link, and the lighting effect information of the atmosphere light is transmitted on the star flash synchronous data link.
[0060] In this embodiment, the audio input module obtains audio data and converts it into HSL information and sends it to the atmosphere light module through the star flash synchronization data link.
[0061] For step S2, in more detail, it mainly includes the following sub-steps.
[0062] Step S21: preprocessing the audio data, which includes framing and windowing.
[0063] In this embodiment, the audio input module obtains audio information, and obtains audio related information through preprocessing and feature extraction of audio data. The preprocessing of audio data includes framing and windowing operations.
[0064] Step S22: extracting features from the preprocessed audio data to obtain the frequency spectrum and volume information of the audio.
[0065] In this embodiment, audio-related information is obtained in order to generate the lighting effect of the atmosphere lamp. Specifically, the audio information includes spectrum and volume information, which is obtained by performing a feature extraction operation. By analyzing the audio data in a short time window, the frequency domain, volume and other information are obtained, and then transmitted to the atmosphere lamp module through the star flash synchronization multicast link.
[0066] In more detail, step S21 also includes the following sub-steps.
[0067] Step S211: performing a frame division operation specifically involves dividing the audio signal into short time windows for analysis. It should be noted that the short time window is the same as the data discarding period in the star flash synchronization data link.
[0068] In this embodiment, the preprocessing of audio data includes framing and windowing operations. The framing operation divides the audio signal into short time windows for analysis. The time window here is the same as the data discarding period in the star flash synchronization data link, and its purpose is to achieve the best rhythmic effect.
[0069] Step S212: performing a windowing operation on the framed audio data. Specifically, applying a Hanning window function to each frame of audio signal.
[0070] In this embodiment, a Hanning window function is applied to each frame of audio signal, and the specific function of windowing is to reduce spectrum leakage.
[0071] In more detail, step S22 also includes the following sub-steps.
[0072] Step S221: First, the time domain signal is converted into a frequency domain signal by fast Fourier transform to obtain the frequency spectrum of the audio.
[0073] In this embodiment, a fast Fourier transform is performed on the audio signal to convert the time domain signal into a frequency domain signal, thereby obtaining the frequency spectrum information of the audio.
[0074] Step S222: Then, the energy of each frame is calculated to obtain the energy envelope of each frame of the audio signal.
[0075] In this embodiment, it is also necessary to obtain the volume information of the audio, that is, it is necessary to obtain the energy information of the audio signal, and the energy envelope is obtained by calculating the square sum of each frame.
[0076] Step S223: Finally, the volume information of the audio can be obtained according to the energy envelope.
[0077] In this embodiment, firstly, the time domain signal is converted into the frequency domain signal using the fast Fourier transform to obtain the spectrum of the audio, and then the square sum of each frame is calculated to obtain the energy envelope of each frame of the audio signal, and the audio volume information is obtained according to the energy envelope.
[0078] For step S3, in more detail, it mainly includes the following sub-steps.
[0079] Step S31: converting the spectrum information into the color of the ambient light, wherein the high frequency of the spectrum is mapped to cool colors, namely blue and purple, and the low frequency of the spectrum is mapped to warm colors, namely red and orange.
[0080] In this embodiment, the color information of the lamp beads is converted from the audio spectrum information obtained by the audio input module, and the spectrum information is converted into the color of the atmosphere light, with high frequencies corresponding to cold colors and low frequencies corresponding to warm colors.
[0081] Step S32: converting the volume information into the brightness of the ambient light, wherein a high volume corresponds to a high brightness of the light, and a low volume corresponds to a low brightness of the light.
[0082] The brightness information of the lamp beads is converted from the audio volume information obtained by the audio input module, and the volume information is converted into the brightness of the atmosphere light. The higher the volume, the higher the brightness.
[0083] For step S4, in more detail, it mainly includes the following sub-steps.
[0084] Step S41: First, convert the color and brightness into HSL format data.
[0085] In this embodiment, the audio input module acquires audio data and converts it into HSL information so as to be subsequently sent to the atmosphere light module via the star flash synchronization data link.
[0086] Step S42: Then, the physical layer parameters of the star flash are adjusted to 8PSK waveform modulation, 4M symbol rate for transmission, and the appropriate polar coding method is adjusted according to the data volume.
[0087] In this embodiment, the physical layer parameters of Star Flash are adjusted to 8PSK waveform modulation and 4M symbol rate for transmission, and the appropriate polar coding method is adjusted according to the data volume to improve the anti-interference ability while ensuring the transmission rate.
[0088] Step S43: Finally, the generated HSL data is sent to the ambient light module via a synchronous data link.
[0089] In this embodiment, HSL data is sent to the atmosphere lighting module via the Star Flash's synchronous data link. The audio data has only a limited number of sending opportunities and can only be retransmitted within a limited time, ensuring that the atmosphere lighting effect and music remain synchronized.
[0090] For step 5, it should be noted that the ambient light uses RGB lamp beads. The ambient light combines different colors by controlling the ratio of RGB. Therefore, the ambient light module needs to convert the received HSL format color data into RGB color and brightness data and then send it to the lamp beads.
[0091] Example 3 This embodiment provides an atmosphere light control system based on star flash transmission. Using the above-mentioned atmosphere light control method based on star flash transmission, it can be applied in automobile pre-installed systems and can also be used in automobile decoration accessories, including audio input modules and atmosphere light modules.
[0092] The audio input module corresponds to step S1 to step S4 in Example 1, and can acquire and parse audio data.
[0093] In this embodiment, the atmosphere light control system based on Star Flash transmission includes an audio input module and an atmosphere light module. The audio input module can be connected to the vehicle computer through USB, identified as an audio device and obtain the music of the vehicle computer. After obtaining the audio information, it is converted into HSL information of the atmosphere light and sent to each atmosphere light module through the synchronous multicast link of Star Flash.
[0094] As for the atmosphere light module, it corresponds to step S5 in Embodiment 1, and can convert the received HSL information into the color and brightness information of specific lamp beads and send it to each lamp bead.
[0095] In this embodiment, the atmosphere light module is responsible for converting the received HSL information into the RGB color information and brightness information of the specific lamp beads and sending it to each lamp bead through the WS2812 protocol for display.
[0096] In this embodiment, the atmosphere light control system based on star flash transmission controls 30 atmosphere lights, that is, 30 star flash nodes are set up, and the control system uses USB to obtain audio data and converts it into atmosphere light information, which is sent to the 30 star flash nodes.
[0097] In some other implementations, the number of ambient lights can be set to any number between 20 and 35 as needed.
[0098] The working process of an atmosphere light control system based on star flash transmission in this embodiment is described in detail below.
[0099] First, connect the system's audio input module to the car computer via USB. The system will identify the car computer as an audio device and obtain music from the car computer.
[0100] In this embodiment, the system obtains audio information from the vehicle computer, and the chip of the audio input module parses the audio information and converts it into HSL information of the ambient light, and sends it to each ambient light module through the star flash synchronous multicast link.
[0101] Then, the chip of the ambient light module converts the received HSL information into RGB color information and brightness information according to specific conversion rules.
[0102] In this embodiment, the audio information analyzed by the chip includes frequency information and volume information. The specific conversion rules are as follows: the volume information is converted into the color information of the lamp beads, high volume corresponds to cold colors, and low volume corresponds to warm colors; the frequency information is converted into the brightness information of the lamp beads, high frequency corresponds to low brightness, and low frequency corresponds to high brightness.
[0103] In some other implementations, other conversion rules may be used to convert the HSL audio information into the color and brightness of the lamp beads.
[0104] Finally, the atmosphere light module sends the RGB color information and brightness information to each lamp bead for display through the WS2812 protocol.
[0105] Example 4 This embodiment provides an atmosphere light control system based on star flash transmission. Using the above-mentioned atmosphere light control method based on star flash transmission, it can be applied in automobile pre-installed systems and can also be used in automobile decoration accessories, including audio input modules and atmosphere light modules.
[0106] The audio input module corresponds to step S1 to step S4 in Example 1, and can acquire and parse audio data.
[0107] In this embodiment, the atmosphere light control system based on Star Flash transmission includes an audio input module and an atmosphere light module. The audio input module can be connected to the vehicle computer through USB, identified as an audio device and obtain the music of the vehicle computer. It can also be set to the sound pickup mode, and the microphone of the audio input module is used to transmit the ambient sound to the chip through the PDM protocol. After the audio information is obtained, it is converted into the HSL information of the atmosphere light and sent to each atmosphere light module through the synchronous multicast link of Star Flash.
[0108] As for the atmosphere light module, it corresponds to step S5 in Embodiment 1, and can convert the received HSL information into the color and brightness information of specific lamp beads and send it to each lamp bead.
[0109] In this embodiment, the atmosphere light module is responsible for converting the received HSL information into the RGB color information and brightness information of the specific lamp beads and sending it to each lamp bead through the WS2812 protocol for display.
[0110] In this embodiment, the atmosphere light control system based on star flash transmission controls 35 atmosphere lights, that is, 35 star flash nodes are set.
[0111] The control system uses USB to obtain audio data and converts it into atmosphere light information, which is then sent to 35 star flash nodes, with good synchronization and a delay of about 10ms. The peak rate of this system can reach 8Mb / s, which can be rhythmic with high-quality music.
[0112] In some other implementations, the number of ambient lights can be set to any number between 20 and 35 as needed.
[0113] The working process of an atmosphere light control system based on star flash transmission in this embodiment is described in detail below.
[0114] First, connect the system's audio input module to the car computer via USB. The system will identify the car computer as an audio device and obtain music from the car computer.
[0115] In this embodiment, the audio input module is provided with a microphone unit (MIC), referring to Figure 2The microphone unit can collect ambient sound and set the system to pickup mode. The microphone unit collects ambient sound and transmits the data to the chip through the PDM protocol. The chip parses the audio information and converts it into HSL information of the atmosphere light, and sends it to each atmosphere light module through the Star Flash synchronous multicast link.
[0116] Then, the chip of the ambient light module converts the received HSL information into RGB color information and brightness information according to specific conversion rules.
[0117] In this embodiment, the audio information analyzed by the chip includes frequency information and volume information. The specific conversion rules are as follows: the frequency information is converted into the color information of the lamp beads, high frequency corresponds to warm colors, and low frequency corresponds to cold colors; the volume information is converted into the brightness information of the lamp beads, high volume corresponds to high brightness, and low volume corresponds to low brightness.
[0118] In some other implementations, other conversion rules may be used to convert the HSL audio information into the color and brightness of the lamp beads.
[0119] Finally, the atmosphere light module sends the RGB color information and brightness information to each lamp bead for display through the WS2812 protocol.
[0120] Example 5 This embodiment proposes a smart car equipped with the above-mentioned atmosphere light control system based on star flash transmission. The atmosphere light control system based on star flash transmission includes an audio input module and an atmosphere light module. The audio input module is connected to the car computer via USB, and the atmosphere light module is installed in each atmosphere light.
[0121] There are 35 ambient lights in total, including the central control, door panels, roof, footlights, cup holders and welcome pedals. The ambient light module and audio input module transmit data through star flash technology.
[0122] The vehicle computer starts scanning and creates an asynchronous data link with all ambient lights, and establishes a synchronous data link through this asynchronous data link.
[0123] The asynchronous data link is responsible for transmitting control information, and the synchronous data link is responsible for transmitting HSL information.
[0124] The audio input module obtains audio information, obtains relevant information through audio data preprocessing and feature extraction, and finally generates lighting effects and transmits them to the atmosphere light module through the star flash synchronization link multicast.
[0125] The preprocessing of audio data includes framing and windowing operations.
[0126] Framing is to divide the audio signal into short time windows for analysis. The time window here is the same as the data discard period in the Star Flash synchronization data link to achieve the best rhythmic effect.
[0127] Windowing is to apply the Hanning window function to each frame of audio signal to reduce spectrum leakage.
[0128] The feature extraction step obtains information such as frequency domain and volume by analyzing the audio data in a short time window. First, the time domain signal is converted into a frequency domain signal using the Fast Fourier Transform to obtain the spectrum of the audio. Then, the energy of each frame is calculated to obtain the energy envelope of each frame of the audio signal, and the volume information of the audio is obtained based on the energy envelope.
[0129] Lighting effect generation is responsible for converting specific spectrum and volume information into specific colors and brightness. The high frequencies of the spectrum are mapped to cool colors, i.e. blue and purple, and the low frequencies of the spectrum are mapped to warm colors, i.e. red and orange. When the volume is high, the light brightness is high, and when the volume is low, the light brightness is low. Finally, the color and brightness are converted into HSL format data.
[0130] In this embodiment, the physical layer parameters of Star Flash are adjusted to 8PSK waveform modulation and 4M symbol rate for transmission, and the appropriate polar coding method is adjusted according to the data volume to improve the anti-interference ability while ensuring the transmission rate.
[0131] Finally, the generated HSL data is sent through a synchronous data link. The audio data has only a limited number of sending opportunities and can only be retransmitted within a limited time, ensuring that the ambient lighting effect and music remain synchronized.
Claims
1. A method for controlling an atmosphere light based on star flash transmission, characterized in that: The following steps are involved: S1: Establishing the Star Flash asynchronous data link and synchronous data link; S2: When the audio input module is successfully connected to the ambient light module, the frequency spectrum and volume information of the audio are obtained; S3: Convert the audio spectrum and volume information into specific color and brightness information to generate lighting effects; S4: converts color and brightness information into HSL data and transmits it to the ambient light module through a synchronous data link; S5: The ambient light module converts the received HSL data into the color and brightness of the lamp beads and sends it to each lamp bead.
2. The method for controlling an atmosphere light based on star flash transmission according to claim 1, characterized in that: The step S3 comprises: S31: Convert spectrum information into ambient light colors, with high frequencies of the spectrum mapped to cool colors, i.e., blue and purple, and low frequencies of the spectrum mapped to warm colors, i.e., red and orange; S32: converting the volume information into the brightness of the ambient light, wherein a high volume corresponds to a high brightness of the light, and a low volume corresponds to a low brightness of the light.
3. The method for controlling an atmosphere light based on star flash transmission according to claim 1, characterized in that: The step S4 comprises: S41: Convert color and brightness into HSL format data; S42: adjust the physical layer parameters of the star flash to 8PSK waveform modulation, 4M symbol rate for transmission, and adjust to the appropriate polar coding method according to the data volume; S43: Send the generated HSL data to the ambient light module via the synchronous data link.
4. The method for controlling an atmosphere light based on star flash transmission according to claim 1, characterized in that: The step S1 comprises: S11: The car computer and all ambient lights create a star flash asynchronous data link; S12: Establish a Starflash synchronous data link through the Starflash asynchronous data link.
5. The method for controlling an atmosphere light based on star flash transmission according to claim 1, characterized in that: The step S2 comprises: S21: When the audio data is transmitted to the audio input module, preprocessing of the audio data is performed, wherein the preprocessing of the audio data includes framing and windowing operations; S22: Obtain the frequency spectrum and volume information of the audio through feature extraction.
6. The method for controlling an atmosphere light based on star flash transmission according to claim 2, characterized in that: The step S21 comprises: S211: Divide the audio signal into short time windows for analysis, where the short time windows are the same as the data discarding period in the star flash synchronization data link; S212: Apply a Hanning window function to each frame of audio signal.
7. The method for controlling an atmosphere light based on star flash transmission according to claim 2, characterized in that: The step S22 comprises: S221: Convert the time domain signal into a frequency domain signal by fast Fourier transform to obtain the frequency spectrum of the audio; S222: Calculate the energy of each frame to obtain the energy envelope of each frame of the audio signal; S223: Obtaining audio volume information according to the energy envelope.
8. The method for controlling an atmosphere light based on star flash transmission according to any one of claims 1 to 7, characterized in that: In step S1: the asynchronous data link can transmit control information, and the synchronous data link can transmit HSL information.
9. An atmosphere light control system based on star flash transmission, using an atmosphere light control method based on star flash transmission according to any one of claims 1 to 8, characterized in that: include: Audio input module, which obtains and parses audio data; The atmosphere light module converts the received HSL information into the color and brightness information of specific lamp beads and sends it to each lamp bead.
10. The atmosphere light control system based on star flash transmission according to claim 9, characterized in that: The atmosphere light module is arranged in the lamp bead, and sends the color and brightness information of the specific lamp bead to the lamp bead through the WS2812 protocol.
Citation Information
Patent Citations
Atmosphere lamp control method
CN113811052A
Cited By
Distributed lamp effect generation method for low-speed bus
CN121078602A
Single-chip double-atmosphere lamp music rhythm control method and system and electronic equipment
CN121968418A