WO2024051761A1 - Vehicle control method, apparatus and system, and readable storage medium - Google Patents

Vehicle control method, apparatus and system, and readable storage medium Download PDF

Info

Publication number
WO2024051761A1
WO2024051761A1 PCT/CN2023/117372 CN2023117372W WO2024051761A1 WO 2024051761 A1 WO2024051761 A1 WO 2024051761A1 CN 2023117372 W CN2023117372 W CN 2023117372W WO 2024051761 A1 WO2024051761 A1 WO 2024051761A1
Authority
WO
WIPO (PCT)
Prior art keywords
music
exterior light
service
vehicle
output
Prior art date
Application number
PCT/CN2023/117372
Other languages
French (fr)
Chinese (zh)
Inventor
柴华
Original Assignee
长城汽车股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 长城汽车股份有限公司 filed Critical 长城汽车股份有限公司
Publication of WO2024051761A1 publication Critical patent/WO2024051761A1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q1/00Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor
    • B60Q1/26Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to indicate the vehicle, or parts thereof, or to give signals, to other traffic
    • B60Q1/50Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to indicate the vehicle, or parts thereof, or to give signals, to other traffic for indicating other intentions or conditions, e.g. request for waiting or overtaking
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the present application relates to the field of vehicle control, and in particular, to a vehicle control method, device, system and readable storage medium.
  • this application provides a vehicle control method, device and system.
  • the specific solution is as follows:
  • a vehicle control method including:
  • the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
  • the vehicle's vehicle control service is called based on the lighting control request, including:
  • the vehicle's vehicle control service is called to obtain at least the vehicle's current driving status, power status, hazard warning light status, and turn signal status.
  • the vehicle's music service is called, and the corresponding pair of music interfaces are called based on the music service to output preset music based on the music interface, including:
  • the vehicle's music service is called, and the corresponding music interface is called based on the music service to output based on the music interface Preset music.
  • Exterior lights output light including:
  • the first lighting mode corresponding to the music type of the preset music is determined, the music service is called, and the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode is called through the music service, so that The exterior light output light in the corresponding exterior light module is controlled through the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode.
  • Exterior lights output light including:
  • the corresponding second output frequency band is determined based on the previously stored correspondence between the music and the lighting mode.
  • the exterior light service is called, and the exterior light interface corresponding to the third lighting mode is called through the exterior light service, so that the exterior light interface can be controlled through the called exterior light interface. Control the exterior light output light in the corresponding exterior light module.
  • the vehicle stops outputting the preset music and stops calling the exterior light service to stop outputting lights that match the preset music.
  • a vehicle control system including:
  • the first obtaining unit is used to obtain the lighting control request
  • the second acquisition unit is used to call the vehicle control service of the vehicle based on the lighting control request
  • a control unit configured to call the music service of the vehicle when it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, and call the corresponding music interface based on the music service to output preset music based on the music interface;
  • a determination unit configured to determine a lighting mode matching the preset music output by the vehicle based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service , so that the exterior light output light in the corresponding exterior light module can be controlled through the called exterior light interface.
  • a vehicle control device including:
  • Audio output module used to output music
  • Exterior light module used to output light
  • Controller used to obtain lighting control requests
  • the vehicle's vehicle control service is called based on the lighting control request; if it is determined that the vehicle's current operating status meets the lighting control conditions based on the vehicle control service, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output based on the music interface Preset music; based on the correspondence between pre-stored music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light service, and call the exterior light interface corresponding to the lighting mode that matches the preset music through the exterior light service. In order to control the exterior light output light in the corresponding exterior light module through the called exterior light interface.
  • a readable storage medium for storing at least a set of instructions
  • the instruction set is used to call and execute at least one of the above vehicle control methods.
  • Figure 1 is a flow chart of a vehicle control method disclosed in an embodiment of the present application.
  • Figure 2 is a flow chart of a vehicle control method disclosed in the embodiment of the present application.
  • Figure 3 is a flow chart of a vehicle control method disclosed in the embodiment of the present application.
  • Figure 4 is a flow chart of a vehicle control method disclosed in the embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a vehicle control system disclosed in the embodiment of the present application.
  • Figure 6 is a schematic structural diagram of a vehicle control device disclosed in an embodiment of the present application.
  • Step S11 Obtain the lighting control request
  • Step S12 Call the vehicle control service of the vehicle based on the lighting control request
  • Step S13 If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
  • Step S14 Based on the pre-stored correspondence between music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light (external car light) service, and call the lighting mode corresponding to the preset music through the exterior light service external light interface so that by calling the external The light interface controls the exterior light output light in the corresponding exterior light module.
  • controlling the vehicle's lights it at least includes controlling the lights while the vehicle is driving, such as: controlling the left turn signal to flash when turning left, and controlling the brake lights to light up when braking; in addition,
  • the car lights can also be controlled in a lighting mode that matches the music.
  • the lighting mode that matches the music is controlled, and the interface of each exterior light in the exterior light module is called through the SOA architecture (service-oriented architecture). Achieve control of different lighting modes and achieve rapid iteration.
  • Obtaining the lighting control request can be: the user triggers a specific button, and the specific button outputs a lighting control request so that the vehicle control system (vehicle control unit) (such as the central computing unit (central computing unit) or the audio-visual entertainment system (in- Vehicle audio and video entertainment unit)) controls the lighting mode that matches the music based on this specific button; or it can also be: the user inputs specific instructions on the human-computer interaction interface so that the system obtains the lighting control request; or it can also be is: used to input voice. Based on the analysis of the voice, the system determines that the user requests control of the lighting mode that matches the music.
  • vehicle control unit vehicle control unit
  • central computing unit central computing unit
  • audio-visual entertainment system in- Vehicle audio and video entertainment unit
  • the vehicle control system After obtaining the lighting control request, the vehicle control system directly calls the vehicle's vehicle control service to control the vehicle based on the lighting control request. After obtaining the lighting control request, it is first necessary to determine whether the current operating status of the vehicle meets the lighting control conditions. Therefore, it is first necessary to determine the current operating status of the vehicle based on the vehicle control service.
  • the subsequent lighting mode control will be terminated and a prompt message will be output to make the user clear that the current vehicle does not meet the lighting control conditions; if it is determined that the current operating status of the vehicle meets the lighting control conditions, Then call the exterior light service to call the corresponding exterior light interface as needed to achieve lighting control. Specifically, you can first call the vehicle's music service, and call the corresponding music interface under the music service through the music service to output preset music based on the music interface. , that is, calling the music interface to make the vehicle's audio-visual entertainment system output preset music.
  • the system While the vehicle outputs the preset music, the system will determine the lighting mode that matches the preset music. That is, the system will pre-store the corresponding relationships between different music and lighting modes. As long as the preset music output by the vehicle is the pre-stored correspondence. For any of the relationships, you can directly determine the lighting mode corresponding to the preset music through the corresponding relationship, call the exterior light service, and then directly call the exterior light interface under the exterior light service corresponding to the lighting mode to control the exterior light corresponding to the called exterior light interface. in module The external lights can output light.
  • an exterior light interface corresponds to an exterior light in the exterior light module.
  • the first exterior light interface corresponds to the left front high beam
  • the second exterior light interface corresponds to the right front high beam.
  • the first exterior light needs to be called.
  • interface and the second exterior light interface directly call the first exterior light interface and the second exterior light interface.
  • the corresponding relationship stored in the system can be directly adjusted.
  • the lighting mode corresponding to the pre-stored music can be modified, or music not stored in the system can be added to match the newly added lighting mode. correspond.
  • the exterior light module of the vehicle includes the exterior lights of the vehicle.
  • the exterior lights include: left front high beam, right front high beam, left rear brake light, right rear brake light, left front turn signal, right front turn signal, left rear Turn signal, right rear turn signal, left front fog lamp, right front fog lamp, left rear fog lamp, right rear fog lamp, left front daytime driving lane, etc., right front daytime driving lane, left front dipped beam, right front dipped beam, license plate Lights etc.
  • the vehicle's exterior light service includes the external interfaces of each of the above-mentioned exterior lights. Calling the exterior light service is a prerequisite for calling any exterior light. After calling the exterior light service, the called exterior light interface can control the lighting of the corresponding exterior light.
  • the control of lighting and music output is realized by calling various basic services in the system, such as vehicle control service, exterior light service, music service, etc., and when the lighting mode needs to be changed, different calls are made through the exterior light service.
  • the external light interface realizes the output of different lighting modes in different modes. By reassembling the service interface, the development cycle is shortened and the iteration speed of functions is improved.
  • the vehicle control method disclosed in this embodiment is executed by the vehicle control system, and it is implemented under the SOA architecture, that is, the vehicle control system obtains the lighting control request, and the vehicle control system calls based on the lighting control request.
  • the vehicle control service of the vehicle The vehicle control system determines that the current operating status of the vehicle meets the lighting control conditions based on the vehicle control service, calls the vehicle's music service, and calls the corresponding music interface based on the music service to output preset music based on the music interface. Based on the pre-stored correspondence between music and lighting modes, the vehicle control system determines the mode that matches the preset music output by the vehicle, calls the exterior light service, and adjusts the lighting mode through the exterior light service. Use the exterior light interface corresponding to the mode matching the preset music to control the exterior light output light in the corresponding exterior light module through the called exterior light interface;
  • the audio and video entertainment system can also be: executed by the audio and video entertainment system of the vehicle, that is, the audio and video entertainment system obtains the lighting control request, the audio and video entertainment system calls the vehicle's vehicle control service based on the lighting control request, and the audio and video entertainment system determines the current operation of the vehicle based on the vehicle control service.
  • the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface.
  • the audio-visual entertainment system determines the corresponding relationship between the music and the lighting mode based on the pre-stored music and lighting modes. Preset the lighting mode matching the music, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so that the exterior light output light in the corresponding exterior light module can be controlled through the called exterior light interface.
  • This embodiment discloses a vehicle control method, the flow chart of which is shown in Figure 2, including:
  • Step S21 Obtain the lighting control request
  • Step S22 Call the vehicle control service of the vehicle based on the lighting control request to obtain at least the current driving status, power status, hazard warning light status and turn signal status of the vehicle;
  • Step S23 If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service, so as to control the vehicle to output preset music based on the music interface;
  • Step S24 Based on the pre-stored correspondence between music and lighting modes, determine the lighting mode matching the preset music output by the vehicle, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so that The exterior light output light in the corresponding exterior light module is controlled through the called exterior light interface.
  • the current operating status of the vehicle at least includes: the current driving status, power status, hazard warning light status and turn signal status of the vehicle.
  • the current operating status of the vehicle can also include other information, such as: braking status, fuel tank valve status, etc., this implementation This example takes the vehicle's current driving status, power status, hazard warning light status, and turn signal status as examples.
  • the current operating status of the vehicle meets the lighting control conditions: each of the current operating status of the vehicle Each state satisfies the lighting control conditions, that is: the current driving state of the vehicle is stopped, the power state is that the power supply is in normal power supply state, the hazard warning light state is off, and the turn signal is also off.
  • the current driving state of the vehicle is a stopped state, which can be: determining that the vehicle's gear is in the parking gear P, or the vehicle is in a parking brake state, or determining that the vehicle is currently in parking through an image acquisition device installed on the vehicle field, it is determined that the vehicle is currently in a stopped state, etc.
  • the power supply is in a normal power supply state, which can be: the status bit of the power supply is ON; the hazard warning light is off, which can be: the hazard warning light is OFF; the turn signal is off, which can be: the turn signal status is OFF.
  • the system will not call the music interface to control the vehicle to output preset music, or the vehicle can call the music interface to output preset music. However, after outputting the preset music, it will not The exterior light service and exterior light interface will be called, and the vehicle's exterior light module will be controlled to output a lighting mode that matches the preset music to ensure the safety of the vehicle.
  • the system When there is an operating state that does not meet the lighting control conditions, the system will output a prompt message to remind the user that the lighting mode cannot be started to match the music, and the prompt message will indicate that the state that does not meet the lighting control conditions is the vehicle's Driving status, power status, danger and other alarm status and/or turn signal status.
  • the current driving status, power status, hazard warning light status and turn signal status of the vehicle are provided by the vehicle control system to the audio and video entertainment system.
  • the vehicle power supply status can be provided by the first core of the vehicle control system. , driving status, exterior light status, exterior light control, window control and other basic service interfaces.
  • the first core of the vehicle control system converts the service interface into signals through S2S and sends them to the second core of the vehicle control system.
  • the second core performs the above-mentioned basic services such as vehicle power status, driving status, exterior light status, exterior light control, and window control.
  • This embodiment discloses a vehicle control method, the flow chart of which is shown in Figure 3, including:
  • Step S31 Obtain the lighting control request
  • Step S32 Call the vehicle control service of the vehicle based on the lighting control request
  • Step S33 If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
  • Step S34 Determine the music type of the preset music output by the vehicle
  • Step S35 Determine the first lighting mode corresponding to the music type of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and use the exterior light service to call the exterior lights of the exterior lights in the exterior light module required for the first lighting mode. interface to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light required to implement the first lighting mode.
  • Determining the music type of the preset music output by the vehicle can be: Determine the output language of the preset music, that is, determine whether the preset music belongs to Chinese songs, English songs, or Japanese songs, etc. For music with different output voices, use different lights. Mode output lights to enable users to achieve different experience effects of music in different languages on the vehicle's music and light show;
  • the corresponding relationship between the pre-stored music and the lighting mode is actually the pre-stored corresponding relationship between different music types and different lighting modes.
  • the preset music is directly analyzed to determine the preset The music type of the music, so that the pre-stored correspondence can be searched based on the music type to determine the first lighting mode corresponding to the music type of the preset music, so that the exterior light module can be controlled to output light in the first lighting mode.
  • calling the exterior light service can be: when calling the music service and outputting preset music through the music interface under the music service, the system will request the exterior light control in the vehicle control system to open the service interface through the SOA architecture, such as: Remote Light service opening interface, low beam service opening interface, brake light service opening interface, etc.
  • the vehicle control system will report that the service execution is successful.
  • the information is fed back to the audio-visual entertainment system, and the service is synchronously converted into signals and sent to the exterior light module, so that the exterior light module can turn on the successful exterior light lighting through the CAN signal drive service interface to execute high beam, low beam, and brake lights. Wait for the light to turn on.
  • the system can also be: store the corresponding relationship between music types and different lighting modes in the exterior light module.
  • After the system calls the music service and calls the music interface through the music service to control the vehicle to output the preset music, it directly sends the preset music to
  • the exterior light module analyzes the preset music to determine the music type of the preset music, finds the first lighting mode corresponding to the music type, and calls the exterior light service, so that the exterior light module turns on and calls the corresponding function under the exterior light service.
  • the corresponding relationship between music types and different lighting modes is stored in the exterior light module.
  • the system analyzes the preset music and determines the preset music.
  • the music type of the music and then directly sends the music type of the preset music to the exterior light module.
  • the exterior light module searches for the pre-stored correspondence to determine the first lighting mode corresponding to the music type of the preset music, thereby calling the exterior light service, and directly Turn on and call the corresponding exterior light interface under the exterior light service to output light in the first lighting mode.
  • This embodiment discloses a vehicle control method, the flow chart of which is shown in Figure 4, including:
  • Step S41 Obtain the lighting control request
  • Step S42 Call the vehicle control service of the vehicle based on the lighting control request
  • Step S43 If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
  • Step S44 Determine the output frequency band of the preset music output by the vehicle
  • Step S45 Determine the preset music based on the pre-stored correspondence between music and lighting modes.
  • the second lighting mode corresponding to the output frequency band calls the exterior light service.
  • the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode is called, so that the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode is used.
  • the interface controls the exterior light output light in the corresponding exterior light module.
  • the preset music can be a complete song or audio, or a part of a complete song or audio.
  • determining the output frequency band of the preset music actually determines the frequency band in which the complete song or audio is located, or at least a preset proportion of the complete song or audio The frequency band in which the syllable is located.
  • the preset music output frequency band is the mid-frequency band, then determine the lighting mode corresponding to the mid-frequency band, then call the exterior light service, and call the corresponding exterior light interface under the exterior light service to output the light in the light mode corresponding to the mid-frequency band, thereby realizing the mid-frequency band
  • the lights output by the corresponding lighting mode are output synchronously with the music in the mid-frequency band; if all the syllables output in the preset music are in the low-frequency band, then determine that the output frequency band of the preset music is the low-frequency band, then determine the lighting mode corresponding to the low-frequency band.
  • the audio-visual entertainment system calls the corresponding music interface under the music service to output the music, it will determine the current frequency band of the output music in real time. As long as If the frequency band of the output music is determined to change, it means entering the next part. At this time, the lighting mode of the exterior light module output light is determined based on the changed frequency band, and the corresponding exterior light interface under the exterior light service is called to achieve the exterior light module output. The lighting pattern matches the frequency band of the music output by the audio-visual entertainment system.
  • the third lighting mode corresponding to the second output frequency band is determined based on the pre-stored correspondence between the music and the lighting mode, the exterior light interface under the called exterior light service is adjusted, and the third lighting mode is called
  • the exterior light interface of the exterior light corresponding to the light mode is used to control the exterior light module of the vehicle to output light in the third light mode.
  • the corresponding external light module calls the corresponding external light interface to output light in the fourth lighting mode; if the music frequency band output by the audio-visual entertainment system changes, it will be adjusted by the first output frequency band. is the second output frequency band, the corresponding exterior light module no longer outputs light in the fourth lighting mode, but also calls the exterior light service, except that it calls the exterior light interface corresponding to the third lighting mode under the exterior light service, thereby using the third Light mode outputs light.
  • the left front turn signal and right front turn signal of the corresponding exterior light module will flash. If the music output by the audio-visual entertainment system at the next moment is 50Hz, the corresponding left front high beam of the exterior light module will flash. and the right front high beam flashes.
  • the music of different output frequency bands is matched with the lighting output of different lighting modes to ensure the user's experience of the music and light show on the vehicle.
  • vehicle control method disclosed in this embodiment may also include:
  • the vehicle stops outputting the preset music, and further stops calling the exterior light service to stop outputting lights matching the preset music.
  • the output of the preset music can be completed.
  • the calling of the music service and music interface stops, and the exterior light service and exterior light interface are no longer called.
  • the exterior light module no longer uses the lighting mode matching the preset music. Output the light, that is, the vehicle’s music and light show ends;
  • Stop calling the music service and music interface that is, the vehicle stops outputting the preset music. It can also be: after receiving the user's specific operation on the vehicle, the preset music playback stops. At this time, the call to the exterior light service and exterior light interface will also be stopped. , that is, the exterior light module no longer outputs light in a light mode that matches the preset music.
  • the user's specific operation on the vehicle can be: the user's operation on the audio-visual entertainment system to stop music playback, or it can be: the user starts the vehicle.
  • the operating status of the vehicle no longer meets the lighting control conditions, so the stop call Exterior light service and exterior light interface to terminate the exterior light module to output lights in a light mode that matches the preset music; or the user performs an operation of turning on the turn signal.
  • the vehicle's operating status no longer meets the light control conditions, so the stop Call the exterior light service and exterior light interface to terminate the exterior light module with lights matching the default music Mode output lights.
  • the exterior light control shutdown service interface in the vehicle control system such as the high beam service shutdown interface, low beam service shutdown interface, brake light service shutdown interface, etc., is a request to turn off the exterior light interface. If the exterior light control shut-off service interface executed by the vehicle control system is successfully executed, the vehicle control system will feedback the successful execution of the service to the audio-visual entertainment system.
  • the audio-visual entertainment system can restore the human-computer interaction interface to the home page of the specific application, so that the user can perform a light control request for the specific application again to enter the vehicle's music and light show mode, so that while the audio-visual entertainment system outputs music, the exterior light module Ability to output lights in a matching pattern to that music.
  • the audio-visual light show mode disclosed by the vehicle control method disclosed in this embodiment is only the application layer software that recombines the software components of the underlying basic service interface.
  • the hardware architecture remains unchanged, the exterior light module, window module, power system or gearbox There is no need for signal adjustment for the system and other systems.
  • the audio-visual entertainment system only needs to call different basic service interfaces according to different functional requirements.
  • the change cycle of each system in the vehicle is small and short, and it can better cope with the optimization needs of the music and light show mode.
  • This embodiment discloses a vehicle control system, the schematic structural diagram of which is shown in Figure 5, including:
  • the first obtaining unit 51, the second obtaining unit 52, the control unit 53 and the determining unit 54 are identical to the first obtaining unit 51, the second obtaining unit 52, the control unit 53 and the determining unit 54.
  • the first obtaining unit 51 is used to obtain the lighting control request
  • the second obtaining unit 52 is used to call the normal control service of the vehicle based on the light control request;
  • the control unit 53 is used to call the music service of the vehicle when it is determined based on the vehicle control service that the current operating state of the vehicle meets the lighting control conditions, and call the corresponding music interface based on the music service, so as to output preset music based on the music interface;
  • the determination unit 54 is configured to determine a lighting mode matching the preset music output by the vehicle based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service. , so that the exterior light output light in the corresponding exterior light module can be controlled through the called exterior light interface.
  • the second obtaining unit is configured to: call the normal control service of the vehicle based on the light control request, so as to obtain at least the current driving status, power status, hazard warning light status and turn signal status of the vehicle.
  • control unit is used to call the music service of the vehicle when it is determined based on the vehicle control service that the vehicle is currently in a stopped state, the power supply is in a normal power supply state, and the hazard warning lights and turn signals are turned off, and calls the corresponding music based on the music service.
  • interface to output preset music based on the music interface.
  • the determination unit is used to: determine the music type of the preset music output by the vehicle; determine the first lighting mode corresponding to the music type of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the music service, and based on the music
  • the service calls the corresponding exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode, so as to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode.
  • the determination unit is used to: determine the output frequency band of the preset music output by the vehicle; determine the second lighting mode corresponding to the output frequency band of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the music service, and based on the music
  • the service calls the corresponding exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode, so as to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode.
  • the determination unit is also configured to: if the output frequency band of the preset music changes during the vehicle outputting the preset music and is adjusted from the first output frequency band to the second output frequency band, based on the previously stored music and lighting modes
  • the corresponding relationship determines the third lighting mode corresponding to the second output frequency band, calls the music service, and calls the corresponding exterior light interface corresponding to the third lighting mode based on the music service, so as to control the exterior light output in the corresponding exterior light module through the called exterior light interface. light.
  • the determination unit is also configured to stop the vehicle from outputting the preset music and stop calling the exterior light service if the music service is stopped, so as to stop outputting lights that match the preset music.
  • various functions of the above-mentioned first obtaining unit, second obtaining unit, control unit and determining unit can be executed by a controller, which is an entity structure in the vehicle control device.
  • the vehicle control system disclosed in this embodiment is implemented based on the vehicle control method disclosed in the above embodiment, and will not be described again here.
  • This embodiment discloses a vehicle control device, the schematic structural diagram of which is shown in Figure 6, including:
  • Audio output module 61 exterior light module 62 and controller 63.
  • the audio output module 61 is connected with the music interface and is used to output music
  • the exterior light module 62 is connected to the exterior light interface and is used to output light;
  • the controller 63 is used to obtain the lighting control request, and call the vehicle control service of the vehicle based on the lighting control request; if it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, call the music service of the vehicle, and call the vehicle based on the music service Music interface to output preset music based on the music interface; based on the pre-stored correspondence between music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light service, and call the preset music through the exterior light service Match the exterior light interface corresponding to the lighting mode, so that the exterior light output light in the corresponding exterior light module can be controlled by calling the exterior light interface.
  • the vehicle control device disclosed in this embodiment is implemented based on the vehicle control method disclosed in the above embodiment, and will not be described again here.
  • Embodiments of the present application also provide a readable storage medium on which a computer program is stored.
  • the computer program is loaded and executed by a processor to implement each step of the above vehicle control method.
  • a processor to implement each step of the above vehicle control method.
  • This application also proposes a computer program product or computer program, which includes computer instructions and is stored in a computer-readable storage medium.
  • the processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the methods provided in various optional implementations of the above vehicle control method or vehicle control device.
  • the specific implementation process can refer to the description of the above corresponding embodiment, and no further description is given.
  • RAM random access memory
  • ROM read-only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disks, removable disks, CD-ROMs, or anywhere in the field of technology. any other known form of storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

A vehicle control method, comprising: if it is determined, on the basis of a vehicle control service, that the current operating state of a vehicle meets a light control condition, calling a music service, which involves directly searching, when the vehicle outputs preset music by means of a music interface in the music service, for the correspondence between music and light modes, and determining, on the basis of the correspondence, a light mode of an external-lamp module outputting light, so as to call the music service; and invoking, by means of the music service, an external-lamp interface corresponding to a light mode that matches the preset music, so as to output, by means of the external-lamp interface, light matching the preset music. When a new mode of an external-lamp module outputting light needs to be added, only the correspondence needs to be adjusted, thereby realizing the rapid iteration of functions, and shortening development cycles; and the external-lamp module is invoked by means of services and interfaces, and light shows in different modes can be output simply by means of external-lamp interfaces performing different combinations, thereby realizing the rapid iteration of functions, and shortening development cycles. In addition, the present application further relates to a vehicle control apparatus and system.

Description

一种车辆控制方法、装置、系统及可读存储介质A vehicle control method, device, system and readable storage medium
交叉引用cross reference
本申请要求于2022年09月09日提交中国专利局、申请号为202211102462.5、发明名称为“一种车辆控制方法、装置及系统”的国内申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the domestic application filed with the China Patent Office on September 9, 2022, with the application number 202211102462.5 and the invention title "A vehicle control method, device and system", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及车辆控制领域,尤其涉及一种车辆控制方法、装置、系统及可读存储介质。The present application relates to the field of vehicle control, and in particular, to a vehicle control method, device, system and readable storage medium.
背景技术Background technique
随着车辆智能化程度越来越高,用户对于车辆的舒适性和娱乐性要求也越来越高。对于车辆的音乐灯光秀,目前主要基于信号开发设计且具有固定模式,若要增加新的灯光秀模式,则需要多个电子控制单元同步更改信号,且更改周期较长,无法适应市场快速需求。As vehicles become more and more intelligent, users have higher and higher requirements for vehicle comfort and entertainment. For vehicle music and light shows, currently they are mainly based on signal development and design and have fixed modes. If you want to add a new light show mode, multiple electronic control units need to change the signals synchronously, and the change cycle is long, which cannot adapt to the rapid market demand.
发明内容Contents of the invention
有鉴于此,本申请提供一种车辆控制方法、装置及系统,其具体方案如下:In view of this, this application provides a vehicle control method, device and system. The specific solution is as follows:
一种车辆控制方法,包括:A vehicle control method including:
获得灯光控制请求;Get lighting control request;
基于灯光控制请求调用车辆的整车控制服务;Call the vehicle's vehicle control service based on the lighting control request;
若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
基于音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。Based on the corresponding relationship between music and lighting mode, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so that it can be controlled by the called exterior light interface The exterior lights in the corresponding exterior light modules output light.
进一步的,基于灯光控制请求调用车辆的整车控制服务,包括:Further, the vehicle's vehicle control service is called based on the lighting control request, including:
基于灯光控制请求调用车辆的整车控制服务,以至少获得车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态。 Based on the lighting control request, the vehicle's vehicle control service is called to obtain at least the vehicle's current driving status, power status, hazard warning light status, and turn signal status.
进一步的,若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应对的音乐接口,以便基于音乐接口输出预设音乐,包括:Further, if it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding pair of music interfaces are called based on the music service to output preset music based on the music interface, including:
若基于整车控制服务确定车辆当前处于停止状态,电源处于正常供电状态及危险报警灯及转向灯处于关闭状态时,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐。If it is determined based on the vehicle control service that the vehicle is currently in a stopped state, the power supply is in a normal power supply state, and the hazard warning lights and turn signals are turned off, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output based on the music interface Preset music.
进一步的,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光,包括:Further, the lighting mode matching the preset music output by the vehicle is determined, the exterior light service is called, and the exterior light interface corresponding to the lighting mode matching the preset music is called through the exterior light service, so that the exterior light interface in the corresponding exterior light module is controlled through the called exterior light interface. Exterior lights output light, including:
确定车辆输出的预设音乐的音乐类型;Determine the music type of the preset music output by the vehicle;
基于预先存储的音乐与灯光模式的对应关系确定预设音乐的音乐类型对应的第一灯光模式,调用音乐服务,通过音乐服务调用实现第一灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现第一灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Based on the pre-stored correspondence between music and lighting modes, the first lighting mode corresponding to the music type of the preset music is determined, the music service is called, and the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode is called through the music service, so that The exterior light output light in the corresponding exterior light module is controlled through the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode.
进一步的,还包括:Furthermore, it also includes:
基于预设音乐的音乐类型调用对应的车窗服务,并调用车窗服务下不同的车窗接口。Call the corresponding car window service based on the music type of the preset music, and call different car window interfaces under the car window service.
进一步的,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光,包括:Further, the lighting mode matching the preset music output by the vehicle is determined, the exterior light service is called, and the exterior light interface corresponding to the lighting mode matching the preset music is called through the exterior light service, so that the exterior light interface in the corresponding exterior light module is controlled through the called exterior light interface. Exterior lights output light, including:
确定车辆输出的预设音乐的输出频段;Determine the output frequency band of the preset music output by the vehicle;
基于预先存储的音乐与灯光模式的对应关系确定预设音乐的输出频段对应的第二灯光模式,调用外灯服务,通过外灯服务调用实现第二灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现第二灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Determine the second lighting mode corresponding to the output frequency band of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and call the exterior light interface of the exterior light in the exterior light module required for the second lighting mode through the exterior light service, so that The exterior light output light in the corresponding exterior light module is controlled through the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode.
进一步的,还包括:Furthermore, it also includes:
若车辆输出预设音乐的过程中,预设音乐的输出频段发生变化,由第一输出频段调整为第二输出频段,则基于预先从存储的音乐与灯光模式的对应关系确定第二输出频段对应的第三灯光模式,调用外灯服务,通过外灯服务调用与第三灯光模式对应的外灯接口,以便通过调用的外灯接口控 制对应的外灯模块中的外灯输出灯光。If the output frequency band of the preset music changes during the process of the vehicle outputting the preset music, and is adjusted from the first output frequency band to the second output frequency band, the corresponding second output frequency band is determined based on the previously stored correspondence between the music and the lighting mode. In the third lighting mode, the exterior light service is called, and the exterior light interface corresponding to the third lighting mode is called through the exterior light service, so that the exterior light interface can be controlled through the called exterior light interface. Control the exterior light output light in the corresponding exterior light module.
进一步的,还包括:Furthermore, it also includes:
若停止调用音乐服务,则车辆停止输出预设音乐,停止调用外灯服务,以停止输出与预设音乐匹配的灯光。If the music service is stopped to be called, the vehicle stops outputting the preset music and stops calling the exterior light service to stop outputting lights that match the preset music.
进一步的,还包括:Furthermore, it also includes:
若确定车辆的当前运行状态不符合灯光控制条件,输出提示信息。If it is determined that the current operating status of the vehicle does not meet the lighting control conditions, a prompt message will be output.
一种车辆控制系统,包括:A vehicle control system including:
第一获得单元,用于获得灯光控制请求;The first obtaining unit is used to obtain the lighting control request;
第二获得单元,用于基于灯光控制请求调用车辆的整车控制服务;The second acquisition unit is used to call the vehicle control service of the vehicle based on the lighting control request;
控制单元,用于在基于整车控制服务确定车辆的当前运行状态符合灯光控制条件时,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;A control unit configured to call the music service of the vehicle when it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, and call the corresponding music interface based on the music service to output preset music based on the music interface;
确定单元,用于基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。A determination unit configured to determine a lighting mode matching the preset music output by the vehicle based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service , so that the exterior light output light in the corresponding exterior light module can be controlled through the called exterior light interface.
一种车辆控制装置,包括:A vehicle control device including:
音频输出模块,用于输出音乐;Audio output module, used to output music;
外灯模块,用于输出灯光;Exterior light module, used to output light;
控制器,用于获得灯光控制请求;Controller, used to obtain lighting control requests;
基于灯光控制请求调用车辆的整车控制服务;若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。The vehicle's vehicle control service is called based on the lighting control request; if it is determined that the vehicle's current operating status meets the lighting control conditions based on the vehicle control service, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output based on the music interface Preset music; based on the correspondence between pre-stored music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light service, and call the exterior light interface corresponding to the lighting mode that matches the preset music through the exterior light service. In order to control the exterior light output light in the corresponding exterior light module through the called exterior light interface.
一种可读存储介质,用于至少存储一组指令集;A readable storage medium for storing at least a set of instructions;
指令集用于被调用并至少执行如上任一项的车辆控制方法。The instruction set is used to call and execute at least one of the above vehicle control methods.
当需要增加新的外灯模块输出灯光的模式时,只需要对该对应关系进 行调整即可,实现了功能的快速迭代,缩短开发周期;并且,通过服务及接口的方式实现对外灯模块的调用,只要外灯接口进行不同的组合即可实现不同模式的灯光秀的输出,实现功能的快速迭代,缩短开发周期。When you need to add a new external light module output light mode, you only need to modify the corresponding relationship. Just make adjustments, realizing rapid iteration of functions and shortening the development cycle; in addition, the exterior light module is called through services and interfaces. As long as the exterior light interface is combined in different ways, different modes of light show output can be realized. Rapid iteration of functions shortens the development cycle.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例公开的一种车辆控制方法的流程图;Figure 1 is a flow chart of a vehicle control method disclosed in an embodiment of the present application;
图2为本申请实施例公开的一种车辆控制方法的流程图;Figure 2 is a flow chart of a vehicle control method disclosed in the embodiment of the present application;
图3为本申请实施例公开的一种车辆控制方法的流程图;Figure 3 is a flow chart of a vehicle control method disclosed in the embodiment of the present application;
图4为本申请实施例公开的一种车辆控制方法的流程图;Figure 4 is a flow chart of a vehicle control method disclosed in the embodiment of the present application;
图5为本申请实施例公开的一种车辆控制系统的结构示意图;Figure 5 is a schematic structural diagram of a vehicle control system disclosed in the embodiment of the present application;
图6为本申请实施例公开的一种车辆控制装置的结构示意图。Figure 6 is a schematic structural diagram of a vehicle control device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本申请公开了一种车辆控制方法,其流程图如图1所示,包括:This application discloses a vehicle control method, the flow chart of which is shown in Figure 1, including:
步骤S11、获得灯光控制请求;Step S11: Obtain the lighting control request;
步骤S12、基于灯光控制请求调用车辆的整车控制服务;Step S12: Call the vehicle control service of the vehicle based on the lighting control request;
步骤S13、若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;Step S13: If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
步骤S14、基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯(外部车灯)服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外 灯接口控制对应的外灯模块中的外灯输出灯光。Step S14: Based on the pre-stored correspondence between music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light (external car light) service, and call the lighting mode corresponding to the preset music through the exterior light service external light interface so that by calling the external The light interface controls the exterior light output light in the corresponding exterior light module.
在对车辆的车灯进行控制时,其至少包括在车辆行驶过程中对车灯的控制,如:需要左转时,控制左侧转向灯闪烁,在刹车时,控制刹车灯点亮;另外,还可以对车灯进行与音乐匹配的灯光模式的控制,本方案中针对与音乐匹配的灯光模式的控制,并且,通过SOA架构(面向服务架构)实现对外灯模块中各外灯的接口的调用,实现对不同灯光模式的控制,实现快速迭代。When controlling the vehicle's lights, it at least includes controlling the lights while the vehicle is driving, such as: controlling the left turn signal to flash when turning left, and controlling the brake lights to light up when braking; in addition, The car lights can also be controlled in a lighting mode that matches the music. In this solution, the lighting mode that matches the music is controlled, and the interface of each exterior light in the exterior light module is called through the SOA architecture (service-oriented architecture). Achieve control of different lighting modes and achieve rapid iteration.
获得灯光控制请求,可以为:用户触发某个特定按键,则该特定按键输出灯光控制请求,以便车辆控制系统(vehicle control unit)(例如中央计算单元(central computing unit)或影音娱乐系统(in-vehicle audio and video entertainment unit))基于该特定按键进行与音乐匹配的灯光模式的控制;或者,还可以为:用户在人机交互界面输入特定指令,以使系统获得灯光控制请求;或者,还可以为:用于输入语音,系统基于对该语音的分析,确定用户请求的是与音乐匹配的灯光模式的控制。Obtaining the lighting control request can be: the user triggers a specific button, and the specific button outputs a lighting control request so that the vehicle control system (vehicle control unit) (such as the central computing unit (central computing unit) or the audio-visual entertainment system (in- Vehicle audio and video entertainment unit)) controls the lighting mode that matches the music based on this specific button; or it can also be: the user inputs specific instructions on the human-computer interaction interface so that the system obtains the lighting control request; or it can also be is: used to input voice. Based on the analysis of the voice, the system determines that the user requests control of the lighting mode that matches the music.
车辆控制系统在获得灯光控制请求后,直接调用车辆的整车控制服务,以实现基于灯光控制请求对车辆的控制。在获得灯光控制请求后,首先需要确定车辆当前的运行状态是否符合灯光控制条件,因此,需要首先基于整车控制服务确定车辆的当前运行状态。After obtaining the lighting control request, the vehicle control system directly calls the vehicle's vehicle control service to control the vehicle based on the lighting control request. After obtaining the lighting control request, it is first necessary to determine whether the current operating status of the vehicle meets the lighting control conditions. Therefore, it is first necessary to determine the current operating status of the vehicle based on the vehicle control service.
若确定车辆的当前运行状态不符合灯光控制条件,则终止后续灯光模式的控制,并输出提示信息,以使用户明确当前车辆不符合灯光控制条件;若确定车辆的当前运行状态符合灯光控制条件,则调用外灯服务,以便根据需要调用相应的外灯接口,以便实现灯光控制,具体的,可首先调用车辆的音乐服务,通过音乐服务调用音乐服务下相应的音乐接口,以便基于音乐接口输出预设音乐,即调用音乐接口,以使车辆的影音娱乐系统输出预设音乐。If it is determined that the current operating status of the vehicle does not meet the lighting control conditions, the subsequent lighting mode control will be terminated and a prompt message will be output to make the user clear that the current vehicle does not meet the lighting control conditions; if it is determined that the current operating status of the vehicle meets the lighting control conditions, Then call the exterior light service to call the corresponding exterior light interface as needed to achieve lighting control. Specifically, you can first call the vehicle's music service, and call the corresponding music interface under the music service through the music service to output preset music based on the music interface. , that is, calling the music interface to make the vehicle's audio-visual entertainment system output preset music.
在车辆输出预设音乐的同时,系统会确定与预设音乐匹配的灯光模式,即系统中会预先存储有不同的音乐与灯光模式的对应关系,只要车辆输出的预设音乐是预先存储的对应关系中的任一个,则可直接通过对应关系确定与预设音乐对应的灯光模式,调用外灯服务,之后直接调用该灯光模式对应的外灯服务下的外灯接口,以控制调用的外灯接口对应的外灯模块中 的外灯输出灯光即可。While the vehicle outputs the preset music, the system will determine the lighting mode that matches the preset music. That is, the system will pre-store the corresponding relationships between different music and lighting modes. As long as the preset music output by the vehicle is the pre-stored correspondence. For any of the relationships, you can directly determine the lighting mode corresponding to the preset music through the corresponding relationship, call the exterior light service, and then directly call the exterior light interface under the exterior light service corresponding to the lighting mode to control the exterior light corresponding to the called exterior light interface. in module The external lights can output light.
具体的,一个外灯接口对应外灯模块中的一个外灯,如:第一外灯接口对应左前远光灯,第二外灯接口对应右前远光灯,则当在某一个灯光模式下,需要调用第一外灯接口及第二外灯接口,则直接调用第一外灯接口及第二外灯接口,当调用第一外灯接口时,左前远光灯亮,调用第二外灯接口时,右前远光灯亮。Specifically, an exterior light interface corresponds to an exterior light in the exterior light module. For example, the first exterior light interface corresponds to the left front high beam, and the second exterior light interface corresponds to the right front high beam. In a certain lighting mode, the first exterior light needs to be called. interface and the second exterior light interface, directly call the first exterior light interface and the second exterior light interface. When the first exterior light interface is called, the left front high beam lights up, and when the second exterior light interface is called, the right front high beam lights up.
即通过应用层软件对底层基础服务接口进行不同的组合,以实现对不同灯光模式的输出。That is, different combinations of underlying basic service interfaces are made through application layer software to achieve the output of different lighting modes.
当需要增加新的灯光模式时,可直接对系统中存储的对应关系进行调整,可修改预先存储的音乐对应的灯光模式,也可以增加系统中未存储的音乐,使其与新增加的灯光模式对应。When a new lighting mode needs to be added, the corresponding relationship stored in the system can be directly adjusted. The lighting mode corresponding to the pre-stored music can be modified, or music not stored in the system can be added to match the newly added lighting mode. correspond.
其中,车辆的外灯模块包括车辆的外部车灯,外部车灯包括:左前远光灯、右前远光灯、左后制动灯、右后制动灯、左前转向灯、右前转向灯、左后转向灯、右后转向灯、左前雾灯、右前雾灯、左后雾灯、右后雾灯、左前昼间行车道等、右前昼间行车道、左前近光灯、右前近光灯、牌照灯等。则车辆的外灯服务中包括上述各外部车灯的外部接口,调用外灯服务是调用任意一个外灯的前提,在调用外灯服务后,调用的外灯接口能够控制该相应的外灯点亮。Among them, the exterior light module of the vehicle includes the exterior lights of the vehicle. The exterior lights include: left front high beam, right front high beam, left rear brake light, right rear brake light, left front turn signal, right front turn signal, left rear Turn signal, right rear turn signal, left front fog lamp, right front fog lamp, left rear fog lamp, right rear fog lamp, left front daytime driving lane, etc., right front daytime driving lane, left front dipped beam, right front dipped beam, license plate Lights etc. Then the vehicle's exterior light service includes the external interfaces of each of the above-mentioned exterior lights. Calling the exterior light service is a prerequisite for calling any exterior light. After calling the exterior light service, the called exterior light interface can control the lighting of the corresponding exterior light.
基于SOA架构,通过调用系统中的各基础服务,如:整车控制服务、外灯服务、音乐服务等,实现灯光及音乐输出的控制,并在需要对灯光模式进行变更时,通过外灯服务调用不同的外灯接口,实现在不同模式下对不同灯光模式的输出,通过重新组装服务接口的方式来缩短开发周期,提高功能的迭代速度。Based on the SOA architecture, the control of lighting and music output is realized by calling various basic services in the system, such as vehicle control service, exterior light service, music service, etc., and when the lighting mode needs to be changed, different calls are made through the exterior light service. The external light interface realizes the output of different lighting modes in different modes. By reassembling the service interface, the development cycle is shortened and the iteration speed of functions is improved.
需要说明的是,本实施例公开的车辆控制方法是由车辆控制系统执行的,并且,其是在SOA架构下实现的,即由车辆控制系统获得灯光控制请求,车辆控制系统基于灯光控制请求调用车辆的整车控制服务,车辆控制系统基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐,车辆控制系统基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的模式,调用外灯服务,通过外灯服务调 用与预设音乐匹配的模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光;It should be noted that the vehicle control method disclosed in this embodiment is executed by the vehicle control system, and it is implemented under the SOA architecture, that is, the vehicle control system obtains the lighting control request, and the vehicle control system calls based on the lighting control request. The vehicle control service of the vehicle. The vehicle control system determines that the current operating status of the vehicle meets the lighting control conditions based on the vehicle control service, calls the vehicle's music service, and calls the corresponding music interface based on the music service to output preset music based on the music interface. Based on the pre-stored correspondence between music and lighting modes, the vehicle control system determines the mode that matches the preset music output by the vehicle, calls the exterior light service, and adjusts the lighting mode through the exterior light service. Use the exterior light interface corresponding to the mode matching the preset music to control the exterior light output light in the corresponding exterior light module through the called exterior light interface;
也可以为:由车辆的影音娱乐系统执行,即由影音娱乐系统获得灯光控制请求,影音娱乐系统基于灯光控制请求调用车辆的整车控制服务,影音娱乐系统基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐,影音娱乐系统基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。It can also be: executed by the audio and video entertainment system of the vehicle, that is, the audio and video entertainment system obtains the lighting control request, the audio and video entertainment system calls the vehicle's vehicle control service based on the lighting control request, and the audio and video entertainment system determines the current operation of the vehicle based on the vehicle control service. When the state meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface. The audio-visual entertainment system determines the corresponding relationship between the music and the lighting mode based on the pre-stored music and lighting modes. Preset the lighting mode matching the music, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so that the exterior light output light in the corresponding exterior light module can be controlled through the called exterior light interface.
当需要增加新的外灯模块输出灯光的模式时,只需要对该对应关系进行调整即可,实现了功能的快速迭代,缩短开发周期;并且,通过服务及接口的方式实现对外灯模块的调用,只要外灯接口进行不同的组合即可实现不同模式的灯光秀的输出,实现功能的快速迭代,缩短开发周期。When a new external light module output light mode needs to be added, the corresponding relationship only needs to be adjusted, realizing rapid iteration of functions and shortening the development cycle; and, the external light module is called through services and interfaces. As long as the external light interface is combined in different ways, different modes of light show output can be achieved, enabling rapid iteration of functions and shortening the development cycle.
本实施例公开了一种车辆控制方法,其流程图如图2所示,包括:This embodiment discloses a vehicle control method, the flow chart of which is shown in Figure 2, including:
步骤S21、获得灯光控制请求;Step S21: Obtain the lighting control request;
步骤S22、基于灯光控制请求调用车辆的整车控制服务,以至少获得车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态;Step S22: Call the vehicle control service of the vehicle based on the lighting control request to obtain at least the current driving status, power status, hazard warning light status and turn signal status of the vehicle;
步骤S23、若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口控制车辆输出预设音乐;Step S23: If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service, so as to control the vehicle to output preset music based on the music interface;
步骤S24、基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。Step S24: Based on the pre-stored correspondence between music and lighting modes, determine the lighting mode matching the preset music output by the vehicle, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so that The exterior light output light in the corresponding exterior light module is controlled through the called exterior light interface.
车辆的当前运行状态至少包括:车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态,车辆的当前运行状态还可以包括其他信息,如:制动状态、油箱阀门状态等,本实施例中以车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态为例进行说明。The current operating status of the vehicle at least includes: the current driving status, power status, hazard warning light status and turn signal status of the vehicle. The current operating status of the vehicle can also include other information, such as: braking status, fuel tank valve status, etc., this implementation This example takes the vehicle's current driving status, power status, hazard warning light status, and turn signal status as examples.
车辆的当前运行状态符合灯光控制条件为:车辆的当前运行状态中每 一个状态都满足灯光控制条件,即:车辆的当前行驶状态为停止状态,电源状态为电源处于正常供电状态,危险报警灯状态为关闭状态,转向灯也为关闭状态。The current operating status of the vehicle meets the lighting control conditions: each of the current operating status of the vehicle Each state satisfies the lighting control conditions, that is: the current driving state of the vehicle is stopped, the power state is that the power supply is in normal power supply state, the hazard warning light state is off, and the turn signal is also off.
只有上述每一个状态均满足灯光控制条件时,才能够保证车辆在处于灯光模式与音乐匹配的状态时,保证车辆的安全。Only when each of the above states meets the lighting control conditions can the vehicle's safety be ensured when the lighting mode matches the music.
其中,车辆的当前行驶状态为停止状态,可以为:确定车辆的档位处于停车档P档,或者,车辆处于驻车制动状态,或者,通过车辆上安装的图像采集装置确定车辆当前处于停车场,则确定车辆当前处于停止状态等。Among them, the current driving state of the vehicle is a stopped state, which can be: determining that the vehicle's gear is in the parking gear P, or the vehicle is in a parking brake state, or determining that the vehicle is currently in parking through an image acquisition device installed on the vehicle field, it is determined that the vehicle is currently in a stopped state, etc.
电源处于正常供电状态,可以为:电源的状态位为ON;危险报警灯为关闭状态,可以为:危险报警灯状态为OFF;转向灯为关闭状态,可以为:转向灯状态为OFF。The power supply is in a normal power supply state, which can be: the status bit of the power supply is ON; the hazard warning light is off, which can be: the hazard warning light is OFF; the turn signal is off, which can be: the turn signal status is OFF.
只要有任意一个状态不符合灯光控制条件,系统就不会调用音乐接口,控制车辆输出预设音乐,或者,车辆能够调用音乐接口以输出预设音乐,但是,在输出预设音乐后,并不会调用外灯服务及外灯接口,不会控制车辆的外灯模块输出与预设音乐匹配的灯光模式,以达到保证车辆的安全的目的。As long as any state does not meet the lighting control conditions, the system will not call the music interface to control the vehicle to output preset music, or the vehicle can call the music interface to output preset music. However, after outputting the preset music, it will not The exterior light service and exterior light interface will be called, and the vehicle's exterior light module will be controlled to output a lighting mode that matches the preset music to ensure the safety of the vehicle.
当有不符合灯光控制条件的运行状态时,系统会输出提示信息,以提示用户当前不能启动灯光模式,使其与音乐匹配,并且,提示信息中会标明不符合灯光控制条件的状态是车辆的行驶状态、电源状态、危险等报警状态和/或转向灯状态。When there is an operating state that does not meet the lighting control conditions, the system will output a prompt message to remind the user that the lighting mode cannot be started to match the music, and the prompt message will indicate that the state that does not meet the lighting control conditions is the vehicle's Driving status, power status, danger and other alarm status and/or turn signal status.
其中,车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态,这些信息由整车控制系统提供给影音娱乐系统,具体的,可由整车控制系统的第一内核提供整车电源状态、行驶状态、外灯状态、外灯控制、车窗控制等基础服务接口,整车控制系统的第一内核将服务接口通过S2S转换为信号发送到整车控制系统的第二内核,整车控制系统的第二内核执行上述整车电源状态、行驶状态、外灯状态、外灯控制、车窗控制等基础服务。Among them, the current driving status, power status, hazard warning light status and turn signal status of the vehicle are provided by the vehicle control system to the audio and video entertainment system. Specifically, the vehicle power supply status can be provided by the first core of the vehicle control system. , driving status, exterior light status, exterior light control, window control and other basic service interfaces. The first core of the vehicle control system converts the service interface into signals through S2S and sends them to the second core of the vehicle control system. The second core performs the above-mentioned basic services such as vehicle power status, driving status, exterior light status, exterior light control, and window control.
只有在车辆的当前运行状态符合灯光控制条件时,才会调用相应的服务及接口,以进行灯光模式与音乐匹配的输出,这就避免了当车辆的行驶状态、电源状态、危险报警灯状态和/或转向灯状态不符合灯光控制条件时, 进行灯光模式的输出而导致的车辆危险驾驶的情况发生。Only when the current operating status of the vehicle meets the lighting control conditions, the corresponding services and interfaces will be called to output the lighting mode and music matching. This avoids the need to adjust the vehicle's driving status, power supply status, hazard warning light status and /or when the turn signal status does not meet the lighting control conditions, Dangerous driving of the vehicle may occur due to the light mode output.
本实施例公开了一种车辆控制方法,其流程图如图3所示,包括:This embodiment discloses a vehicle control method, the flow chart of which is shown in Figure 3, including:
步骤S31、获得灯光控制请求;Step S31: Obtain the lighting control request;
步骤S32、基于灯光控制请求调用车辆的整车控制服务;Step S32: Call the vehicle control service of the vehicle based on the lighting control request;
步骤S33、若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;Step S33: If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
步骤S34、确定车辆输出的预设音乐的音乐类型;Step S34: Determine the music type of the preset music output by the vehicle;
步骤S35、基于预先存储的音乐与灯光模式的对应关系确定预设音乐的音乐类型对应的第一灯光模式,调用外灯服务,通过外灯服务调用实现第一灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现第一灯光模式所需的外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Step S35: Determine the first lighting mode corresponding to the music type of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and use the exterior light service to call the exterior lights of the exterior lights in the exterior light module required for the first lighting mode. interface to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light required to implement the first lighting mode.
确定车辆输出的预设音乐的音乐类型,可以为:确定预设音乐的输出语言,即确定预设音乐属于中文歌曲还是英文歌曲,或者日文歌曲等,对于不同输出语音的音乐配合以不同的灯光模式输出灯光,以使用户在车辆的音乐灯光秀上达到对于不同语言的音乐的不同体验效果;Determining the music type of the preset music output by the vehicle can be: Determine the output language of the preset music, that is, determine whether the preset music belongs to Chinese songs, English songs, or Japanese songs, etc. For music with different output voices, use different lights. Mode output lights to enable users to achieve different experience effects of music in different languages on the vehicle's music and light show;
也可以为:确定预设音乐的音乐风格,如:确定预设音乐属于古典音乐、流行音乐、民间音乐、摇滚音乐、迪斯科音乐等,对于不同风格的音乐配合以不同的灯光模式输出灯光,以使用户在车辆的音乐灯光秀上达到对于不同风格的音乐的不同体验效果。It can also be: determine the music style of the preset music, such as: determine that the preset music belongs to classical music, pop music, folk music, rock music, disco music, etc., and output lights in different lighting modes for different styles of music, so as to This enables users to achieve different experience effects of different styles of music on the vehicle's music and light show.
即预先存储的音乐与灯光模式的对应关系,实际为预先存储的不同音乐类型与不同灯光模式的对应关系,则在确定有预设音乐输出时,直接对预设音乐进行分析,以确定预设音乐的音乐类型,以便于能够基于该音乐类型查找预先存储的对应关系从而确定与该预设音乐的音乐类型对应的第一灯光模式,从而能够控制外灯模块以第一灯光模式输出灯光。That is, the corresponding relationship between the pre-stored music and the lighting mode is actually the pre-stored corresponding relationship between different music types and different lighting modes. When it is determined that there is preset music output, the preset music is directly analyzed to determine the preset The music type of the music, so that the pre-stored correspondence can be searched based on the music type to determine the first lighting mode corresponding to the music type of the preset music, so that the exterior light module can be controlled to output light in the first lighting mode.
其中,调用外灯服务,可以为:在调用音乐服务,通过音乐服务下的音乐接口输出预设音乐时,系统会通过SOA架构的方式请求整车控制系统中的外灯控制开启服务接口,如:远光灯服务开启接口、近光灯服务开启接口、制动灯服务开启接口等。Among them, calling the exterior light service can be: when calling the music service and outputting preset music through the music interface under the music service, the system will request the exterior light control in the vehicle control system to open the service interface through the SOA architecture, such as: Remote Light service opening interface, low beam service opening interface, brake light service opening interface, etc.
若外灯控制开启服务接口成功执行,则整车控制系统将服务执行成功 的信息反馈至影音娱乐系统,并同步将服务转换为信号发送至外灯模块,以便外灯模块能够通过CAN信号驱动服务接口开启成功的外灯点亮,以执行远光灯、近光灯、制动灯等灯的点亮操作。If the exterior light control opening service interface is successfully executed, the vehicle control system will report that the service execution is successful. The information is fed back to the audio-visual entertainment system, and the service is synchronously converted into signals and sent to the exterior light module, so that the exterior light module can turn on the successful exterior light lighting through the CAN signal drive service interface to execute high beam, low beam, and brake lights. Wait for the light to turn on.
或者,也可以为:将音乐类型与不同灯光模式的对应关系存储至外灯模块,系统在调用音乐服务,并通过音乐服务调用音乐接口,控制车辆输出预设音乐后,直接将预设音乐发送至外灯模块,由外灯模块对预设音乐进行分析,以确定预设音乐的音乐类型,并查找该音乐类型对应的第一灯光模式,调用外灯服务,从而由外灯模块开启并调用外灯服务下相应的外灯接口,以便以第一灯光模式输出灯光;Alternatively, it can also be: store the corresponding relationship between music types and different lighting modes in the exterior light module. After the system calls the music service and calls the music interface through the music service to control the vehicle to output the preset music, it directly sends the preset music to The exterior light module analyzes the preset music to determine the music type of the preset music, finds the first lighting mode corresponding to the music type, and calls the exterior light service, so that the exterior light module turns on and calls the corresponding function under the exterior light service. External light interface to output light in the first light mode;
或者,将音乐类型与不同灯光模式的对应关系存储至外灯模块,系统在调用音乐服务,并通过音乐服务调用音乐接口,控制车辆输出预设音乐后,对该预设音乐进行分析,确定预设音乐的音乐类型,之后直接将预设音乐的音乐类型发送至外灯模块,由外灯模块查找预先存储的对应关系从而确定预设音乐的音乐类型对应的第一灯光模式,从而调用外灯服务,并直接开启并调用外灯服务下相应的外灯接口,以便以第一灯光模式输出灯光。Or, the corresponding relationship between music types and different lighting modes is stored in the exterior light module. After calling the music service and calling the music interface through the music service to control the vehicle to output the preset music, the system analyzes the preset music and determines the preset music. The music type of the music, and then directly sends the music type of the preset music to the exterior light module. The exterior light module searches for the pre-stored correspondence to determine the first lighting mode corresponding to the music type of the preset music, thereby calling the exterior light service, and directly Turn on and call the corresponding exterior light interface under the exterior light service to output light in the first lighting mode.
需要说明的是,在以不同的音乐模式输出灯光时,也可同步针对不同的音乐类型或者不同的音乐开启并调用不同的车窗服务,并调用车窗服务下不同的车窗接口,以便控制不同车窗的开启或关闭,以提升车辆上音乐灯光秀的展示效果。It should be noted that when outputting lights in different music modes, different car window services can also be opened and called simultaneously for different music types or different music, and different car window interfaces under the car window service can be called for control. The opening or closing of different windows can enhance the display effect of the music and light show on the vehicle.
在进行灯光模式的输出时,对于不同类型的音乐配合不同灯光模式的灯光输出,以保证用户对于车辆上音乐灯光秀的使用体验。When outputting the lighting mode, different types of music are matched with the lighting output of different lighting modes to ensure the user's experience of the music and light show on the vehicle.
本实施例公开了一种车辆控制方法,其流程图如图4所示,包括:This embodiment discloses a vehicle control method, the flow chart of which is shown in Figure 4, including:
步骤S41、获得灯光控制请求;Step S41: Obtain the lighting control request;
步骤S42、基于灯光控制请求调用车辆的整车控制服务;Step S42: Call the vehicle control service of the vehicle based on the lighting control request;
步骤S43、若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;Step S43: If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
步骤S44、确定车辆输出的预设音乐的输出频段;Step S44: Determine the output frequency band of the preset music output by the vehicle;
步骤S45、基于预先存储的音乐与灯光模式的对应关系确定预设音乐 的输出频段对应的第二灯光模式,调用外灯服务,通过外灯服务调用实现第二灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现第二灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Step S45: Determine the preset music based on the pre-stored correspondence between music and lighting modes. The second lighting mode corresponding to the output frequency band calls the exterior light service. Through the exterior light service, the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode is called, so that the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode is used. The interface controls the exterior light output light in the corresponding exterior light module.
确定车辆输出的预设音乐的输出频段,则预设音乐可以为一首完整的歌曲或者音频,也可以为一首完整的歌曲或者音频中的一部分。Determine the output frequency band of the preset music output by the vehicle, and the preset music can be a complete song or audio, or a part of a complete song or audio.
若预设音乐为一首完整的歌曲或者音频,则确定预设音乐的输出频段实际确定的是该完整的歌曲或者音频所处于的频段,或者是该完整的歌曲或者音频中至少有预设比例的音节所处的频段。If the preset music is a complete song or audio, then determining the output frequency band of the preset music actually determines the frequency band in which the complete song or audio is located, or at least a preset proportion of the complete song or audio The frequency band in which the syllable is located.
若预设音乐中输出的全部音节均处于高频段,则确定预设音乐的输出频段为高频段,则确定与高频段对应的灯光模式,进而调用外灯服务,并调用外灯服务下相应的外灯接口,以高频段对应的灯光模式输出灯光,从而实现以高频段对应的灯光模式输出的灯光与高频段的音乐同步输出;同样的,若预设音乐中输出的全部音节均处于中频段,则确定预设音乐的输出频段为中频段,则确定与中频段对应的灯光模式,进而调用外灯服务,并调用外灯服务下相应的外灯接口,以中频段对应的灯光模式输出灯光,从而实现以中频段对应的灯光模式输出的灯光与中频段的音乐同步输出;若预设音乐中输出的全部音节均处于低频段,则确定预设音乐的输出频段为低频段,则确定与低频段对应的灯光模式,进而调用外灯服务,并调用外灯服务下相应的外灯接口,以低频段对应的灯光模式输出灯光,从而实现以低频段对应的灯光模式输出的灯光与低频段的音乐同步输出。If all the syllables output in the preset music are in the high-frequency band, determine that the output frequency band of the preset music is the high-frequency band, then determine the lighting mode corresponding to the high-frequency band, then call the exterior light service, and call the corresponding exterior light interface under the exterior light service. , output the light in the light mode corresponding to the high-frequency band, so that the light output in the light mode corresponding to the high-frequency band can be output synchronously with the music in the high-frequency band; similarly, if all the syllables output in the preset music are in the mid-frequency band, then it is determined If the preset music output frequency band is the mid-frequency band, then determine the lighting mode corresponding to the mid-frequency band, then call the exterior light service, and call the corresponding exterior light interface under the exterior light service to output the light in the light mode corresponding to the mid-frequency band, thereby realizing the mid-frequency band The lights output by the corresponding lighting mode are output synchronously with the music in the mid-frequency band; if all the syllables output in the preset music are in the low-frequency band, then determine that the output frequency band of the preset music is the low-frequency band, then determine the lighting mode corresponding to the low-frequency band. , and then calls the exterior light service, and calls the corresponding exterior light interface under the exterior light service, to output the light in the light mode corresponding to the low frequency band, thereby realizing the synchronized output of the light output in the light mode corresponding to the low frequency band and the music in the low frequency band.
当然,在进行输出频段的确认时,也可以设置不同的频段范围,以不同的频段范围为界限确定不同的灯光模式,而并不限定高中低三个频段。Of course, when confirming the output frequency band, you can also set different frequency band ranges, and use different frequency band ranges as boundaries to determine different lighting modes, without limiting it to three frequency bands: high, middle and low.
若预设音乐为一首完整的歌曲或者音频中的一部分,则影音娱乐系统在调用音乐服务下相应的音乐接口输出音乐时,会实时对其所输出的音乐当前所处的频段进行判定,只要确定输出的音乐所处的频段发生变化,则表明进入下一部分,此时,基于发生变化后的频段确定外灯模块输出灯光的灯光模式,从而调用外灯服务下相应的外灯接口,以达到外灯模块输出灯光的模式与影音娱乐系统输出音乐的频段匹配的效果。If the preset music is a complete song or part of the audio, when the audio-visual entertainment system calls the corresponding music interface under the music service to output the music, it will determine the current frequency band of the output music in real time. As long as If the frequency band of the output music is determined to change, it means entering the next part. At this time, the lighting mode of the exterior light module output light is determined based on the changed frequency band, and the corresponding exterior light interface under the exterior light service is called to achieve the exterior light module output. The lighting pattern matches the frequency band of the music output by the audio-visual entertainment system.
即:若车辆输出预设音乐的过程中,预设音乐的输出频段发生变化, 由第一输出频段调整为第二输出频段,则基于预先存储的音乐与灯光模式的对应关系确定第二输出频段对应的第三灯光模式,调整调用的外灯服务下的外灯接口,调用与第三灯光模式对应的外灯的外灯接口,以控制车辆的外灯模块以第三灯光模式输出灯光。That is: if the output frequency band of the preset music changes while the vehicle is outputting the preset music, When the first output frequency band is adjusted to the second output frequency band, the third lighting mode corresponding to the second output frequency band is determined based on the pre-stored correspondence between the music and the lighting mode, the exterior light interface under the called exterior light service is adjusted, and the third lighting mode is called The exterior light interface of the exterior light corresponding to the light mode is used to control the exterior light module of the vehicle to output light in the third light mode.
如:影音娱乐系统当前输出的音乐处于第一输出频段,则对应的外灯模块调用相应的外灯接口以第四灯光模式输出灯光;若影音娱乐系统输出的音乐频段发生变化,由第一输出频段调整为第二输出频段,则对应的外灯模块不再以第四灯光模式输出灯光,而是同样调用外灯服务,只是调用的是外灯服务下的与第三灯光模式对应的外灯接口,从而以第三灯光模式输出灯光。For example, if the music currently output by the audio-visual entertainment system is in the first output frequency band, the corresponding external light module calls the corresponding external light interface to output light in the fourth lighting mode; if the music frequency band output by the audio-visual entertainment system changes, it will be adjusted by the first output frequency band. is the second output frequency band, the corresponding exterior light module no longer outputs light in the fourth lighting mode, but also calls the exterior light service, except that it calls the exterior light interface corresponding to the third lighting mode under the exterior light service, thereby using the third Light mode outputs light.
例如:影音娱乐系统当前输出的音乐为20Hz,则对应的外灯模块的左前转向灯及右前转向灯闪烁,若下一时刻影音娱乐系统输出的音乐为50Hz,则对应的外灯模块的左前远光灯及右前远光灯闪烁。For example: if the music currently output by the audio-visual entertainment system is 20Hz, then the left front turn signal and right front turn signal of the corresponding exterior light module will flash. If the music output by the audio-visual entertainment system at the next moment is 50Hz, the corresponding left front high beam of the exterior light module will flash. and the right front high beam flashes.
在进行灯光模式的输出时,对于不同输出频段的音乐配合不同灯光模式的灯光输出,以保证用户对于车辆上音乐灯光秀的使用体验。When outputting the lighting mode, the music of different output frequency bands is matched with the lighting output of different lighting modes to ensure the user's experience of the music and light show on the vehicle.
进一步的,本实施例公开的车辆控制方法,还可以包括:Further, the vehicle control method disclosed in this embodiment may also include:
若停止调用音乐服务,则车辆停止输出预设音乐,进一步停止调用外灯服务,以停止输出与预设音乐匹配的灯光。If the music service is stopped to be called, the vehicle stops outputting the preset music, and further stops calling the exterior light service to stop outputting lights matching the preset music.
车辆停止输出预设音乐可以为预设音乐输出完成,此时,音乐服务及音乐接口的调用停止,也不再调用外灯服务及外灯接口,则外灯模块不再以与预设音乐匹配的灯光模式输出灯光,即车辆的音乐灯光秀结束;When the vehicle stops outputting the preset music, the output of the preset music can be completed. At this time, the calling of the music service and music interface stops, and the exterior light service and exterior light interface are no longer called. The exterior light module no longer uses the lighting mode matching the preset music. Output the light, that is, the vehicle’s music and light show ends;
停止调用音乐服务及音乐接口,即车辆停止输出预设音乐,也可以为:接收到用户对车辆的特定操作,则预设音乐播放停止,此时,也会停止对外灯服务及外灯接口的调用,即外灯模块也不再以与预设音乐匹配的灯光模式输出灯光。其中,用户对车辆的特定操作,可以为:用户对影音娱乐系统的停止音乐播放的操作,也可以为:用户启动车辆,此时,车辆的运行状态不再满足灯光控制条件,因此,停止调用外灯服务及外灯接口,以终止外灯模块以与预设音乐匹配的灯光模式输出灯光;或者,用户执行的转向灯打开的操作,此时,车辆的运行状态不再满足灯光控制条件,因此,停止调用外灯服务及外灯接口,以终止外灯模块以与预设音乐匹配的灯光 模式输出灯光。Stop calling the music service and music interface, that is, the vehicle stops outputting the preset music. It can also be: after receiving the user's specific operation on the vehicle, the preset music playback stops. At this time, the call to the exterior light service and exterior light interface will also be stopped. , that is, the exterior light module no longer outputs light in a light mode that matches the preset music. Among them, the user's specific operation on the vehicle can be: the user's operation on the audio-visual entertainment system to stop music playback, or it can be: the user starts the vehicle. At this time, the operating status of the vehicle no longer meets the lighting control conditions, so the stop call Exterior light service and exterior light interface to terminate the exterior light module to output lights in a light mode that matches the preset music; or the user performs an operation of turning on the turn signal. At this time, the vehicle's operating status no longer meets the light control conditions, so the stop Call the exterior light service and exterior light interface to terminate the exterior light module with lights matching the default music Mode output lights.
当影音娱乐系统确定停止调用外灯服务及外灯接口,以使车辆的外灯模块停止以预设音乐匹配的灯光模式输出灯光,即确定车辆的音乐灯光秀结束,此时可通过SOA架构的方式请求整车控制系统中外灯控制关闭服务接口,如:远光灯服务关闭接口、近光灯服务关闭接口、制动灯服务关闭接口等,即请求关闭外灯接口。若整车控制系统执行的外灯控制关闭服务接口成功执行,则整车控制系统将服务执行成功反馈到影音娱乐系统。When the audio-visual entertainment system determines to stop calling the exterior light service and exterior light interface, so that the vehicle's exterior light module stops outputting lights in the lighting mode matching the preset music, it is determined that the vehicle's music and light show has ended. At this time, the entire vehicle can be requested through the SOA architecture. The exterior light control shutdown service interface in the vehicle control system, such as the high beam service shutdown interface, low beam service shutdown interface, brake light service shutdown interface, etc., is a request to turn off the exterior light interface. If the exterior light control shut-off service interface executed by the vehicle control system is successfully executed, the vehicle control system will feedback the successful execution of the service to the audio-visual entertainment system.
此时,影音娱乐系统可恢复人机交互界面到特定应用的首页,以便用户能够再次对该特定应用执行灯光控制请求从而进入车辆的音乐灯光秀模式,使得影音娱乐系统输出音乐的同时,外灯模块能够配合该音乐以匹配的模式输出灯光。At this time, the audio-visual entertainment system can restore the human-computer interaction interface to the home page of the specific application, so that the user can perform a light control request for the specific application again to enter the vehicle's music and light show mode, so that while the audio-visual entertainment system outputs music, the exterior light module Ability to output lights in a matching pattern to that music.
本实施例公开的车辆控制方法公开的影音灯光秀模式只是应用层软件对底层基础服务接口的软件组件进行重新组合,在硬件架构不变的情况下,外灯模块、车窗模块、电源系统或档位系统等均无需进行信号调整,只需要影音娱乐系统根据不同功能需求进行不同基础服务接口调用即可,车辆中各系统变更小周期短,能够更好的应对音乐灯光秀模式的优化需求。The audio-visual light show mode disclosed by the vehicle control method disclosed in this embodiment is only the application layer software that recombines the software components of the underlying basic service interface. When the hardware architecture remains unchanged, the exterior light module, window module, power system or gearbox There is no need for signal adjustment for the system and other systems. The audio-visual entertainment system only needs to call different basic service interfaces according to different functional requirements. The change cycle of each system in the vehicle is small and short, and it can better cope with the optimization needs of the music and light show mode.
本实施例公开了一种车辆控制系统,其结构示意图如图5所示,包括:This embodiment discloses a vehicle control system, the schematic structural diagram of which is shown in Figure 5, including:
第一获得单元51,第二获得单元52,控制单元53及确定单元54。The first obtaining unit 51, the second obtaining unit 52, the control unit 53 and the determining unit 54.
第一获得单元51用于获得灯光控制请求;The first obtaining unit 51 is used to obtain the lighting control request;
第二获得单元52用于基于灯光控制请求调用车辆的正常控制服务;The second obtaining unit 52 is used to call the normal control service of the vehicle based on the light control request;
控制单元53用于在基于整车控制服务确定车辆的当前运行状态符合灯光控制条件时,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐;The control unit 53 is used to call the music service of the vehicle when it is determined based on the vehicle control service that the current operating state of the vehicle meets the lighting control conditions, and call the corresponding music interface based on the music service, so as to output preset music based on the music interface;
确定单元54用于基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。The determination unit 54 is configured to determine a lighting mode matching the preset music output by the vehicle based on the pre-stored correspondence between the music and the lighting mode, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service. , so that the exterior light output light in the corresponding exterior light module can be controlled through the called exterior light interface.
进一步的,第二获得单元用于:基于灯光控制请求调用车辆的正常控制服务,以至少获得车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态。 Further, the second obtaining unit is configured to: call the normal control service of the vehicle based on the light control request, so as to obtain at least the current driving status, power status, hazard warning light status and turn signal status of the vehicle.
进一步的,控制单元用于在基于整车控制服务确定车辆当前处于停止状态,电源处于正常供电状态及危险报警灯及转向灯处于关闭状态时,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于音乐接口输出预设音乐。Further, the control unit is used to call the music service of the vehicle when it is determined based on the vehicle control service that the vehicle is currently in a stopped state, the power supply is in a normal power supply state, and the hazard warning lights and turn signals are turned off, and calls the corresponding music based on the music service. interface to output preset music based on the music interface.
进一步的,确定单元用于:确定车辆输出的预设音乐的音乐类型;基于预先存储的音乐与灯光模式的对应关系确定预设音乐的音乐类型对应的第一灯光模式,调用音乐服务,基于音乐服务调用相应的实现第一灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现第一灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Further, the determination unit is used to: determine the music type of the preset music output by the vehicle; determine the first lighting mode corresponding to the music type of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the music service, and based on the music The service calls the corresponding exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode, so as to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode.
进一步的,确定单元用于:确定车辆输出的预设音乐的输出频段;基于预先存储的音乐与灯光模式的对应关系确定预设音乐的输出频段对应的第二灯光模式,调用音乐服务,基于音乐服务调用相应的实现第二灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现第二灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Further, the determination unit is used to: determine the output frequency band of the preset music output by the vehicle; determine the second lighting mode corresponding to the output frequency band of the preset music based on the pre-stored correspondence between the music and the lighting mode, call the music service, and based on the music The service calls the corresponding exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode, so as to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode.
进一步的,确定单元还用于:若车辆输出预设音乐的过程中,预设音乐的输出频段发生变化,由第一输出频段调整为第二输出频段,则基于预先从存储的音乐与灯光模式的对应关系确定第二输出频段对应的第三灯光模式,调用音乐服务,基于音乐服务调用相应的与第三灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。Further, the determination unit is also configured to: if the output frequency band of the preset music changes during the vehicle outputting the preset music and is adjusted from the first output frequency band to the second output frequency band, based on the previously stored music and lighting modes The corresponding relationship determines the third lighting mode corresponding to the second output frequency band, calls the music service, and calls the corresponding exterior light interface corresponding to the third lighting mode based on the music service, so as to control the exterior light output in the corresponding exterior light module through the called exterior light interface. light.
进一步的,确定单元还用于若停止调用音乐服务,则车辆停止输出预设音乐,停止调用外灯服务,以停止输出与预设音乐匹配的灯光。Further, the determination unit is also configured to stop the vehicle from outputting the preset music and stop calling the exterior light service if the music service is stopped, so as to stop outputting lights that match the preset music.
其中,可由控制器执行上述第一获得单元、第二获得单元、控制单元及确定单元的各项功能,控制器为整车控制装置中的实体结构。Wherein, various functions of the above-mentioned first obtaining unit, second obtaining unit, control unit and determining unit can be executed by a controller, which is an entity structure in the vehicle control device.
本实施例公开的车辆控制系统是基于上述实施例公开的车辆控制方法实现的,在此不再赘述。The vehicle control system disclosed in this embodiment is implemented based on the vehicle control method disclosed in the above embodiment, and will not be described again here.
当需要增加新的外灯模块输出灯光的模式时,只需要对该对应关系进行调整即可,实现了功能的快速迭代,缩短开发周期;并且,通过服务及接口的方式实现对外灯模块的调用,只要外灯接口进行不同的组合即可实现不同模式的灯光秀的输出,实现功能的快速迭代,缩短开发周期。When a new external light module output light mode needs to be added, the corresponding relationship only needs to be adjusted, realizing rapid iteration of functions and shortening the development cycle; and, the external light module is called through services and interfaces. As long as the external light interface is combined in different ways, different modes of light show output can be achieved, enabling rapid iteration of functions and shortening the development cycle.
本实施例公开了一种车辆控制装置,其结构示意图如图6所示,包括: This embodiment discloses a vehicle control device, the schematic structural diagram of which is shown in Figure 6, including:
音频输出模块61,外灯模块62及控制器63。Audio output module 61, exterior light module 62 and controller 63.
其中,音频输出模块61与音乐接口连接,用于输出音乐;Among them, the audio output module 61 is connected with the music interface and is used to output music;
外灯模块62与外灯接口连接,用于输出灯光;The exterior light module 62 is connected to the exterior light interface and is used to output light;
控制器63用于获得灯光控制请求,基于灯光控制请求调用车辆的整车控制服务;若基于整车控制服务确定车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用音乐接口,以便基于音乐接口输出预设音乐;基于预先存储的音乐与灯光模式的对应关系,确定与车辆输出的预设音乐匹配的灯光模式,调用外灯服务,并通过外灯服务调用与预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。The controller 63 is used to obtain the lighting control request, and call the vehicle control service of the vehicle based on the lighting control request; if it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, call the music service of the vehicle, and call the vehicle based on the music service Music interface to output preset music based on the music interface; based on the pre-stored correspondence between music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, call the exterior light service, and call the preset music through the exterior light service Match the exterior light interface corresponding to the lighting mode, so that the exterior light output light in the corresponding exterior light module can be controlled by calling the exterior light interface.
本实施例公开的车辆控制装置是基于上述实施例公开的车辆控制方法实现的,在此不再赘述。The vehicle control device disclosed in this embodiment is implemented based on the vehicle control method disclosed in the above embodiment, and will not be described again here.
当需要增加新的外灯模块输出灯光的模式时,只需要对该对应关系进行调整即可,实现了功能的快速迭代,缩短开发周期;并且,通过服务及接口的方式实现对外灯模块的调用,只要外灯接口进行不同的组合即可实现不同模式的灯光秀的输出,实现功能的快速迭代,缩短开发周期。When a new external light module output light mode needs to be added, the corresponding relationship only needs to be adjusted, realizing rapid iteration of functions and shortening the development cycle; and, the external light module is called through services and interfaces. As long as the external light interface is combined in different ways, different modes of light show output can be achieved, enabling rapid iteration of functions and shortening the development cycle.
本申请实施例还提供了一种可读存储介质,其上存储有计算机程序,计算机程序被处理器加载并执行,实现上述车辆控制方法的各步骤,具体实现过程可以参照上述实施例相应部分的描述,本实施例不做赘述。Embodiments of the present application also provide a readable storage medium on which a computer program is stored. The computer program is loaded and executed by a processor to implement each step of the above vehicle control method. For the specific implementation process, refer to the corresponding parts of the above embodiments. Description, no details will be given in this embodiment.
本申请还提出了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述车辆控制方法方面或车辆控制装置方面的各种可选实现方式中所提供方法,具体实现过程可以参照上述相应实施例的描述,不做赘述。This application also proposes a computer program product or computer program, which includes computer instructions and is stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the methods provided in various optional implementations of the above vehicle control method or vehicle control device. , the specific implementation process can refer to the description of the above corresponding embodiment, and no further description is given.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For relevant details, please refer to the description in the method section.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各 示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art may further appreciate that various methods described in connection with the embodiments disclosed herein The units and algorithm steps of the examples can be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the functions of each example. Composition and steps. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly in hardware, in software modules executed by a processor, or in a combination of both. Software modules may be located in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or anywhere in the field of technology. any other known form of storage media.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

  1. 一种车辆控制方法,其特征在于,包括:A vehicle control method, characterized by including:
    获得灯光控制请求;Get lighting control request;
    基于所述灯光控制请求调用车辆的整车控制服务;Call the vehicle's vehicle control service based on the lighting control request;
    若基于所述整车控制服务确定所述车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于所述音乐服务调用相应的音乐接口,以便基于所述音乐接口输出预设音乐;If it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, the music service of the vehicle is called, and the corresponding music interface is called based on the music service to output preset music based on the music interface;
    基于音乐与灯光模式的对应关系,确定与所述车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过所述外灯服务调用与所述预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。Based on the corresponding relationship between music and lighting mode, determine the lighting mode matching the preset music output by the vehicle, call the exterior light service, and call the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so that The exterior light output light in the corresponding exterior light module is controlled through the called exterior light interface.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述灯光控制请求调用车辆的整车控制服务,包括:The method according to claim 1, characterized in that, calling the vehicle's vehicle control service based on the light control request includes:
    基于所述灯光控制请求调用车辆的整车控制服务,以至少获得车辆当前的行驶状态、电源状态、危险报警灯状态及转向灯状态。Based on the light control request, the vehicle control service of the vehicle is called to obtain at least the current driving status, power status, hazard warning light status and turn signal status of the vehicle.
  3. 根据权利要求2所述的方法,其特征在于,所述若基于所述整车控制服务确定所述车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于音乐服务调用相应对的音乐接口,以便基于所述音乐接口输出预设音乐,包括:The method according to claim 2, characterized in that, if it is determined based on the vehicle control service that the current operating state of the vehicle meets the lighting control conditions, the music service of the vehicle is called, and the corresponding corresponding pair is called based on the music service. A music interface to output preset music based on the music interface, including:
    若基于所述整车控制服务确定所述车辆当前处于停止状态,电源处于正常供电状态及危险报警灯及转向灯处于关闭状态时,调用车辆的音乐服务,基于音乐服务调用相应的音乐接口,以便基于所述音乐接口输出预设音乐。If it is determined based on the vehicle control service that the vehicle is currently in a stopped state, the power supply is in a normal power supply state, and the hazard warning lights and turn signals are turned off, the music service of the vehicle is called, and the corresponding music interface is called based on the music service so that Preset music is output based on the music interface.
  4. 根据权利要求1所述的方法,其特征在于,所述确定与所述车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与所述预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光,包括:The method according to claim 1, characterized in that: determining a lighting mode matching the preset music output by the vehicle, calling an exterior light service, and calling the exterior light service corresponding to the lighting mode matching the preset music. The exterior light interface is used to control the exterior light output light in the corresponding exterior light module through the called exterior light interface, including:
    确定所述车辆输出的预设音乐的音乐类型;Determine the music type of the preset music output by the vehicle;
    基于预先存储的音乐与灯光模式的对应关系确定所述预设音乐的音乐 类型对应的第一灯光模式,调用音乐服务,通过音乐服务调用实现所述第一灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现所述第一灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。The music of the preset music is determined based on the pre-stored correspondence between music and lighting modes. Type corresponding to the first lighting mode, call the music service, and call the exterior light interface of the exterior light in the exterior light module required to implement the first lighting mode through the music service, so that the exterior light in the exterior light module required to implement the first lighting mode The exterior light interface controls the exterior light output light in the corresponding exterior light module.
  5. 根据权利要求4所述的方法,其特征在于,还包括:The method according to claim 4, further comprising:
    基于所述预设音乐的音乐类型调用对应的车窗服务,并调用所述车窗服务下不同的车窗接口。The corresponding car window service is called based on the music type of the preset music, and different car window interfaces under the car window service are called.
  6. 根据权利要求1所述的方法,其特征在于,所述确定与所述车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过外灯服务调用与所述预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光,包括:The method according to claim 1, characterized in that: determining a lighting mode matching the preset music output by the vehicle, calling an exterior light service, and calling the exterior light service corresponding to the lighting mode matching the preset music. The exterior light interface is used to control the exterior light output light in the corresponding exterior light module through the called exterior light interface, including:
    确定所述车辆输出的预设音乐的输出频段;Determine the output frequency band of the preset music output by the vehicle;
    基于预先存储的音乐与灯光模式的对应关系确定所述预设音乐的输出频段对应的第二灯光模式,调用外灯服务,通过外灯服务调用实现所述第二灯光模式所需的外灯模块中外灯的外灯接口,以便通过实现所述第二灯光模式所需的外灯模块中外灯的外灯接口控制对应的外灯模块中的外灯输出灯光。Based on the pre-stored correspondence between music and lighting modes, the second lighting mode corresponding to the output frequency band of the preset music is determined, the exterior light service is called, and the exterior lights in the exterior light module required to realize the second lighting mode are called through the exterior light service. The exterior light interface is used to control the exterior light output light in the corresponding exterior light module through the exterior light interface of the exterior light in the exterior light module required to implement the second lighting mode.
  7. 根据权利要求6所述的方法,其特征在于,还包括:The method according to claim 6, further comprising:
    若所述车辆输出预设音乐的过程中,所述预设音乐的输出频段发生变化,由第一输出频段调整为第二输出频段,则基于预先从存储的音乐与灯光模式的对应关系确定所述第二输出频段对应的第三灯光模式,调用外灯服务,通过所述外灯服务调用与第三灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。If the output frequency band of the preset music changes during the process of the vehicle outputting the preset music, and is adjusted from the first output frequency band to the second output frequency band, then the corresponding relationship between the stored music and the lighting mode is determined in advance. The third lighting mode corresponding to the second output frequency band calls the exterior light service, and calls the exterior light interface corresponding to the third lighting mode through the exterior light service, so as to control the exterior light output light in the corresponding exterior light module through the called exterior light interface.
  8. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    若停止调用所述音乐服务,则所述车辆停止输出所述预设音乐,停止调用外灯服务,以停止输出与所述预设音乐匹配的灯光。If the music service is stopped to be called, the vehicle stops outputting the preset music and stops calling the exterior light service to stop outputting lights matching the preset music.
  9. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    若确定所述车辆的当前运行状态不符合灯光控制条件,输出提示信息。If it is determined that the current operating status of the vehicle does not meet the lighting control conditions, a prompt message will be output.
  10. 一种车辆控制系统,其特征在于,包括:A vehicle control system, characterized by including:
    第一获得单元,用于获得灯光控制请求; The first obtaining unit is used to obtain the lighting control request;
    第二获得单元,用于基于所述灯光控制请求调用车辆的整车控制服务;a second obtaining unit configured to invoke the vehicle control service of the vehicle based on the lighting control request;
    控制单元,用于在基于所述整车控制服务确定所述车辆的当前运行状态符合灯光控制条件时,调用车辆的音乐服务,基于所述音乐服务调用相应的音乐接口,以便基于所述音乐接口输出预设音乐;A control unit configured to call the music service of the vehicle when it is determined based on the vehicle control service that the current operating status of the vehicle meets the lighting control conditions, and call the corresponding music interface based on the music service, so that based on the music interface Output preset music;
    确定单元,用于基于预先存储的音乐与灯光模式的对应关系,确定与所述车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过所述外灯服务调用与所述预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。A determination unit configured to determine a lighting mode that matches the preset music output by the vehicle based on the pre-stored correspondence between the music and the lighting mode, call an exterior light service, and call a lighting pattern that matches the preset music through the exterior light service. The exterior light interface corresponding to the light mode is used to control the exterior light output light in the corresponding exterior light module through the called exterior light interface.
  11. 一种车辆控制装置,其特征在于,包括:A vehicle control device, characterized by including:
    音频输出模块,与音乐接口连接,用于输出音乐;Audio output module, connected to the music interface, used to output music;
    外灯模块,与外灯接口连接,用于输出灯光;The exterior light module is connected to the exterior light interface and used to output light;
    控制器,用于获得灯光控制请求;Controller, used to obtain lighting control requests;
    基于所述灯光控制请求调用车辆的整车控制服务;若基于所述整车控制服务确定所述车辆的当前运行状态符合灯光控制条件,则调用车辆的音乐服务,基于所述音乐服务调用相应的音乐接口,以便基于所述音乐接口控制所述音频输出模块输出预设音乐;基于预先存储的音乐与灯光模式的对应关系,确定与所述车辆输出的预设音乐匹配的灯光模式,调用外灯服务,通过所述外灯服务调用与所述预设音乐匹配的灯光模式对应的外灯接口,以便通过调用的外灯接口控制对应的外灯模块中的外灯输出灯光。The vehicle's vehicle control service is called based on the lighting control request; if it is determined based on the vehicle control service that the current operating state of the vehicle meets the lighting control conditions, the vehicle's music service is called, and the corresponding music service is called based on the music service. A music interface to control the audio output module to output preset music based on the music interface; based on the pre-stored correspondence between music and lighting modes, determine the lighting mode that matches the preset music output by the vehicle, and call the exterior light service , calling the exterior light interface corresponding to the lighting mode matching the preset music through the exterior light service, so as to control the exterior light output light in the corresponding exterior light module through the called exterior light interface.
  12. 一种可读存储介质,用于至少存储一组指令集;A readable storage medium for storing at least a set of instructions;
    所述指令集用于被调用并至少执行如权利要求1-9中任一项所述的车辆控制方法。 The instruction set is used to be called and execute at least the vehicle control method according to any one of claims 1-9.
PCT/CN2023/117372 2022-09-09 2023-09-07 Vehicle control method, apparatus and system, and readable storage medium WO2024051761A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211102462.5A CN115635928A (en) 2022-09-09 2022-09-09 Vehicle control method, device and system
CN202211102462.5 2022-09-09

Publications (1)

Publication Number Publication Date
WO2024051761A1 true WO2024051761A1 (en) 2024-03-14

Family

ID=84941192

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117372 WO2024051761A1 (en) 2022-09-09 2023-09-07 Vehicle control method, apparatus and system, and readable storage medium

Country Status (2)

Country Link
CN (1) CN115635928A (en)
WO (1) WO2024051761A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115635928A (en) * 2022-09-09 2023-01-24 长城汽车股份有限公司 Vehicle control method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082181A1 (en) * 2008-09-30 2010-04-01 Honda Motor Co., Ltd Communication control system for vehicles
WO2019151788A1 (en) * 2018-02-05 2019-08-08 삼성전자 주식회사 Infotainment device, infotainment service providing method, and vehicular electronic system comprising infotainment device
CN110239422A (en) * 2019-06-25 2019-09-17 重庆长安汽车股份有限公司 Method, system and the computer readable storage medium for so that vapour embarkation lamp and music is linked
KR102124197B1 (en) * 2018-12-28 2020-06-17 주식회사 대성엘텍 System for controlling in-vehicle-infortainment apparatus using mobile terminal and method for the same
US20200189501A1 (en) * 2018-12-14 2020-06-18 Hyundai Motor Company And Kia Motors Corporation Voice recognition function link control system and method of vehicle
CN115635928A (en) * 2022-09-09 2023-01-24 长城汽车股份有限公司 Vehicle control method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082181A1 (en) * 2008-09-30 2010-04-01 Honda Motor Co., Ltd Communication control system for vehicles
WO2019151788A1 (en) * 2018-02-05 2019-08-08 삼성전자 주식회사 Infotainment device, infotainment service providing method, and vehicular electronic system comprising infotainment device
US20200189501A1 (en) * 2018-12-14 2020-06-18 Hyundai Motor Company And Kia Motors Corporation Voice recognition function link control system and method of vehicle
KR102124197B1 (en) * 2018-12-28 2020-06-17 주식회사 대성엘텍 System for controlling in-vehicle-infortainment apparatus using mobile terminal and method for the same
CN110239422A (en) * 2019-06-25 2019-09-17 重庆长安汽车股份有限公司 Method, system and the computer readable storage medium for so that vapour embarkation lamp and music is linked
CN115635928A (en) * 2022-09-09 2023-01-24 长城汽车股份有限公司 Vehicle control method, device and system

Also Published As

Publication number Publication date
CN115635928A (en) 2023-01-24

Similar Documents

Publication Publication Date Title
WO2022033040A1 (en) Scene generation method, apparatus and system, device and storage medium
CN111002996B (en) Vehicle-mounted voice interaction method, server, vehicle and storage medium
WO2024051761A1 (en) Vehicle control method, apparatus and system, and readable storage medium
CN106992009B (en) Vehicle-mounted voice interaction method and system and computer readable storage medium
CN109089355B (en) Automobile light control method and system based on music signals
CN112078474B (en) Vehicle control method and device
CN112959961A (en) Method and device for controlling vehicle in specific mode, electronic equipment and storage medium
WO2024099046A1 (en) Voice interaction method, server and computer-readable storage medium
US20150025762A1 (en) Music-based indication for electronic transmission range selection
CN114286479A (en) Scene-based in-vehicle light control method and system and readable storage medium
CN114407775A (en) Atmosphere lamp control method, device and system and vehicle
KR20180020399A (en) Device and Method for virtual engine sound generation
CN117962741A (en) Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium
CN112312280A (en) In-vehicle sound playing method and device
CN115047808A (en) Automobile intelligent equipment control system and method
CN113709954A (en) Atmosphere lamp control method and device, electronic equipment and storage medium
CN113225879B (en) Vehicle-mounted interior lamp control method, atmosphere lamp controller and control system
KR20230086561A (en) Application loaded with path change software, and method for changing audio stream output path of android audio system using the same
CN112046287A (en) Vehicle interaction method and device
CN114987367A (en) Vehicle-mounted karaoke system with in-vehicle and out-vehicle function, method and storage medium
CN213694245U (en) Vehicle light control system, vehicle and light setting system
WO2022155851A1 (en) Tail lamp light control method and system
CN115881122A (en) Vehicle-mounted voice self-defined control system
CN117453966A (en) User-defined use scene generation method, system and cloud
CN116844540A (en) Vehicle-mounted voice assistant interaction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23862455

Country of ref document: EP

Kind code of ref document: A1