A service-oriented in-vehicle atmosphere light control method, device, equipment and medium
Through the service-oriented in-vehicle ambient light control method, the ambient light is controlled by using enhanced services and atomic services, which solves the scalability and rapid verification problems of traditional systems when dealing with complex user experience needs, and achieves flexible and efficient ambient light control.
Patent Information
- Application Number
- CN202211518643.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-11-29
AI Technical Summary
When traditional automotive electronic control systems deal with complex and changing user experience needs, they lack scalability and rapid verification, making it difficult to keep up with the speed of changes in demand.
The service-oriented in-vehicle ambient light control method is adopted to control the ambient light by obtaining the target ambient light control request, calling the corresponding ambient light enhancement service and atomic service. Enhanced services are determined by extracting common needs, while atomic services are determined based on the control load type of ambient light.
It isolates the upper-level requirements from the underlying control, improves the flexibility and scalability of ambient light control, and can quickly respond to and iterate different user experience needs.
Smart Images

Figure CN115771453B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic control of automobile bodies, and specifically relates to a service-oriented in-vehicle atmosphere light control method, device, equipment and medium. Background Art
[0002] With the development of automotive electronic and electrical architecture, the data transmission rate of in-vehicle networks has gradually increased, and with the advancement of Internet of Vehicles technology, Ethernet has gradually been applied in vehicles, gradually shifting cars from closed control systems to open control systems, and from automation to intelligence and digitization. Along with this, users' demand for vehicles has expanded from basic location to the level of user experience. Users pay more attention to the experience of seeing, touching, and using. As one of the few components in the car that is designed for experience, the ambient light has undoubtedly become the focus of major car manufacturers to improve the user experience of vehicles. When it comes to the control objects of user experience, the scenarios are complex and changeable, the requirements are endless, and they need to be quickly iterated and updated online so that users can use the continuously optimized functional experience in a shorter waiting time. The software development of traditional automotive electronic control systems follows the development cycle of the entire vehicle, and the designed control system is not scalable and can be quickly verified, and cannot keep up with the speed of demand changes. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the present invention provides a service-oriented in-vehicle atmosphere light control method, device, equipment and medium to solve the above-mentioned technical problems.
[0004] The present invention provides a service-oriented in-vehicle atmosphere light control method, the method comprising:
[0005] Get the target ambient light control request;
[0006] In response to the target atmosphere light control request, calling the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request;
[0007] The atmosphere light is controlled through the target atmosphere light enhancement service and the target atomic service.
[0008] In one embodiment of the present invention, the step of obtaining a target atmosphere light control request includes:
[0009] detecting a state of the vehicle;
[0010] Based on the state of the vehicle, it is determined whether the vehicle meets the scene triggering condition, and when the vehicle meets the scene triggering condition, a target functional scene is determined and the target atmosphere light control request is generated.
[0011] In one embodiment of the present invention, the target functional scene includes one of a welcoming scene, a driving scene, and a seeing-off scene.
[0012] In one embodiment of the present invention, if the generated ambient light control request includes multiple ambient light control requests, the control method further includes:
[0013] Get the priority of each ambient light control request;
[0014] Compare the priorities of each ambient light control request in pairs to determine the ambient light control request with the highest priority;
[0015] The atmosphere light control request with the highest priority is used as the target atmosphere light control request, wherein the priority of the atmosphere light control request is preset.
[0016] In one embodiment of the present invention, the working state of the atmosphere light includes an initial state, an execution state, and an interruption state;
[0017] When it is detected that there is no target atmosphere light control request, the atmosphere light is in an initial state;
[0018] When a target atmosphere light control request is detected, the atmosphere light is in an execution state;
[0019] When the atmosphere light is in the execution state, if a new atmosphere light control request having a higher priority than the target atmosphere light control request is detected, the atmosphere light enters the interruption state, and the new atmosphere light control request is used as the target control request.
[0020] In one embodiment of the present invention, the control of the atmosphere light through the target atmosphere light enhancement service includes controlling the position, brightness, and color of the atmosphere light.
[0021] In one embodiment of the present invention, the controlling the atmosphere light through the target atomic service includes:
[0022] Identifying a load type of the ambient light;
[0023] Determining a target control mode corresponding to the load type based on the load type;
[0024] The atmosphere lamp is controlled by the target control method.
[0025] The present invention provides a service-oriented in-vehicle atmosphere light control device, the device comprising:
[0026] A request acquisition module is used to obtain a target atmosphere light control request;
[0027] A calling module, used to respond to the target atmosphere light control request and call the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request;
[0028] A control module is used to control the atmosphere light through the target atmosphere light enhancement service and the target atomic service.
[0029] The present invention provides an electronic device, comprising:
[0030] one or more processors;
[0031] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the steps of the above-mentioned service-oriented in-vehicle atmosphere light control method.
[0032] The present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer is enabled to execute the steps of the above-mentioned service-oriented in-vehicle atmosphere light control method.
[0033] Beneficial effects of the present invention:
[0034] A service-oriented in-vehicle atmosphere light control method in the present invention includes: obtaining a target atmosphere light control request; responding to the target atmosphere light control request, calling a target atmosphere light enhancement service and a target atomic service corresponding to the target atmosphere light control request; and controlling the atmosphere light through the target atmosphere light enhancement service and the target atomic service. The present invention obtains the target atmosphere light control request, and then calls the enhancement service and the atomic service corresponding to the target atmosphere light control request, wherein the enhancement service is determined by extracting the common requirements for the atmosphere light, and the atomic service is determined based on the control load type of the atmosphere light, and then various scene functions of the atmosphere light and different control requirements are realized through the combination of various objects and methods, thereby isolating the upper-level requirements from the underlying control.
[0035] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0037] Figure 1A schematic diagram of an implementation environment of a service-oriented in-vehicle ambient light control method according to an exemplary embodiment of the present application;
[0038] Figure 2 A flowchart of a service-oriented in-vehicle ambient light control method shown in an exemplary embodiment of the present application;
[0039] Figure 3 This is a flow chart of obtaining a target atmosphere light control request according to an exemplary embodiment of the present application;
[0040] Figure 4 A block diagram of a service-oriented in-vehicle atmosphere light control device according to an exemplary embodiment of the present application;
[0041] Figure 5 A flowchart of a control method when a generated ambient light control request includes multiple items is shown as an exemplary embodiment of the present application;
[0042] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0044] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0045] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0046] Figure 1 is a schematic diagram of an exemplary implementation environment of the service-oriented in-vehicle ambient light control method of the present application. Figure 1 , the implementation environment includes a car computer 110 and an atmosphere light 120, and the car computer 110 and the atmosphere light 120 exchange data through a wired or wireless network. The car computer is used to obtain a target atmosphere light control request; in response to the target atmosphere light control request, call the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request; and control the atmosphere light through the target atmosphere light enhancement service and the target atomic service. The present invention obtains the target atmosphere light control request, and then calls the enhancement service and the atomic service corresponding to the target atmosphere light control request, wherein the enhancement service is determined by extracting the common requirements for the atmosphere light, and the atomic service is determined based on the control load type of the atmosphere light, and then various scene functions of the atmosphere light are realized through a combination of various objects and methods, as well as different control requirements, to achieve isolation of upper-level requirements from underlying controls.
[0047] It should be understood that Figure 1 The number of the atmosphere lamps 120 is only for illustration. Any number and atmosphere lamps 120 may be provided according to actual needs.
[0048] The vehicle computer 110 can communicate with the ambient light 120 through a wired or wireless network via 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology) or other wireless networks.
[0049] The embodiments of the present application respectively propose a service-oriented in-vehicle atmosphere light control method, a service-oriented in-vehicle atmosphere light control device, an electronic device, and a computer-readable storage medium, and these embodiments will be described in detail below.
[0050] See also Figure 2 , Figure 2 is a flow chart of a service-oriented in-vehicle ambient light control method shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.
[0051] See also Figure 2 , Figure 2 This is a flow chart of an exemplary service-oriented in-vehicle atmosphere light control method of the present application. The service-oriented in-vehicle atmosphere light control method at least includes steps S210 to S230, which are described in detail as follows:
[0052] Step S210, obtaining a target atmosphere light control request;
[0053] Step S220, responding to the target atmosphere light control request, calling the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request;
[0054] Step S230: Controlling the atmosphere light through the target atmosphere light enhancement service and the target atomic service.
[0055] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0056] The following is a detailed description of each step of the above-mentioned service-oriented in-vehicle ambient light control method.
[0057] In step S210, a target atmosphere light control request is obtained;
[0058] It should be noted that the target atmosphere light control request is a request to control the target atmosphere light.
[0059] See also Figure 3 , Figure 3 FIG. 1 is a flowchart of obtaining a target atmosphere light control request according to an exemplary embodiment of the present application. Figure 3 In the method, the target atmosphere light control request is obtained, which includes at least steps S310 to S320. Specifically,
[0060] Step S310, detecting the state of the vehicle;
[0061] It should be noted that the state of the vehicle is used to determine the current functional scene of the vehicle. Specifically, the functional scenes include: welcoming scene, driving scene, and seeing off scene. According to the state of the vehicle, a target functional scene can be determined from the welcoming scene, driving scene, and seeing off scene.
[0062] Among them, taking the welcoming scene as an example, if it is necessary to judge the current functional scene of the vehicle, the vehicle status includes: whether it is in the off state, whether the power gear is OFF, whether the vehicle speed is 0, whether the four doors are closed, whether the whole vehicle is in the anti-theft state, and whether the door lock is locked.
[0063] Step S320, judging whether the vehicle satisfies a scene trigger condition based on the state of the vehicle, and when the vehicle satisfies the scene trigger condition, determining a target functional scene and generating the target atmosphere light control request.
[0064] In step S310, the states that have been determined can be used to determine the functional scene of the vehicle. That is, whether the scene triggering condition is met is judged according to the collected vehicle state, and if so, which functional scene the corresponding vehicle enters is determined, and this functional scene is used as the target functional scene.
[0065] Among them, the trigger condition means that the state of the vehicle meets the requirements of the corresponding functional scenario for the vehicle state.
[0066] Taking the welcoming scene as an example, if the vehicle's status includes: engine off, power gear is OFF, vehicle speed is 0, 4 doors are closed, the entire vehicle is in anti-theft status, and door locks are locked, it means that the vehicle has entered the welcoming scene.
[0067] After entering the welcome scene, if an unlocking action occurs and the main driver's door lock status changes to unlocked, and the key is found outside the car, wait for the main driver's door to open, wait for the user to power on the vehicle and drive the car, then exit the welcome scene.
[0068] In step S220, in response to the target atmosphere light control request, the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request are called;
[0069] After the target atmosphere light control request is generated, the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request are called in response to the target atmosphere light control request by calling the corresponding service interface.
[0070] The target atmosphere light enhancement service is an atmosphere light enhancement service corresponding to the target atmosphere light control request.
[0071] According to the functional requirements of the atmosphere light, the common requirements for the atmosphere light are extracted, and the service interface of the atmosphere light for external application is abstracted, which is defined here as the atmosphere light enhancement service.
[0072] Functional requirement extraction: By identifying the functions of the ambient light system, it is recognized that the welcoming scene, seeing off scene, and driving scene will have control requests for the ambient light, and will make control requests for the position, brightness, and color of the ambient light respectively. At the same time, it is determined that if other systems have control requests for the ambient light, they will also have the need to select the position of the ambient light, control the color and brightness of the ambient light, or have the need to know the current working status of the ambient light.
[0073] The attributes of the ambient light enhancement service include whether it supports PWM control (brightness control), whether it supports breathing control (continuous brightness change), color control, current feedback, open circuit detection, and short circuit detection. Its methods include obtaining the logical working state of the ambient light, obtaining the actual working state of the ambient light, requesting ambient light control, including color, brightness, position, and priority arbitration of ambient light requests.
[0074] See also Figure 4 , Figure 4 As shown in an exemplary embodiment of the present application, when the generated ambient light control request includes multiple ambient light control requests, the control method also includes steps S410 to S430, specifically:
[0075] Step S410, obtaining the priority of each ambient light control request;
[0076] Step S420, comparing the priorities of each of the ambient light control requests in pairs to determine the ambient light control request with the highest priority;
[0077] Step S430: taking the atmosphere light control request with the highest priority as the target atmosphere light control request, wherein the priority of the atmosphere light control request is preset.
[0078] It should be noted that in the same functional field, different demands may exist at the same time or in the same time period. When there are different demands, different ambient light control requests will be generated. At this time, priority arbitration is required for different types of ambient light control requests, and the ambient light enhancement service can be used to perform arbitration operations.
[0079] In one embodiment, the working state of the atmosphere light includes an initial state, an execution state, and an interruption state;
[0080] When it is detected that there is no target atmosphere light control request, the atmosphere light is in an initial state;
[0081] When a target atmosphere light control request is detected, the atmosphere light is in an execution state;
[0082] When the atmosphere light is in the execution state, if a new atmosphere light control request having a higher priority than the target atmosphere light control request is detected, the atmosphere light enters the interruption state, and the new atmosphere light control request is used as the target control request.
[0083] The working state of the atmosphere light is divided into three sub-states, namely the initial state, the execution state, and the interrupt state. The priority of the atmosphere light is set from 1 to 255. The smaller the value, the higher the priority of the request. When no request is received, the atmosphere light is in the initialization state. When an atmosphere light request is received, the atmosphere light enters the execution state. In the execution state, if a request of higher priority or equal priority is received, the atmosphere light enters the interrupt state. When the currently executed atmosphere light request becomes 0, the atmosphere light re-enters the initialization state.
[0084] It is understandable that when the received atmosphere light control request is executed, the feedback is that the execution is successful. If the current atmosphere light is executing a high priority request, the feedback is that the execution fails and the atmosphere light is processing the high priority request.
[0085] When the atmosphere light is controlled in response to the atmosphere light control request, the controller is notified of the current execution status of the atmosphere light: the position parameters, brightness parameters, and color parameters in the current execution request of the atmosphere light are fed back as the atmosphere light logic execution status, and the actual working status; wherein the actual working status includes position, color, brightness, open circuit detection, and short circuit detection feedback as the actual working status of the atmosphere light.
[0086] Among them, the target atomic service is the atomic service corresponding to the target atmosphere light control request.
[0087] Based on identifying the communication mode of possible ambient light control loads, a service interface for the matching relationship between control requests and control hardware is abstracted, which is defined here as an atomic service.
[0088] Identification of ambient light load type: By identifying the ambient light load type, it is recognized that the ambient light is divided into hard-line PWM control and LIN control. Each of these two types of ambient lights is divided into two types: readable current and non-readable current. At the same time, the installation position of the ambient light in the whole vehicle is divided into one-way control installation, two-way control installation and four-way control installation.
[0089] The attributes of atomic services include communication method, installation method, whether brightness adjustment is supported, whether breathing adjustment is supported, whether color adjustment is supported, whether current feedback is supported, whether open circuit detection is supported, and whether short circuit detection is supported. Its methods include real-time working status feedback of atmosphere lights, atmosphere light position selection, atmosphere light brightness control, and atmosphere light color adjustment.
[0090] When controlling the ambient light, according to the attribute parameters of the ambient light atomic service configuration, the call request parameters of the ambient light enhancement service are received, and the control interface of the hard-wired PWM and the control interface of the LIN bus are matched. If the hardware layer executes the control request, it returns success, otherwise it returns failure. Feedback on the operating parameters of the ambient light load: directly return the execution results of the hardware layer, including the color RGB value of the ambient light, the brightness PWM value, the position parameters corresponding to the ambient light, the output current, the open circuit detection result, and the short circuit detection result.
[0091] In step S230, the atmosphere light is controlled through the target atmosphere light enhancement service and the target atomic service.
[0092] Among them, the control of the atmosphere light through the target atmosphere light enhancement service includes controlling the position, brightness and color of the atmosphere light.
[0093] In one embodiment, controlling the atmosphere light through the target atomic service includes:
[0094] Identifying a load type of the ambient light;
[0095] Determining a target control mode corresponding to the load type based on the load type;
[0096] The atmosphere lamp is controlled by the target control method.
[0097] The load type of the atmosphere light is different, so the control unit controls the atmosphere light in different ways. Therefore, the corresponding control method can be determined according to the load type of the atmosphere light, and finally the atmosphere light is controlled through the target control method.
[0098] The present invention obtains the target atmosphere light control request, and then calls the enhanced service and atomic service corresponding to the target atmosphere light control request, wherein the enhanced service is determined by extracting the common requirements for the atmosphere light, and the atomic service is determined based on the control load type of the atmosphere light. Then, various scene functions of the atmosphere light and different control requirements are implemented through the combination of various objects and methods, thereby isolating the upper-level requirements from the underlying control.
[0099] Figure 5 is a block diagram of a service-oriented in-vehicle atmosphere light control device shown in an exemplary embodiment of the present application. The device can be applied to Figure 1 The device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applied.
[0100] like Figure 5 As shown, the present application provides a service-oriented in-vehicle atmosphere light control device, the device comprising:
[0101] A request acquisition module 510 is used to acquire a target atmosphere light control request;
[0102] A calling module 520, configured to respond to the target atmosphere light control request and call a target atmosphere light enhancement service and a target atomic service corresponding to the target atmosphere light control request;
[0103] The control module 530 is used to control the atmosphere light through the target atmosphere light enhancement service and the target atomic service.
[0104] It should be noted that the service-oriented in-vehicle atmosphere light control device provided in the above embodiment and the service-oriented in-vehicle atmosphere light control method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In actual application, the service-oriented in-vehicle atmosphere light control device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0105] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the service-oriented in-vehicle atmosphere light control method provided in the above-mentioned embodiments.
[0106] Figure 6 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 6 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0107] like Figure 6 As shown, the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM), such as executing the method described in the above embodiment. In the RAM, various programs and data required for system operation are also stored. The CPU, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.
[0108] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0109] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, the computer program including a computer program for executing the process. Figure 2 A computer program of the service-oriented in-vehicle atmosphere light control method shown. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by the central processing unit (CPU), various functions defined in the system of the present application are executed.
[0110] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0111] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0112] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0113] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the service-oriented in-vehicle atmosphere light control method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0114] Another aspect of the present application further provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the service-oriented in-vehicle atmosphere light control method provided in each of the above embodiments.
[0115] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A service-oriented in-vehicle atmosphere light control method, characterized in that: The method comprises: Get the target ambient light control request; In response to the target atmosphere light control request, the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request are called; wherein the enhancement service is determined by extracting the common requirements for the atmosphere light, the atomic service is determined based on the control load type of the atmosphere light, the atmosphere light enhancement service represents the service interface of the atmosphere light for external application, and the atomic service represents the service interface of the matching relationship between the control request and the control hardware; The attributes of the atmosphere light enhancement service include: whether to support PWM control, whether to support breathing control, whether to support color control, whether to support current feedback, whether to support open circuit detection, and whether to support short circuit detection; the methods of the atmosphere light enhancement service include: obtaining the logical working state of the atmosphere light, obtaining the actual working state of the atmosphere light, requesting atmosphere light control, including color, brightness, position, and priority arbitration of atmosphere light requests; The properties of the atomic service include: communication mode, installation mode, whether brightness adjustment is supported, whether breathing adjustment is supported, whether color adjustment is supported, whether current feedback is supported, whether open circuit detection is supported, and whether short circuit detection is supported; the methods of the atomic service include: real-time working status feedback of the atmosphere light, atmosphere light position selection, atmosphere light brightness control, and atmosphere light color adjustment; The atmosphere light is controlled through the target atmosphere light enhancement service and the target atomic service.
2. The service-oriented in-vehicle atmosphere light control method according to claim 1, characterized in that: The step of obtaining a target atmosphere light control request includes: detecting a state of the vehicle; Based on the state of the vehicle, it is determined whether the vehicle meets the scene triggering condition, and when the vehicle meets the scene triggering condition, a target functional scene is determined and the target atmosphere light control request is generated.
3. The service-oriented in-vehicle atmosphere light control method according to claim 2, characterized in that: The target functional scene includes one of a welcoming scene, a driving scene, and a seeing-off scene.
4. The service-oriented in-vehicle atmosphere light control method according to claim 2, characterized in that: If the generated ambient light control request includes multiple ambient light control requests, the control method also includes: Get the priority of each ambient light control request; Compare the priorities of each ambient light control request in pairs to determine the ambient light control request with the highest priority; The atmosphere light control request with the highest priority is used as the target atmosphere light control request, wherein the priority of the atmosphere light control request is preset.
5. The service-oriented in-vehicle atmosphere light control method according to claim 4, characterized in that: The working state of the atmosphere light includes an initial state, an execution state, and an interruption state; When it is detected that there is no target atmosphere light control request, the atmosphere light is in an initial state; When a target atmosphere light control request is detected, the atmosphere light is in an execution state; When the atmosphere light is in the execution state, if a new atmosphere light control request having a higher priority than the target atmosphere light control request is detected, the atmosphere light enters the interruption state, and the new atmosphere light control request is used as the target control request.
6. The service-oriented in-vehicle atmosphere light control method according to claim 1, characterized in that: The control of the atmosphere light through the target atmosphere light enhancement service includes controlling the position, brightness and color of the atmosphere light.
7. The service-oriented in-vehicle atmosphere light control method according to claim 1, characterized in that: The controlling the atmosphere light through the target atomic service includes: Identifying a load type of the ambient light; Determining a target control mode corresponding to the load type based on the load type; The atmosphere lamp is controlled by the target control method.
8. A service-oriented in-vehicle atmosphere light control device, characterized in that: The device comprises: A request acquisition module is used to obtain a target atmosphere light control request; A calling module, used to respond to the target atmosphere light control request, and call the target atmosphere light enhancement service and the target atomic service corresponding to the target atmosphere light control request; wherein the enhancement service is determined by extracting the common requirements for the atmosphere light, the atomic service is determined based on the control load type of the atmosphere light, the atmosphere light enhancement service represents the service interface of the atmosphere light for external application, and the atomic service represents the service interface of the matching relationship between the control request and the control hardware; The attributes of the atmosphere light enhancement service include: whether to support PWM control, whether to support breathing control, whether to support color control, whether to support current feedback, whether to support open circuit detection, and whether to support short circuit detection; the methods of the atmosphere light enhancement service include: obtaining the logical working state of the atmosphere light, obtaining the actual working state of the atmosphere light, requesting atmosphere light control, including color, brightness, position, and priority arbitration of atmosphere light requests; The properties of the atomic service include: communication mode, installation mode, whether brightness adjustment is supported, whether breathing adjustment is supported, whether color adjustment is supported, whether current feedback is supported, whether open circuit detection is supported, and whether short circuit detection is supported; the methods of the atomic service include: real-time working status feedback of the atmosphere light, atmosphere light position selection, atmosphere light brightness control, and atmosphere light color adjustment; A control module is used to control the atmosphere light through the target atmosphere light enhancement service and the target atomic service.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the steps of the service-oriented in-vehicle ambient light control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the steps of the service-oriented in-vehicle atmosphere light control method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Whole vehicle function servitization abstraction system and method based on hardware resources
CN113448314A
Services software interface of vehicle atmosphere lamp control module
CN114745832A