CN111483398B - Rearview mirror control system - Google Patents

Rearview mirror control system Download PDF

Info

Publication number
CN111483398B
CN111483398B CN202010319869.8A CN202010319869A CN111483398B CN 111483398 B CN111483398 B CN 111483398B CN 202010319869 A CN202010319869 A CN 202010319869A CN 111483398 B CN111483398 B CN 111483398B
Authority
CN
China
Prior art keywords
rearview mirror
slave
host
mode
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010319869.8A
Other languages
Chinese (zh)
Other versions
CN111483398A (en
Inventor
张力凡
李先锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yancheng Jiaanle Automation Technology Co ltd
Original Assignee
Yancheng Jiaanle Automation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yancheng Jiaanle Automation Technology Co ltd filed Critical Yancheng Jiaanle Automation Technology Co ltd
Priority to CN202010319869.8A priority Critical patent/CN111483398B/en
Publication of CN111483398A publication Critical patent/CN111483398A/en
Application granted granted Critical
Publication of CN111483398B publication Critical patent/CN111483398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R1/00Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
    • B60R1/02Rear-view mirror arrangements
    • B60R1/06Rear-view mirror arrangements mounted on vehicle exterior
    • B60R1/062Rear-view mirror arrangements mounted on vehicle exterior with remote control for adjusting position
    • B60R1/07Rear-view mirror arrangements mounted on vehicle exterior with remote control for adjusting position by electrically powered actuators
    • B60R1/074Rear-view mirror arrangements mounted on vehicle exterior with remote control for adjusting position by electrically powered actuators for retracting the mirror arrangements to a non-use position alongside the vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Mechanical Engineering (AREA)
  • Rear-View Mirror Devices That Are Mounted On The Exterior Of The Vehicle (AREA)

Abstract

A rearview mirror control system comprises a master machine and a slave machine; the slave is a rearview mirror controller, the host is an automobile peripheral controller, and the slave and the host are communicated through LIN; the slave control controls the mirror surface of the rearview mirror mainly by controlling a stepping motor and a transmission system, and comprises the functions of folding and unfolding the mirror surface and folding/unfolding the mirror surface; and can-control the electric rearview mirror, mirror surface regulator to adjust, vertical/horizontal, through linking with the memory system (IMS), the novel rearview mirror controller is formed by LH/RH alone, use the internal pull-down resistance of MCU of the rearview mirror controller, correspond to LH/RH two kinds of patterns. The host slave adopts SPI communication, and data packets occur once. The stepping motor is accurately controlled, and the stepping motor can be controlled to run by sending out a data packet once according to the reversing state and the data setting of the host machine, so that various actions of the reversing mirror are completed.

Description

Rearview mirror control system
Technical Field
The invention relates to a novel rearview mirror control system.
Background
The prior art has disclosed a relatively high-level rearview mirror control system, such as [1] Zhang Wenjian, any of which is [ J ]. He Zhengjun reverse design of UG-based automobile rearview mirrors [ J ]. Modern technology and equipment 2013,27 (7) [2] Ling Shiyun, liu Hong, a design scheme of Timeqi capable of enhancing automobile reversing safety [ J ] Shandong industrial technical information 2015,37 (5) [ 86-88 ] [3] Huang Gang automobile electric rearview mirror operation and overhaul [ J ]. Times agricultural machinery 2019,32 (17): 75-77, but generally based on a CAN bus, the structure is complex and the cost is relatively high, and the method cannot be used for simple modification of the existing automobile.
Disclosure of Invention
The invention aims to provide a novel rearview mirror control system design, which can reflect objects behind a vehicle at an optimal angle, and simultaneously, a buzzer and illumination automatically respond. When parking, the rearview mirror is folded automatically. Based on the correct design of a hardware system, software performs SPI communication in a register mode, has memory capacity, and provides a new method and system for controlling the novel rearview mirror.
The technical scheme of the invention is that the (automobile) rearview mirror control system comprises a host machine and a slave machine; the slave is a rearview mirror controller, the host is an automobile peripheral controller, and the slave and the host are communicated through LIN; the slave control controls the mirror surface of the rearview mirror mainly by controlling a stepping motor and a transmission system, and comprises the functions of folding and unfolding the mirror surface and folding/unfolding the mirror surface; the method can control the adjustment and the vertical/horizontal of the electric rearview mirror and the mirror surface regulator, the novel rearview mirror controller is independently composed of LH/RH through linkage with a memory system (IMS), the internal pull-down resistor of the MCU of the rearview mirror controller is used, for the two types of LH/RH, the judging method is that the port connected with the novel rearview mirror controller is used, and the corresponding port level is read in the system initialization stage to judge the LH/RH type; (1) LH pattern: the external pull-down resistor of the MCU is connected. (2) RH pattern: the pull-down resistor inside the MCU is connected.
The host slave adopts SPI communication, and data packets occur once.
The position and restarting skill of the rearview mirror are memorized, and the following functions are provided in order to ensure the rear view during reversing and to provide automatic reversing and automatic recovery functions. (1) The automatic defogging function of the rearview mirror is linked with the air supply (self design of the automobile) after the air conditioner, and the defrosting heating function is controlled and provided. (2) the rearview mirror is provided with illumination and is used for controlling a floor lamp. (3) After receiving LIN communication data (output command) from the host, the output action of the rearview mirror integrated controller is realized. The novel rearview mirror controller action voltage has the following characteristics: the novel rearview mirror integrated controller can be operated under the condition of low voltage with LIN input, and can also be operated under the condition of less than 9V. LIN communication may fail when the novel rearview mirror integrated control senses a voltage below 7V or above 18V. And the novel rearview mirror integrated controller prohibits fault detection when sensing voltages below 9V or above 16V. In order to prevent locking in the vicinity of the regulating valve, the voltage value of hysteresis was 0.4V and the buzzer time was 200 musec. In order to minimize the power consumption of the novel rearview mirror controller, a low-power mode can be entered, and the state is automatically changed to a sleep mode.
The beneficial effects are that: the system hardware and software system according to the invention is designed correctly, not only can realize the accurate control of the stepping motor, but also can send out data packets at a time to control the stepping motor to run according to the reversing state and the data setting of the host computer, thus completing various actions of the reversing mirror. In the experimental process, the rearview mirror can be automatically adjusted according to the reversing state, objects behind the vehicle are reflected at the optimal angle, and meanwhile, the buzzer and the illumination automatically respond. When parking, the rearview mirror is folded automatically. The correctness of the system design can be seen. The invention analyzes and designs the primary data packet of the SPI of the host slave according to the novel rearview mirror. The correctness of the system design scheme is verified through experiments. By adopting the control scheme, the characteristics of the novel rearview mirror are fully utilized, SPI communication is carried out by software in a register mode on the basis of the correct design of a hardware system, the technical characteristics of the rearview mirror are emphasized, and a novel method and a novel system are provided for designing the novel rearview mirror.
Drawings
FIG. 1 is a diagram of the internal structure and peripheral circuitry of the novel rearview mirror of the present invention;
FIG. 2 is a flow chart of a system procedure;
FIG. 3 is a slave control flow diagram;
fig. 4 is a flowchart of a closed loop control routine.
Detailed Description
As shown in the figure, the novel rearview mirror is mainly composed of a microprocessor, a driving interface and a diagnosis module, wherein the host and the slave are communicated through SPI, and after the slave receives an instruction through a LIN bus, the slave is controlled according to the instruction of the host. The protection system adopts undervoltage and overcurrent protection [3] And a sensor detection circuit. The structure of which is shown in figure 1.
1.1SPI communication Circuit
SPI communication is communication between a microprocessor and a driving interface and diagnosis module, and adopts a full duplex mode and four-wire system. The microprocessor sends the data packet once, including information such as PWM duty cycle, etc., and the driving interface receives the data packet once. And starting, regulating speed, reversing and stopping the motor. The internal regulator controls the stepping motor or the like in accordance with these instructions.
The novel rearview mirror mainly has several working modes, namely a system initialization mode, a normal mode, a dormant mode, a power-off mode and the like [1] The work flow is the system initialization mode function, which mainly comprises the steps of determining whether a battery is in a power supply state or a power-off state, closing all port outputs, ending initialization and entering a normal mode. The sleep mode is entered when a sleep request command message (LIN communication address 0x3 c) is received in the normal mode. After receiving SPI command 'power off' in sleep mode, entering power-off mode, when LIN bus is detectedAfter the wake-up signal, the normal mode is entered.
The invention relates to a novel rearview mirror internal structure and a peripheral circuit, wherein a slave machine mainly comprises a microprocessor, a driving interface and a diagnosis module, a host machine and a slave machine are communicated through SPI, and after the slave machine receives an instruction through a LIN bus, the slave machine is controlled according to the instruction of the host machine. The protection system adopts undervoltage and overcurrent protection [3] And a sensor detection circuit. The structure of the invention is shown in the rearview mirror control structure diagram in figure 1.
2.1SPI communication
SPI communication is communication between a microprocessor and a driving interface and diagnosis module, and adopts a full duplex mode and four-wire system. The microprocessor sends the data packet once, including information such as PWM duty cycle, etc., and the driving interface receives the data packet once. And starting, regulating speed, reversing and stopping the motor. The internal regulator controls the stepping motor or the like in accordance with these instructions. The communication principle of SPI is simple and works in master-slave mode, which usually has one master and one or more slaves, requiring at least 4 wires, in fact 3 (in unidirectional transmission). Also common to all SPI-based devices, they are MISO (master data in), MOSI (master data out), SCLK (clock), CS (chip select).
(1) MISO-Master Input Slave Output, master data in, slave data out;
(2) MOSI-Master Output Slave Input, master data out, slave data in;
(3) SCLK-Serial Clock, clock signal, generated by the master device;
(4) CS-Chip Select, slave enable signal, controlled by master.
The CS is a control signal indicating whether the slave chip is selected by the master chip, that is, the master chip is effective for the operation of the slave chip only when the chip selection signal is a predetermined enable signal (high potential or low potential). This makes it possible to connect multiple SPI devices on the same bus.
2.2 design of AD conversion circuit and sensor circuit
The AD conversion circuit is mainly used for undervoltage and overcurrent protection, detects the voltage condition of the battery, and enters a power-off mode if the voltage is too low. The sensor is divided into a rearview mirror horizontal sensor and a vertical sensor (a miniature travel switch can be adopted) and is used for detecting the physical state of the rearview mirror, converting the physical state into a voltage signal after rectification, filtering and amplification and machine changing, and simultaneously, sending the voltage signal into a microprocessor through an AD conversion circuit for closed-loop control.
LIN (Local Interconnect Network) bus is a low cost serial communication protocol based on UART/SCI (universal asynchronous receiver/serial interface). The method is aimed at low-end communication among nodes of a vehicle body network module, and is mainly used for serial communication of intelligent sensors and actuators, and the method is just part of bandwidth and functions of a CAN bus which are not required. Single-wire transmission is low in cost, and single-host multi-slave is supported. The system has high reliability, saves bus driving force, and the slave can adapt to a bus clock source, thereby enhancing the error detection capability. The anti-interference capability is strong, and the maximum 16 nodes can meet the requirements.
The control of the stepping motor and the transmission system to the mirror surface of the rearview mirror adopts the prior mechanical structure: ji Yijiang and You Qiurong are based on SCM to control AUTO multifunctional automobile rearview mirror design [ J ]. Traffic science and technology and economy, 2016,22 (2): 111-113.
3 software System design
The control system mainly comprises host set information, a transmitting program, an AD conversion program, an SPI communication program and a closed-loop control program. The general flow chart is shown in fig. 2. Fig. 2 is a system program flow diagram.
As can be seen from fig. 2, the normal mode is entered after the system is initialized, and is obtained according to the host command or battery voltage detection for the sleep or power-off mode. In the normal mode, the master machine sends an instruction to the slave machine to control the action of the rearview mirror, and the flow chart of the method is shown in fig. 3. Fig. 3 is a slave control flow chart.
As can be seen from fig. 3, the slave control is performed according to the command of the host, and the stepper motor is controlled according to the data packet sent by the host, so that the rearview mirror generates a series of actions.
2) Closed loop control program
After receiving the instruction from the slave, detecting the actual state of the rearview mirror according to the sensor, and controlling the stepping motor after PID operation, wherein the flow chart is shown in the closed-loop control program flow of FIG. 4.
The stepping motor operates to speed, start and stop, and the speed regulation is realized by changing the PWM duty ratio.
3) SPI communication program and AD conversion program
The invention adopts a register method to carry out SPI bus communication, firstly, the port must be initialized [7] There are enabling SPI mode, 8-bit data transfer, 4-wire SPI mode, baud rate setting, and the like.
The AD conversion mainly has two aspects, namely, the voltage of a battery is detected, and if the voltage is too low, a power-off instruction is sent out through micro-processing. Secondly, the state of the position sensor is converted into voltage, and the microprocessor adjusts according to the actual state of the rearview mirror [9]
Experimental results in order to verify the above analysis results, experiments were performed according to the system hardware and software design. In the experimental process, the rearview mirror can be automatically adjusted according to the reversing state, objects behind the vehicle are reflected at the optimal angle, and meanwhile, the buzzer and the illumination automatically respond. When parking, the rearview mirror is folded automatically. The correctness of the system design can be seen.
In conclusion, the invention designs a hardware system and a software system of a host system and a slave system according to the characteristics of a novel rearview mirror, and mainly analyzes and designs the SPI once-generated data packet. The correctness of the system design scheme is verified through experiments. By adopting the control scheme, the characteristics of the novel rearview mirror are fully utilized, SPI communication is carried out by software in a register mode on the basis of the correct design of a hardware system, the technical characteristics of the rearview mirror are emphasized, and a novel method and a novel system are provided for designing the novel rearview mirror.

Claims (3)

1. A rearview mirror control system is characterized by comprising a master machine and a slave machine; the slave is a rearview mirror controller, the host is an automobile peripheral controller, and the slave and the host are communicated through LIN; the slave control controls the mirror surface of the rearview mirror mainly by controlling a stepping motor and a transmission system, and comprises the functions of folding and unfolding the mirror surface and folding/unfolding the mirror surface; the electric rearview mirror can be controlled to adjust the vertical/horizontal direction, the rearview mirror controller is independently composed of LH/RH through being linked with a memory system IMS, and the internal pull-down resistor of the MCU of the rearview mirror controller is used, for the two patterns of LH/RH, the judging method is that the ports connected with the rearview mirror controller are used, and the corresponding port level is read in the system initialization stage to judge the LH/RH pattern;
(1) LH pattern: the external pull-down resistor of the MCU is connected;
(2) RH pattern: the internal pull-down resistor of the MCU is connected;
the host slave adopts SPI communication, and data packets occur once;
memorizing the position and restarting skill of the rearview mirror, and realizing the output action of the comprehensive rearview mirror controller after receiving LIN communication data output command from the host computer in order to ensure that the rear view provides automatic reversing and automatic recovery functions during reversing;
the rearview mirror has several working modes, namely a system initialization mode, a normal mode, a dormant mode and a power-off mode, and the working flow is that the function of the system initialization mode mainly comprises the steps of determining whether a battery is in a power supply state or in a power-off state, closing all port outputs, ending initialization and entering the normal mode; entering a sleep mode when the normal mode receives a sleep request command message; entering a power-off mode after receiving SPI command 'power-off' in a sleep mode, and entering a normal mode after detecting LIN bus wake-up signals;
the slave comprises a microprocessor, a driving interface and a diagnosis module, wherein the host and the slave are communicated through SPI, and after the slave receives an instruction through the LIN bus, the slave is controlled according to the instruction of the host; the protection system adopts the slave control according to the host instruction, and controls the stepping motor according to the data packet sent by the host, so that the rearview mirror generates a series of actions; closed loop control procedure: after receiving the instruction from the slave, detecting the actual state of the rearview mirror according to the sensor, controlling the stepping motor after PID operation, wherein the operation of the stepping motor comprises speed regulation, starting and stopping functions, and the speed regulation is realized by changing the PWM duty ratio;
SPI communication program and AD conversion program: the SPI bus communication is carried out by adopting a register method, firstly, a port must be initialized, and the enabling SPI mode, 8-bit data transmission, 4-line SPI mode and baud rate are set; the AD conversion has two aspects, namely, the voltage of a battery is detected, and if the voltage is too low, a power-off instruction is sent out through micro-processing; and secondly, converting the state of the position sensor into voltage, and adjusting the microprocessor according to the actual state of the rearview mirror.
2. The rearview mirror control system of claim 1, wherein a low power mode is provided and the state is automatically changed to a "sleep mode".
3. The rearview mirror control system as claimed in claim 1, wherein an AD conversion circuit is provided for under-voltage and over-current protection, detecting battery voltage conditions, and entering a power-down mode if the voltage is too low; the sensor is divided into a rearview mirror horizontal sensor and a rearview mirror vertical sensor, and is used for detecting the physical state of the rearview mirror, converting the physical state into a voltage signal after rectification, filtering and amplification and machine changing, and sending the voltage signal into a microprocessor through an AD conversion circuit for closed-loop control.
CN202010319869.8A 2020-04-22 2020-04-22 Rearview mirror control system Active CN111483398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010319869.8A CN111483398B (en) 2020-04-22 2020-04-22 Rearview mirror control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010319869.8A CN111483398B (en) 2020-04-22 2020-04-22 Rearview mirror control system

Publications (2)

Publication Number Publication Date
CN111483398A CN111483398A (en) 2020-08-04
CN111483398B true CN111483398B (en) 2024-01-30

Family

ID=71811096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010319869.8A Active CN111483398B (en) 2020-04-22 2020-04-22 Rearview mirror control system

Country Status (1)

Country Link
CN (1) CN111483398B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2797124Y (en) * 2005-01-31 2006-07-19 麦格纳唐纳利(上海)汽车系统有限公司 Automatic regulating controller of rear riew mirror angle
CN201325381Y (en) * 2008-11-27 2009-10-14 麦格纳唐纳利(上海)汽车系统有限公司 Device with memory function for adjusting and controlling angle of rearview mirror surface
CN101738747A (en) * 2008-11-27 2010-06-16 麦格纳唐纳利(上海)汽车系统有限公司 Device for performing anti-dazzle control on rearview mirror with digital EC mirror surface based on LIN bus
CN204821340U (en) * 2015-07-31 2015-12-02 重庆长安汽车股份有限公司 Rear -view mirror of backing a car memory control system
CN105128749A (en) * 2015-08-28 2015-12-09 芜湖科创生产力促进中心有限责任公司 Control system for automobile rearview mirror
CN110217173A (en) * 2019-07-19 2019-09-10 汕头市科来福电子有限公司 The device of host is turned under a kind of integrated rearview mirror adjusting switch and rearview mirror reversing
CN110567682A (en) * 2019-09-29 2019-12-13 盐城家安乐自动化科技有限公司 Rearview mirror detection device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2797124Y (en) * 2005-01-31 2006-07-19 麦格纳唐纳利(上海)汽车系统有限公司 Automatic regulating controller of rear riew mirror angle
CN201325381Y (en) * 2008-11-27 2009-10-14 麦格纳唐纳利(上海)汽车系统有限公司 Device with memory function for adjusting and controlling angle of rearview mirror surface
CN101738747A (en) * 2008-11-27 2010-06-16 麦格纳唐纳利(上海)汽车系统有限公司 Device for performing anti-dazzle control on rearview mirror with digital EC mirror surface based on LIN bus
CN204821340U (en) * 2015-07-31 2015-12-02 重庆长安汽车股份有限公司 Rear -view mirror of backing a car memory control system
CN105128749A (en) * 2015-08-28 2015-12-09 芜湖科创生产力促进中心有限责任公司 Control system for automobile rearview mirror
CN110217173A (en) * 2019-07-19 2019-09-10 汕头市科来福电子有限公司 The device of host is turned under a kind of integrated rearview mirror adjusting switch and rearview mirror reversing
CN110567682A (en) * 2019-09-29 2019-12-13 盐城家安乐自动化科技有限公司 Rearview mirror detection device

Also Published As

Publication number Publication date
CN111483398A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN106274533A (en) A kind of low-power consumption CCCP detection circuitry for electric automobile and method of work
CN101365276A (en) Adaptive front lamp set control system based on network technique and controlling method thereof
CN103580969B (en) A kind of LIN networks are from node control system and method
CN201319679Y (en) Structure of adaptive front-lighting system based on network technologies
CN101315561A (en) Memory type rear view mirror and armchair control system
CN111483398B (en) Rearview mirror control system
CN2896349Y (en) Vehicle-door control device of automotive network system
CN201859342U (en) CAN bus type vehicle door control device
KR20180019446A (en) Electronic vehicle charging control apparatus and method
EP4131862A1 (en) Control method and control apparatus for communication device, and communication system and storage medium
CN104760575B (en) Energy-saving exterior mirror heating method
CN212555779U (en) Automobile skylight controller
CN100580593C (en) Intelligent control device of electromotion rearview mirror of car
CN2896342Y (en) Central controller for automotive network system
CN112660091A (en) Automobile control method and device, automobile, storage medium and processor
JP3675740B2 (en) Communication device having power supply type power supply type communication line
CN210573333U (en) Bus switch based on CAN bus
CN112248754A (en) Pure electric vehicle water heating PTC heater control system and method
WO2020206844A1 (en) General smart control device for locomotive air conditioner
CN214249786U (en) Bathroom heater warm fan capable of automatically rotating along with human body
CN206374505U (en) Air-conditioning heating control system and air-conditioning heating controller
JP3571593B2 (en) Communication device
WO2024113179A1 (en) Power supply control circuit, load circuit, power supply system and terminal device
CN209141840U (en) A kind of car warm wind automatic control system
JP2012047367A (en) Air conditioner

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant