CN111483398A - Novel rearview mirror control system - Google Patents

Novel rearview mirror control system Download PDF

Info

Publication number
CN111483398A
CN111483398A CN202010319869.8A CN202010319869A CN111483398A CN 111483398 A CN111483398 A CN 111483398A CN 202010319869 A CN202010319869 A CN 202010319869A CN 111483398 A CN111483398 A CN 111483398A
Authority
CN
China
Prior art keywords
rearview mirror
slave
mode
control system
mirror
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.)
Granted
Application number
CN202010319869.8A
Other languages
Chinese (zh)
Other versions
CN111483398B (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

Images

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 control system of a reverse mirror comprises a host machine and a slave machine, wherein the slave machine is a reverse mirror controller, the host machine is an automobile peripheral controller, the host machine and the slave machine are communicated through L IN, the slave machine is used for controlling the mirror surface of the reverse mirror mainly by controlling a stepping motor and a transmission system, the control system comprises mirror surface folding, unfolding control and folding/unfolding functions, and can control an electric reverse mirror and a mirror surface regulator to regulate, vertically/horizontally, the slave machine is linked with a memory system (IMS), the novel reverse mirror controller is independently formed by L H/RH, a pull-down resistor inside an MCU of the reverse mirror controller is used, two types of patterns corresponding to L H/RH are adopted, the host machine and the slave machine adopt SPI communication, data packets are generated at one time, the accurate control of the stepping motor is realized, and the data packets can be sent out at one time to control the running of the stepping motor according to the reversing state and the data setting of the host machine.

Description

Novel rearview mirror control system
Technical Field
The invention relates to a novel rearview mirror control system.
Background
The prior art discloses a relatively high-distribution rearview mirror control system, such as [1] civil engineering, anyWen, and Youjun UG-based reverse design of an automobile rearview mirror [ J ] modern technology and equipment 2013,27(7): 120-.
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 has automatic response of a buzzer and illumination. When parking, the rearview mirror is automatically folded. On the basis of the correct design of a hardware system, software adopts a register mode to carry out SPI communication, has memory capacity and provides a new method and a new system for the control of the novel rearview mirror.
The technical scheme includes that the automobile reverse mirror control system comprises a host machine and a slave machine, wherein the slave machine is a reverse mirror controller, the host machine is an automobile peripheral controller, the host machine and the slave machine are communicated through L IN, the slave machine mainly controls the mirror surface of a reverse mirror through a control stepping motor and a transmission system, the slave machine comprises mirror surface folding, unfolding control and folding/unfolding functions, can control electric reverse mirrors and mirror surface regulators to adjust and vertically/horizontally, is linked with a memory system (IMS), is independently formed by L H/RH, uses an MCU internal pull-down resistor of the reverse mirror controller, and for L H/RH two types, the judgment method is a port connected with the novel reverse mirror controller, reads a corresponding port level judgment L H/RH type at the system initialization stage, and (1) L H types are connected with an MCU external pull-down resistor and (2) are connected with an MCU internal pull-down resistor.
The host computer and the slave computer adopt SPI communication and generate data packets at one time.
The novel rearview mirror controller has the advantages that the novel rearview mirror integrated controller is actuated under 9V and can be actuated under the condition of low voltage input by L IN, the communication of L IN can fail when the novel rearview mirror integrated controller senses the voltage below 7V or above 18V, the novel rearview mirror integrated controller is forbidden to detect faults when the novel rearview mirror integrated controller senses the voltage below 9V or above 16V, the voltage value of the hysteresis is 0.4V, the buzzing time is 200m, the novel rearview mirror controller can automatically sense the state of the rearview mirror and can be changed into a sleep mode so as to enable the novel rearview mirror to enter a sleep mode, and the power consumption is changed into a sleep mode.
Has the advantages that: according to the correct design of the system hardware and the software system, the invention not only can realize the accurate control of the stepping motor, but also can send out data packets once to control the operation of the stepping motor according to the backing state and the data setting of the host machine, thereby completing various actions of the backing mirror. In the experimental process, the rearview mirror can be automatically adjusted according to the reversing state, so that the object behind the automobile can be reflected at the optimal angle, and meanwhile, the buzzer and the lighting automatically respond. When parking, the rearview mirror is automatically folded. The correctness of the system design can be seen. The invention analyzes and designs the primary generated data packet of the SPI of the host and the slave according to a 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, and the software adopts a register mode to carry out SPI communication on the basis of the correct design of a hardware system, so that 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 control.
Drawings
FIG. 1 is a diagram of the internal structure and peripheral circuitry of the novel backup mirror of the present invention;
FIG. 2 is a flowchart of a system routine;
FIG. 3 is a slave control flow chart;
FIG. 4 is a flowchart of a closed-loop control process.
Detailed Description
As shown IN the figure, the novel rearview mirror internal structure and the peripheral circuit mainly comprise a microprocessor, a driving interface and a diagnosis module, a host computer and a slave computer are communicated through an SPI, and after the slave computer receives an instruction through an L IN bus, the slave computer is controlled according to the instruction of the host computer[3]And a sensor detection circuit. The structure is shown in fig. 1.
1.1 SPI communication circuit
The SPI communication is the communication between the microprocessor and the driving interface and the diagnosis module, and adopts a full duplex mode and a four-wire system. The microprocessor sends data packets including information such as PWM duty ratio at a time, and the driving interface receives the data packets at a time. The motor is started, speed regulated, reversed and stopped. The internal regulator controls a stepping motor and the like according to these instructions.
The novel rearview mirror mainly has several working modes, namely a system initialization mode, a normal mode, a sleep mode, a power-off mode and the like[1]The system initialization mode function is mainly to determine whether the battery is IN a power supply state or a power off state, to shut down all port outputs, then to end initialization, to enter a normal mode, to enter a sleep mode when a sleep request command message (L IN communication address 0x3c) is received IN the normal mode, to enter the power off mode when an SPI command "power off" is received IN the sleep mode, and to enter the normal mode when a L IN bus wake-up signal is detected.
The invention relates to a novel internal structure of a rearview mirror and a peripheral circuit.A slave mainly comprises a microprocessor, a driving interface and a diagnosis module, wherein a host computer and the slave are communicated through an SPI (serial peripheral interface), and after the slave receives an instruction through an L IN (IN-line) bus, the slave is controlled according to the instruction of the host computer[3]And a sensor detection circuit. The structure of the invention is shown in a control structure diagram of a rearview mirror in figure 1.
2.1 SPI communication
The communication principle of the SPI is simple, and the SPI works in a master-slave mode, wherein the mode usually comprises a master device and one or more slave devices, at least 4 lines are needed, and actually 3 lines can be transmitted in a single direction (in a single direction), the modes are also common to all SPI-based devices, namely MISO (master device data input), MOSI (master device data output), SC L K (clock) and CS (chip select).
(1) MISO-Master Input Slave Output, the Master device data Input and the Slave device data Output;
(2) MOSI-Master Output Slave Input, Master device data Output, Slave device data Input;
(3) SC L K-Serial Clock, Clock signal, generated by the master device;
(4) CS-Chip Select, slave enable signal, controlled by the master.
CS is a control signal indicating whether the slave chip is selected by the master chip, that is, only when the chip select signal is a predetermined enable signal (high or low), the master chip is enabled to operate the slave chip. 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 under-voltage and over-current protection, detects the voltage condition of the battery, and enters a power-off mode if the voltage is too low. The sensors are divided into a horizontal sensor and a vertical sensor of the backing mirror (a miniature travel switch can be adopted) for detecting the physical state of the backing mirror, and the physical state is converted into a voltage signal through rectification, filtering and amplification, and the voltage signal is sent to a microprocessor through an AD conversion circuit for closed-loop control.
L IN (L clock Interconnect Network) bus is a low-cost serial communication protocol based on UART/SCI (universal asynchronous receiver/serial interface). its target is positioned IN the low-end communication between the nodes of the vehicle body Network module, mainly used IN the serial communication of intelligent sensor and actuator, and this is the part that the bandwidth and function of CAN bus do not require.
The stepping motor and the transmission system adopt the prior mechanical structure to control the mirror surface of the backing mirror: the design [ J ] of the AUTO multifunctional automobile rearview mirror controlled by the single chip microcomputer in the autumn swimming is good, the tension is high, the AUTO multifunctional automobile rearview mirror is designed based on the single chip microcomputer [ J ] traffic science and technology and economy, 2016,22(2):111-113.
3 software System design
The control system mainly comprises host machine setting information, a sending 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 system initialization, and for the sleep or power-off mode, it is obtained according to host command or battery voltage detection. In the normal mode, the master transmits a command to the slave to control the operation of the backing mirror, and the flowchart is shown in fig. 3. FIG. 3 is a slave control flow diagram.
As can be seen from fig. 3, the slave control is performed according to the command of the master, and the stepping motor is controlled according to the data packet sent by the master, so that the backing mirror generates a series of actions.
2) Closed loop control procedure
When the slave computer receives the instruction, the actual state of the rearview mirror is detected according to the sensor, the stepping motor is controlled after PID operation, and the flow chart is shown as the closed-loop control program flow in FIG. 4.
The operation of the stepping motor comprises the functions of speed regulation, starting, stopping and the like, wherein the speed regulation is realized by changing the PWM duty ratio.
3) SPI communication program and AD conversion program
The invention adopts the register method to carry out SPI bus communication, firstly, the port must be initialized[7]The contents include an enable SPI mode, 8-bit data transmission, a 4-line SPI mode, and baud rate setting.
The AD conversion mainly has two aspects, one is to detect the battery voltage, and if the voltage is too low, a power-off instruction is sent out through the microprocessing. 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, experiments were performed based on system hardware and software design in order to verify the above analysis results. In the experimental process, the rearview mirror can be automatically adjusted according to the reversing state, so that the object behind the automobile can be reflected at the optimal angle, and meanwhile, the buzzer and the lighting automatically respond. When parking, the rearview mirror is automatically folded. The correctness of the system design can be seen.
In conclusion, the invention designs the hardware system and the software system of the host computer system and the slave computer system according to the characteristics of the novel rearview mirror, and mainly analyzes and designs the SPI once-occurring 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, and the software adopts a register mode to carry out SPI communication on the basis of the correct design of a hardware system, so that 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 control.

Claims (8)

1. A control system of a rearview mirror is characterized by comprising a host and a slave, wherein the slave is a rearview mirror controller, the host is an automobile peripheral controller, and the host and the slave are communicated through L IN, the slave is mainly used for controlling the rearview mirror surface through controlling a stepping motor and a transmission system, and comprises mirror surface folding, unfolding control and folding/unfolding functions, and can control an electric rearview mirror and mirror surface adjuster to adjust, vertically/horizontally, through linkage with a memory system (IMS), the novel rearview mirror controller is independently formed by L H/RH, a pull-down resistor is used IN an MCU of the rearview mirror controller, for L H/RH two types, the judging method is a port connected with the novel rearview mirror controller, and the corresponding port level judgment L H/RH type is read IN the system initialization stage;
(1) l H pattern, MCU external pull-down resistor is connected;
(2) RH model: the pull-down resistor in the MCU is connected;
the host computer and the slave computer adopt SPI communication and generate data packets at one time.
2. The rearview mirror control system of claim 1, wherein the position and the restarting skill of the rearview mirror are memorized, and the output action of the rearview mirror integrated controller is realized after receiving L IN communication data output commands from the host computer IN order to provide the automatic reversing and automatic recovery functions for ensuring the rear view during reversing.
3. The rearview mirror control system of claim 1, wherein a low power mode is provided and the status is automatically changed to a "sleep mode".
4. The rearview mirror control system of claim 1, wherein the AD converter circuit is used for under-voltage and over-current protection, detecting battery voltage conditions, and entering a power-off mode if the voltage is too low. The sensors are divided into a horizontal sensor and a vertical sensor of the backing mirror, are used for detecting the physical state of the backing mirror, are converted into voltage signals after being rectified, filtered and amplified, and are sent to the microprocessor by an AD conversion circuit for closed-loop control.
5. The rearview mirror control system as claimed IN claim 1, wherein the rearview mirror has several operation modes, namely a system initialization mode, a normal mode, a sleep mode and a power-off mode, and the operation flow is that the system initialization mode mainly has the functions of determining whether the battery is IN a power supply state or a power-off state, closing all port outputs, then finishing initialization, entering the normal mode, entering the sleep mode when the normal mode receives a sleep request command message, entering the power-off mode after receiving an SPI command 'power off' IN the sleep mode, and entering the normal mode when detecting an L IN bus wake-up signal.
6. The rearview mirror control system as claimed IN claim 1, wherein the slave is mainly composed of a microprocessor, a driving interface and a diagnosis module, the master and the slave are communicated through SPI, and the slave is controlled according to the command of the master after receiving the command through L IN bus, and the protection system adopts under-voltage and over-current protection and sensor detection circuit.
7. The rearview mirror control system as claimed in claim 1, wherein the slave control is performed according to a command from the master, and the stepping motor is controlled according to a data packet sent from the master, so that the rearview mirror generates a series of actions; closed-loop control procedure: when the slave receives an instruction, the actual state of the rearview mirror is detected according to the sensor, the stepping motor is controlled after PID operation, the operation of the stepping motor comprises the functions of speed regulation, starting, stopping and the like, and the speed regulation is realized by changing the PWM duty ratio.
8. The rearview mirror control system according to claim 1, wherein the SPI communication program and the AD conversion program: the SPI bus communication is carried out by adopting a register method, firstly, a port must be initialized, and the contents comprise an enabling SPI mode, 8-bit data transmission, a 4-wire SPI mode, baud rate setting and the like. The AD conversion mainly has two aspects, one is to detect the battery voltage, and if the voltage is too low, a power-off instruction is sent out through the microprocessing. Secondly, the state of the position sensor is converted into voltage, and the microprocessor adjusts according to the actual state of the rearview mirror.
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 true CN111483398A (en) 2020-08-04
CN111483398B 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
CN111483398B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN101365276B (en) Adaptive front lamp set control system based on network technique and controlling method thereof
CN106274533A (en) A kind of low-power consumption CCCP detection circuitry for electric automobile and method of work
CN107499240B (en) Rearview mirror adjustment controller, system and method
JP2005119652A (en) Controller for electric power supply of electronic device supplied with electric power from battery of vehicle
CN113885516B (en) Automatic driving domain controller of electric tractor and control method thereof
CN201319679Y (en) Structure of adaptive front-lighting system based on network technologies
CN103085636B (en) Opening-and-closing Member Control Apparatus
CN101315561A (en) Memory type rear view mirror and armchair control system
CN108200708A (en) Control method and intelligent road-lamp
CN107471957A (en) Electric automobile air conditioner control system and method and electric automobile
CN109898440A (en) A kind of parking stall lock control system
US6087804A (en) Electronic apparatus using the power supply line of a serial bus, for supplying and providing power appropriately
CN111483398A (en) Novel rearview mirror control system
EP4131862A1 (en) Control method and control apparatus for communication device, and communication system and storage medium
CN112660091B (en) Automobile control method and device, automobile, storage medium and processor
CN100580593C (en) Intelligent control device of electromotion rearview mirror of car
US6314355B1 (en) Steering angle detecting mechanism
CN219008112U (en) Unmanned aerial vehicle remote power switch device with identity information recognition
CN111969898A (en) New energy automobile permanent magnet synchronous motor controller and control method
CN111969905A (en) Single-phase direct-current permanent magnet brushless motor controller, control method and motor power system
CN106739949A (en) Air-conditioning heating control system, controller, method and apparatus
JP3675740B2 (en) Communication device having power supply type power supply type communication line
CN210573333U (en) Bus switch based on CAN bus
CN205256181U (en) Car falls exterior mirror automatic control
CN212921329U (en) Rearview mirror system upgrading device convenient to installation

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