Vehicle machine system, vehicle control method, electronic equipment and vehicle
By sinking business logic to the underlying service module in the vehicle computer system, the consistency problem of the same operation events on different screens is solved, the design complexity of the upper interactive module is reduced, and compatibility and reusability of business logic is improved.
Patent Information
- Application Number
- CN202411739836.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-25
AI Technical Summary
How to achieve consistency of the same operation events on different vehicle screens, reduce the design complexity of the upper interactive module, and improve compatibility with different platforms.
Design a vehicle-machine system, including upper-level interactive module, underlying service module and electronic control module. The upper interactive module does not contain a business logic interface, but handles operation events by calling the business logic interface in the underlying service module. The system sinks the business logic to the underlying service module, releasing the coupling relationship between the upper interactive module and the business logic.
The consistency of the same operation events on different screens is achieved, the design complexity of the upper-level interactive module is reduced, compatibility with different platforms is improved, and the reusability of business logic is improved.
Smart Images

Figure CN119502825A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle system, a vehicle control method, an electronic device and a vehicle. Background Art
[0002] With the development of vehicle intelligent technology, the intelligent functions of vehicles are becoming more and more abundant. There are more and more screens inside the cockpit, such as the central control screen, co-pilot screen, armrest screen, seat back screen, rear ceiling screen, rear armrest screen, etc. These screens provide users with a rich cockpit experience. Some operation events require to be implemented on different screens, or in other words, the same operation event can be implemented through different screens.
[0003] Therefore, how to ensure the consistency of the implementation of the same operation events on different screens has become a difficult problem facing technical personnel.
[0004] Therefore, this application is specially filed. Summary of the invention
[0005] In view of this, the purpose of this application is to propose a vehicle system, a vehicle control method, an electronic device and a vehicle, which ensures the consistency of the implementation of the same operation events on different screens, reduces the design complexity of the upper-level interaction module, improves the compatibility of the upper-level interaction module with different platforms, and improves the reuse of business logic.
[0006] Based on the above objectives, in a first aspect, the present application provides a vehicle system, including: an upper layer interaction module, a lower layer service module and an electronic control module;
[0007] Wherein, the upper layer interaction module includes a plurality of user interface units, and the user interface units are used to display content and receive operation events triggered by users, wherein each user interface unit corresponds to a screen display;
[0008] The bottom service module includes a plurality of business logic interfaces, each of which is different, and each of which is used to process the corresponding operation event and send a corresponding control signal to the electronic control module when it is determined that the first preset condition is met;
[0009] The electronic control module is used to receive the control signal and control the corresponding vehicle components according to the control signal.
[0010] Furthermore, the operation events respectively triggered by the user interface units are the same.
[0011] Based on the above purpose, in a second aspect, the present application further provides a vehicle control method, which is implemented based on the above vehicle system, and the vehicle control method includes:
[0012] When the user interface unit receives an operation event, the user interface unit calls a business logic interface associated with the operation event from the underlying service module;
[0013] The associated business logic interface processes the operation event, and in response to determining that the first preset condition is satisfied, the associated business logic interface sends a corresponding control signal to the electronic control module;
[0014] The electronic control module controls the corresponding vehicle components according to the control signal.
[0015] Further, when the user interface unit receives an operation event, the user interface unit calls a business logic interface associated with the operation event from the underlying service module, including:
[0016] The user interface unit determines a matching business logic interface identifier according to the associated information of the operation event;
[0017] The user interface unit calls the corresponding business logic interface from the underlying service module according to the matched business logic interface identifier.
[0018] Further, the association information includes identity information of the operation event, and the user interface unit determines the matching business logic interface identifier according to the association information of the operation event, including:
[0019] The user interface unit determines a matching business logic interface identifier according to the identity information.
[0020] Further, the association information includes type information and identity information of the operation event, and the user interface unit determines the matching business logic interface identifier according to the association information of the operation event, including:
[0021] The user interface unit determines a candidate interface identification group according to the type information;
[0022] The user interface unit determines a target interface identifier corresponding to the identity information from the candidate interface identifier group, and determines the target interface identifier as the matching business logic interface identifier.
[0023] Furthermore, it also includes: when the associated business logic interface determines that the first preset condition is not met, the associated business logic interface sends feedback information to the user interface unit so that the user interface unit displays target prompt information.
[0024] Furthermore, the operation event includes a vehicle component start-up event, and the electronic control module controls the corresponding vehicle component according to the control signal, including:
[0025] The electronic control module controls the electric actuator of the vehicle component to operate according to the control signal so as to open the vehicle component.
[0026] Further, the operation event includes: a back door opening event, the associated business logic interface processes the operation event, and in response to determining that the first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module, including:
[0027] The associated business logic interface obtains the current speed of the vehicle;
[0028] The associated business logic interface determines whether the current speed of the vehicle meets the speed condition;
[0029] In response to the current vehicle speed satisfying the vehicle speed condition, determining that the first preset condition is satisfied, the associated business logic interface sends a tailgate opening signal to the electronic control module.
[0030] Furthermore, the electronic control module controls the corresponding vehicle device according to the control signal, including:
[0031] The electronic control module controls the electromagnetic lock to unlock or controls the electric strut to open the vehicle's tailgate.
[0032] Furthermore, it also includes:
[0033] When the associated business logic interface determines that the current speed of the vehicle does not meet the speed condition, the associated business logic interface sends feedback information to the user interface unit so that the user interface unit displays target prompt information.
[0034] Further, the operation event includes: a seat massage function start event, the associated business logic interface processes the operation event, and in response to determining that the first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module, including:
[0035] The associated business logic interface determines whether the target seat meets the seat massage function activation condition;
[0036] In response to the target seat satisfying the seat massage function activation condition and determining that the first preset condition is satisfied, the associated business logic interface sends a corresponding control signal to the electronic control module.
[0037] Furthermore, the associated business logic interface determines whether the target seat meets the seat massage function activation condition, including:
[0038] The associated business logic interface acquires detection data of a pressure sensor associated with the target seat;
[0039] When the associated business logic interface determines that the detection data indicates that the target seat is occupied by a passenger, it is determined that the target seat meets the seat massage function activation condition.
[0040] Based on the above purpose, in a third aspect, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the vehicle control method as described in the second aspect above is implemented.
[0041] Based on the above purpose, in a fourth aspect, the present application also provides a vehicle, comprising the electronic device as described in the third aspect above.
[0042] Based on the above purpose, in a fifth aspect, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the vehicle control method as described in any one of the above second aspects.
[0043] From the above, it can be seen that in the vehicle-machine system provided by the present application, the underlying service module includes multiple business logic interfaces, while the upper-level interaction module does not include a business logic interface. Therefore, the business logic is sunk to the underlying service module. Since the upper-level interaction module has no business logic interface, the coupling relationship between the business logic and the upper-level interaction module is released, so that the upper-level interaction module is only responsible for processing tasks related to interface display. Therefore, the amount of tasks that the upper-level interaction module is responsible for processing is reduced, which is conducive to reducing the design complexity of the upper-level interaction module, so that the upper-level interaction module can be lightweight in design; due to the lightweight design of the upper-level interaction module, the compatibility of the upper-level interaction module with different platforms is improved; by sinking the business logic to the underlying service module, the business logic can be reused by different user interface units, that is, the reuse of the business logic is improved; since the same business logic interface can be reused to process operation events on different screens, the same operation event can be implemented consistently on different screens. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A design architecture of a vehicle system according to an embodiment of the present application Figure 1 ;
[0046] Figure 2A design architecture of a vehicle system according to an embodiment of the present application Figure 2 ;
[0047] Figure 3 A flow chart of a vehicle control method according to an embodiment of the present application Figure 1 ;
[0048] Figure 4 A flow chart of a vehicle control method according to an embodiment of the present application Figure 2 ;
[0049] Figure 5 A flow chart of a vehicle control method according to an embodiment of the present application Figure 3 ;
[0050] Figure 6 A flow chart of a vehicle control method according to an embodiment of the present application Figure 4 ;
[0051] Figure 7 A flow chart of a vehicle control method according to an embodiment of the present application Figure 5 ;
[0052] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0054] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0055] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0056] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0057] With the development of vehicle intelligent technology, the intelligent functions of vehicles are becoming more and more abundant. There are more and more screens inside the cockpit, such as the central control screen, the co-pilot screen, the armrest screen, the seatback screen, the rear ceiling screen, the rear armrest screen, etc. These screens provide users with a rich cockpit experience. Some operation events require implementation on different screens, or in other words, the same operation events can be implemented through different screens. For example, the driver sitting in the driver's seat can control the vehicle's seat heating function, air conditioning function, etc. through the central control screen, the passenger sitting in the co-pilot seat can control the vehicle's seat heating function, air conditioning function, etc. through the co-pilot screen, and the passenger sitting in the back row can control the vehicle's seat heating function, air conditioning function, etc. through the rear ceiling screen or the seatback screen. That is, the same operation event can be implemented through different screens, or the same operation event is required to be implemented on different screens.
[0058] In view of the above problems, in some implementations, a single screen (i.e., user interface unit) is designed separately, such as Figure 1In the design architecture diagram of a vehicle system shown in the figure, for each user interface unit, the corresponding business logic is designed, that is, each user interface unit is tightly coupled with the business logic that can be implemented. For example, if the user interface unit is a central control screen, and the user wants to control the vehicle's seat heating function through the central control screen, the business logic for controlling the vehicle's seat heating function is integrated with the interface display logic of the central control screen; for another example, if the user interface unit is a co-pilot screen, and the user wants to control the vehicle's seat heating function through the co-pilot screen, the business logic for controlling the vehicle's seat heating function is integrated with the interface display logic of the co-pilot screen. This results in the same business logic being repeatedly designed in different user interface units, which is not only inefficient, but also wastes research and development costs. In addition, this design method results in a strong coupling relationship between the business logic and the interface display logic of the user interface unit, which not only increases the complexity of the design, but is also not conducive to later maintenance, and is not conducive to the compatibility of the user interface unit with different platforms. At the same time, in the actual research and development process, different R&D personnel are usually responsible for the design of different user interface units, and different R&D personnel have different R&D styles, resulting in the same operation event being implemented in different user interface units. There is no consistency, which brings a poor user experience to users.
[0059] Therefore, how to ensure that the same operation event is implemented in different user interface units (or on different screens) becomes a difficult problem facing technical personnel.
[0060] In view of the above problems, the present application embodiment proposes a vehicle system, such as Figure 2 As shown, the vehicle system includes an upper layer interaction module 210, a bottom layer service module 220 and an electronic control module 230;
[0061] The upper layer interaction module 210 includes a plurality of user interface units 211, which are used to display content and receive operation events triggered by users. For example, users can trigger seat heating function, fragrance spray function, air conditioning start / stop function, air conditioning temperature adjustment function, back door opening function, etc. through the menu or soft switch displayed by the user interface unit. Each specific business function corresponds to a specific operation event for the system, and the system responds to the operation event to realize the corresponding business function.
[0062] The underlying service module 220 includes a plurality of business logic interfaces, each of which is different. Each of the business logic interfaces is used to process the corresponding operation event and send a corresponding control signal to the electronic control module 230 when it is determined that the first preset condition is met.
[0063] In some embodiments, for example, the multiple business logic interfaces include a business logic interface for processing seat heating events, a business logic interface for processing fragrance spray events, a business logic interface for processing back door opening events, and a business logic interface for adjusting the steering wheel angle, height, and other directions. Different business logic interfaces are used to process different operation events. The processing process usually includes determining the current state of the vehicle to determine whether the conditions for executing the corresponding event are met. If it is determined that the conditions for executing the corresponding event are met, an adaptive control signal is sent to the electronic control module 230. For example, for a seat heating event, the corresponding business logic interface will obtain relevant vehicle parameters (such as the detection data of the seat sensor. For new energy vehicles, the vehicle parameters also include the remaining battery power), and determine the vehicle parameters. For example, when it is determined that the detection data of the seat sensor indicates that there is a passenger on the seat and the remaining battery power is large, it is determined that the first preset condition is met, and then a seat heating start signal is sent to the electronic control module 230.
[0064] The electronic control module 230 is used to receive the control signal and control the corresponding vehicle components according to the control signal. For example, for a seat heating event, the seat heating switch is controlled to be turned on; for a back door opening event, the electromagnetic lock is controlled to be unlocked or the electric strut is controlled to move so that the back door of the vehicle is opened. For a steering wheel adjustment event, the relevant actuator is controlled to move to adjust the height and angle of the steering wheel.
[0065] In general, the business logic for realizing business functions is sunk to the underlying service module, so that the upper-layer interaction module does not include business logic, and the decoupling between the upper-layer interaction module and the business logic is realized. The upper-layer interaction module does not need to care about the realization of business logic, but only needs to be responsible for the interface display logic, which is conducive to reducing the design complexity of the upper-layer interaction module, so that the upper-layer interaction module can realize lightweight design. Due to the lightweight design of the upper-layer interaction module, the compatibility of the upper-layer interaction module with different platforms is improved. Since the business logic for realizing business functions is sunk to the underlying service module, each user interface unit can share the business logic and realize the reuse of business logic. Specifically, when a certain user interface unit needs to realize a business function, the corresponding business logic can be called from the underlying service module. Such a design can realize the reuse of the same business logic by different user interface units, so that the business logic can be reused by different user interface units after being designed once. The user interface unit does not need to care about the realization of business logic, but only needs to be responsible for its own interface display logic. Therefore, it is conducive to simplifying the design complexity of the user interface unit. Each user interface unit only needs to be responsible for its own interface display logic, and does not need to care about the business logic for realizing business functions. Since the same business logic is called when the same function is implemented through different user interface units, the consistency of the same business function in different user interface units is guaranteed, which brings a better user experience. By simplifying the design of the user interface unit, it is also helpful to improve the compatibility of the user interface unit with different platforms.
[0066] Among them, the same operation event can be triggered based on different user interface units. For example, the driver sitting in the driver's seat can control the vehicle's seat heating function, air conditioning function, etc. through the central control screen (that is, the seat heating event and air conditioning event can be triggered through the central control screen), the passenger sitting in the front passenger seat can control the vehicle's seat heating function, air conditioning function, etc. through the front passenger screen (the seat heating event and air conditioning event can be triggered through the front passenger screen), and the passenger sitting in the back row can control the vehicle's seat heating function, air conditioning function, etc. through the rear ceiling screen or the seatback screen (the seat heating event and air conditioning event can be triggered through the rear ceiling screen and the seatback screen). Therefore, by sinking the business logic to the underlying service module, no matter which user interface unit is used to trigger the operation event, a set of business logic can be reused, which improves the reuse of business logic, simplifies the design complexity of the user interface unit, saves R&D resources, and ensures the consistency of response to the same operation event through different user interface units, which is conducive to improving the user's operation experience.
[0067] In the vehicle-machine system provided in the embodiment of the present application, the underlying service module includes multiple business logic interfaces, while the upper-layer interaction module does not include a business logic interface, so the business logic is sunk to the underlying service module; since the upper-layer interaction module does not include business logic, the coupling relationship between the business logic and the upper-layer interaction module is released, so that the upper-layer interaction module is only responsible for processing tasks related to interface display. Therefore, the amount of tasks that the upper-layer interaction module is responsible for processing is reduced, which is beneficial to reducing the design complexity of the upper-layer interaction module, so that the upper-layer interaction module can be lightweight in design; due to the lightweight design of the upper-layer interaction module, the compatibility of the upper-layer interaction module with different platforms is improved; by sinking the business logic to the underlying service module, the business logic can be reused by different user interface units, that is, the reuse of the business logic is improved; since the same business logic interface can be reused to process operation events on different screens, the same operation event can be implemented consistently on different screens.
[0068] Based on the same inventive concept, corresponding to the above embodiments, the present application also provides a vehicle control method, which is implemented based on the above-mentioned vehicle system and can be specifically executed by a vehicle control device. The vehicle control device can be implemented in the form of software and / or hardware and integrated in the vehicle. The vehicle system is integrated in the vehicle control device.
[0069] In some embodiments, Figure 3 A flow chart of a vehicle control method is shown as follows: Figure 3 As shown, the vehicle control method comprises the following steps:
[0070] S310: When the user interface unit receives an operation event, the user interface unit calls a business logic interface associated with the operation event from an underlying service module.
[0071] The user interface unit is the UI, and one display screen in the cockpit corresponds to one user interface unit. The user can trigger the corresponding operation event by operating the menu or soft switch displayed by the user interface unit, and then call the business logic interface associated with the operation event from the underlying service module, and respond to the operation event through the business logic interface.
[0072] The operation event can be triggered by the user manipulating the menu or soft switch on the user interface unit, or by the user's voice. For example, when the user says "Please turn on the seat heating", the corresponding user interface unit automatically triggers the operation event when receiving the voice command, and calls the business logic interface associated with the operation event from the underlying service module.
[0073] Furthermore, which user interface unit responds to the user's voice command can be determined by a certain strategy. For example, one way is to require the user to send a voice command containing the identity information of the user interface unit. After receiving the voice command, each user interface unit performs voice recognition. If it is determined that the identity information is consistent with its own identity information, the user interface unit triggers the corresponding operation event and calls the business logic interface associated with the operation event from the underlying service module. Another way can be: the user first speaks the wake-up word to wake up the corresponding user interface unit, and then speaks the specific demand. Different user interface units correspond to different wake-up words. Another way can be: the user directly speaks the specific demand, such as "please turn on the seat heating", and then the system automatically identifies the user's location and responds to the voice command through the user interface unit closest to the user.
[0074] S320: The associated business logic interface processes the operation event, and in response to determining that the first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module.
[0075] The first preset condition is different for different operation events. For example, for the operation event of opening the back door, the first preset condition is: the vehicle speed is zero. For the operation event of turning on the seat heating, the first preset condition is: the remaining battery power is greater than the power threshold and there is a passenger in the corresponding seat. For the event of adjusting the steering wheel parameters, the first preset condition is: the vehicle speed is zero.
[0076] S330: The electronic control module controls corresponding vehicle components according to the control signal.
[0077] The vehicle control method provided in the embodiment of the present application interacts with the user through the user interface unit and receives the operation event triggered by the user, and then calls the business logic interface associated with the operation event from the bottom service module, processes the operation event through the associated business logic interface, and sends a corresponding control signal to the electronic control module in response to determining that the first preset condition is met, and the electronic control module controls the corresponding vehicle device according to the control signal, thereby realizing intelligent control of the vehicle. By sinking the business logic to the bottom service module, the coupling relationship between the business logic and the upper-level interaction module is released, so that the upper-level interaction module is only responsible for processing tasks related to interface display, reducing the design complexity of the upper-level interaction module and improving the compatibility of the upper-level interaction module with different platforms. Such a setting allows the business logic to be reused by different user interface units, that is, the reuse of the business logic is improved, and because each user interface unit processes the operation event through the same business logic interface, the consistency of the same operation event in different user interface units is improved.
[0078] On the basis of the above embodiment, this embodiment further optimizes the above step S310 "When the user interface unit receives an operation event, the user interface unit calls the business logic interface associated with the operation event from the underlying service module". Specifically, an optional implementation method is provided for determining the business logic interface identifier that matches the operation event when the operation event is received, and then calling the corresponding business logic interface from the underlying service module based on the identifier. This achieves the purpose of quickly and accurately calling one of the business logic interfaces when the underlying service module is provided with multiple different business logic interfaces. Figure 4 As shown, the vehicle control method comprises the following steps:
[0079] S410. When the user interface unit receives an operation event, the user interface unit determines a matching business logic interface identifier based on associated information of the operation event; the user interface unit calls a corresponding business logic interface from an underlying service module based on the matching business logic interface identifier.
[0080] Among them, in some embodiments, the associated information of the operation event is specifically the identity information of the operation event, that is, the identification information used to mark a unique operation event. For example, when the operation event is "turn on the vehicle air conditioning heating function", the corresponding identity information is "1"; when the operation event is "turn on the vehicle driver's seat heating function", the corresponding identity information is "2"; when the operation event is "turn on the vehicle co-pilot seat heating function", the corresponding identity information is "3". By setting unique identity information for different operation events, different operation events can be accurately distinguished, and it is not easy to cause confusion between different operation events. Accurately distinguishing operation events is the prerequisite for subsequent accurate control.
[0081] After determining the identity information of the operation event, the determined identity information is used as a search term to retrieve the business logic interface identifier that matches the current identity information, and then the corresponding business logic interface is called from the underlying service module according to the matching business logic interface identifier, thereby achieving accurate calling of the specific business logic interface. Since the business logic interface includes business logic for processing operation events, when the business logic interface is called accurately, it can ensure that the operation event is accurately processed, which is beneficial to improving the accuracy of vehicle control.
[0082] Furthermore, in some implementations, in order to further improve the vehicle control efficiency, it is necessary to further improve the calling speed of the business logic interface, that is, it is necessary to improve the speed of determining the business logic interface identifier that matches the current operation event. In view of this, many operation events can be classified according to the type of operation event. When a specific operation event is received, the type of the operation event is determined first, and then the matching business logic interface identifier is searched in the type to which the operation event belongs. Since the classification is prioritized by the type of operation event, and then the matching business logic interface identifier is searched in the type to which the operation event belongs, the search and matching range of the business logic interface identifier is narrowed, so the search and matching efficiency of the business logic interface identifier can be improved, thereby improving the calling speed of the business logic interface and improving the vehicle control efficiency.
[0083] Specifically, the associated information of the operation event includes type information and identity information of the operation event, and the user interface unit determines the matching business logic interface identifier based on the associated information of the operation event, including: the user interface unit determines a candidate interface identifier group based on the type information; the user interface unit determines a target interface identifier corresponding to the identity information from the candidate interface identifier group, and determines the target interface identifier as the matching business logic interface identifier.
[0084] The type information of the operation event may be, for example, specific types divided under different dimensions such as vehicle safety and vehicle comfort. For example, "vehicle seat heating function", "steering wheel heating function", "vehicle air conditioning on function" and the like may be divided into vehicle comfort categories; "headlight control", "wiper control", "door switch control", "window switch control" and the like may be divided into vehicle safety categories. This embodiment does not limit the specific division dimensions.
[0085] The business logic interface identifiers corresponding to different types of operation events form the business logic interface identifier group under this type. When an operation event is received, the matching candidate interface identifier group is first determined according to the type information of the operation event, and then the matching business logic interface is searched in the candidate interface identifier group. By narrowing the search scope, the purpose of improving the search efficiency is achieved, thereby improving the calling efficiency of the business logic interface.
[0086] S420: The associated business logic interface processes the operation event, and in response to determining that a first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module.
[0087] S430: The electronic control module controls corresponding vehicle components according to the control signal.
[0088] In some embodiments, the vehicle control method further includes: when the associated business logic interface determines that the first preset condition is not met, the associated business logic interface sends feedback information to the user interface unit so that the user interface unit displays target prompt information. Wherein, if it is determined that the first preset condition is not met, it indicates that the vehicle system is currently unable to respond to the user's operation event. At this time, the user interface unit displays the target prompt information, so that the user can understand the reason in time, which is conducive to improving the user's driving experience. Specifically, for example, the operation event is "please open the back door of the vehicle", and the matching business logic interface determines that the current vehicle speed is high and does not meet the first preset condition for opening the back door of the vehicle. At this time, the business logic interface feeds back information to the user interface unit that triggers the operation event, informing the user interface unit that due to the high speed, the back door of the vehicle cannot be opened in order to ensure safety. When receiving the feedback information, the user interface unit displays the target prompt information (for example, "please control the vehicle speed to zero first, and then open the back door", or "due to the current high speed, the back door cannot be opened for you", etc.).
[0089] Exemplarily, the operation event includes a vehicle component opening event, and the electronic control module controls the corresponding vehicle component according to the control signal, including: the electronic control module controls the electric actuator of the vehicle component to move according to the control signal to open the vehicle component. For example, when the operation event is "control the vehicle back door to open", the electronic control module controls the electromagnetic lock to unlock or controls the electric support rod to move according to the control signal to automatically open the vehicle back door.
[0090] Based on the above embodiment, this embodiment takes the operation event of the back door opening event as an example to illustrate the implementation process of the system controlling the back door opening. Figure 5 As shown, the vehicle control method comprises the following steps:
[0091] S510: When the user interface unit receives a back door opening event, the user interface unit calls a business logic interface associated with the back door opening event from an underlying service module.
[0092] In some implementations, the user may trigger the back door opening event by clicking a back door opening soft switch displayed on the user interface unit.
[0093] In other embodiments, the user can trigger the back door opening event by voice. For example, the user can say "please open the back door" by voice. Furthermore, each user interface unit (i.e., UI, or display screen) in the cockpit has the function of receiving voice commands and responding. Therefore, when the user says "please open the back door" by voice, which user interface unit triggers the back door opening event can be achieved through certain strategies, for example, identifying the user's position according to the user's voice, and then causing the user interface unit closest to the user to trigger the back door opening event.
[0094] S520: The associated business logic interface processes the tailgate opening event, and in response to determining that the first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module.
[0095] Specifically, the current state parameters of the vehicle, such as the current speed of the vehicle, are obtained through the program inside the business logic interface, and the current speed of the vehicle is determined. When the current speed of the vehicle is zero, it is determined that the first preset condition is met. At this time, a corresponding control signal is sent to the electronic control module, and the electronic control module controls the electromagnetic lock to unlock or the electric support rod (the specific execution component can be flexibly adjusted according to the hardware configuration of the vehicle) to open the tailgate of the vehicle.
[0096] In general, the operation events include: a back door opening event, the operation event is processed through the associated business logic interface, and in response to determining that the first preset condition is met, a corresponding control signal is sent to the electronic control module, including: obtaining the current speed of the vehicle; determining whether the current speed of the vehicle meets the speed condition; in response to the current speed of the vehicle meeting the speed condition, determining that the first preset condition is met, and sending a back door opening signal to the electronic control module.
[0097] S530: The electronic control module controls the electromagnetic lock to unlock or controls the electric support rod to move so that the rear door of the vehicle can be opened.
[0098] The vehicle control method provided in the embodiment of the present application takes the back door opening event as an example to illustrate the implementation process of opening the back door through the user interface unit. Specifically, the user triggers the back door opening event by interacting with the user interface unit, and then calls the adapted business logic interface from the bottom service module, obtains the current state parameters of the vehicle through the adapted business logic interface, such as obtaining the current speed of the vehicle, and determines whether the current speed of the vehicle is zero. If it is zero, it is determined that the first preset condition is met, and further sends a control signal for opening the back door to the electronic control module. The electronic control module controls the electromagnetic lock to unlock or controls the electric support rod to move according to the control signal (the specific execution component can be flexibly adjusted according to the hardware configuration of the vehicle) to open the back door of the vehicle, thereby realizing intelligent control of the vehicle. By sinking the business logic to the underlying service module, the coupling relationship between the business logic and the upper-level interaction module is released, so that the upper-level interaction module is only responsible for processing tasks related to interface display, reducing the design complexity of the upper-level interaction module and improving the compatibility of the upper-level interaction module with different platforms. Such a setting allows the business logic to be reused by different user interface units, thereby improving the reuse of the business logic. In addition, since each user interface unit processes operation events through the same business logic interface, the consistency of the same operation event implemented in different user interface units is improved.
[0099] Based on the above embodiment, this embodiment further defines the implementation process of the system controlling the opening of the back door, such as Figure 6 As shown, the vehicle control method comprises the following steps:
[0100] S610: When the user interface unit receives a back door opening event, the user interface unit calls a business logic interface associated with the back door opening event from an underlying service module.
[0101] S620: The associated business logic interface processes the tailgate opening event, and in response to determining that the first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module.
[0102] S630: The electronic control module controls the electromagnetic lock to unlock or controls the electric support rod to move so that the rear door of the vehicle can be opened.
[0103] S640: When the associated business logic interface determines that the current speed of the vehicle does not meet the speed condition, the associated business logic interface sends feedback information to the user interface unit so that the user interface unit displays target prompt information.
[0104] That is, if it is determined that the conditions for opening the back door are not met, a prompt message is displayed through the user interface unit to allow the user to promptly understand the reason why the back door cannot be opened. The prompt method is not limited to displaying the target prompt message, but can also be voice broadcasting the target prompt message.
[0105] When the operation event that the user expects cannot be performed normally, timely reminders can help users understand the progress and reasons, which is conducive to improving the user experience.
[0106] It can be seen from the vehicle control method in the embodiment of the present application that the upper-layer interaction module is only responsible for processing tasks related to the interface display, and the business logic responsible for processing operation events is sunk to the underlying service module, thereby releasing the coupling relationship between the business logic and the upper-layer interaction module, reducing the design complexity of the upper-layer interaction module, and improving the compatibility of the upper-layer interaction module with different platforms. Such a setting allows the business logic to be reused by different user interface units, thereby improving the reuse of the business logic and the consistency of the same operation events implemented in different user interface units.
[0107] Based on the above embodiment, this embodiment takes the operation event as the seat massage function activation event as an example to illustrate the implementation process of the system controlling the seat massage function activation. Figure 7 As shown, the vehicle control method comprises the following steps:
[0108] S710: When the user interface unit receives a seat massage function activation event, the user interface unit calls a business logic interface associated with the seat massage function activation event from an underlying service module.
[0109] In some implementations, the user may trigger the seat massage function activation event by clicking a seat massage function activation soft switch displayed on the user interface unit.
[0110] In other embodiments, the user can trigger the seat massage function activation event by voice. For example, the user can say "please activate the passenger seat seat massage" by voice. Furthermore, each user interface unit (i.e., UI, or display screen) in the cockpit has the function of receiving voice commands and responding. Therefore, when the user says "please activate the passenger seat seat massage" by voice, which user interface unit triggers the back door opening event can be achieved through certain strategies. For example, the user's position is identified according to the user's voice, and then the user interface unit closest to the user triggers the seat massage activation event. Alternatively, the seat position that requires the massage function is determined by recognizing the user's voice, and then the user display interface closest to the seat position triggers the seat massage activation event.
[0111] S720: The associated business logic interface processes the seat massage function activation event, and in response to determining that the first preset condition is met, the associated business logic interface sends a corresponding control signal to the electronic control module.
[0112] Exemplarily, it is determined whether the target seat satisfies the seat massage function activation condition; in response to the target seat satisfying the seat massage function activation condition, it is determined that the first preset condition is satisfied, and a corresponding control signal is sent to the electronic control module.
[0113] The step of determining whether the target seat meets the seat massage function activation condition includes:
[0114] Acquire detection data of a pressure sensor associated with the target seat; and in response to the detection data indicating that the target seat is occupied by a passenger, determine that the target seat meets a condition for starting a seat massage function.
[0115] Alternatively, an image of the cabin is obtained by a camera inside the cabin, and based on the image, it is identified whether there is a passenger in the target seat. When there is a passenger in the target seat, it is determined that the target seat meets the conditions for activating the seat massage function, so as to avoid wasting resources when the seat massage function is activated when there is no passenger in the target seat, and to provide users with a driving experience with a lower degree of intelligence.
[0116] Furthermore, for new energy vehicles, the remaining power of the battery can be further obtained. When the remaining power of the battery is low, it is determined that the seat massage function activation condition is not met. When it is determined that the seat massage function activation condition is not met, prompt information is fed back to the user interface unit so that the user interface unit displays the prompt information, or the prompt information is broadcast by voice, so that the user can understand the reason why the seat massage function cannot be activated in time, which is conducive to improving the user's operating experience.
[0117] S730: The electronic control module controls the seat massage function start switch according to the control signal to turn on the seat massage function.
[0118] It can be seen from the vehicle control method in the embodiment of the present application that the upper-layer interaction module is only responsible for processing tasks related to the interface display, and the business logic responsible for processing operation events is sunk to the underlying service module, thereby releasing the coupling relationship between the business logic and the upper-layer interaction module, reducing the design complexity of the upper-layer interaction module, and improving the compatibility of the upper-layer interaction module with different platforms. Such a setting allows the business logic to be reused by different user interface units, thereby improving the reuse of the business logic and the consistency of the same operation events implemented in different user interface units.
[0119] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the vehicle control method described in any of the above embodiments is implemented.
[0120] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle, which includes the electronic device.
[0121] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0122] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0123] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0124] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0125] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0126] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0127] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0128] The electronic device of the above embodiment is used to implement the corresponding vehicle control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0129] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle control method described in any of the above embodiments.
[0130] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0131] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the vehicle control method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0132] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0133] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0134] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0135] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A vehicle computer system, characterized in that: include: Upper layer interaction module, lower layer service module and electronic control module; Wherein, the upper layer interaction module includes a plurality of user interface units, and the user interface units are used to display content and receive operation events triggered by users, wherein each user interface unit corresponds to a screen display; The bottom service module includes a plurality of business logic interfaces, each of which is different, and each of which is used to process the corresponding operation event and send a corresponding control signal to the electronic control module when it is determined that the first preset condition is met; The electronic control module is used to receive the control signal and control the corresponding vehicle components according to the control signal.
2. The vehicle system according to claim 1, characterized in that: The operation events respectively triggered by the user interface units are the same.
3. A vehicle control method, implemented based on the vehicle computer system according to any one of claims 1-2, characterized in that: The vehicle control method comprises: When the user interface unit receives an operation event, the user interface unit calls a business logic interface associated with the operation event from the underlying service module; The associated business logic interface processes the operation event, and in response to determining that the first preset condition is satisfied, the associated business logic interface sends a corresponding control signal to the electronic control module; The electronic control module controls the corresponding vehicle components according to the control signal.
4. The vehicle control method according to claim 3, characterized in that: When the user interface unit receives an operation event, the user interface unit calls the business logic interface associated with the operation event from the underlying service module, including: The user interface unit determines a matching business logic interface identifier according to the associated information of the operation event; The user interface unit calls the corresponding business logic interface from the underlying service module according to the matched business logic interface identifier.
5. The vehicle control method according to claim 4, characterized in that: The association information includes the identity information of the operation event, and the user interface unit determines the matching business logic interface identifier according to the association information of the operation event, including: The user interface unit determines a matching business logic interface identifier according to the identity information.
6. The vehicle control method according to claim 4, characterized in that: The association information includes type information and identity information of the operation event, and the user interface unit determines the matching business logic interface identifier according to the association information of the operation event, including: The user interface unit determines a candidate interface identification group according to the type information; The user interface unit determines a target interface identifier corresponding to the identity information from the candidate interface identifier group, and determines the target interface identifier as the matching business logic interface identifier.
7. The vehicle control method according to claim 3, characterized in that: Also includes: When the associated business logic interface determines that the first preset condition is not satisfied, the associated business logic interface sends feedback information to the user interface unit so that the user interface unit displays target prompt information.
8. The vehicle control method according to claim 3, characterized in that: The operation event includes a vehicle component start event, and the electronic control module controls the corresponding vehicle component according to the control signal, including: The electronic control module controls the electric actuator of the vehicle component to operate according to the control signal so as to open the vehicle component.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the vehicle control method according to any one of claims 3 to 8 is implemented.
10. A vehicle, characterized in that: The vehicle comprises the electronic device as claimed in claim 9.
Citation Information
Patent Citations
Business-logic encapsulation method and device in vehicle-mounted system
CN107797803A
Event execution method and device and electronic equipment
CN111142982A
Intelligent cabin control method, device, equipment and medium
CN115285139A
Cross-platform display system and platform of human-computer interface, vehicle and display method
CN115756368A
Door opening control method and device applied to vehicle
CN117072015A