Vehicle control method and device, electronic equipment and vehicle
By sending a first operation request to each service in the vehicle and detecting prerequisites, the parallel execution of multiple vehicle services is achieved, and the failure caused by signal loss in joint operations is solved, and the operation flexibility and reliability are improved.
Patent Information
- Application Number
- CN202411892487.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-20
AI Technical Summary
When performing joint operations of different services in a vehicle, signal loss will lead to joint operations failure and accompanied by data loss, resulting in poor user experience.
A vehicle control method is proposed, by sending a first operation request to each vehicle service separately when receiving a joint operation request, detecting whether the prerequisites are met, and sending and receiving successful information to perform the operation. This method realizes parallel execution of multiple vehicle services, reducing signal interaction and data transmission.
By reducing signal interaction and data transmission between vehicle services, the possibility of signal and data loss is reduced, the flexibility and reliability of joint operations are improved, and the user experience is improved.
Smart Images

Figure CN119766852A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle control method, device, electronic equipment and vehicle. Background Art
[0002] As vehicle technology develops, users' demands for convenient vehicle operation also increase. The combined operation of different service configurations in the vehicle provides users with greater convenience, for example, the memory adjustment of the rearview mirror and the seat can be performed at the same time.
[0003] However, if the signal is lost during the joint operation, it will not only cause the joint operation to fail, but also cause data loss, resulting in a poor user experience. Summary of the invention
[0004] In view of this, the purpose of the present application is to propose a vehicle control method, device, electronic device and vehicle to solve the problem of signal loss leading to joint operation failure of different services in the vehicle.
[0005] Based on the above purpose, the first aspect of the present application provides a vehicle control method, comprising:
[0006] In response to receiving a joint operation request for multiple vehicle services, a first operation request is sent to each vehicle service respectively, so that the vehicle service detects whether it meets the prerequisite corresponding to the first operation request. If so, a reception success message is sent and the first operation request is executed to realize the joint operation of multiple vehicle services.
[0007] Multiple vehicle services that have the prerequisite for executing the first operation request will directly execute the first operation request, and the multiple vehicle services are executed in parallel, thereby realizing the joint operation of the multiple vehicle services. In the prior art, multiple vehicle services are coupled, that is, there are multiple interaction processes between the vehicle services. Compared with the prior art, in the joint operation process of the present application, each vehicle service only interacts with the combined service, and there is no need for interaction between different vehicle services. Decoupling is achieved between the vehicle services, and loose coupling is achieved between the vehicle services. There is no need for interaction between different vehicle services, which reduces the number of data transmissions, reduces the possibility of signal and data loss, and improves the flexibility and reliability of the joint operation of different vehicle services.
[0008] Optionally, after sending the first operation request to each vehicle service respectively, the method further includes:
[0009] Determine whether a successful reception message sent by each vehicle service is received;
[0010] In response to determining that the reception success information fed back by each vehicle service has not been received, a second operation request is sent to the vehicle service that has not sent the reception success information; wherein the second operation request is used to instruct the vehicle service not to perform any operation or to perform a default operation.
[0011] Sending a second operation request to the vehicle service that has not sent the successful reception information can prevent the faulty vehicle service from performing any operation, thus avoiding further damage to vehicle parts. It can also prevent all vehicle services from not being able to operate normally due to the failure of some vehicle services, thus increasing the flexibility of joint operations.
[0012] Optionally, after determining whether the reception success information sent by each vehicle service is received, the method further includes:
[0013] In response to determining that the reception success information fed back by each vehicle service is not received, the execution of the joint operation request is terminated, and the vehicle service for which the reception success information is not sent is fed back to the user.
[0014] Feedback can remind users to troubleshoot the vehicle service. Users can clearly know the reason for the failure of the joint operation and restore the normal function of the faulty vehicle service in time to avoid affecting the safe driving of the vehicle in the future.
[0015] Optionally, determining that successful reception information of not receiving all vehicle service feedback includes:
[0016] In response to receiving a successful reception message sent by any one of the plurality of vehicle services, adjusting a flag bit corresponding to the any one of the vehicle services to a preset flag;
[0017] The identification of the flag bit corresponding to each vehicle service is counted. If there is a flag bit that is not a preset identification, it is determined that the reception success information of not receiving all vehicle service feedback is received.
[0018] By setting the flag, it is convenient for the combined service to count the information sent by each vehicle service. In the process of receiving the information sent by each vehicle service, there is no need to count and identify the information in real time. It is only necessary to count all the flags once after a preset time, which reduces the logical judgment time of the combined service and thus reduces the computing resource consumption of the combined service.
[0019] Optionally, the method comprises:
[0020] Acquire environmental information around the vehicle, and determine whether the control information indicated by the first operation request is the same as the preset control information corresponding to the environmental information; if different, adjust the first operation request according to the preset control information.
[0021] Combined with the environmental information, it is determined whether the first operation request is reasonable in the current environment. If it is not reasonable, the first operation request is flexibly adjusted to match the current environment. This avoids the problem of being unable to intelligently adjust the control information when the environmental information of the user's last use of the car is significantly different from that of this use, so as to provide users with a more comfortable and intelligent riding experience.
[0022] Optionally, the method comprises:
[0023] The current scene mode of the vehicle is obtained, and it is determined whether the control information indicated by the first operation request conflicts with the scene control information corresponding to the scene mode; if so, the first operation request is adjusted according to the scene control information.
[0024] Adjusting the first operation request according to the scene mode can avoid the problem of vehicle-side control logic errors and optimize the vehicle-side control logic. Based on the control requirements of the current scene mode, avoid affecting the normal operation of the scene mode, flexibly adjust the first operation request, and provide users with more intelligent and humanized services.
[0025] Optionally, the scenario mode includes a low power consumption mode; the multiple vehicle services include a seat heating service, a seat ventilation service, and an air conditioning start service; and adjusting the first operation request according to the scenario control information includes:
[0026] According to the scene control information of the low power consumption mode, the first operation request of the seat heating service is adjusted to a heating level lower than a preset heating level, the first operation request of the seat ventilation service is adjusted to a ventilation level lower than a preset ventilation level, and the first operation request of the air conditioning start service is adjusted to turn off the air conditioning.
[0027] When the vehicle has less remaining energy, it can prioritize the control needs of the scene mode, reduce unnecessary energy consumption, maximize the vehicle's endurance, and achieve the purpose of intelligent adjustment of the first operation request.
[0028] Optionally, the method further includes:
[0029] In response to not receiving information sent by any one of the plurality of vehicle services within a preset time period, a mark position corresponding to the any one of the vehicle services is set as a second mark.
[0030] This makes it easier to uniformly manage vehicle services. The combined service can clearly know whether each vehicle service is currently in a normal state, and accurately send the second operation request type to the vehicle service according to the current state of each vehicle service.
[0031] Optionally, in response to not receiving information sent by any one of the multiple vehicle services within a preset time period, a mark position corresponding to the any one of the vehicle services is set to a third mark.
[0032] For vehicle services with different response situations, the flag is set to the corresponding identifier. When the combined service sends the operation request again, it can issue targeted operation requests for vehicle services with different response situations, thereby achieving the purpose of flexibly controlling each vehicle service through the combined service.
[0033] A second aspect of the present application also provides a vehicle control device, comprising:
[0034] The first sending module is configured to send a first operation request to each vehicle service in response to receiving a joint operation request for multiple vehicle services, so that the vehicle service can detect whether it meets the prerequisite corresponding to the first operation request. If so, it sends a reception success message and executes the first operation request to realize the joint operation of multiple vehicle services.
[0035] A third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described in the first aspect when executing the computer program.
[0036] The fourth aspect of the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect.
[0037] A fifth aspect of the present application also provides a vehicle, comprising the electronic device as described in the third aspect.
[0038] As can be seen from the above, the vehicle control method, device, electronic device and vehicle provided by the present application are applied to combined services, and the method includes: in response to receiving a joint operation request for multiple vehicle services, sending a first operation request to each vehicle service respectively, so that the vehicle service detects whether it meets the prerequisite corresponding to the first operation request, and if it does, sends a successful reception message. When sending the first operation request to each vehicle service, each vehicle service will detect whether its current state meets the prerequisite according to the prerequisite corresponding to the first operation request. If it does, it means that the vehicle service can execute the first operation request, and then feedback the successful reception message. At the same time, each vehicle service directly executes the first operation request. In other words, multiple vehicle services that have the prerequisite for executing the first operation request will directly execute the first operation request, and multiple vehicle services are executed in parallel, thereby realizing the joint operation of multiple vehicle services. In the prior art, multiple vehicle services are coupled, that is, there are multiple interaction processes between vehicle services. Compared with the prior art, in the joint operation process of the present application, each vehicle service only interacts with the combined service. There is no need for interaction between different vehicle services. The vehicle services are decoupled, which reduces the number of data transmissions, reduces the possibility of signal and data loss, and improves the flexibility and reliability of the joint operation of different vehicle services. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] 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.
[0040] Figure 1 A schematic flow chart of a vehicle control method according to an embodiment of the present application;
[0041] Figure 2 A schematic diagram of the structure of a vehicle control device according to an embodiment of the present application;
[0042] Figure 3 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0043] 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.
[0044] 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.
[0045] As described in the background technology, existing vehicles provide joint operations of different vehicle services, which provide users with convenient vehicle control through joint operations. For example, the joint operation of seats and rearview mirrors allows users to memorize or call out seats and rearview mirrors in a linked manner when using the vehicle. However, in the existing joint operation process, different vehicle services need to interact frequently to complete the joint operation. Taking the joint memory of seats and rearview mirrors as an example, after receiving the joint memory instruction, the seat service first determines whether the seat service meets the memory conditions. If so, the joint memory instruction is sent to the rearview mirror service. The rearview mirror service receives the joint memory instruction and determines whether the rearview mirror service meets the memory conditions. If so, a signal of preparing the joint memory is fed back to the seat service. After receiving the signal of preparing the joint memory, the seat service executes the joint memory instruction. In this process, the seat service and the rearview mirror service need to interact multiple times, and there may be a situation where the signal is lost, resulting in the failure of the linked memory, and the joint memory cannot be executed normally. At the same time, if there is a problem with either the seat service or the rearview mirror service, the joint memory data will be lost synchronously, which brings a bad experience to the user.
[0046] In order to solve the above problems, the present application proposes a vehicle control method, which includes at least a device layer, an atomic service layer, a composite service layer and an application layer from bottom to top under a service-oriented architecture (SOA). Among them, a composite service is set in the composite service layer, and multiple vehicle services (that is, basic services in the atomic service layer) are arbitrated and combined through the composite service to provide more powerful and efficient functions, reduce the problem of joint operation failure or data loss due to problems with individual vehicle services, and ensure the normal operation of the joint operation.
[0047] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0048] This application proposes a vehicle control method for combined services, referring to Figure 1 , including the following steps:
[0049] Step 102, in response to receiving a joint operation request for multiple vehicle services, send a first operation request to each vehicle service respectively, so that the vehicle service detects whether it meets the prerequisite corresponding to the first operation request. If so, send a reception success message and execute the first operation request to realize the joint operation of multiple vehicle services.
[0050] Specifically, the method of this embodiment is applied to a composite service under the SOA architecture. The vehicle service belongs to the basic service under the SOA architecture. The vehicle service provides a calling interface to the composite service so that the composite service can call the vehicle service. The composite service performs unified arbitration for different vehicle services. The user can call the composite service through the human-computer interaction screen in the car, or automatically call the composite service in a certain scene mode. When the composite service receives a joint operation request for multiple vehicle services, it sends a corresponding first operation request to each vehicle service according to the joint operation request. For example, the first operation request sent by the composite service to the seat service is to heat the seat at a certain heating temperature; the first operation request sent by the composite service to the air conditioning service is to turn on the air conditioning at a certain temperature. For different vehicle services, the corresponding first operation request is different, and the composite service needs to send the corresponding first operation request to different vehicle services. When the vehicle service receives the first operation request, it first determines whether the vehicle service meets the prerequisite corresponding to the first operation request. The prerequisite is a condition that must be met when the vehicle service executes the first operation request. The prerequisite may specifically include that the vehicle service does not have a fault or the vehicle service is in a callable state. If there is a fault in the vehicle service or the vehicle service is in an uncallable state (such as a locked state in a specific scenario mode), it is determined that the vehicle service does not meet the prerequisite.
[0051] When it is determined that the vehicle service meets the prerequisite, a successful reception message is fed back to the combined service, indicating that the vehicle service can execute the first operation request and meets the prerequisite for executing the first operation request. Correspondingly, if the vehicle service determines through its own detection that the prerequisite is not met, a failed reception message can be fed back to the combined service. If there is a fault in the vehicle service, there is a possibility that no information can be fed back to the combined service.
[0052] After the vehicle service sends a successful reception message to the combined service, it can directly execute the first operation request without waiting for the combined service to reply. When multiple vehicle services meet the prerequisites, the multiple vehicle services execute the first operation request in parallel, which means that the joint operation of the vehicle services is realized. In this process, there is no need for signal interaction between different vehicle services, and each vehicle service only interacts with the combined service. Compared with the prior art where multiple coupled vehicle services need to interact multiple times, in the joint operation process of this embodiment, there is no signal interaction between multiple vehicle services, thus achieving decoupling between vehicle services. At the same time, the decoupling between vehicle services reduces the number and quantity of signal interactions, and reduces the possibility of signal loss and data loss.
[0053] In addition, before the vehicle service executes the first operation request, if each vehicle service sends a successful reception message to the combined service, and the combined service determines that all successful reception messages have been received, in order to ensure that the vehicle services that meet the prerequisites can synchronously execute the first operation request, the combined service can also send the first operation request to each vehicle service again at the same time, so that the vehicle service executes the first operation request after receiving the first operation request for the second time. In specific implementation, after each vehicle service receives the first operation request for the first time, if it determines that it meets the prerequisite for executing the first operation request, it can change its own state to a ready state. When the vehicle service receives the first operation request for the second time, if its own state is a ready state, the first operation request is directly executed. If its own state is not a ready state, the first operation request is not executed. When each vehicle service starts to execute the first operation request, the parallel operation of multiple vehicle services is realized, that is, the joint operation of multiple vehicle services is completed.
[0054] Furthermore, the vehicle service includes a first service and a second service, and the joint operation request includes a joint memory request. After receiving the joint memory request, the combined service sends the first operation request to the first service and the second service respectively. The first operation request sent to the first service may specifically be a current position memory request corresponding to the first service. The first operation request sent to the second service may specifically be a current position memory request corresponding to the second service. The first service receives the first operation request, determines whether it meets the prerequisites for executing the first operation request, and if so, sends a reception success message to the combined service, and executes the first operation request. Similarly, the second service receives the first operation request, determines whether it meets the prerequisites for executing the first operation request, and if so, sends a reception success message to the combined service, and executes the first operation request.
[0055] Alternatively, after the combined service receives the reception success information sent by the first service and the second service, it sends the first operation request to the first service and the second service again respectively. After the first service and the second service receive the first operation request for the second time, they immediately execute the first operation request, thereby realizing the joint memory operation of the first service and the second service.
[0056] Exemplarily, the first service is a seat service, the second service is a rearview mirror service, and the joint operation request is a joint memory request. After receiving the joint memory request, the combined service sends the first operation request to the seat service and the rearview mirror service respectively. The first operation request sent to the seat service can specifically be a seat current position memory request. The first operation request sent to the rearview mirror service can specifically be a rearview mirror current position memory request. The seat service receives the first operation request and determines whether it meets the prerequisites for executing the first operation request. If it does, it sends a successful reception message to the combined service. Similarly, the rearview mirror service receives the first operation request and determines whether it meets the prerequisites for executing the first operation request. If it does, it sends a successful reception message to the combined service. After receiving the successful reception messages sent by the seat service and the rearview mirror service, the combined service sends the first operation request to the seat service and the rearview mirror service respectively again. After the seat service and the rearview mirror service receive the first operation request for the second time, they immediately execute the first operation request, thereby realizing the joint memory operation of the seat service and the rearview mirror service.
[0057] Exemplarily, the vehicle services are seat services and rearview mirror services, and the joint operation request is a joint call-out request. After receiving the joint call-out request, the combined service sends a first operation request to the seat service and the rearview mirror service respectively. The first operation request sent to the seat service may specifically be to call out a seat memory position. The first operation request sent to the rearview mirror service may specifically be to call out a rearview mirror memory position. The seat service receives the first operation request and determines whether it meets the prerequisites for executing the first operation request. If so, it sends a successful reception message to the combined service. Similarly, the rearview mirror service receives the first operation request and determines whether it meets the prerequisites for executing the first operation request. If so, it sends a successful reception message to the combined service. After receiving the successful reception messages sent by the seat service and the rearview mirror service, the combined service sends the first operation request to the seat service and the rearview mirror service respectively again. After receiving the first operation request for the second time, the seat service and the rearview mirror service immediately execute the first operation request, thereby realizing the joint call-out operation of the seat service and the rearview mirror service.
[0058] It should be noted that the combined service can be expanded and is not limited to the linkage operation of seat services and rearview mirror services. The combined service can also perform logical control on more vehicle services. For example, when it is necessary to memorize multiple vehicle services such as windows, seats, and rearview mirrors, each vehicle service only needs to provide a memory interface to achieve the effect of linkage memory of multiple vehicle services, reducing the number of signal interactions, reducing the possibility of memory data loss, and enhancing the flexibility and reliability between various vehicle services.
[0059] Based on the above steps 102 to 104, the vehicle control method provided in this embodiment is applied to the combined service, and the method includes: in response to receiving a joint operation request for multiple vehicle services, sending a first operation request to each vehicle service respectively, so that the vehicle service detects whether it meets the prerequisite corresponding to the first operation request, and if it does, sends a successful reception message. When sending the first operation request to each vehicle service, each vehicle service will detect whether its current state meets the prerequisite according to the prerequisite corresponding to the first operation request. If it does, it means that the vehicle service can execute the first operation request, and then feedback the successful reception message. At the same time, each vehicle service directly executes the first operation request. In other words, multiple vehicle services that have the prerequisite for executing the first operation request will directly execute the first operation request, and multiple vehicle services are executed in parallel, thereby realizing the joint operation of multiple vehicle services. In the prior art, multiple vehicle services are coupled, that is, there are multiple interaction processes between vehicle services. Compared with the prior art, in the joint operation process of the present application, each vehicle service only interacts with the combined service. There is no need for interaction between different vehicle services. The vehicle services are decoupled, which reduces the number of data transmissions, reduces the possibility of signal and data loss, and improves the flexibility and reliability of the joint operation of different vehicle services.
[0060] It should be noted that the combined service can also monitor the execution of the joint operation in real time. When the vehicle service successfully executes the first operation request, the combined service sends a successful execution signal to other demand ends or displays it on the vehicle screen. Alternatively, the combined service can also feedback the failed vehicle service and the reason for the failure to the user. The user can promptly understand the execution of the joint operation and the reason for the failure.
[0061] The above-mentioned embodiment describes that the combined service receives the successful reception information fed back by all vehicle services. The following describes the processing method when the combined service does not receive the successful reception information fed back by all vehicle services through a specific embodiment.
[0062] In some embodiments, after sending the first operation request to each vehicle service respectively, the method further includes:
[0063] Determine whether a successful reception message sent by each vehicle service is received;
[0064] In response to determining that the reception success information fed back by each vehicle service has not been received, a second operation request is sent to the vehicle service that has not sent the reception success information; wherein the second operation request is used to instruct the vehicle service not to perform any operation or to perform a default operation.
[0065] Specifically, after the vehicle service detects whether it meets the prerequisite corresponding to the first operation request, it may send a reception success message, a reception failure message, or fail to send any information to the combined service. The combined service determines whether it has received the reception success message sent by each vehicle service. If it has not received the reception success message sent by each vehicle service, in order not to affect the execution of the first operation request by the normally operating vehicle service, the combined service sends the first operation request to the vehicle service that sent the reception success message, and sends the second operation request to the vehicle service that sent the reception failure message or did not send any information. The second operation request is used to instruct the vehicle service not to perform any operation or to perform a default operation. When the second operation request indicates not to perform any operation, the vehicle service maintains the current state. When the second operation request indicates to perform a default operation, the vehicle service performs the default operation. For example, the default operation is for the vehicle service to restore to the default state. The default state can be the basic state set when the vehicle leaves the factory, or it can be the state most frequently used by the user. Based on the method of this embodiment, when some vehicle services can normally execute the first operation request, the part of the vehicle services can be controlled to execute the first operation request, and when another part of the vehicle services cannot normally execute the first operation request, the part of the vehicle services can be controlled to execute the second operation request, thereby avoiding the failure of all vehicle services to operate normally due to the failure of some vehicle services, and increasing the flexibility of joint operation. After determining that some vehicle services cannot execute the first operation request, the faulty vehicle services can be made to no longer execute any operations to avoid further damage to vehicle parts. Alternatively, the faulty vehicle services can be made to execute the default operation instead of executing the first operation request to meet the user's demand for joint operation. If the user is not satisfied with the default operation executed, manual adjustment can be made.
[0066] The method of this embodiment can ensure that when there are some faulty vehicle services, normal vehicle services can execute the first operation request and the faulty vehicle services execute the second operation request, thereby providing users with maximum convenience and avoiding the state where all vehicle services are unresponsive when the joint operation fails.
[0067] The following describes how the combined service determines the successful reception information of not receiving all vehicle service feedbacks through a specific embodiment.
[0068] In some embodiments, determining that successful reception information of not receiving all vehicle service feedback includes:
[0069] In response to receiving a successful reception message sent by any one of the plurality of vehicle services, adjusting a flag bit corresponding to the any one of the vehicle services to a preset flag;
[0070] The identification of the flag bit corresponding to each vehicle service is counted. If there is a flag bit that is not a preset identification, it is determined that the reception success information of not receiving all vehicle service feedback is received.
[0071] Specifically, in the combined service, each vehicle service has a corresponding flag. When a successful reception message is received from a vehicle service, the flag of the vehicle service is adjusted to a preset flag, which indicates that the vehicle service has sent a successful reception message. After a preset period of time, the combined service will count the flags of all vehicle services involved in the joint operation request. If there is a flag that is not a preset flag, it means that a vehicle service has not sent a successful reception message, such as a failed reception message or no message. At this point, the combined service determines that the successful reception message fed back by all vehicle services has not been received.
[0072] Exemplarily, in response to receiving a reception success message sent by any one of a plurality of vehicle services, the flag position corresponding to the any one of the vehicle services is set to a first identifier. The first identifier may be a letter or a number. Exemplarily, the first identifier is 1. In response to receiving a reception failure message sent by any one of a plurality of vehicle services, the flag position corresponding to the any one of the vehicle services is set to a second identifier. The second identifier may be a letter or a number, and exemplarly, the second identifier is 0. After all vehicle services finish sending messages, the combined service counts the identification status of all flag positions. If it is determined that the second identifier exists, it is determined that the reception success message fed back by all vehicle services has not been received.
[0073] It should be noted that a preset time length can be set in advance to determine whether all vehicle services have finished sending information, such as a preset time length of 1s. After exceeding the preset time length, the combined service considers that all vehicle services have finished sending messages. Afterwards, the identification conditions of all flag bits are traversed to determine whether there is a second identification. If the information sent by any of the multiple vehicle services is not received within the preset time length, the flag bit corresponding to the arbitrary vehicle service is also set to the second identification, which means that the vehicle service is deemed to have sent a reception failure message. This facilitates the unified management of vehicle services. The combined service can clearly know whether each vehicle service is currently in a normal state, and accurately send the second operation request type to the vehicle service according to the current state of each vehicle service.
[0074] In another specific embodiment, in response to not receiving information sent by any one of the multiple vehicle services within a preset time period, a mark position corresponding to the any one of the vehicle services is set to a third mark.
[0075] The flag position corresponding to the vehicle service that has not sent any information within the preset time period is set to the third identifier, and the third identifier can be a letter or a number. Exemplarily, the first identifier is 2. In this way, vehicle services in different states can be accurately distinguished by different identifiers. For the vehicle service whose flag is the first identifier, the combined service sends the first operation request again. For the vehicle service whose flag is the second identifier, the combined service sends the second operation request. Since the vehicle service has clearly reported an error, the second operation request can be to perform no operation or to perform a default operation. Among them, the default operation can be the corresponding operation when the vehicle service turns on the self-protection mechanism.
[0076] For the vehicle service whose flag bit is the third identifier, the combined service sends a third operation request. Since the vehicle service does not reply with any information, it may be due to communication interference or a fault in the vehicle service itself. Therefore, the third operation request may be the same as the first operation request. If the vehicle service can be executed normally after receiving the third operation request, the problem of communication interference is eliminated. If the vehicle service still does not execute after receiving the third operation request, it is determined that there is a fault in the vehicle service itself. Alternatively, the third operation request may be to perform no operation or to perform a default operation, so as to avoid the problem of damage to vehicle components caused by the vehicle service executing the operation request in the event of a fault.
[0077] Through the method of this embodiment, the flag bit is set to the corresponding identifier for vehicle services with different response situations. When the combined service sends an operation request again, it can issue targeted operation requests for vehicle services with different response situations, thereby achieving the purpose of flexibly controlling each vehicle service through the combined service.
[0078] In this embodiment, by setting the flag bit, it is convenient for the combined service to count the information sent by each vehicle service. In the process of successively receiving the information sent by each vehicle service, there is no need to count and identify the information in real time. It is only necessary to count all the flag bits once after a preset time, thereby reducing the logical judgment time of the combined service, thereby reducing the computing resource consumption of the combined service. Since the identification of the flag bit corresponds to the type of the operation request sent for the second time, the first identification corresponds to the first operation request, and the second identification corresponds to the second operation request, therefore, determining the type of the operation request sent for the second time according to the identification of the flag bit can reduce the probability of sending the operation request by mistake, optimize the execution logic of the joint operation, and reduce the error rate.
[0079] In addition to sending the second operation request to the vehicle service that did not send the successful reception information, when it is determined that multiple vehicle services involved in the joint operation cannot normally execute the first operation request, it is also possible to exit the execution of the current joint operation request and provide feedback to the user to avoid damage to vehicle components when the execution is wrong. Specifically:
[0080] In another embodiment, after determining whether the reception success information sent by each vehicle service is received, the method further includes:
[0081] In response to determining that the reception success information fed back by each vehicle service is not received, the execution of the joint operation request is terminated, and the vehicle service for which the reception success information is not sent is fed back to the user.
[0082] Specifically, if it is determined that no successful reception information has been received from each vehicle service, the execution of the joint operation request can be exited. At this point, the combined service will no longer send a second operation request to any vehicle service, that is, it will no longer send the first operation request for the second time to the vehicle service that has fed back successful reception information, nor will it need to send a second operation request to the vehicle service that has not fed back successful reception information. Exit the joint operation, and feed back the vehicle service that has not fed back successful reception information to the user to remind the user to troubleshoot the vehicle service. In this way, the user can clearly understand the reason for the failure of the joint operation and restore the normal function of the faulty vehicle service in time to avoid subsequent impact on the safe driving of the vehicle.
[0083] Since the operations indicated in the joint operation request for each vehicle service are usually determined based on the user's driving habits or the historical operations when the user last used the vehicle, if the current vehicle surroundings do not match the operations indicated in the joint operation request, the first operation request needs to be adjusted so that the operation of the vehicle service can match the current surroundings and provide the user with a comfortable and flexible driving experience.
[0084] In some embodiments, the method comprises:
[0085] Acquire environmental information around the vehicle, and determine whether the control information indicated by the first operation request is the same as the preset control information corresponding to the environmental information; if different, adjust the first operation request according to the preset control information.
[0086] Specifically, after receiving the joint operation request, the combined service obtains the environmental information around the vehicle through the vehicle-side sensor, and different environmental information corresponds to different preset control information. Exemplarily, when the ambient temperature in the environmental information is lower than 5°C, the preset control information includes turning on the seat heating function and the heating level is level 2, and the air conditioner is adjusted to the internal circulation. It is determined whether the control information indicated by the first operation request is the same as the preset control information. If different, the first operation request is adjusted according to the preset control information. Exemplarily, the first operation request is to turn on the seat heating function and the heating level is level 1. Obviously, it is different from the heating level indicated by the preset control information. Since the preset control information is the control information pre-set to match the environmental information, under the preset control information, it can provide users with a more comfortable riding environment. Therefore, it is necessary to replace the control information indicated in the first operation request with the preset control information, that is, to adjust the seat heating level to level 2. In this way, it can be avoided that when the environmental information of the user's last use of the car is very different from that of this use, the control information cannot be adjusted intelligently, which brings a poor experience to the user.
[0087] In addition, it is also possible to determine whether the control information indicated by the first operation request is inconsistent with the preset control information. For example, the control information indicated by the first operation request is to turn on the air-conditioning external circulation, and the preset control information is to turn on the air-conditioning internal circulation. Obviously, the control information indicated by the first operation request is inconsistent with the preset control information. At this time, the first operation request needs to be adjusted to replace the control information indicated by the first operation request with the preset control information.
[0088] Through the method of this embodiment, it is possible to determine whether the first operation request is reasonable in the current environment in combination with the environmental information. If it is not reasonable, the first operation request is flexibly adjusted to match the current environment. This avoids the problem of being unable to intelligently adjust the control information when the environmental information of the user's last use of the vehicle and this use is greatly different, thereby providing users with a more comfortable and intelligent riding experience.
[0089] Since the operations indicated in the joint operation request for each vehicle service are usually determined based on the user's driving habits or the historical operations when the user last used the vehicle, if the current vehicle's scene mode does not match the operations indicated in the joint operation request, the first operation request needs to be adjusted so that the operation of the vehicle service can match the current scene mode, providing the user with a comfortable and flexible driving experience.
[0090] In some embodiments, before sending the first operation request to each vehicle service respectively, the method includes:
[0091] The current scene mode of the vehicle is obtained, and it is determined whether the control information indicated by the first operation request conflicts with the scene control information corresponding to the scene mode; if so, the first operation request is adjusted according to the scene control information.
[0092] Specifically, the scene mode is the mode that the vehicle is currently in, such as driving mode, parking mode, car wash mode, showroom mode, low power mode, and so on. In different scene modes, different vehicle functions need to be turned on, which is equivalent to different corresponding scene control information. If the control information indicated by the first operation request conflicts with the control information indicated by the scene mode, the execution of the vehicle-side command will be chaotic, resulting in the vehicle controller not responding or responding incorrectly. Therefore, if there is a conflict between the scene control information and the control information indicated by the first operation request, the first operation request needs to be adjusted to avoid vehicle-side control logic errors and optimize the vehicle-side control logic. Based on the control requirements of the current scene mode, avoid affecting the normal operation of the scene mode, flexibly adjust the first operation request, and provide users with more intelligent and humane services.
[0093] In a specific embodiment, the scenario mode includes a low power consumption mode; the plurality of vehicle services include a seat heating service, a seat ventilation service, and an air conditioning start service; and adjusting the first operation request according to the scenario control information includes:
[0094] According to the scene control information of the low power consumption mode, the first operation request of the seat heating service is adjusted to a heating level lower than a preset heating level, the first operation request of the seat ventilation service is adjusted to a ventilation level lower than a preset ventilation level, and the first operation request of the air conditioning start service is adjusted to turn off the air conditioning.
[0095] Specifically, in low power consumption mode, the vehicle has less remaining energy. In order to reduce energy consumption, the scene control information may include that the seat heating level cannot be higher than the preset heating level, the seat ventilation level cannot be higher than the preset ventilation level, and the air conditioner cannot be turned on. Among them, the heating level and the ventilation level are divided in advance. The higher the heating level, the more energy is consumed, and the higher the ventilation level, the more energy is consumed. The preset heating level and the preset ventilation level can be determined according to the actual remaining energy. When the control information indicated by the first operation request conflicts with the scene control information, the scene control information is executed first. Exemplarily, the control information indicated by the first operation request is that the seat heating level is level three, the seat ventilation level is level two, and the air conditioner is turned on. The scene control information requires that the seat heating level cannot be higher than the preset heating level (level two), the seat ventilation level cannot be higher than the preset ventilation level (level one), and the air conditioner cannot be turned on. Obviously, the control information indicated by the first operation request conflicts with the scene control information, then the seat heating level is adjusted to level two, the seat ventilation level is adjusted to level one, and the air conditioner is turned off. When the vehicle has less remaining energy, it can prioritize meeting the control needs of the scene mode, reduce unnecessary energy consumption, minimize the energy consumption rate when there is less remaining energy, maximize the vehicle's endurance, and achieve the purpose of intelligent adjustment of the first operation request.
[0096] 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.
[0097] 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.
[0098] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle control device.
[0099] refer to Figure 2 , the vehicle control device comprises:
[0100] The first sending module 202 is configured to send a first operation request to each vehicle service in response to receiving a joint operation request for multiple vehicle services, so that the vehicle service can detect whether it meets the prerequisite corresponding to the first operation request. If so, it sends a reception success message and executes the first operation request to achieve joint operation of multiple vehicle services.
[0101] In some embodiments, after sending the first operation request to each vehicle service respectively, a second sending module is further included, configured to determine whether a receiving success message sent by each vehicle service is received;
[0102] In response to determining that the reception success information fed back by each vehicle service has not been received, a second operation request is sent to the vehicle service that has not sent the reception success information; wherein the second operation request is used to instruct the vehicle service not to perform any operation or to perform a default operation.
[0103] In some embodiments, after determining whether the successful reception information sent by each vehicle service is received, an exit module is also included, which is also configured to exit the execution of the joint operation request in response to determining that the successful reception information fed back by each vehicle service has not been received, and feed back the vehicle service that has not sent the successful reception information to the user.
[0104] In some embodiments, a setting module is further included, configured to adjust a flag bit corresponding to any one of the plurality of vehicle services to a preset flag in response to receiving a successful reception message sent by any one of the plurality of vehicle services;
[0105] The identification of the flag bit corresponding to each vehicle service is counted. If there is a flag bit that is not a preset identification, it is determined that the reception success information of not receiving all vehicle service feedback is received.
[0106] In some embodiments, the determination module is further configured to obtain environmental information around the vehicle and determine whether the control information indicated by the first operation request is the same as the preset control information corresponding to the environmental information; if different, adjust the first operation request according to the preset control information.
[0107] In some embodiments, the determination module is further configured to obtain the current scene mode of the vehicle and determine whether there is a conflict between the control information indicated by the first operation request and the scene control information corresponding to the scene mode; if so, adjust the first operation request according to the scene control information.
[0108] In some embodiments, the scene mode includes a low power consumption mode; the multiple vehicle services include seat heating service, seat ventilation service and air conditioning start service; the determination module is also configured to adjust the first operation request of the seat heating service to a heating level lower than a preset heating level, adjust the first operation request of the seat ventilation service to a ventilation level lower than a preset ventilation level, and adjust the first operation request of the air conditioning start service to turn off the air conditioning according to the scene control information of the low power consumption mode.
[0109] In some embodiments, the setting module is further configured to, in response to not receiving information sent by any one of the multiple vehicle services within a preset time period, change the mark position corresponding to the any one of the multiple vehicle services to a second mark.
[0110] In some embodiments, the setting module is further configured to, in response to not receiving information sent by any one of the multiple vehicle services within a preset time period, change the mark position corresponding to any one of the multiple vehicle services to a third mark.
[0111] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0112] The 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.
[0113] 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.
[0114] Figure 3 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] 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.).
[0119] 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).
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.
[0126] A person 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 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.
[0127] 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.
[0128] 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.
[0129] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. 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 protection scope of the present application.
Claims
1. A vehicle control method, characterized in that: include: In response to receiving a joint operation request for multiple vehicle services, a first operation request is sent to each vehicle service respectively, so that the vehicle service detects whether it meets the prerequisite corresponding to the first operation request. If so, a reception success message is sent and the first operation request is executed to realize the joint operation of multiple vehicle services.
2. The method according to claim 1, characterized in that: After sending the first operation request to each vehicle service respectively, the method further includes: Determine whether a successful reception message sent by each vehicle service is received; In response to determining that the reception success information fed back by each vehicle service has not been received, a second operation request is sent to the vehicle service that has not sent the reception success information; wherein the second operation request is used to instruct the vehicle service not to perform any operation or to perform a default operation.
3. The method according to claim 2, characterized in that Confirm that the successful reception information of not receiving all vehicle service feedback includes: In response to receiving a successful reception message sent by any one of the multiple vehicle services, adjusting a flag bit corresponding to the any one of the vehicle services to a preset flag; The identification of the flag bit corresponding to each vehicle service is counted. If there is a flag bit that is not a preset identification, it is determined that the reception success information of not receiving all vehicle service feedback is received.
4. The method according to claim 1, characterized in that: The method comprises: Acquire environmental information around the vehicle, and determine whether the control information indicated by the first operation request is the same as the preset control information corresponding to the environmental information; if different, adjust the first operation request according to the preset control information.
5. The method according to claim 1, characterized in that: The method comprises: The current scene mode of the vehicle is obtained, and it is determined whether the control information indicated by the first operation request conflicts with the scene control information corresponding to the scene mode; if so, the first operation request is adjusted according to the scene control information.
6. The method according to claim 5, characterized in that The scene mode includes a low power consumption mode; the plurality of vehicle services include a seat heating service, a seat ventilation service and an air conditioning start service; The adjusting the first operation request according to the scene control information includes: According to the scene control information of the low power consumption mode, the first operation request of the seat heating service is adjusted to a heating level lower than a preset heating level, the first operation request of the seat ventilation service is adjusted to a ventilation level lower than a preset ventilation level, and the first operation request of the air conditioning start service is adjusted to turn off the air conditioning.
7. The method according to claim 3, characterized in that The method further comprises: In response to not receiving information sent by any one of the plurality of vehicle services within a preset time period, a mark position corresponding to the any one of the vehicle services is set as a second mark.
8. A vehicle control device, characterized in that: include: The first sending module is configured to send a first operation request to each vehicle service in response to receiving a joint operation request for multiple vehicle services, so that the vehicle service can detect whether it meets the prerequisite corresponding to the first operation request. If so, it sends a reception success message and executes the first operation request to realize the joint operation of multiple vehicle services.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: The vehicle comprises the electronic device as claimed in claim 9.
Citation Information
Patent Citations
Multi-scene engine system architecture, vehicle control system and vehicle
CN116483604A
Vehicle control method and device, electronic equipment and storage medium
CN116729411A
Vehicle control method and device, vehicle and storage medium
CN116760874A
Vehicle control method and system and vehicle
CN118876887A
Vehicle control method and device, electronic equipment and vehicle
CN119078703A