Vehicle control method, device and equipment and storage medium
By obtaining and sending playback information and lamp effect mapping rules, and controlling the vehicle lights according to the music spectrum information, the existing technology cannot achieve the problem of music light show, improved the user experience and simplified the equipment settings.
Patent Information
- Application Number
- CN202411238974.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-01-24
AI Technical Summary
The existing technology cannot meet users' demand for music and light shows, resulting in poor travel experience for users.
By obtaining played information and lighting efficiency mapping rules, send this information to the participation end, and determine the light control information according to the spectrum information and lighting effect mapping rules of the music, and control the vehicle's light to achieve the music light show.
It achieves music and light synchronization between vehicles, meets users' needs for music and light shows, improves user experience, and eliminates the need for external audio equipment.
Smart Images

Figure CN119348534A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of vehicle technology, and in particular, to a vehicle control method, device, equipment and storage medium. Background Art
[0002] Currently, before traveling, users can install external audio devices (such as speakers, amplifiers, multimedia consoles, etc.) in their vehicles, and the audio devices are used to play music.
[0003] In the related art, audio equipment can only play music and cannot meet the user's demand for music and light shows, resulting in a poor travel experience for the user. Summary of the invention
[0004] The embodiments of the present application provide a vehicle control method, device, equipment and storage medium, which are used to solve the problem that the existing related technologies cannot meet the user's demand for music and light shows, resulting in a poor travel experience for the user.
[0005] In a first aspect, an embodiment of the present application provides a vehicle control method, including:
[0006] Acquire playback information and lighting effect mapping rules, and send the playback information and the lighting effect mapping rules to the participating end; the playback information is used for the vehicles corresponding to the initiating end and the participating end to play the music corresponding to the playback information, and the lighting effect mapping rules are used for the initiating end and the participating end to determine lighting control information, and the lighting control information is used to control the lights of the corresponding vehicles;
[0007] Controlling the first vehicle corresponding to the initiating end to play the music corresponding to the playing information;
[0008] Obtaining spectrum information corresponding to the music;
[0009] Determining lighting control information according to the spectrum information and the lighting effect mapping rule;
[0010] The headlights of the first vehicle are controlled according to the light control information.
[0011] Optionally, the lighting effect mapping rule includes a vehicle light identification corresponding to at least one frequency range and a lighting attribute corresponding to at least one amplitude range, and the lighting attribute includes at least one of color, brightness and lighting frequency;
[0012] The determining the lighting control information according to the spectrum information and the lighting effect mapping rule includes:
[0013] For each frequency of the spectrum information, determine the vehicle light identification corresponding to the frequency according to the frequency and the vehicle light identification corresponding to the at least one frequency range; determine the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and the at least one amplitude range;
[0014] Determine that the light control information includes a vehicle light identification and a light attribute corresponding to the frequency.
[0015] Optionally, determining the vehicle light identification corresponding to the frequency according to the frequency and the vehicle light identification corresponding to the at least one frequency range includes:
[0016] determining, in the at least one frequency range, a target frequency range to which the frequency belongs;
[0017] The vehicle light identification corresponding to the target frequency range is determined as the vehicle light identification corresponding to the frequency.
[0018] Optionally, determining the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and the at least one amplitude range includes:
[0019] Determine, in the at least one amplitude range, a target amplitude range to which the amplitude corresponding to the frequency belongs;
[0020] The light attribute corresponding to the target amplitude range is determined as the light attribute corresponding to the frequency.
[0021] Optionally, controlling the first vehicle corresponding to the initiating end to play corresponding music includes:
[0022] At a first future moment, the music playing component in the first vehicle is controlled to play corresponding music.
[0023] Optionally, the method further includes:
[0024] The first future time is sent to the participating terminal, and the first future time indicates that the participating terminal controls the second vehicle to play the music corresponding to the playback information at the first future time.
[0025] Optionally, the method further includes:
[0026] Sending playback synchronization information to the participating end, wherein the playback synchronization information indicates the current progress or current time of the initiating end playing the music.
[0027] Optionally, the method further includes:
[0028] After the initiating end and the participating end are successfully networked, a request message is sent to the participating end, wherein the request message is used to request the participating end to participate in the music light show;
[0029] Receive response information corresponding to the request information sent by the participating end, where the response information is used by the initiating end to determine whether to send the playback information and the lighting effect mapping rule to the participating end.
[0030] In a second aspect, an embodiment of the present application provides a vehicle control device, which is applied to an initiating end and includes:
[0031] A first acquisition module is used to acquire playback information and a lighting effect mapping rule, wherein the playback information is used for the vehicles corresponding to the initiating end and the participating end to play the music corresponding to the playback information, and the lighting effect mapping rule is used for the initiating end and the participating end to determine the lighting control information of their respective vehicles, and the lighting control information is used to control the lights of the corresponding vehicles;
[0032] A sending module, used for sending the playing information and the lighting effect mapping rule to the participating terminals;
[0033] A first control module, used for controlling a first vehicle corresponding to the initiating end to play the music corresponding to the playing information;
[0034] A second acquisition module is used to acquire spectrum information corresponding to the music;
[0035] a determination module, configured to determine the lighting control information of the first vehicle according to the spectrum information and the lighting effect mapping rule;
[0036] The second control module is used to control the headlights of the first vehicle according to the headlight control information of the first vehicle.
[0037] Optionally, the lighting effect mapping rule includes a vehicle light identification corresponding to at least one frequency range and a lighting attribute corresponding to at least one amplitude range, and the lighting attribute includes at least one of color, brightness and lighting frequency;
[0038] Determine the module specifically for:
[0039] For each frequency of the spectrum information, determine the vehicle light identification corresponding to the frequency according to the frequency and the vehicle light identification corresponding to the at least one frequency range; determine the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and the at least one amplitude range;
[0040] Determine that the light control information includes a vehicle light identification and a light attribute corresponding to the frequency.
[0041] Optionally, determine whether the module is specifically used for:
[0042] determining, in the at least one frequency range, a target frequency range to which the frequency belongs;
[0043] The vehicle light identification corresponding to the target frequency range is determined as the vehicle light identification corresponding to the frequency.
[0044] Optionally, determine whether the module is specifically used for:
[0045] Determine, in the at least one amplitude range, a target amplitude range to which the amplitude corresponding to the frequency belongs;
[0046] The light attribute corresponding to the target amplitude range is determined as the light attribute corresponding to the frequency.
[0047] Optionally, the first control module is specifically used for:
[0048] At a first future moment, the music playing component in the first vehicle is controlled to play corresponding music.
[0049] Optionally, the sending module is also used to:
[0050] The first future time is sent to the participating terminal, and the first future time indicates that the participating terminal controls the second vehicle to play the music corresponding to the playback information at the first future time.
[0051] Optionally, the sending module is also used to:
[0052] Sending playback synchronization information to the participating end, wherein the playback synchronization information indicates the current progress or current time of the initiating end playing the music.
[0053] Optionally, the device further includes a receiving module:
[0054] The sending module is further used to send a request message to the participating end after the initiating end and the participating end are successfully networked, wherein the request message is used to request the participating end to participate in the music light show;
[0055] The receiving module is used to receive the response information corresponding to the request information sent by the participating end, and the response information is used by the initiating end to determine whether to send the playback information and the lighting effect mapping rule to the participating end.
[0056] In a third aspect, an embodiment of the present application provides a vehicle control device, including: a memory and a processor;
[0057] The memory stores computer-executable instructions;
[0058] The processor executes the computer-executable instructions stored in the memory, so that the processor performs any method of the first aspect.
[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement any one of the methods of the first aspect when the computer-executable instructions are executed by a processor.
[0060] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method of the first aspect when executed by a computer.
[0061] The vehicle control method, device, equipment and storage medium provided by the embodiment of the present application, in which the initiator controls the first vehicle corresponding to the initiator to play the music corresponding to the playback information, and controls the lights of the first vehicle according to the lighting control information; the initiator sends the playback information and the lighting effect mapping rule to the participant, and the participant plays the information to control the second vehicle corresponding to the participant to play the music corresponding to the playback information, and controls the lights of the second vehicle according to the lighting effect mapping rule, so that the first vehicle and the second vehicle can play music at the same time, and the lights indicated by the same light identification of the first vehicle and the second vehicle can flash according to, for example, the same color, the same brightness, and the same lighting frequency, which meets the user's demand for music light shows and improves the user experience. In addition, the music is played by the vehicle, and when the user travels, there is no need to set up an external audio device on the vehicle, making the user's travel more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions in the present application, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0063] Figure 1 A schematic diagram of an application scenario of the vehicle control method provided in this application;
[0064] Figure 2 One of the flow charts of the vehicle control method provided in this application;
[0065] Figure 3 A schematic diagram of a music file interface provided by an embodiment of the present application;
[0066] Figure 4 A schematic diagram of a frequency-headlight identification setting interface and an amplitude-light attribute setting interface provided in an embodiment of the present application;
[0067] Figure 5 The second flowchart of the vehicle control method provided by this application;
[0068] Figure 6The third flowchart of the vehicle control method provided in this application;
[0069] Figure 7 A schematic diagram of the structure of the vehicle control device provided in this application;
[0070] Figure 8 A schematic diagram of the hardware structure of the vehicle control device provided in this application.
[0071] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0072] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0073] In the present application, the term "include" and its variations may refer to non-limiting inclusion; the term "or" and its variations may refer to "and / or".
[0074] In the present application, the terms "first", "second", etc. are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence.
[0075] In this application, the term "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0076] In this application, the term "at least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.
[0077] In this application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the words "exemplary" or "for example" is intended to present the related concepts in a concrete way.
[0078] First, an exemplary description is given of the application scenarios of the vehicle control method provided in the present application.
[0079] Figure 1 A schematic diagram of an application scenario of the vehicle control method provided in this application. For example, Figure 1 As shown, it includes multiple vehicles, an initiating terminal and at least one participating terminal. The multiple vehicles include, for example, vehicle 1, vehicle 2 and vehicle 3. The initiating terminal is, for example, Figure 1 The initiator terminal 1 is shown. The at least one participant terminal includes a participant terminal 2 and a participant terminal 3.
[0080] This application does not limit the positional relationship between the initiating terminal and the vehicle and the positional relationship between the participating terminal and the vehicle. For example, the initiating terminal 1 can be set separately from the vehicle 1 or integrated; the participating terminal 2 can be set separately from the vehicle 2 or integrated, and the positional relationship between the participating terminal 3 and the vehicle 3 refers to the positional relationship between the participating terminal 2 and the vehicle 2. Figure 1 Take the example that the initiating terminal 1 is integrated with the vehicle 1, the participating terminal 2 is integrated with the vehicle 2, and the participating terminal 3 is integrated with the vehicle 3.
[0081] The initiator 1 can send the playback information and the lighting effect mapping rules to the participant terminals 2, 3 and 4.
[0082] The playback information sent by the initiator 1 is used to control the vehicle 1 to play the corresponding music; the lighting effect mapping rule sent by the initiator 1 is used to determine the lighting control information of the vehicle 1, and the lighting control information is used to control the lights of the vehicle 1.
[0083] The playback information received by the participant terminal 2 is used for the vehicle 2 to play the corresponding music; the lighting effect mapping rule received by the participant terminal 2 is used to determine the lighting control information of the vehicle 2, and the lighting control information is used to control the lights of the vehicle 2.
[0084] The playback information received by the participant terminal 3 is used for the vehicle 3 to play the corresponding music; the lighting effect mapping rule received by the participant terminal 3 is used to determine the lighting control information of the vehicle 3, and the lighting control information is used to control the lights of the vehicle 3.
[0085] The above play information can make vehicle 1, vehicle 2, and vehicle 3 play music at the same time, and the above light effect mapping rules can make the lights of vehicle 1, vehicle 2, and vehicle 3 flash at the same frequency, for example, to meet the user's demand for music light show and improve the user experience. In addition, the music is played by the vehicle, and when the user travels, there is no need to set up an external audio device on the vehicle, making the user's travel more convenient.
[0086] The technical solution of the present application is described in detail below in conjunction with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0087] Figure 2 This is one of the flow charts of the vehicle control method provided in this application. Figure 2 As shown, the method includes:
[0088] S201. Obtain playback information and lighting effect mapping rules. The playback information is used for the initiator and the participating end to play the music corresponding to the playback information in the vehicles corresponding to the initiator and the participating end respectively. The lighting effect mapping rules are used for the initiator and the participating end to determine lighting control information. The lighting control information is used to control the lights of the corresponding vehicle.
[0089] Optionally, the execution subject of the embodiment of the present application is the initiator, or a vehicle control device arranged in the initiator, and the vehicle control device can be implemented by a combination of software and / or hardware. The following description is made by taking the execution subject as the vehicle control device as an example.
[0090] In the case where the initiator is separated from the vehicle, the initiator is, for example, an Android device. The Android device may be a mobile phone, a tablet computer, etc. In the case where the initiator is integrated with the vehicle, the initiator may be a vehicle-mounted component built into the vehicle.
[0091] In the case where the participant terminal is separated from the vehicle, the participant terminal is, for example, an Android device. The Android device may be a mobile phone, a tablet computer, etc. In the case where the participant terminal is integrated with the vehicle, the participant terminal may be a vehicle-mounted component built into the vehicle.
[0092] The playing information includes, for example, at least one of a music file, a download link of the music file, or a name of the music file.
[0093] Optionally, obtaining the playback information includes: in response to a selection operation on a music file list in a music file interface, determining at least one of a music file selected by the selection operation, a download link of the music file, or a name of the music file as the playback information.
[0094] Combine the following Figure 3 , which provides a detailed description of the music file interface.
[0095] Figure 3 This is a schematic diagram of a music file interface provided by an embodiment of the present application. Figure 3 As shown, the music file interface includes a music file list. The music file list includes multiple music files. The multiple music files include music file 1, music file 2 and music file 3, for example.
[0096] exist Figure 3 On the basis of, for example, in response to a selection operation on music file 3 in the music file list, at least one of the music file 3 selected by the selection operation, the download link of music file 3, or the name of music file 3 can be determined as the playback information.
[0097] Optionally, the lighting effect mapping rule may include a vehicle light identification corresponding to at least one frequency range and / or a lighting attribute corresponding to at least one amplitude range.
[0098] Optionally, obtaining the lighting effect mapping rule includes: generating the lighting effect mapping rule in response to a first rule customization operation in the frequency-headlight identification setting interface and / or a second rule customization operation in the amplitude-light attribute setting interface.
[0099] Combine the following Figure 4 The frequency-headlight identification setting interface and the amplitude-light attribute setting interface are explained in detail.
[0100] Figure 4 Schematic diagram of the frequency-light identification setting interface and the amplitude-light attribute setting interface provided in the embodiment of the present application. Figure 4 As shown, it includes: interface 401, frequency-vehicle light identification setting interfaces 402 and 403, and amplitude-light attribute setting interfaces 404 and 405.
[0101] Interface 401 includes: "Frequency-vehicle light identification setting" option and "Amplitude-light attribute setting" option.
[0102] In response to a touch operation on the “Frequency-Headlight Signage Setting” option in the interface 401 , a frequency-headlight signage setting interface 402 may be displayed.
[0103] The frequency-headlight identification setting interface 402 includes "frequency range setting" and "headlight identification setting". "Frequency range setting" is used to customize at least one frequency range. "Headlight identification setting" is used to customize the headlight identification corresponding to the frequency range. The headlight identification may include at least one of "headlight", "taillight", "left turn signal", and "right turn signal". Among them, "headlight" indicates that the headlight of the vehicle is on within the customized frequency range; "taillight" indicates that the taillight of the vehicle is on within the customized frequency range; "left turn signal" indicates that the left turn signal of the vehicle is on within the customized frequency range; "right turn signal" indicates that the right turn signal of the vehicle is on within the customized frequency range.
[0104] In response to the first rule customization operation in the frequency-headlight identification setting interface 402 , for example, the frequency range is set to “AB” and the headlight identification is set to “headlight” in the frequency-headlight identification setting interface 402 . For details, please refer to the frequency-headlight identification setting interface 403 .
[0105] In response to a touch operation on the “Amplitude-Lighting Property Setting” option in the interface 401 , an amplitude-lighting property setting interface 404 may be displayed.
[0106] The amplitude-light attribute setting interface 404 includes "amplitude range setting" and "light attribute setting". "Amplitude range setting" is used to customize at least one amplitude range. "Light attribute setting" is used to customize the light attribute corresponding to the amplitude range. The light attribute includes at least one of a color option, a brightness option, and a lighting frequency option. Among them, the color option is used to customize the color of the light, the brightness option is used to customize the brightness of the light, and the lighting frequency option is used to customize the lighting frequency of the light.
[0107] In response to the second rule customization operation in the amplitude-lighting attribute setting interface 404, for example, setting the amplitude range to "AB", the light color to "red", the light brightness to "80lm (lumens)", and the light lighting frequency to "70Hz (Hertz)" in the amplitude-lighting attribute setting interface 404, for details, please refer to the amplitude-lighting attribute setting interface 405.
[0108] After the first rule customization operation and / or the second rule customization operation is completed, the initiator generates a lighting effect mapping rule according to the settings in the frequency-vehicle light identification setting interface 403 and / or the amplitude-light attribute setting interface 405 .
[0109] S202: Send playback information and lighting effect mapping rules to participating terminals.
[0110] After receiving the playback information and the lighting effect mapping rules, the participating end controls the second vehicle corresponding to the participating end to play the music corresponding to the received playback information; obtains the spectrum information corresponding to the music; determines the lighting control information according to the spectrum information and the lighting effect mapping rules; and controls the lights of the second vehicle according to the lighting control information.
[0111] The method in which the participant terminal controls the second vehicle corresponding to the participant terminal to play the music corresponding to the received playback information is similar to the method in S203. For details, please refer to S203.
[0112] The method for the participating end to obtain the spectrum information corresponding to the music is similar to the method in S204. For details, please refer to S204.
[0113] The method in which the participating end determines the lighting control information according to the spectrum information and the lighting effect mapping rule is similar to the method in S205. For details, please refer to S205.
[0114] The method in which the participating end controls the lights of the second vehicle according to the light control information is similar to the method in S206. For details, please refer to S206.
[0115] S203: Control the first vehicle corresponding to the initiating end to play the music corresponding to the playback information.
[0116] When the initiator is set separately from the vehicle, the physical communication interface on the initiator is connected to the first vehicle through a universal serial bus (USB) to universal asynchronous receiver / transmitter (UART) or a USB to serial peripheral interface (SPI) circuit module, and sends playback information to a music playback component (MediaPlayer) in the first vehicle, and plays music corresponding to the playback information through the music playback component.
[0117] The physical communication interface is, for example, a Type-A / Type-B / Type-C communication interface supporting the USB protocol.
[0118] In the case where the initiator is integrated with the vehicle, the initiator controls the music playing component in the first vehicle to play the music corresponding to the playing information.
[0119] S204: Obtain frequency spectrum information corresponding to the music.
[0120] Optionally, a Fast Fourier Transform (FFT) is performed on the music signal through a visualization tool (Visualizer) at the initiating end to obtain spectrum information corresponding to the music.
[0121] S205: Determine lighting control information according to the spectrum information and the lighting effect mapping rule.
[0122] In the process of S205, the lighting effect mapping rule may include a vehicle light identification corresponding to at least one frequency range; for each frequency of the spectrum information, the vehicle light identification corresponding to the frequency is determined according to the frequency and the vehicle light identification corresponding to at least one frequency range;
[0123] The light control information may include a vehicle light identifier corresponding to the frequency.
[0124] Optionally, determining the headlight identification corresponding to the frequency according to the frequency and the headlight identification corresponding to at least one frequency range includes: determining a target frequency range to which the frequency belongs in at least one frequency range; and determining the headlight identification corresponding to the target frequency range as the headlight identification corresponding to the frequency.
[0125] For example, at least one frequency range may include 50Hz-100Hz and 110Hz-150Hz, wherein the vehicle lights corresponding to 50Hz-100Hz are marked as "headlights" and "taillights", and the vehicle lights corresponding to 110Hz-150Hz are marked as "left turn signal". If the target frequency range to which the frequency belongs is 50Hz-100Hz, the vehicle lights corresponding to the frequency are marked as "headlights" and "taillights", and if the target frequency range to which the frequency belongs is 110Hz-150Hz, the vehicle lights corresponding to the frequency are marked as "left turn signal".
[0126] S206: Control the lights of the first vehicle according to the light control information.
[0127] In the case where the light control information includes a light identification corresponding to a frequency, controlling the light of the first vehicle includes: sending the light control information to an onboard control board of the first vehicle through a USB to UART or USB to SPI circuit module, so that a microcontroller unit (MCU) of the onboard control board controls the light corresponding to the light identification corresponding to each frequency according to the light control information.
[0128] exist Figure 2In the embodiment, the initiating end controls the first vehicle corresponding to the initiating end to play the music corresponding to the playback information, and controls the lights of the first vehicle according to the light control information; the participating end controls the second vehicle corresponding to the participating end to play the music corresponding to the playback information, and controls the lights of the second vehicle according to the light control information, so that the first vehicle and the second vehicle can play music at the same time, and the lights indicated by the same light identification of the first vehicle and the second vehicle can flash according to, for example, the same color, the same brightness, and the same lighting frequency, which meets the user's demand for music light shows and improves the user experience. In addition, the music is played by the vehicle, and when the user travels, there is no need to set up an external audio device on the vehicle, making the user's travel more convenient.
[0129] Figure 5 This is the second flow chart of the vehicle control method provided by this application. Figure 5 As shown, the method includes:
[0130] S501. Acquire playback information and a lighting effect mapping rule, where the lighting effect mapping rule includes a vehicle light identification corresponding to at least one frequency range and a lighting attribute corresponding to at least one amplitude range.
[0131] S502: Send playback information and lighting effect mapping rules to participating terminals.
[0132] S503: Control the first vehicle corresponding to the initiating end to play the music corresponding to the playback information.
[0133] S504: Obtain frequency spectrum information corresponding to the music.
[0134] Specifically, the execution method of S502-S504 is the same as the execution method of S202-S204, and the execution method of S502-S504 is not repeated here.
[0135] S505: For each frequency of the spectrum information, determine a vehicle headlight identification corresponding to the frequency according to the frequency and a vehicle headlight identification corresponding to at least one frequency range.
[0136] Optionally, a target frequency range to which the frequency belongs may be determined in at least one frequency range; and a vehicle light identification corresponding to the target frequency range may be determined as the vehicle light identification corresponding to the frequency.
[0137] For example, at least one frequency range may include 10Hz-50Hz and 60Hz-100Hz, wherein the light corresponding to 10Hz-50Hz is identified as "tail light", and the light corresponding to 60Hz-100Hz is identified as "left turn signal". If the target frequency range to which the frequency belongs is 10Hz-50Hz, the light corresponding to the frequency is identified as "tail light".
[0138] S506. For each frequency of the spectrum information, determine the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and at least one amplitude range.
[0139] Optionally, a target amplitude range to which the amplitude corresponding to the frequency belongs may be determined in at least one amplitude range; and the light attribute corresponding to the target amplitude range may be determined as the light attribute corresponding to the frequency.
[0140] For example, at least one amplitude range includes 10-20dB and 20-30dB, wherein the light attribute corresponding to 10-20dB includes "yellow", and the light attribute corresponding to 20-30dB includes "70Hz". If the target amplitude range of the amplitude corresponding to the frequency is 10-20dB, the light attribute corresponding to the frequency is "yellow".
[0141] S507: Determine that the light control information includes a vehicle light identification and a light attribute corresponding to each frequency of the spectrum information.
[0142] The above S505-S507 are the detailed execution methods of S205.
[0143] S508: Control the lights of the first vehicle according to the light control information.
[0144] Specifically, the execution method of S508 is the same as the execution method of S206, and the execution method of S508 is not repeated here.
[0145] Figure 5 The method shown in the embodiment Figure 2 The methods shown in the embodiments have the same beneficial effects and will not be described in detail here.
[0146] Figure 6 This is the third flow chart of the vehicle control method provided by this application. Figure 6 As shown, the method includes:
[0147] S601. After the initiating end and the participating end are successfully networked, a request message is sent to the participating end, where the request message is used to request the participating end to participate in the music light show.
[0148] Optionally, the initiating end includes a preset short-distance communication library, and the participating end includes a preset short-distance communication library. The initiating end and the participating end are wirelessly connected through the preset short-distance communication library, thereby forming a one-to-many or many-to-many local area network.
[0149] Among them, the preset short-range communication library can adaptively adopt the best connection method among multiple wireless connection methods to enable the initiator and the participant to establish wireless connection.
[0150] The various wireless connection methods include, for example, a Near Field Communication (NFC) method, a Bluetooth (BLUETOOTH) method, or a Wireless Fidelity (WIFI) method.
[0151] When the wireless connection mode is NFC, the initiator sends the request information to the participant via NFC.
[0152] When the wireless connection mode is BLUETOOTH, the initiator sends a request message to the participant via BLUETOOTH.
[0153] When the wireless connection mode is WIFI, the initiator sends the request information to the participant via WIFI.
[0154] S602: The participating end sends response information corresponding to the request information to the initiating end. The response information is used by the initiating end to determine whether to send the playback information and the lighting effect mapping rule to the participating end.
[0155] Correspondingly, the initiating end receives the response information corresponding to the request information sent by the participating end.
[0156] The response information may include at least one of a verification code and a confirmation character.
[0157] The confirmation character is used to instruct the participating end to participate in the music and light show.
[0158] The verification code is used by the initiator to determine whether to send playback information and lighting effect mapping rules to the participating end.
[0159] After receiving the response information, if the initiator determines that the verification code is the same as the preset verification code, it sends the play information and the lighting effect mapping rules to the participant. The preset verification code can be determined by negotiation between the user of the initiator and the user of the participant.
[0160] S603: Obtain playback information and lighting effect mapping rules.
[0161] Specifically, the execution method of S602 is the same as the execution method of S201, and the execution method of S602 is not repeated here.
[0162] S604: Send playback information and lighting effect mapping rules to participating terminals.
[0163] Specifically, the execution method of S604 is the same as the execution method of S202, and the execution method of S604 is not repeated here.
[0164] S605. At a first future moment, control the first vehicle corresponding to the initiating end to play the music corresponding to the playback information.
[0165] Optionally, the first future moment is a user-defined moment. At the first future moment, the initiator can control the music playing component in the first vehicle to play the music corresponding to the playing information.
[0166] For example, if the first future time is 10:30, the initiator can control the music playing component in the first vehicle to play the music corresponding to the playing information at 10:30.
[0167] S606. Send a first future time to the participating terminal, where the first future time instructs the participating terminal to control the second vehicle to play music corresponding to the playback information at the first future time.
[0168] After receiving the first future time, the participating terminal controls the music playing component in the second vehicle to play the music corresponding to the playing information at the first future time (for example, 10:30).
[0169] S607: Obtain frequency spectrum information corresponding to the music.
[0170] Specifically, the execution method of S607 is the same as the execution method of S204, and the execution method of S607 is not repeated here.
[0171] S608: Determine lighting control information according to the spectrum information and lighting effect mapping rules.
[0172] Specifically, the execution method of S608 is the same as the execution method of S205, and the execution method of S608 is not repeated here.
[0173] S609: Control the lights of the first vehicle according to the light control information.
[0174] Specifically, the execution method of S609 is the same as the execution method of S206, and the execution method of S609 is not repeated here.
[0175] S610: Sending playback synchronization information to the participating end, where the playback synchronization information indicates the current progress or current time of the music played by the initiating end.
[0176] The initiator can send the playback synchronization information to the participant at a preset period, wherein the period can be a period defined by the user of the initiator, for example, 10 seconds.
[0177] After receiving the playback synchronization information, the participating terminal adjusts the progress of the music played by the second vehicle according to the playback synchronization information. Optionally, the progress of the music played by the second vehicle can be adjusted in the user interface (UI) of the second vehicle.
[0178] Optionally, the initiator may send playback synchronization information to the participant before or after any step in S607-S609. Figure 6The embodiment is described by taking the example that the initiator sends the play synchronization information after S609.
[0179] exist Figure 6 In the embodiment, the initiating end controls the first vehicle to play the music corresponding to the playback information at the first future time, and the participating end controls the second vehicle to play the music corresponding to the playback information at the first future time, so that the first vehicle and the second vehicle can play music at the same time. In addition, the initiating end sends playback synchronization information to the participating end, so that the participating end can adjust the progress of the music played by the second vehicle according to the playback synchronization information, so that the progress of the music played by the first vehicle and the second vehicle is consistent, which meets the user's demand for music light show and improves the user experience.
[0180] Figure 7 The schematic diagram of the structure of the vehicle control device provided by the present application is shown in FIG. 70. The device 70 is applied to the initiating end, such as Figure 7 As shown, the device 70 may include:
[0181] The first acquisition module 701 is used to acquire playback information and lighting effect mapping rules. The playback information is used for the initiator and the participant to play the music corresponding to the playback information in the vehicles corresponding to the initiator and the participant, and the lighting effect mapping rules are used for the initiator and the participant to determine the lighting control information of their respective vehicles. The lighting control information is used to control the lights of the corresponding vehicles.
[0182] The sending module 702 is used to send the playing information and the lighting effect mapping rules to the participating terminals;
[0183] The first control module 703 is used to control the first vehicle corresponding to the initiating end to play the music corresponding to the playback information;
[0184] The second acquisition module 704 is used to acquire the spectrum information corresponding to the music;
[0185] A determination module 705, configured to determine the lighting control information of the first vehicle according to the spectrum information and the lighting effect mapping rule;
[0186] The second control module 706 is used to control the headlights of the first vehicle according to the headlight control information of the first vehicle.
[0187] The vehicle control device provided in this embodiment is used to execute the method executed by the initiator in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be described in detail.
[0188] Optionally, the lighting effect mapping rule includes at least one vehicle light identification corresponding to a frequency range and at least one lighting attribute corresponding to an amplitude range, and the lighting attribute includes at least one of color, brightness, and lighting frequency;
[0189] The determination module 705 is specifically used for:
[0190] For each frequency of the spectrum information, determine the vehicle light identification corresponding to the frequency according to the frequency and the vehicle light identification corresponding to at least one frequency range; determine the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and at least one amplitude range;
[0191] The light control information includes a light identification and light attributes corresponding to the frequency.
[0192] Optionally, the determination module 705 is specifically configured to:
[0193] determining, in at least one frequency range, a target frequency range to which a frequency belongs;
[0194] The vehicle light identification corresponding to the target frequency range is determined as the vehicle light identification corresponding to the frequency.
[0195] Optionally, the determination module 705 is specifically configured to:
[0196] Determine, in at least one amplitude range, a target amplitude range to which the amplitude corresponding to the frequency belongs;
[0197] The light attribute corresponding to the target amplitude range is determined as the light attribute corresponding to the frequency.
[0198] Optionally, the first control module 703 is specifically configured to:
[0199] At a first future moment, the music playing component in the first vehicle is controlled to play corresponding music.
[0200] Optionally, the sending module 702 is further configured to:
[0201] A first future time is sent to the participating terminal, and the first future time indicates that the participating terminal controls the second vehicle to play the music corresponding to the playback information at the first future time.
[0202] Optionally, the sending module 702 is further configured to:
[0203] Sending playback synchronization information to the participating end, the playback synchronization information indicates the current progress or current time of the music played by the initiating end.
[0204] Optionally, the device further includes a receiving module 707:
[0205] The sending module 702 is also used to send a request message to the participating end after the initiating end and the participating end are successfully networked, and the request message is used to request the participating end to participate in the music light show;
[0206] The receiving module 707 is used to receive the response information corresponding to the request information sent by the participating end, and the response information is used by the initiating end to determine whether to send the playing information and the lighting effect mapping rule to the participating end.
[0207] The vehicle control device provided in this embodiment is used to execute the method executed by the initiator in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be described in detail.
[0208] Figure 8 The hardware structure diagram of the vehicle control device provided in this application. The vehicle control device is an initiator, and the vehicle control device can execute the vehicle control method of any of the above embodiments. Figure 8 As shown, the vehicle control device 80 may include: a memory 801 and a processor 802. Optionally, the vehicle control device 80 may further include a transceiver 803.
[0209] The memory 801 (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.
[0210] The processor 802 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0211] The memory 801 stores computer executable instructions;
[0212] The processor 802 executes the computer-executable instructions stored in the memory, so that the processor executes the method in the above embodiment.
[0213] The transceiver 803 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port, a transmission interface, or the like, and the receiver may also be referred to as a receiver, a reception port, a reception interface, or the like.
[0214] Exemplarily, the memory 801 , the processor 802 , and the transceiver 803 are interconnected via a bus 804 .
[0215] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method in the above embodiment.
[0216] The present application also provides a computer program product, which includes a computer program. When the computer program is executed by a computer, the method in the above embodiment is implemented.
[0217] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0218] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0219] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0220] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.
[0221] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
Claims
1. A vehicle control method, characterized in that: Applied to the initiating end, the method includes: Acquire playback information and lighting effect mapping rules, and send the playback information and the lighting effect mapping rules to the participating end; the playback information is used for the vehicles corresponding to the initiating end and the participating end to play the music corresponding to the playback information, and the lighting effect mapping rules are used for the initiating end and the participating end to determine lighting control information, and the lighting control information is used to control the lights of the corresponding vehicles; Controlling the first vehicle corresponding to the initiating end to play the music corresponding to the playing information; Obtaining spectrum information corresponding to the music; Determining lighting control information according to the spectrum information and the lighting effect mapping rule; The headlights of the first vehicle are controlled according to the light control information.
2. The method according to claim 1, characterized in that The lighting effect mapping rule includes at least one vehicle light identification corresponding to a frequency range and at least one lighting attribute corresponding to an amplitude range, wherein the lighting attribute includes at least one of color, brightness and lighting frequency; The determining the lighting control information according to the spectrum information and the lighting effect mapping rule includes: For each frequency of the spectrum information, determine the vehicle light identification corresponding to the frequency according to the frequency and the vehicle light identification corresponding to the at least one frequency range; determine the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and the at least one amplitude range; Determine that the light control information includes a vehicle light identification and a light attribute corresponding to the frequency.
3. The method according to claim 2, characterized in that The determining, according to the frequency and the vehicle light identification corresponding to the at least one frequency range, the vehicle light identification corresponding to the frequency includes: determining, in the at least one frequency range, a target frequency range to which the frequency belongs; The vehicle light identification corresponding to the target frequency range is determined as the vehicle light identification corresponding to the frequency.
4. The method according to claim 2, characterized in that: The determining the light attribute corresponding to the frequency according to the light attribute corresponding to the frequency and the at least one amplitude range includes: Determine, in the at least one amplitude range, a target amplitude range to which the amplitude corresponding to the frequency belongs; The light attribute corresponding to the target amplitude range is determined as the light attribute corresponding to the frequency.
5. The method according to any one of claims 1 to 4, characterized in that: The controlling the first vehicle corresponding to the initiating end to play the corresponding music includes: At a first future moment, the music playing component in the first vehicle is controlled to play corresponding music.
6. The method according to claim 5, characterized in that The method further comprises: The first future time is sent to the participating terminal, and the first future time indicates that the participating terminal controls the second vehicle to play the music corresponding to the playback information at the first future time.
7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Sending playback synchronization information to the participating end, wherein the playback synchronization information indicates the current progress or current time of the initiating end playing the music.
8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: After the initiating end and the participating end are successfully networked, a request message is sent to the participating end, wherein the request message is used to request the participating end to participate in the music light show; Receive response information corresponding to the request information sent by the participating end, where the response information is used by the initiating end to determine whether to send the playback information and the lighting effect mapping rule to the participating end.
9. A vehicle control device, characterized in that: Applied to the initiating end, the device comprises: A first acquisition module is used to acquire playback information and a lighting effect mapping rule, wherein the playback information is used for the vehicles corresponding to the initiating end and the participating end to play the music corresponding to the playback information, and the lighting effect mapping rule is used for the initiating end and the participating end to determine the lighting control information of their respective vehicles, and the lighting control information is used to control the lights of the corresponding vehicles; A sending module, used for sending the playing information and the lighting effect mapping rule to the participating terminals; A first control module, used for controlling a first vehicle corresponding to the initiating end to play the music corresponding to the playing information; A second acquisition module is used to acquire spectrum information corresponding to the music; a determination module, configured to determine the lighting control information of the first vehicle according to the spectrum information and the lighting effect mapping rule; The second control module is used to control the headlights of the first vehicle according to the headlight control information of the first vehicle.
10. A vehicle control device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when executed by a computer.