Vehicle rearview mirror control method, device and equipment, storage medium and product
By pre-storing the target position in the vehicle rearview mirror and using the control loop to detect the driving motor position, the problem of inconsistent mirror level adjustment and automatic expansion target position is solved, and the automatic adjustment of the rearview mirror to the user's habitual position is realized, improving the Experience and security.
Patent Information
- Application Number
- CN202411396745.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2024-12-27
AI Technical Summary
The mirror horizontal adjustment target position of the existing vehicle rearview mirror is inconsistent with the automatic expansion target position, which leads to inconvenience in use.
By pre-store the target expansion position and the specified horizontal position, and upon receiving the rearview mirror expansion or adjustment command, the drive motor is controlled to fold expansion or horizontally operate based on the control loop until the difference is in the preset tolerance Range, ensure that the rearview mirror moves to the driving mirror position that the user is used to at one time, avoid adjustment command conflicts, and improve safety.
The automatic adjustment of the rearview mirror from the folded state to the user's habitual driving position is realized, improving the user experience and safety, avoiding the accumulation of position errors caused by inertial movement of the drive motor, and ensuring position accuracy.
Smart Images

Figure CN119189879A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle rearview mirror control method, device, equipment, storage medium and product. Background Art
[0002] The rearview mirror of a vehicle is mainly used to observe the road conditions behind the vehicle. The driver can also use it to observe the overall situation of the car while driving. The design of these exterior rearview mirrors is mainly to expand the driver's field of vision and enhance driving safety. Among them, the adjustment of the rearview mirror is also a particularly important task for drivers in their daily driving.
[0003] The adjustment of the vehicle rearview mirror usually includes the horizontal and vertical adjustment of the mirror surface and the folding and unfolding adjustment. The horizontal adjustment of the frameless rearview mirror and the overall folding and unfolding of the rearview mirror are driven by the same motor, and the vertical adjustment of the mirror surface is driven by a separate motor. The horizontal adjustment of the mirror surface and the overall folding and unfolding of the rearview mirror can both be regarded as horizontal adjustments.
[0004] At present, when the vehicle's frameless rearview mirror is automatically unfolded in the horizontal direction, the target position is a fixed value set at the factory. The target position of the mirror horizontal adjustment is inconsistent and is not associated with the driver's accustomed driving mirror position. Therefore, after the rearview mirror is automatically unfolded and the user wants to get in the car to use it, the rearview mirror needs to be automatically adjusted to the driving position, which is not convenient to use. Summary of the invention
[0005] In view of this, the present invention provides a vehicle rearview mirror control method, device, equipment, storage medium and product to solve or partially solve the technical problem that the existing vehicle rearview mirror control method is inconvenient to use due to the inconsistency between the target position of the mirror horizontal adjustment and the target position during automatic deployment.
[0006] In a first aspect, the present invention provides a vehicle rearview mirror control method, comprising: pre-storing a target unfolding position and a designated horizontal position, wherein the target unfolding position and the designated horizontal position are the same and are both driving mirror positions set by a user; receiving a rearview mirror unfolding instruction, and after receiving the rearview mirror unfolding instruction, acquiring the target unfolding position based on a first control loop and detecting the current position of a drive motor of a controlled rearview mirror, and controlling the drive motor to perform folding and unfolding operation until the difference between the current position of the drive motor and the target unfolding position is within a first preset tolerance range; receiving a horizontal direction designated position adjustment instruction, and after receiving the horizontal direction designated position adjustment instruction, detecting whether the drive motor is in a folding and unfolding operation state based on a second control loop, if the drive motor is not in the folding and unfolding operation state, acquiring the designated horizontal position based on the first control loop and detecting the current position of the drive motor, and controlling the drive motor to perform horizontal operation until the difference between the current position of the drive motor and the designated horizontal position is within a second preset tolerance range.
[0007] A vehicle rearview mirror control method of the present invention sets a target unfolding position and a designated horizontal position as the set driving mirror position and stores them in advance. After receiving a rearview mirror unfolding instruction, the target unfolding position is acquired based on a first control loop and the current position of a driving motor of the controlled rearview mirror is detected. The driving motor is controlled to perform a folding and unfolding operation until the difference between the current position of the driving motor and the target unfolding position is within a first preset tolerance range. After receiving the horizontal direction designated position adjustment instruction, whether the driving motor is in a folding and unfolding operation state is detected based on a second control loop. If the driving motor is not in the folding and unfolding operation state, the designated horizontal position is acquired based on the first control loop. And detect the current position of the drive motor, control the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range. Since the target unfolding position and the specified horizontal position are the same and both are set driving mirror positions, when the rearview mirror is unfolded from a folded state, it can be moved to the driving mirror position that the user is accustomed to at one time through the coordinated control of the first control loop and the second control loop. There is no need to adjust the rearview mirror position again, which is easy to use and can improve the user experience. The working status is checked before executing the horizontal operation to ensure that the horizontal adjustment is only performed in the non-folded and unfolded operating state, thereby avoiding adjustment command conflicts and improving safety.
[0008] Optionally, when controlling the drive motor to fold and unfold or run horizontally, it also includes: detecting real-time working parameters of the drive motor during operation based on a third control loop; comparing the real-time working parameters with pre-set working parameter thresholds, and judging whether there is an abnormal situation based on the comparison result; if there is an abnormal situation, stopping controlling the operation of the drive motor and outputting a prompt message.
[0009] During the adjustment process, abnormal conditions are detected according to real-time working parameters and the operation is stopped in time, which can timely avoid damage or safety problems caused by equipment failure.
[0010] Optionally, before controlling the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range, it also includes: adjusting the running speed of the drive motor from a first preset speed to a second preset speed, wherein the first preset speed is the running speed when controlling the drive motor to run folding and unfolding, and the first preset speed is greater than the second preset speed.
[0011] By adjusting the running speed of the drive motor, a more suitable speed can be provided in different adjustment processes. The first preset speed is greater than the second preset speed, so that the target deployment position can be reached faster when the rearview mirror is deployed. When adjusting to the specified horizontal position, a slower speed is used to ensure that the adjustment result is more accurate, and a precise adjustment method can be further provided while meeting the condition of rapid deployment.
[0012] Optionally, after pre-storing the target unfolding position and the specified horizontal position, it also includes: receiving a manual adjustment instruction in the horizontal direction, and after receiving the manual adjustment instruction in the horizontal direction, detecting whether the current working state is a folding and unfolding operating state; if the current working state is a non-folding and unfolding operating state, controlling the operation of the drive motor based on the manual adjustment instruction in the horizontal direction; if the current working state is a folding and unfolding operating state, refusing to execute the manual adjustment instruction in the horizontal direction.
[0013] This solution allows users to perform manual adjustments, providing a more direct control method to adapt to different driving conditions or personal preferences. During the manual adjustment process, horizontal adjustments must also be made in the non-folded and unfolded operating state to avoid conflicts in adjustment commands.
[0014] Optionally, after pre-storing the target unfolding position and the specified horizontal position, it also includes: receiving a rearview mirror folding instruction, and after receiving the rearview mirror folding instruction, obtaining a preset fixed stop position and a current position of a drive motor based on a first control loop, and controlling the drive motor to perform folding and unfolding operation until the difference between the current position of the drive motor and the fixed stop position is within a third preset tolerance range.
[0015] In this solution, by setting a fixed stop position, it can be ensured that the rearview mirror is stable in the folded state, which is convenient for quickly adjusting the state of the rearview mirror when parking or when needed.
[0016] Optionally, the first preset tolerance range is greater than the second preset tolerance range, and the first preset tolerance range is equal to the third preset tolerance range.
[0017] By setting different tolerance ranges for different adjustment instructions, different adjustment accuracies can be provided, wherein the first preset tolerance range and the third tolerance range are the ranges for stopping driving when unfolding and folding, respectively. The ranges can be set relatively large to ensure fast adjustment, and the second preset tolerance range is relatively small to ensure the accuracy of horizontal adjustment.
[0018] In a second aspect, the present invention provides a vehicle rearview mirror control device, comprising: a position memory module, used to pre-store a target unfolding position and a specified horizontal position, wherein the target unfolding position and the specified horizontal position are the same and are both driving mirror positions set by the user; a folding and unfolding module, used to receive a rearview mirror unfolding instruction, and after receiving the rearview mirror unfolding instruction, obtain the target unfolding position based on a first control loop and detect the current position of a driving motor of the controlled rearview mirror, and control the driving motor to perform folding and unfolding operation until the difference between the current position of the driving motor and the target unfolding position is within a first preset tolerance range; a mirror level adjustment module, used to receive a horizontal direction specified position adjustment instruction, and after receiving the horizontal direction specified position adjustment instruction, detect whether the driving motor is in a folding and unfolding operation state based on a second control loop, if the driving motor is not in the folding and unfolding operation state, then obtain the specified horizontal position based on the first control loop and detect the current position of the driving motor, and control the driving motor to perform horizontal operation until the difference between the current position of the driving motor and the specified horizontal position is within a second preset tolerance range.
[0019] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the vehicle rearview mirror control method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the vehicle rearview mirror control method of the first aspect or any corresponding embodiment thereof.
[0021] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the vehicle rearview mirror control method as described in the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 is a flow chart of a vehicle rearview mirror control method according to an embodiment of the present invention;
[0024] Figure 2 is a schematic structural diagram of a frameless rearview mirror according to an embodiment of the present invention;
[0025] Figure 3 is an interactive schematic diagram of a vehicle rearview mirror control method according to an embodiment of the present invention;
[0026] Figure 4 is a structural block diagram of a vehicle rearview mirror control device according to an embodiment of the present invention;
[0027] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0029] With the development of technology, more and more vehicles are using frameless rearview mirrors. Figure 2 As shown in the figure, the difference between the frameless rearview mirror and the traditional framed rearview mirror is that the framed rearview mirror is generally inlaid with a black frame around the mirror surface, while the frameless rearview mirror is a seamless whole. Since the design of the frameless rearview mirror is not restricted by the frame, it can provide a wider field of view, allowing the driver to observe the situation behind the car more clearly, so it is safer. In addition, the frameless rearview mirror has a more compact structure and a simpler design, which can reduce wind resistance and noise.
[0030] In terms of driving principle, the horizontal adjustment of the frameless rearview mirror and the overall folding and unfolding of the rearview mirror are driven by the same motor, and the vertical adjustment of the mirror is driven by a separate motor. Because the horizontal adjustment of the mirror and the folding and unfolding are both horizontal adjustments, they share the same motor, and the mirror adjustment stroke is small, while the folding and unfolding stroke is large, precise horizontal position control is achieved.
[0031] The embodiment of the present invention provides a vehicle rearview mirror control method, which is applied to the rearview mirror adjustment of various vehicles such as trucks and cars, and is particularly applicable to the adjustment of the horizontal position of a frameless rearview mirror.
[0032] According to an embodiment of the present invention, an embodiment of a vehicle rearview mirror control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] In this embodiment, a vehicle rearview mirror control method is provided, which can be used in mobile terminals, such as vehicle-mounted terminals, mobile phones, computers, etc. Figure 1 As shown, the process includes the following steps:
[0034] Step S101 : pre-storing a target deployment position and a designated horizontal position, wherein the target deployment position and the designated horizontal position are the same and are both driving mirror positions set by a user.
[0035] Specifically, the target expansion position and the specified horizontal position are both in percentage form.
[0036] The user sets the driving mirror position according to personal driving conditions. If the driving mirror position is changed, the target deployment position and the specified horizontal position are changed at the same time, so that the target deployment position and the specified horizontal position remain consistent.
[0037] The driving mirror position is set according to different vehicle operating states. When an adjustment instruction is received, the corresponding driving mirror position is obtained based on the different vehicle operating states. For example, the driving mirror position when the vehicle is in forward gear is different from the driving mirror position when the vehicle is in reverse gear.
[0038] Step S102, receiving a rearview mirror deployment instruction, and after receiving the rearview mirror deployment instruction, obtaining a target deployment position based on a first control loop and detecting a current position of a drive motor of the controlled rearview mirror, and controlling the drive motor to perform folding and deployment operation until the difference between the current position of the drive motor and the target deployment position is within a first preset tolerance range.
[0039] Specifically, the rearview mirror deployment command can be triggered through a display screen or button in the vehicle terminal, or by a car key, mobile phone, etc.
[0040] The first control loop LC1 is a closed-loop control loop, which is used to drive the driving motor of the controlled rearview mirror to run to the target position, including the target deployment position, the specified horizontal position, etc.
[0041] After receiving the rearview mirror deployment instruction, the pre-stored mirror driving position is obtained according to the running state of the vehicle, and the target deployment position is obtained according to the mirror driving position.
[0042] When controlling the drive motor to unfold, the position feedback of the drive motor is monitored in real time to obtain the current position of the drive motor, the current position is compared with the target unfolding position to obtain the difference, and a first preset tolerance range is pre-set. If the difference is within the first preset tolerance range, the drive motor is stopped, indicating that the drive motor has reached the target unfolding position.
[0043] Since the rearview mirror is driven by the driving motor, the controlled rearview mirror also moves to the required unfolding position accordingly.
[0044] Step S103, receiving a specified horizontal position adjustment instruction, and after receiving the specified horizontal position adjustment instruction, detecting whether the drive motor is in the folded and unfolded operating state based on the second control loop; if the drive motor is not in the folded and unfolded operating state, obtaining the specified horizontal position based on the first control loop and detecting the current position of the drive motor, and controlling the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range.
[0045] The horizontal specified position adjustment command can be triggered through the display screen, buttons in the vehicle terminal, or by car keys, mobile phones, etc.
[0046] The second control loop LC2 is mainly used to detect whether the drive motor is in the folding and unfolding operation state, that is, to determine whether the drive motor is folding or unfolding.
[0047] The second preset tolerance range is a preset range. When the difference between the current position and the specified horizontal position is within the second preset tolerance range, it indicates that the driving motor runs to the specified horizontal position.
[0048] Specifically, since the folding and unfolding and horizontal adjustment are driven by the same drive motor, in order to avoid logical conflicts and combine the vehicle body function guarantee considerations, it is detected whether the current working state of the drive motor is the folding and unfolding operation state to determine whether to execute the horizontal direction specified position adjustment instruction. When the folding and unfolding operation is in progress, the horizontal direction specified position adjustment instruction is not adjusted.
[0049] When the drive motor is not in the folding and unfolding operating state, the pre-stored designated horizontal position is obtained based on the first control loop and the current position of the drive motor is detected, and the drive motor is controlled to run horizontally until the difference between the current position of the drive motor and the designated horizontal position is within a second preset tolerance range, thereby ensuring that adjustments are only made in the non-folding and unfolding operating state, avoiding conflicts in adjustment instructions and improving safety.
[0050] A vehicle rearview mirror control method according to an embodiment of the present invention sets a target unfolding position and a designated horizontal position as the driving mirror surface position and stores them in advance. After receiving a rearview mirror unfolding instruction, the target unfolding position is acquired based on a first control loop and the current position of a driving motor of the controlled rearview mirror is detected. The driving motor is controlled to perform a folding and unfolding operation until the difference between the current position of the driving motor and the target unfolding position is within a first preset tolerance range. After receiving a horizontal direction designated position adjustment instruction, whether the driving motor is in a folding and unfolding operation state is detected based on a second control loop. If the driving motor is not in the folding and unfolding operation state, the designated horizontal position is acquired based on the first control loop and the current position of the driving motor is detected. The current position of the drive motor is detected, and the drive motor is controlled to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range. Since the target unfolding position and the specified horizontal position are the same and both are set driving mirror positions, when the rearview mirror is unfolded from a folded state, it can be moved to the driving mirror position that the user is accustomed to at one time through the coordinated control of the first control loop and the second control loop, and there is no need to adjust the rearview mirror position again. The use is convenient and can improve the user experience. The working status is checked before executing the horizontal operation to ensure that the horizontal adjustment is only performed in the non-folded and unfolded operating state, thereby avoiding adjustment command conflicts and improving safety.
[0051] In the related art, the unfolding position memorized before folding is used as the target position. The unfolding drive may not stop immediately due to inertia, so it may rush out a little more each time. For example, the first memory is 50%, and the actual value after the unfolding stops is 50.1%. The unfolding position this time is used as the memory value, so the actual unfolding position next time may be 50.2%, and so on. There is a risk of cumulative errors after multiple actions.
[0052] In the embodiment of the present invention, the target unfolding position and the specified horizontal position are both set driving mirror positions. Unless the user actively updates the position, the value will not change. Compared with the related art that uses the memorized unfolding position before folding as the target position for unfolding, it can avoid the error accumulation caused by the inertial motion of the motor itself after each drive stops. The more times, the greater the accumulated error, ensuring the accuracy of the position source.
[0053] In some embodiments, when controlling the driving motor to perform folding and unfolding operation or horizontal operation, the method further includes:
[0054] Step S1041: detecting real-time operating parameters of the drive motor during operation based on the third control loop.
[0055] Specifically, the real-time operating parameters include current, voltage, rotation speed, etc.
[0056] Step S1042, comparing the real-time working parameter with the preset working parameter threshold, and determining whether there is an abnormal situation based on the comparison result.
[0057] Abnormal conditions include overcurrent, stall, short circuit, etc., which can be set according to actual conditions.
[0058] The working parameter threshold is the maximum or minimum value of the current, voltage, speed, etc. during normal operation.
[0059] Exemplarily, the voltage and speed of the drive motor are detected in real time through the third control loop LC3, and when the voltage or the speed is greater than the operating parameter threshold, it is determined that an abnormal situation occurs.
[0060] Step S1043: if there is an abnormal situation, stop controlling the operation of the drive motor and output a prompt message.
[0061] The prompt information can be an alarm voice or light prompt, etc.
[0062] During the adjustment process, abnormal conditions are detected according to real-time working parameters and the operation is stopped in time, which can timely avoid damage or safety problems caused by equipment failure.
[0063] In some embodiments, step S103, before controlling the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within the second preset tolerance range, further includes:
[0064] The operating speed of the drive motor is adjusted from a first preset speed to a second preset speed, wherein the first preset speed is the operating speed of the drive motor when it is controlled to fold and unfold, and the first preset speed is greater than the second preset speed.
[0065] Specifically, by controlling the speed of the driving motor, the first preset speed of the driving motor during unfolding is greater than the second preset speed during horizontal position adjustment. This allows the mirror to be adjusted slowly and precisely with a small stroke when controlling the driving motor to run to a specified horizontal position. The folding and unfolding stroke is large and does not require slow adjustment, so the first preset speed adjustment with a larger speed value can be used.
[0066] The embodiment of the present invention can make the rearview mirror reach the target deployment position faster when it is deployed, and use a slower speed when adjusting to the specified horizontal position to ensure that the adjustment result is more accurate, and can further provide a precise adjustment method while meeting the condition of rapid deployment.
[0067] In some embodiments, after the target deployment position and the designated horizontal position are pre-stored in step S101, the following further includes:
[0068] Step a1, receiving a manual adjustment instruction in the horizontal direction, and after receiving the manual adjustment instruction in the horizontal direction, detecting whether the current working state is a folding and unfolding operating state.
[0069] Step a2: If the current working state is a non-folding and unfolding operating state, the driving motor is controlled to operate based on the manual adjustment instruction in the horizontal direction.
[0070] Step a3: If the current working state is the folding and unfolding running state, the manual adjustment instruction in the horizontal direction is rejected.
[0071] Specifically, after receiving a horizontal manual adjustment command from a display screen, button trigger, or trigger source such as a car key or mobile phone in the vehicle terminal, it is detected whether the current working state is a folding and unfolding operating state. If the current working state is a non-folding and unfolding operating state, the drive motor is controlled based on the horizontal manual adjustment command. The drive is stopped when the horizontal manual adjustment command ends / the drive times out.
[0072] When folding and unfolding are in operation, the horizontal direction designated position adjustment command is not adjusted to avoid adjustment command conflicts.
[0073] The embodiment of the present invention allows the user to perform manual adjustment, providing a more direct control method to adapt to different driving conditions or personal preferences. In addition, during the manual adjustment process, horizontal adjustment needs to be performed in the non-folded and unfolded operating state to avoid conflicting adjustment instructions.
[0074] In some embodiments, after the target unfolded position and the designated horizontal position are pre-stored, the method further includes:
[0075] Step b1, receiving a rearview mirror folding instruction, and after receiving the rearview mirror folding instruction, obtaining a preset fixed stop position and a current position of a drive motor based on a first control loop, and controlling the drive motor to perform folding and unfolding operations until the difference between the current position of the drive motor and the fixed stop position is within a third preset tolerance range.
[0076] Specifically, when the received instruction is a rearview mirror folding instruction, the inward fixed stop position of the rearview mirror is used as the target position, and the drive motor is controlled to run until the drive stops within a third preset tolerance range.
[0077] Fixed stop positions ensure that the mirrors are stable when folded, making it easy to quickly adjust the mirrors when parking or when needed.
[0078] In some embodiments, the first preset tolerance range is greater than the second preset tolerance range, and the first preset tolerance range is equal to the third preset tolerance range.
[0079] By setting different tolerance ranges for different adjustment instructions, different adjustment accuracies can be provided, wherein the first preset tolerance range and the third tolerance range are the ranges for stopping driving when unfolding and folding, respectively. The ranges can be set relatively large to ensure fast adjustment, and the second preset tolerance range is relatively small to ensure the accuracy of horizontal adjustment.
[0080] In one embodiment, a flow chart of a vehicle rearview mirror control method according to an embodiment of the present invention is as follows: Figure 3 As shown, Figure 3 A represents the large screen of the vehicle terminal or other command trigger source, B represents the vehicle rearview mirror control device, including a mirror level adjustment module, a folding and unfolding module, a speed regulation module and a position memory module. The vehicle rearview mirror control method of the embodiment of the present invention is executed by the vehicle rearview mirror control device B, and C represents a drive motor for controlling the adjustment of the rearview mirror.
[0081] The operating mechanism of the vehicle's rearview mirror control device includes:
[0082] Horizontal specified position adjustment operation mechanism:
[0083] The mirror level adjustment module inside the vehicle rearview mirror control device B receives the designated position adjustment instruction from the large screen or other trigger source, and detects through the second control loop LC2 that the folding and unfolding of the drive motor C is in a non-working state, that is, the current working state is a non-folding and unfolding operating state, then calls the pre-stored designated horizontal position in the position memory module, and drives the drive motor C, and enables the speed regulation module to adjust the operating speed of the drive motor from the first preset speed to the second preset speed, reducing the operating speed, and at the same time monitoring the position feedback of the drive motor C in real time to obtain the current position of the drive motor C, compare the current position with the designated horizontal position, and set a certain tolerance range, that is, the first preset tolerance range, and stop the motor drive if the difference between the current position and the designated horizontal position is within this range; if the fault detection module detects that the drive motor is abnormal through the third control loop LC3 during the driving process, the drive is stopped and the fault is reported.
[0084] Horizontal manual adjustment operation mechanism:
[0085] The mirror adjustment module inside the vehicle rearview mirror control device B receives a manual adjustment command from the large screen or other trigger source, and detects that the current working state is a non-folding and unfolding operating state, drives the drive motor C, and enables the speed regulation module to adjust the operating speed of the drive motor from the first preset speed to the second preset speed, thereby reducing the operating speed. The drive is stopped when the command ends / the drive times out; if the fault detection module detects an abnormality in the drive motor through the third control loop LC3 during the driving process, the drive is stopped and the fault is reported.
[0086] Rearview mirror folding and unfolding position adjustment operating mechanism:
[0087] When the folding and unfolding module inside the vehicle rearview mirror control device B receives an instruction from the large screen or other trigger source, and if it is a rearview mirror unfolding instruction, the target unfolding position in the position memory module is called, and the drive motor C is driven. At the same time, the position feedback of the drive motor C is monitored in real time to obtain the current position of the drive motor C, and the current position is compared with the specified horizontal position, and a second preset tolerance range is set. If the difference between the current position and the specified horizontal position is within this range, the motor drive is stopped; if it is a rearview mirror folding instruction, the inward fixed stop position of the rearview mirror is used as the target position, and the drive motor C is controlled to run until the difference between the current position and the target position reaches the set third preset tolerance range and stops driving; if the fault detection module detects an abnormality in the drive motor through the third control loop LC3 during the driving process, the drive is stopped and the fault is reported.
[0088] The vehicle rearview mirror control method according to the embodiment of the present invention has the following advantages:
[0089] Since the target deployment position and the specified horizontal position are the same and both are set driving mirror positions, when the rearview mirror is deployed from a folded state, it can be moved to the driving mirror position that the user is accustomed to at one time through the coordinated control of the first control loop and the second control loop. There is no need to adjust the rearview mirror position again, which is easy to use and can improve the user experience.
[0090] Using the driving mirror position set by the user as the target position can ensure the accuracy of the position source. Compared with some products that choose to use the memory unfolded position before folding as the target position, it can avoid the error accumulation caused by the inertial motion of the motor itself after each drive stops. The more times, the greater the accumulated error.
[0091] The mirror position horizontal adjustment and folding and unfolding share a drive motor, and the first control loop LC1 and the second control loop LC2 cooperate with each other to achieve reasonable logical operation, avoid control logic conflicts, and accurately control the horizontal position of the rearview mirror.
[0092] The third control loop LC3 is used to detect possible faults that may occur during operation, so that problems can be discovered in time and the drive motor can be stopped to improve safety.
[0093] The embodiment of the present invention also provides a vehicle rearview mirror control device, such as Figure 4 As shown, including:
[0094] A position memory module, used for pre-storing a target deployment position and a specified horizontal position, wherein the target deployment position and the specified horizontal position are the same and are both driving mirror positions set by a user;
[0095] A folding and unfolding module is used to receive a rearview mirror unfolding instruction, and after receiving the rearview mirror unfolding instruction, obtain a target unfolding position based on a first control loop and detect a current position of a drive motor of the controlled rearview mirror, and control the drive motor to perform a folding and unfolding operation until a difference between the current position of the drive motor and the target unfolding position is within a first preset tolerance range;
[0096] The mirror horizontal adjustment module is used to receive a specified horizontal position adjustment instruction, and after receiving the specified horizontal position adjustment instruction, detect whether the drive motor is in a folded and unfolded operating state based on the second control loop. If the drive motor is not in the folded and unfolded operating state, the specified horizontal position is obtained based on the first control loop and the current position of the drive motor is detected, and the drive motor is controlled to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range.
[0097] The vehicle rearview mirror control device of the embodiment of the present invention sets the target unfolding position and the designated horizontal position as the driving mirror position and stores them in advance. After receiving the rearview mirror unfolding instruction, the target unfolding position is obtained based on the first control loop and the current position of the driving motor of the controlled rearview mirror is detected, and the driving motor is controlled to perform folding and unfolding operation until the difference between the current position of the driving motor and the target unfolding position is within a first preset tolerance range. After receiving the horizontal direction designated position adjustment instruction, whether the driving motor is in the folding and unfolding operation state is detected based on the second control loop. If the driving motor is not in the folding and unfolding operation state, the designated horizontal position is obtained based on the first control loop and detected. The current position of the drive motor is measured, and the drive motor is controlled to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range. Since the target unfolding position and the specified horizontal position are the same and both are set driving mirror positions, when the rearview mirror is unfolded from a folded state, the first control loop and the second control loop are coordinated to control the rearview mirror to move to the user's accustomed driving mirror position at one time, and there is no need to adjust the rearview mirror position again. The use is convenient and can improve the user experience. The working status is checked before executing the horizontal operation to ensure that the horizontal adjustment is only performed in the non-folded and unfolded operating state, thereby avoiding conflicts in adjustment instructions and improving safety.
[0098] Furthermore, the vehicle rearview mirror control device also includes: a fault module, which is used to detect the real-time working parameters of the drive motor during operation based on the third control loop, compare the real-time working parameters with the pre-set working parameter thresholds, and determine whether there is an abnormal situation based on the comparison result. If there is an abnormal situation, stop controlling the operation of the drive motor and output a prompt message.
[0099] Furthermore, the vehicle rearview mirror control device also includes a speed regulation module, which is used to adjust the operating speed of the drive motor from a first preset speed to a second preset speed, wherein the first preset speed is the operating speed when controlling the drive motor to fold and unfold, and the first preset speed is greater than the second preset speed.
[0100] Furthermore, the mirror horizontal adjustment module is also used to receive manual adjustment instructions in the horizontal direction, and after receiving the manual adjustment instructions in the horizontal direction, detect whether the current working state is a folded and unfolded operating state; if the current working state is a non-folded and unfolded operating state, the drive motor operation is controlled based on the manual adjustment instructions in the horizontal direction; if the current working state is a folded and unfolded operating state, the manual adjustment instructions in the horizontal direction are refused to be executed.
[0101] Furthermore, the folding and unfolding module is also used to receive a rearview mirror folding instruction, and after receiving the rearview mirror folding instruction, obtains a preset fixed stop position and a current position of the drive motor based on the first control loop, and controls the drive motor to perform folding and unfolding operation until the difference between the current position of the drive motor and the fixed stop position is within a third preset tolerance range.
[0102] Further, the first preset tolerance range is greater than the second preset tolerance range, and the first preset tolerance range is equal to the third preset tolerance range.
[0103] The embodiment of the present invention also provides a schematic diagram of the structure of a computer device, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0104] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0105] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0106] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0107] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0108] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0109] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0110] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0111] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0112] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope of protection.
Claims
1. A vehicle rearview mirror control method, characterized in that: include: Pre-storing a target deployment position and a designated horizontal position, wherein the target deployment position and the designated horizontal position are the same and are both driving mirror positions set by a user; receiving a rearview mirror deployment instruction, and after receiving the rearview mirror deployment instruction, obtaining the target deployment position based on a first control loop and detecting a current position of a drive motor of the controlled rearview mirror, and controlling the drive motor to perform a folding and unfolding operation until a difference between the current position of the drive motor and the target deployment position is within a first preset tolerance range; Receive a specified horizontal position adjustment instruction, and after receiving the specified horizontal position adjustment instruction, detect whether the drive motor is in a folded and unfolded operating state based on the second control loop; if the drive motor is not in the folded and unfolded operating state, obtain the specified horizontal position based on the first control loop and detect the current position of the drive motor, and control the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range.
2. The vehicle rearview mirror control method according to claim 1, characterized in that: When controlling the driving motor to fold and unfold or run horizontally, it also includes: Detecting real-time operating parameters of the drive motor during operation based on the third control loop; Comparing the real-time working parameter with a preset working parameter threshold, and judging whether there is an abnormal situation based on the comparison result; If there is an abnormal situation, the control of the driving motor is stopped and a prompt message is output.
3. The vehicle rearview mirror control method according to claim 1, characterized in that: Before controlling the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range, the method further includes: The operating speed of the drive motor is adjusted from a first preset speed to a second preset speed, wherein the first preset speed is the operating speed when the drive motor is controlled to perform folding and unfolding operation, and the first preset speed is greater than the second preset speed.
4. The vehicle rearview mirror control method according to claim 1, characterized in that: After the target expansion position and the designated horizontal position are stored in advance, the following steps are also included: receiving a manual adjustment instruction in a horizontal direction, and after receiving the manual adjustment instruction in the horizontal direction, detecting whether the current working state is a folding and unfolding operating state; If the current working state is a non-folding and unfolding operating state, controlling the driving motor to operate based on the horizontal direction manual adjustment instruction; If the current working state is the folding and unfolding running state, the manual adjustment instruction in the horizontal direction is rejected.
5. The vehicle rearview mirror control method according to claim 1, characterized in that: After the target expansion position and the designated horizontal position are stored in advance, the following steps are also included: Receive a rearview mirror folding instruction, and after receiving the rearview mirror folding instruction, obtain a preset fixed stop position and a current position of a drive motor based on a first control loop, and control the drive motor to perform folding and unfolding operations until the difference between the current position of the drive motor and the fixed stop position is within a third preset tolerance range.
6. The vehicle rearview mirror control method according to claim 5, characterized in that: The first preset tolerance range is greater than the second preset tolerance range, and the first preset tolerance range is equal to the third preset tolerance range.
7. A vehicle rearview mirror control device, characterized in that: include: A position memory module, used to pre-store a target deployment position and a specified horizontal position, wherein the target deployment position and the specified horizontal position are the same and are both driving mirror positions set by a user; A folding and unfolding module, configured to receive a rearview mirror unfolding instruction, and after receiving the rearview mirror unfolding instruction, obtain the target unfolding position based on a first control loop and detect the current position of a drive motor of the controlled rearview mirror, and control the drive motor to perform folding and unfolding operation until the difference between the current position of the drive motor and the target unfolding position is within a first preset tolerance range; The mirror horizontal adjustment module is used to receive a specified horizontal position adjustment instruction, and after receiving the specified horizontal position adjustment instruction, detect whether the drive motor is in a folded and unfolded operating state based on the second control loop; if the drive motor is not in the folded and unfolded operating state, obtain the specified horizontal position based on the first control loop and detect the current position of the drive motor, and control the drive motor to run horizontally until the difference between the current position of the drive motor and the specified horizontal position is within a second preset tolerance range.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the vehicle rearview mirror control method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the vehicle rearview mirror control method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the vehicle rearview mirror control method according to any one of claims 1 to 6.
