Vehicle rearview mirror control method, device, vehicle and storage medium
By adopting the SOA architecture in the rearview mirror of the vehicle, the analysis and execution of the control instructions are used to solve the problem of fixing the function of the rearview mirror software, and the satisfaction of personalized customization and diversified needs.
Patent Information
- Application Number
- CN202210969007.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-12
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-08-12
AI Technical Summary
The software functions of the vehicle rearview mirror are relatively fixed and difficult to adjust, and cannot meet the user's interaction and diversified needs.
The service -oriented architecture (SOA) architecture includes the scene service layer and the atomic service layer. By receiving and checking the control instructions, the control request and parameters are sent to the atomic service layer to achieve flexible control of the rearview mirror.
The personalized customization of the rearview mirror is realized, the diversified needs of users are met, the serviceization of the rearview mirror application is enhanced, and the flexibility and update speed of the software is improved.
Smart Images

Figure CN115476765B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle body control technology, and in particular to a control method, device, vehicle and storage medium for a vehicle rearview mirror. Background Art
[0002] With the continuous development of vehicle manufacturing technology, people's requirements for vehicles are getting higher and higher. How to further meet the personalized needs of users and emphasize riding comfort, safety and environmental protection has become an important issue in vehicle body control. The development of vehicle rearview mirrors has evolved from the earliest simple adjustment stage to the later electric adjustment stage and to the current memory storage stage, which shows that the functions of rearview mirrors are becoming more and more perfect.
[0003] In the related technologies, the software architecture, hardware and software of the vehicle rearview mirror are highly coupled, which makes the software functions of the electric rearview mirror difficult to adjust and relatively fixed. At the same time, there is relatively little interaction with the user, which cannot meet the diverse needs of users and is in urgent need of improvement. Summary of the invention
[0004] The present application provides a control method, device, vehicle and storage medium for a vehicle rearview mirror to solve the problem that the software functions of the rearview mirror in the related art are relatively fixed and difficult to adjust, thus failing to meet the interaction and diversified needs of users.
[0005] A first aspect of the present application provides a method for controlling a vehicle rearview mirror, wherein the vehicle includes a SOA (service-oriented architecture) architecture, and the SOA architecture includes a scene service layer and an atomic service layer, wherein the method includes the following steps: receiving a first control instruction of the rearview mirror issued by the scene service layer; verifying the first control instruction based on a preset parameter verification rule and a preset priority verification rule, and after the first control instruction is verified, parsing the first control instruction to obtain a current control request and control parameters of the first control instruction; and sending the current control request and control parameters of the first control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the control parameters of the first control instruction based on the current control request of the first control instruction.
[0006] According to the above technical means, the rearview mirror can be rearranged and flexibly deployed to meet the personalized needs of users.
[0007] Further, in one embodiment of the present application, the current control request based on the first control instruction and the control parameters of the first control instruction are used to control the rearview mirror, including: when the current control request is an axis motion request, if the control state corresponding to the control parameters of the first control instruction and the motor control state of the rearview mirror are non-coaxial control states, then after the motor control state is jumped to the initialization state, the motor control state is controlled according to the control state pair corresponding to the control parameters of the first control instruction; when the current control request is an axis motion request, if the control state corresponding to the control parameters of the first control instruction and the motor control state of the rearview mirror are coaxial control states, then the motor control state is jumped to the stop state, and after the time for the motor control state to jump to the stop state reaches a preset time, the motor control state is controlled according to the control state pair corresponding to the control parameters of the first control instruction.
[0008] According to the above technical means, the rearview mirror is controlled by the first instruction control parameter, which enhances the service-oriented application of the rearview mirror and enables users to customize it according to their needs.
[0009] Furthermore, in one embodiment of the present application, the SOA architecture also includes a system service layer, which, before receiving the first control instruction of the rearview mirror issued by the scene service layer, includes: receiving at least one second control instruction of the rearview mirror sent by the system service layer; verifying the at least one second control instruction based on the preset parameter verification rule, and after the at least one second control instruction is verified, parsing the at least one second control instruction to obtain the current control request, control parameters and priority of each second control instruction; sending the control parameters and priority of each second control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the current control request and control parameters of each second control instruction in order of the priority of each second control instruction from high to low.
[0010] According to the above technical means, the basic service functions of the rearview mirror are realized, and the control of the rearview mirror is realized in different user demand scenarios.
[0011] Further, in one embodiment of the present application, the second control instruction includes at least one of a manual adjustment instruction, an automatic adjustment instruction, a memory setting instruction, a folding and unfolding instruction, a heating instruction, and a self-learning instruction.
[0012] According to the above technical means, the different needs of users can be met through adjustment and control of multiple instructions.
[0013] Further, in one embodiment of the present application, the current control request includes at least one of an axis movement request, a folding and unfolding request, and a heating request.
[0014] According to the above technical means, by receiving different requests from users, personalized customized services for user requests are implemented.
[0015] A second aspect of the present application provides a control device for a vehicle rearview mirror, wherein the vehicle includes a service-oriented architecture (SOA) architecture, and the SOA architecture includes a scene service layer and an atomic service layer, wherein the device includes: a receiving module, used to receive a first control instruction of the rearview mirror issued by the scene service layer; a verification module, used to verify the first control instruction based on a preset parameter verification rule and a preset priority verification rule, and after the first control instruction is verified, parse the first control instruction to obtain a current control request and control parameters of the first control instruction; and a control module, used to send the current control request and control parameters of the first control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the control parameters of the first control instruction based on the current control request of the first control instruction.
[0016] Further, in one embodiment of the present application, the control module includes: a first control unit, used for, when the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction is a non-coaxial control state with the motor control state of the rearview mirror, then jumping the motor control state to an initialization state, and controlling the motor control state according to the control state pair corresponding to the control parameter of the first control instruction; a second control unit, used for, when the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction is a coaxial control state with the motor control state of the rearview mirror, then jumping the motor control state to a stop state, and after the time for the motor control state to jump to the stop state reaches a preset time, controlling the motor control state according to the control state pair corresponding to the control parameter of the first control instruction.
[0017] Furthermore, in one embodiment of the present application, the SOA architecture also includes a system service layer. Before receiving the first control instruction of the rearview mirror issued by the scene service layer, the receiving module includes: a receiving unit, used to receive at least one second control instruction of the rearview mirror sent by the system service layer; a parsing unit, used to verify the at least one second control instruction based on the preset parameter verification rule, and after the at least one second control instruction is verified, parse the at least one second control instruction to obtain the current control request, control parameters and priority of each second control instruction; a third control unit, used to send the control parameters and priority of each second control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the current control request and control parameters of each second control instruction in order from high to low priority of each second control instruction.
[0018] Further, in one embodiment of the present application, the second control instruction includes at least one of a manual adjustment instruction, an automatic adjustment instruction, a memory setting instruction, a folding and unfolding instruction, a heating instruction, and a self-learning instruction.
[0019] Further, in one embodiment of the present application, the current control request includes at least one of an axis movement request, a folding and unfolding request, and a heating request.
[0020] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle rearview mirror control method as described in the above embodiment.
[0021] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the method for controlling a vehicle rearview mirror as described in the above embodiment.
[0022] The embodiment of the present application verifies the first control instruction of the rearview mirror issued by the receiving scene service layer based on the preset parameter verification rule and the preset priority verification rule, and parses it after the verification is passed to obtain the current control request and control parameters of the first control instruction, and then sends it to the atomic service layer, so that the atomic service layer controls the rearview mirror based on the current control request of the first control instruction and according to its control parameters. Thus, the problem that the software functions of the rearview mirror in the related art are relatively fixed and difficult to adjust, thus failing to meet the interaction and diversified needs of users is solved.
[0023] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0025] Figure 1 A flowchart of a method for controlling a vehicle rearview mirror according to an embodiment of the present application;
[0026] Figure 2 A schematic diagram of a rearview mirror SOA software architecture according to an embodiment of the present application;
[0027] Figure 3 A schematic diagram of an enhanced service layer axis motion request software architecture according to an embodiment of the present application;
[0028] Figure 4 A schematic diagram of the software architecture of the atomic service layer axis motor control according to one embodiment of the present application;
[0029] Figure 5 is an exemplary diagram of a control device for a vehicle rearview mirror according to an embodiment of the present application;
[0030] Figure 6 It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application.
[0031] Explanation of the reference numerals: 1000 - control device for a vehicle rearview mirror; 100 - receiving module, 200 - verification module, 300 - control module. DETAILED DESCRIPTION
[0032] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0033] The following describes the control method, device, vehicle and storage medium of the vehicle rearview mirror of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the software functions of the rearview mirror in the related art mentioned in the above background technology are relatively fixed and difficult to adjust, so that the interaction with the user and the diversified needs cannot be met, the present application provides a control method for the vehicle rearview mirror, in which the first control instruction of the rearview mirror issued by the receiving scene service layer is checked based on the preset parameter verification rules and the preset priority verification rules, and after the verification is passed, the first control instruction is parsed to obtain the current control request and control parameters of the first control instruction, and then sent to the atomic service layer, so that the atomic service layer controls the rearview mirror based on the current control request of the first control instruction and according to its control parameters, so that based on the SOA-oriented architecture service, the user can rearrange the rearview mirror and flexibly deploy it, so that the software changes are small and the update is fast, so as to meet the user's personalized customization needs. Therefore, the problem that the software functions of the rearview mirror in the related art are relatively fixed and difficult to adjust, so that the interaction with the user and the diversified needs cannot be met is solved.
[0034] Specifically, before introducing the embodiments of the present application, we first introduce the five levels of the software architecture involved in the embodiments of the present application based on the SOA architecture. Taking the electric rearview mirror as an example, they are the scene service layer, system service layer, enhanced service layer, atomic service layer, and I / O (Input / Output) abstract layer.
[0035] Among them, the scene service layer is used to issue command requests to the enhanced service layer, which plays the role of task triggering. Among them, the prerequisites for the request to be issued are determined at this layer, mainly including electric adjustment of rearview mirrors, folding and unfolding of rearview mirrors (switch control), rearview mirror heating and other functions; secondly, multiple control functions can be executed in a certain scene, such as being open to the outside world, realizing personalized customization, supporting user arrangement, and users can flexibly arrange various scenes according to their preferences under the premise of open permissions to meet diverse needs, such as memory call function, smart ID (Identification) to adjust the rearview mirror function; the scene service layer can also make the designed specific control strategies available to the outside world.
[0036] The system service layer is used to implement the basic functions of the rearview mirror, such as adjusting the position of the rearview mirror by triggering a switch, thereby realizing the control of the rearview mirror in different scenarios.
[0037] The enhanced service layer is used to perform priority arbitration, parameter verification and other operations on motion requests from the scene service layer and the system service layer. It selects and executes the corresponding scene service and system service through priority arbitration, and mainly completes the control of the control object. This layer mainly includes functions such as rearview mirror axis motor motion control, rearview mirror motor folding and unfolding control, and rearview mirror heating control. The specific control logic is implemented in this layer. At the same time, the enhanced service provides an interface for scene service and system service calls. One enhanced service can be called by multiple scene services and system services at the same time.
[0038] As an isolation layer, the atomic service layer can shield the impact of changes in I / O abstraction on the upper layer. This layer mainly includes functions such as upper and lower axis motor control, left and right axis motor control, folding and unfolding motor control, and temperature control.
[0039] The I / O abstraction layer is bound to the hardware layer, shielding the hardware design from the specific implementation method. The interface provided by the I / O abstraction layer is only visible to the atomic service layer and cannot be directly called by other layers.
[0040] Specifically, Figure 1 A schematic flow chart of a method for controlling a vehicle rearview mirror provided in an embodiment of the present application.
[0041] like Figure 1 As shown, the control method of the vehicle rearview mirror includes the following steps:
[0042] In step S101, a first control instruction of a rearview mirror issued by a scene service layer is received.
[0043] Specifically, the embodiment of the present application can issue a control request for the rearview mirror through the scene service layer, that is, the first control command to the enhanced service layer, wherein the first control instruction may include functions such as electric adjustment of the rearview mirror, folding and unfolding of the rearview mirror (switch control), and heating of the rearview mirror.
[0044] In step S102, based on preset parameter verification rules and preset priority verification rules, the first control instruction is verified, and after the first control instruction passes the verification, the first control instruction is parsed to obtain the current control request and control parameters of the first control instruction.
[0045] Among them, the preset parameter verification rules and the preset priority verification rules can be set according to actual application conditions and are not specifically limited here.
[0046] Specifically, in the embodiment of the present application, the enhanced service layer first provides an interface for the scene service layer or the system service layer so that the system service layer can call the enhanced service layer, wherein one enhanced service layer can be called by multiple scene services or system services at the same time; secondly, during the calling process, the system service layer can pass the first control command received from the scene service layer to the enhanced service layer, and after being called, the enhanced service layer performs operations such as priority arbitration and verification of the first control instruction, and parses it after the verification passes, thereby obtaining the current control request and control parameters of the first control instruction. The current control request includes at least one of an axis motion request, a folding and unfolding request, and a heating request.
[0047] Specifically, if Figure 1 As shown, if the enhanced service layer of the embodiment of the present application calls the manual adjustment, automatic adjustment, memory setting, etc. in the system service layer, and the enhanced service layer is also called at the same time, the first control command of the scene service layer is passed to the enhanced service layer for priority arbitration and instruction verification and other operations to select the execution of the corresponding scene service and system service, wherein the control commands mainly include up, down, left, and right requests, and the priority can be defined according to different scenarios, which is not specifically limited here; secondly, after the enhanced service layer is called, the first control instruction needs to be verified, including input range verification, validity verification, etc. If the verification fails, the corresponding scene service request will not be responded to; thirdly, the priority needs to be arbitrated. According to different control objects, different logics can be used for priority arbitration. For the control of the electric rearview mirror, when executing an action, other scene service requests can be responded to, among which manual adjustment has the highest priority and can interrupt the current execution action.
[0048] It should be noted that, in the case where a periodic enhanced service is called multiple times, after priority arbitration, the scene service request with the highest priority should be output. When there is a motor failure or the power supply voltage is too low, the service is prohibited from being called.
[0049] Furthermore, after the first control instruction is verified, it can be obtained through analysis that the current control request of the first control instruction can be at least one of an axis movement request, a folding and unfolding request, and a heating request.
[0050] In step S103, the current control request and control parameters of the first control instruction are sent to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the control parameters of the first control instruction based on the current control request of the first control instruction.
[0051] Further, in one embodiment of the present application, based on the current control request of the first control instruction, the rearview mirror is controlled according to the control parameters of the first control instruction, including: when the current control request is an axis motion request, if the control state corresponding to the control parameters of the first control instruction and the motor control state of the rearview mirror are non-coaxial control states, then after the motor control state jumps to the initialization state, the motor control state is controlled according to the control state pair corresponding to the control parameters of the first control instruction; when the current control request is an axis motion request, if the control state corresponding to the control parameters of the first control instruction and the motor control state of the rearview mirror are coaxial control states, the motor control state jumps to the stop state, and after the time for the motor control state to jump to the stop state reaches a preset time, the motor control state is controlled according to the control state pair corresponding to the control parameters of the first control instruction.
[0052] The preset duration may be a duration threshold set by the user, or a duration threshold obtained after multiple computer simulations, which is not specifically limited here.
[0053] Specifically, Figure 3 As shown, if the current control request of the first control instruction of the embodiment of the present application is an axis motion request, first, the axis motion request is in the initialization state after the vehicle is powered on, satisfying the switch request trigger, thereby entering the switch adjustment control request mode. In this mode, the corresponding axis motion request is output to the atomic service layer, such as Figure 4 As shown, taking the manual control of the left and right axes of the rearview mirror as an example, after triggering, the atomic services of the up and down and left and right axis motor motion control are called.
[0054] Secondly, if Figure 3 As shown, after the vehicle is powered on, if the target position request trigger is met, it enters the target position adjustment mode. In this mode, the corresponding axis motion request is also output to the atomic service layer. It should be noted that for the case where switch adjustment switches to target position adjustment or target position adjustment switches to switch adjustment, it switches to the corresponding motion control state according to the priority arbitration situation.
[0055] Finally, the up, down, left, and right axis motion request module of the enhanced service in the embodiment of the present application mainly processes the call request from the scene service, processes the request, and then outputs the control instruction to the atomic service layer. Among them, the control instruction is a trigger event. After the trigger condition is met, the atomic service is called once and the corresponding instruction is sent to the atomic service layer. The enhanced service needs to judge the stop condition by itself, call the atomic service again after the trigger, and send a stop instruction to the atomic service.
[0056] Specifically, when the atomic service layer is called, it must follow Figure 4Control the motor movement. First, the motor control state starts from the initialization state. When the control instruction is to the left, it jumps to the left state, and sends the instruction to the I / O layer. If the control state corresponding to the control parameter of the first control instruction is not coaxial with the motor control state of the rearview mirror, the motor control state jumps to the initialization state, and sends a stop instruction to the I / O layer, and then jumps to the up or down state or the control instruction is to stop, returns to the initialization state, and sends a stop instruction to the I / O layer; if the control state corresponding to the control parameter of the first control instruction is coaxial with the motor control state of the rearview mirror, and the control instruction changes to the right, the motor control state jumps to the stop state, and sends a stop instruction to the I / O layer, stops for a period of time (such as 500ms) and then returns to the initialization state, and then responds to the right instruction and sends the right instruction to the I / O layer.
[0057] Optionally, when the control instruction is to the right, it jumps to the right state, and sends the instruction to the I / O layer. If the control state corresponding to the control parameter of the first control instruction is not a coaxial control state with the motor control state of the rearview mirror, the motor control state jumps to the initialization state, and sends a stop instruction to the I / O layer, and then jumps to the up or down state or encounters a control instruction of stop, returns to the initialization state, and sends a stop instruction to the I / O layer; if the control state corresponding to the control parameter of the first control instruction is a coaxial control state with the motor control state of the rearview mirror, and the control instruction changes to the left, the motor control state jumps to the stop state, and sends a stop instruction to the I / O layer, stops for a period of time (such as 500ms) and then returns to the initialization state, and then responds to the left instruction and sends the left instruction to the I / O layer.
[0058] Optionally, when the control instruction is upward, jump to the upward state, and send the instruction to the I / O layer. If the control state corresponding to the control parameter of the first control instruction is not coaxial with the motor control state of the rearview mirror, the motor control state is jumped to the initialization state, and a stop instruction is sent to the I / O layer, and then jump to the left or right state or encounter a control instruction of stop, return to the initialization state, and send a stop instruction to the I / O layer; if the control state corresponding to the control parameter of the first control instruction is coaxial with the motor control state of the rearview mirror, and the control instruction changes to downward, the motor control state is jumped to the stop state, and a stop instruction is sent to the I / O layer, and then returns to the initialization state after stopping for a period of time (such as 500ms), and then responds to the downward instruction and sends the downward instruction to the I / O layer.
[0059] Optionally, when the control instruction is downward, it jumps to the downward state, and sends the instruction to the I / O layer. If the control state corresponding to the control parameter of the first control instruction is not a coaxial control state with the motor control state of the rearview mirror, the motor control state jumps to the initialization state, and sends a stop instruction to the I / O layer, and then jumps to the left or right state or encounters a control instruction of stop, returns to the initialization state, and sends a stop instruction to the I / O layer; if the control state corresponding to the control parameter of the first control instruction is a coaxial control state with the motor control state of the rearview mirror, and the control instruction changes to downward, the motor control state jumps to the stop state, and sends a stop instruction to the I / O layer, stops for a period of time (such as 500ms) and then returns to the initialization state, and then responds to the upward instruction and sends the upward instruction to the I / O layer.
[0060] Furthermore, in one embodiment of the present application, the architecture also includes a system service layer, which, before receiving the first control instruction of the rearview mirror issued by the scene service layer, includes: receiving at least one second control instruction of the rearview mirror sent by the system service layer; verifying at least one second control instruction based on a preset parameter verification rule, and after at least one second control instruction is verified, parsing at least one second control instruction to obtain the current control request, control parameters and priority of each second control instruction; sending the control parameters and priority of each second control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the current control request and control parameters of each second control instruction in order from high to low priority of each second control instruction.
[0061] Specifically, the scene service layer of the embodiment of the present application receives the second control instruction of the rearview mirror sent by the system service layer, such as a manual adjustment instruction, an automatic adjustment instruction, a memory setting instruction, a folding and unfolding instruction, a heating instruction, and a self-learning instruction, and based on the above-mentioned verification rules, verifies at least one of the second control instructions, and parses them after the verification passes, so as to obtain the current control request, control parameters and priority of each second control instruction, and then arbitrates the priority, responds to different scene service requests according to different control objects, and sends the control parameters and priority of each second control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the order of the priority of each second control instruction from high to low, and then controls the rearview mirror according to the current control request and control parameters of each second control instruction to meet the user's personalized needs.
[0062] According to the control method of the vehicle rearview mirror proposed in the embodiment of the present application, based on the preset parameter verification rules and the preset priority verification rules, the first control instruction of the rearview mirror issued by the receiving scene service layer is verified, and after the verification is passed, it is parsed to obtain the current control request and control parameters of the first control instruction, and then sent to the atomic service layer, so that the atomic service layer controls the rearview mirror based on the current control request of the first control instruction and according to its control parameters, so that based on the SOA-oriented architecture service, the user can rearrange the rearview mirror and flexibly deploy it, so that the software changes are small and the update is fast to meet the user's personalized customization needs. Therefore, the problem that the rearview mirror software function in the related art is relatively fixed and difficult to adjust, thus failing to meet the interaction and diversified needs of the same user is solved.
[0063] Next, the control device for the vehicle rearview mirror proposed in accordance with the embodiment of the present application will be described with reference to the accompanying drawings.
[0064] Figure 5 It is a block diagram of a control device for a vehicle rearview mirror according to an embodiment of the present application.
[0065] like Figure 5 As shown, the vehicle includes a service-oriented architecture SOA architecture, the SOA architecture includes a scene service layer and an atomic service layer, and the control device 1000 of the vehicle rearview mirror includes: a receiving module 100, a verification module 200 and a control module 300.
[0066] The receiving module 100 is used to receive a first control instruction of the rearview mirror issued by the scene service layer;
[0067] A verification module 200, configured to verify the first control instruction based on a preset parameter verification rule and a preset priority verification rule, and after the first control instruction passes the verification, parse the first control instruction to obtain a current control request and control parameters of the first control instruction; and
[0068] The control module 300 is used to send the current control request and control parameters of the first control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the control parameters of the first control instruction based on the current control request of the first control instruction.
[0069] Furthermore, in one embodiment of the present application, the control module 300 includes: a first control unit and a second control unit.
[0070] The first control unit is used for controlling the motor control state according to the control state corresponding to the control parameter of the first control instruction after the motor control state is switched to the initialization state when the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction and the motor control state of the rearview mirror are non-coaxial control states;
[0071] The second control unit is used to jump the motor control state to a stop state when the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction is a coaxial control state with the motor control state of the rearview mirror, and control the motor control state according to the control state corresponding to the control parameter of the first control instruction after the time for the motor control state to jump to the stop state reaches a preset time.
[0072] Furthermore, in one embodiment of the present application, the SOA architecture also includes a system service layer. Before receiving the first control instruction of the rearview mirror issued by the scene service layer, the receiving module 100 includes: a receiving unit, a parsing unit and a third control unit.
[0073] Wherein, the receiving unit is used to receive at least one second control instruction of the rearview mirror sent by the system service layer;
[0074] A parsing unit, configured to verify at least one second control instruction based on a preset parameter verification rule, and after at least one second control instruction passes the verification, parse at least one second control instruction to obtain a current control request, control parameters, and priority of each second control instruction;
[0075] The third control unit is used to send the control parameters and priority of each second control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the current control request and control parameters of each second control instruction in order from high to low priority of each second control instruction.
[0076] Further, in one embodiment of the present application, the second control instruction includes at least one of a manual adjustment instruction, an automatic adjustment instruction, a memory setting instruction, a folding and unfolding instruction, a heating instruction, and a self-learning instruction.
[0077] Further, in one embodiment of the present application, the current control request includes at least one of an axis movement request, a folding and unfolding request, and a heating request.
[0078] According to the control device of the vehicle rearview mirror proposed in the embodiment of the present application, based on the preset parameter verification rules and the preset priority verification rules, the first control instruction of the rearview mirror issued by the scene service layer is verified and received, and after the verification is passed, the first control instruction is parsed to obtain the current control request and control parameters of the first control instruction, and then sent to the atomic service layer, so that the atomic service layer controls the rearview mirror based on the current control request of the first control instruction and according to its control parameters, so that based on the SOA-oriented architecture service, the user can rearrange the rearview mirror and flexibly deploy it, so that the software changes are small and the update is fast to meet the user's personalized customization needs. Therefore, the problem that the rearview mirror software function in the related art is relatively fixed and difficult to adjust, thus failing to meet the interaction and diversified needs of the same user is solved.
[0079] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0080] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0081] When the processor 602 executes the program, the control method of the vehicle rearview mirror provided in the above embodiment is implemented.
[0082] Furthermore, the vehicle also includes:
[0083] The communication interface 603 is used for communication between the memory 601 and the processor 602 .
[0084] The memory 601 is used to store computer programs that can be executed on the processor 602 .
[0085] The memory 601 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0086] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0087] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.
[0088] The processor 602 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0089] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for controlling a vehicle rearview mirror.
[0090] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0091] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0092] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0093] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0094] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0095] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for controlling a vehicle rearview mirror, characterized in that: The vehicle includes a service-oriented architecture (SOA) architecture, the SOA architecture includes a scenario service layer and an atomic service layer, wherein the method includes the following steps: Receiving a first control instruction of the rearview mirror issued by the scene service layer; Verifying the first control instruction based on a preset parameter verification rule and a preset priority verification rule, and after the first control instruction passes the verification, parsing the first control instruction to obtain a current control request and control parameters of the first control instruction; and Sending the current control request and control parameters of the first control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the control parameters of the first control instruction based on the current control request of the first control instruction; The controlling the rearview mirror according to the control parameter of the first control instruction based on the current control request of the first control instruction comprises: When the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction and the motor control state of the rearview mirror are non-coaxial control states, after the motor control state is jumped to the initialization state, the motor control state is controlled according to the control state pair corresponding to the control parameter of the first control instruction; When the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction is a coaxial control state with the motor control state of the rearview mirror, the motor control state is jumped to a stop state, and after the time for the motor control state to jump to the stop state reaches a preset time, the motor control state is controlled according to the control state corresponding to the control parameter of the first control instruction.
2. The method according to claim 1, characterized in that: The SOA architecture further includes a system service layer, which, before receiving the first control instruction of the rearview mirror issued by the scene service layer, includes: receiving at least one second control instruction of the rearview mirror sent by the system service layer; Based on the preset parameter verification rule, verify the at least one second control instruction, and after the at least one second control instruction passes the verification, parse the at least one second control instruction to obtain the current control request, control parameter and priority of each second control instruction; The control parameters and priority of each second control instruction are sent to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the current control request and control parameters of each second control instruction in order of priority of each second control instruction from high to low.
3. The method according to claim 2, characterized in that The second control instruction includes at least one of a manual adjustment instruction, an automatic adjustment instruction, a memory setting instruction, a folding and unfolding instruction, a heating instruction and a self-learning instruction.
4. The method according to any one of claims 1 to 3, characterized in that: The current control request includes at least one of an axis movement request, a folding and unfolding request, and a heating request.
5. A control device for a vehicle rearview mirror, characterized in that: The vehicle includes a service-oriented architecture (SOA) architecture, the SOA architecture includes a scenario service layer and an atomic service layer, wherein the device includes: A receiving module, used for receiving a first control instruction of a rearview mirror issued by the scene service layer; a verification module, configured to verify the first control instruction based on a preset parameter verification rule and a preset priority verification rule, and after the first control instruction passes the verification, parse the first control instruction to obtain a current control request and control parameters of the first control instruction; and A control module, used for sending the current control request and control parameters of the first control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the control parameters of the first control instruction based on the current control request of the first control instruction; The control module comprises: a first control unit, configured to control the motor control state according to the control state pair corresponding to the control parameter of the first control instruction after switching the motor control state to an initialization state when the current control request is an axis motion request and if the control state corresponding to the control parameter of the first control instruction and the motor control state of the rearview mirror are non-coaxial control states; A second control unit is used to, when the current control request is an axis motion request, if the control state corresponding to the control parameter of the first control instruction is a coaxial control state with the motor control state of the rearview mirror, jump the motor control state to a stop state, and after the time when the motor control state jumps to the stop state reaches a preset time, control the motor control state according to the control state corresponding to the control parameter of the first control instruction.
6. The device according to claim 5, characterized in that The SOA architecture further includes a system service layer. Before receiving the first control instruction of the rearview mirror issued by the scene service layer, the receiving module includes: A receiving unit, configured to receive at least one second control instruction of the rearview mirror sent by the system service layer; A parsing unit, configured to verify the at least one second control instruction based on the preset parameter verification rule, and after the at least one second control instruction passes the verification, parse the at least one second control instruction to obtain a current control request, control parameters and priority of each second control instruction; A third control unit is used to send the control parameters and priority of each second control instruction to the atomic service layer, so that the atomic service layer controls the rearview mirror according to the current control request and control parameters of each second control instruction in order of the priority of each second control instruction from high to low.
7. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for controlling a vehicle rearview mirror as described in any one of claims 1 to 4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the control method of the vehicle rearview mirror as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Automobile electric seat control system and method based on SOA framework
CN114435197A