CN1963874B - Control apparatus of motor central lock with CAN interface - Google Patents

Control apparatus of motor central lock with CAN interface Download PDF

Info

Publication number
CN1963874B
CN1963874B CN2006101648021A CN200610164802A CN1963874B CN 1963874 B CN1963874 B CN 1963874B CN 2006101648021 A CN2006101648021 A CN 2006101648021A CN 200610164802 A CN200610164802 A CN 200610164802A CN 1963874 B CN1963874 B CN 1963874B
Authority
CN
China
Prior art keywords
circuit
controlled lock
central controlled
interface
pin
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.)
Expired - Fee Related
Application number
CN2006101648021A
Other languages
Chinese (zh)
Other versions
CN1963874A (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.)
Institute of Electrical Engineering of CAS
Original Assignee
Institute of Electrical Engineering of CAS
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 Institute of Electrical Engineering of CAS filed Critical Institute of Electrical Engineering of CAS
Priority to CN2006101648021A priority Critical patent/CN1963874B/en
Publication of CN1963874A publication Critical patent/CN1963874A/en
Application granted granted Critical
Publication of CN1963874B publication Critical patent/CN1963874B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

This invention relates to one car control lock device with CAN interface, which comprises power circuit to realize CAN communication drive interface circuit to realize information sending, receiving and processing and controlled single machine circuit; the drive central control gate lock motor drive circuit; position test circuit to test central gate lock position status; over current test circuit to test drive motor current and interface circuit; the communication agreement sets middle control lock device joint address, communication rate, message frame number and parameters and usage method.

Description

A kind of automobile-used central controlled lock control device with the CAN interface
Technical field
The present invention relates to a kind of automobile central controlled lock control device, particularly a kind of automobile-used central controlled lock control device that has the CAN communication interface.
Background technology
Vehicle technology makes rapid progress, and networked controlling level is more and more higher, and central controlled lock has also been proposed more and more higher intelligent requirements.Existing central authorities control door lock generally all comes work as a cover autonomous system, and information such as its control thought, duty are difficult to interrelate with other system on the vehicle, have limited the incorporate function of Body Control greatly and have realized.Application number is 200420050492.7 Chinese patent: arrangements for automotive doors central controlled lock and glass for vehicle window automaton have been introduced a kind of central controlled lock control device, adopt traditional detection line mode to insert signal, move according to the signal controlling central controlled lock.Chinese patent 200420118134.5 " automobile anti-theft alarm central controlled lock " design has special remote-control receiving circuit and warning circuit, emphasizes anti-theft alarm function.Generally speaking, present vehicle central controlled lock has that interface function is single, and circuit is numerous, installs complicatedly, will take the drawback in a large amount of spaces during actual the use.
Summary of the invention
The interface function that the objective of the invention is to overcome prior art is single, and circuit is numerous, installs complicatedly, takies the drawback in a large amount of spaces during actual the use, proposes a kind of central controlled lock control device that CAN communicates by letter that has.The present invention is multiple functional, and is with low cost, can realize information mutual communication with other system on the vehicle, has certain intelligence, favorable expandability.
The present invention includes power circuit, realize the CAN interface circuit of CAN communication drivers, realize the single chip circuit of message sink, transmission, information processing and control, drive the motor drive circuit of central authorities' control door lock, detect the position detecting circuit of central control gate lock position state, detect the over-current detection circuit of CD-ROM drive motor electric current, and interface circuit.
The CAN interface circuit links to each other with single chip circuit, and single chip circuit links to each other with motor drive circuit, control central controlled lock CD-ROM drive motor, and according to CAN that receives and monitoring information, in conjunction with central controlled lock Based Intelligent Control thought, the control signal of output central controlled lock CD-ROM drive motor; Single chip circuit also links to each other with central controlled lock position detecting circuit and over-current detection circuit simultaneously; Power circuit provides stable voltage to the CAN of CAN communication drivers interface circuit, single chip circuit, motor drive circuit, position detecting circuit and motor current over-current detection circuit; Microprocessor PIC18F258 in the single chip circuit is embedded with the CAN protocol controller, realize the transmitting-receiving of bus message by two pins of CAN_TX, CAN_RX, monitor whether overcurrent of central controlled lock position and central controlled lock CD-ROM drive motor simultaneously, according to CAN that receives and monitoring information, in conjunction with the central controlled lock intelligent control program, the control signal of output central controlled lock CD-ROM drive motor; The motor drive circuit of central authorities' control door lock receives the control signal of single chip circuit, according to the requirement output motor drive current of control signal; Motor drive circuit is according to the drive current of CD-ROM drive motor, and the place produces corresponding current signal at the SL of chip BTS7710 pin, and this current signal is that voltage signal offers over-current detection circuit through electric resistance changing; The location status of central controlled lock position detecting circuit monitoring switch S 1, the location status of switch S 1 can reflect the state of central authorities' control door lock; Switch S 1 one side joint power supply signal VCC, opposite side links to each other with comparer negative signal input end; The current signal that over-current detection circuit utilizes motor drive circuit to provide offers single chip circuit through after amplifying, and single chip circuit is just judged whether over range of drive current by detecting level.
The 12V power supply that described power circuit 1 provides accumulator on the car passes through filtering, transformation, obtains stable supply voltage after the filtering again, and this supply voltage provides stable voltage to chip for driving, single-chip microcomputer, motor driven chip, central controlled lock state-detection chip and the motor coil over-current detection chip of CAN communication.
CAN chip for driving in the CAN interface circuit is the interface between CAN protocol controller and the physical bus, can differential transmittability is provided and provide differential receiving ability to the CAN controller bus.
The single-chip microcomputer U3 of single chip circuit is embedded with the CAN protocol controller.Single chip circuit is realized the transmitting-receiving of bus message by two pins of CAN_TX, CAN_RX, and simultaneously, whether monitoring central controlled lock position and central controlled lock CD-ROM drive motor overcurrent.According to CAN that receives and monitoring information, in conjunction with central controlled lock Based Intelligent Control thought, the control signal of output central controlled lock CD-ROM drive motor.If dangerous warning, driving LED 1 is reported to the police.
Central authorities' control door lock motor drive circuit is a core with motor drive ic BTS770, accepts the control signal of single-chip microcomputer, according to the requirement output motor drive current of control signal.Steady for guaranteeing output current, add filtering circuit in the motor both sides.This partial circuit can be according to the drive current of CD-ROM drive motor, and the place produces corresponding current signal at the SL pin, and this current signal is that voltage signal offers over-current detection circuit through electric resistance changing.
The central controlled lock position detecting circuit is the location status that will monitor switch S 1.Because central controlled lock CD-ROM drive motor driven gear rack mechanism, pinion and rack drive central authorities' control door lock lockable mechanism, and this pinion and rack and 1 interlock of monitoring switch S.Thereby the location status of switch S 1 can reflect the state of central authorities' control door lock.In circuit design, use the anti-phase relatively input that has positive feedback, make circuit have the hysteresis effect, the purpose of this kind design is under the prerequisite that guarantees resolution, when making input signal near thresholding, can not produce unnecessary shake, avoid the erroneous judgement of testing circuit.
Over-current detection circuit is a relatively amplifying circuit, and the status signal that it utilizes motor drive circuit [4] to provide offers single-chip microcomputer RB0 pin after amplifying.This pin is just judged whether over range of drive current by detecting level.
Interface circuit 7 comprises three interface J1, J2, J3, and the J1 interface is that the J2 interface provides positive source, negative pole, motor control line and the reference voltage of this circuit for the programming of Single Chip Microcomputer (SCM) program online programming, and J3 provides the CAN bus to insert and the local control signal line.
Communication protocol has stipulated that central controlled lock device node address is 218 to 211, the central controlled lock node of four car door positions of corresponding vehicle.Traffic rate is that 250K, message frame comprise the reception message frame and send message frame.
Receive message frame frame number 61778, receiving parameter has the speed of a motor vehicle, ignition key position, the permission of local control central controlled lock, network central controlled lock control command.The speed of a motor vehicle, ignition key position are used to detect vehicle-state, and local control central controlled lock allows, network central controlled lock control command is used to set local gauge tap authority of central controlled lock and network control command action.The concrete using method of parameter is with reference to concrete implementation part.
Sending the message frame frame number is 61882, and sending parameter has central controlled lock position, central controlled lock fault, central controlled lock warning and restricted speed.The central controlled lock location parameter shows the central controlled lock location status, and central controlled lock fault, central controlled lock warning and restricted speed three parameters are the controlled variable that send to the vehicle other system under fault or alarm condition, carry out action and are carried out by CAN bus receiving system.These three parameters are used for the support vehicles driving safety.Send the concrete using method of message frame parameter with reference to concrete implementation part.
The control flow of central controlled lock control device of the present invention is divided into four parts, is respectively that initial detecting part, control command are confirmed part, intelligent control part, central controlled lock drive part.The initial detecting part detects whether there is fault at the beginning of program run.Control command is confirmed the authority of program area subnetwork control command and local control command, determines the action that central controlled lock should be carried out according to authority.The Based Intelligent Control subroutine mainly but not unique finger safety protection program.Execution action in network control and local control command all is under the situation of attonity, central controlled lock can be according to the vehicle-state message that receives, judge whether to have action and carry out it in conjunction with the central controlled lock oneself state, thereby realize the Based Intelligent Control function of central controlled lock.Intelligent control program example of the present invention is one section safety protection program, judges whether the dangerous corresponding safety practice of taking by the central controlled lock control device.Under the low speed driving state, control device gives a warning and restricted speed.Under the high-speed travel state, control the central controlled lock locking automatically.The central controlled lock driver detects in the CD-ROM drive motor rotation process and whether has mistake and detect the central controlled lock location status, guarantees that central controlled lock can drive to put in place.For the CAN message sink, software realizes adopting inquiry mode to handle, and whether each cycle detection receives CAN message.Send for CAN message, periodically send and adopt interrupt mode, every interval 1s enters the interrupt handling routine of timer 0, sends lockout message to the vehicle other system.If the system failure of detecting sends message to bus immediately.
In sum, the present invention has following characteristics:
1) whether locking puts in place to detect central authorities' control door lock under the low vehicle speeds state.If there is not locking to put in place, central controlled lock will be thought the warning of vehicle other system by the CAN bus, simultaneously near the emergency warning lamp flicker the central controlled lock.Simultaneously, central controlled lock is to vehicle power drive system transmission speed limiting command, avoids that the speed of a motor vehicle is too high to cause danger.
2) vehicle speed signal on the central controlled lock monitoring bus, if the speed of a motor vehicle reaches or when surpassing to a certain degree, central controlled lock automatic blocking.This Based Intelligent Control is because in the vehicle ' process, may have the occupant and handle central controlled lock, causes the central controlled lock release.
3) the central controlled lock state detection circuit has and has hysteretic characteristic, and can keep away voltage and near critical point, produce shake, and the central controlled lock state that forms erroneous judgement.
4) central controlled lock CD-ROM drive motor circuit has overcurrent protection function, avoids the motor overcurrent to burn.
5) the central controlled lock system has local gauge tap, if the passenger wants to control central controlled lock, can operate local gauge tap and carry out.
Description of drawings
Fig. 1 is circuit one-piece construction figure of the present invention;
Fig. 2 is a power supply circuit schematic diagram of the present invention;
Fig. 3 is a CAN bus interface circuit schematic diagram of the present invention;
Fig. 4 is a single chip machine controlling circuit schematic diagram of the present invention;
Fig. 5 is a motor drive circuit schematic diagram of the present invention;
Fig. 6 is a central controlled lock position detecting circuit schematic diagram of the present invention;
Fig. 7 is an over-current detection circuit schematic diagram of the present invention;
Fig. 8 is an interface circuit schematic diagram of the present invention;
Fig. 9 is that program circuit of the present invention is always schemed;
Figure 10 is a safety protection program process flow diagram of the present invention;
Figure 11 is an interrupt routine process flow diagram of the present invention.
Embodiment
Further specify the present invention below in conjunction with the drawings and specific embodiments.
1, circuit structure
As shown in Figure 1, the present invention includes power circuit 1, CAN interface circuit 2, single chip circuit 3, central authorities' control door lock motor drive circuit 4, central controlled lock position detecting circuit 5, over-current detection circuit 6 and interface circuit 7.
Power circuit 1 provides stable voltage to CAN communication drivers chip, single-chip microcomputer, motor driven chip, central controlled lock state-detection chip and motor coil over-current detection chip.
The CAN chip for driving of CAN interface circuit 2 is the interfaces between CAN protocol controller and the physical bus, and bus is provided differential transmittability and provides differential receiving ability to the CAN controller.
Single chip circuit 3 uses the single-chip microcomputer model to be PIC18F258, is embedded with the CAN protocol controller, realizes the transmitting-receiving of bus message by two pins of CAN_TX, CAN_RX, monitors whether overcurrent of central controlled lock position and central controlled lock CD-ROM drive motor simultaneously.According to CAN that receives and monitoring information, in conjunction with central controlled lock Based Intelligent Control thought, the control signal of output central controlled lock CD-ROM drive motor.
Central authorities' control door lock motor drive circuit 4 is accepted the control signal of single-chip microcomputer, according to the requirement output motor drive current of control signal.The filtering circuit of motor both sides is according to the drive current of CD-ROM drive motor, and the place produces corresponding current signal at the SL pin, and this current signal is that voltage signal offers over-current detection circuit through electric resistance changing.
The location status of central controlled lock position detecting circuit 5 monitoring switch S 1.Because central controlled lock CD-ROM drive motor driven gear rack mechanism, pinion and rack drive central authorities' control door lock lockable mechanism, and this pinion and rack and 1 interlock of monitoring switch S.Thereby the location status of switch S 1 can reflect the state of central authorities' control door lock.In circuit design, use the anti-phase relatively input that has positive feedback, make circuit have the hysteresis effect, the purpose of this kind design is under the prerequisite that guarantees resolution, when making input signal near thresholding, can not produce unnecessary shake, avoid the erroneous judgement of testing circuit.
The status signal that over-current detection circuit 6 utilizes motor drive circuit [5] to provide offers single-chip microcomputer RB0 pin after amplifying.Single-chip microcomputer is just judged whether over range of drive current by detecting this pin level.
Interface circuit 7 comprises three interface J1, J2, J3, and the J1 interface is that the J2 interface provides positive source, negative pole, motor control line and the reference voltage of this circuit for the programming of Single Chip Microcomputer (SCM) program online programming, and J3 provides the CAN bus to insert and the local control signal line.
Interface circuit 7 links to each other with the outside in the connector mode, and P1 interface and J1 patch, and connects online DLL (dynamic link library) MCLR, VCC, GND, PGD, PGC.P3 interface and J3 patch, and connect CAN_H, CAN_L signal and local control signal LC1, LC2; P2 interface and J2 patch, and meet battery feed both positive and negative polarity, reference voltage Vrf and motor driven circuit MO1, MO2; Power supply chip U1 pin IN, GND place circuit are distinguished VBB, the GND of J2 in the connection interface circuit 7 in the power circuit 1, and pin OUT place circuit links to each other with other element circuits VCC; Chip for driving 6,7 pins of CAN interface circuit 2 link to each other with CAN_L, the CAN_H of interface J3, and pin one, 4 links to each other with single-chip microcomputer 23,24 pins; The single-chip microcomputer pin one 1,12 of single chip circuit 3 links to each other with LC1, the LC2 of interface J3, pin 7,3,4,5,6 links to each other with the chip for driving pin 8,7,9,2,13 of motor drive circuit 4 respectively, pin one, 20,8,28,27, link to each other with interface J1 respectively, pin two 1 links to each other with the chip pin 1 of over-current detection circuit 6, and pin two 2 links to each other with the chip pin 2 of position detecting circuit 5; The chip for driving pin one 9,5,24,10 of motor drive circuit 4 and the VBB interface of position detecting circuit 5 all are connected with the VBB of interface J2; 22,23,1,3,25,28 of motor driven chip links together, and 20,21,12,14,15,18 link together, and links to each other with MO1, the MO2 of interface J2 respectively; After connecting together, pin two 7,26,17,16 links to each other with the chip pin 3 of over-current detection circuit 6.
Power circuit 1 of the present invention as shown in Figure 2.Automobile storage battery provides the supply voltage of 12V, this voltage is by the P2 interface place in circuit VBB place of interface circuit 7, circuit is divided into two parts then: a part is by capacitor C 13 ground connection, purpose is the high-frequency ac part in the elimination circuit, another part process diode D2, fuse F1, inductance L 1 is connected to the IN pin of voltage transitions chip LM2931, after inductance L 1, two capacitor C 4 in parallel, C14 before the IN pin.The purpose of diode D2 is to suppress current feedback, guarantee the independence of power supply, the effect of fuse F1 is to prevent the excessive components and parts that burn the back of electric current, and inductance L 1 and capacitor C 4, C14 form low pass LC wave filter, for the voltage transitions chip provides pure, stable power supply.After the conversion of voltage transitions chip, line voltage distribution becomes 5V, utilizes capacitor C 8, C9, C10, C15 to obtain voltage VCC after the filtering once more, as the supply voltage of each chip in the circuit.
CAN bus interface circuit 2 as shown in Figure 3.CAN bus signal line CAN_H and CAN_L insert CAN chip for driving TJA1050 by interface circuit 7 interface P3.Chip for driving is removed and to be connect power supply normally, outside the ground connection, and resistance R 2 one termination CAN chip for driving RS pins, an end ground connection, purpose is that the mode of operation that chip for driving is set is a fast mode.The CAN chip for driving realizes by output pin TXD and input pin RXD with communicating by letter of single-chip microcomputer 3.
Single chip circuit 3 as shown in Figure 4.The model that single-chip microcomputer adopts is PIC18f258, and its basic line has: the VDD pin meets power supply VCC, VSS ground connection, the indirect crystal oscillator XT1 of OSC1, OSC2.Link to each other by capacitor C 5 between VDD, VSS two pins, avoid the signal coupled interference.The crystal oscillator two ends respectively connect a capacitor C 6, C7 ground connection then, and its purpose is to avoid the signal coupled interference equally.Single-chip microcomputer RA1, RA2, RA3, RA4 port are connected with central controlled lock motor driven chip I H1, IH2, IL1, IL2 respectively, are used to control the motor action.RA5 links to each other with central controlled lock motor driven chip ST pin through resistance, and the circuit purpose is to be used for fault diagnosis, can detect that temperature is too high, brownout and fault such as open circuit.The RB0 pin links to each other with the output terminal of over-current detection circuit 6, in order to detect the driving condition of CD-ROM drive motor.Single-chip microcomputer CAN_TX, CAN_RX pin are used for the transmitting-receiving of CAN information, link to each other with RX, the TX pin of CAN chip for driving respectively.In conjunction with communication protocol, can obtain network central controlled lock control signal that current vehicle speed, key position, human pilot send etc. by the CAN bus, can on car, send the central controlled lock status information by other system simultaneously.RC2 passes through a light emitting diode LED1 and resistance R 12 ground connection, the danger of LED1 flicker expression state.The local central controlled lock control line of J3 interface in RC0, the RC1 pin difference connection interface circuit 7 is in order to detect the control signal input of local central controlled lock.MCLR, VCC, GND, RB6, RB7 link to each other with J1 in the interface circuit 7 respectively, in order to realize program on-line debugging, programming.
Central authorities' control door lock motor drive circuit 4 as shown in Figure 5.Central controlled lock motor drive circuit 4 realizes that by chip BTS7710 this circuit has only been used the partial function of BTS7710.BTS7710 chip power supply power supply connects the ST pin by resistance R 5, and the DHVS pin all links to each other with the VBB of J2 in the interface circuit 7.IH1, IH2, IL1, IL2 link to each other with single-chip microcomputer RA1, RA2, RA3, RA4 pin, in order to receive motor control signal.SL1, SL2 pin can export different electric currents according to the electric current difference of CD-ROM drive motor, and circuit links to each other and ground connection with the GND pin after resistance R 8, current signal is converted to voltage signal offers single-chip microcomputer U3 as the over-current detection signal.Be connected respectively to MO1, the MO2 interface of J3 in the interface circuit 7 after SH1 and DL1 connect together, SH2 and DL2 connect together.Owing to connect the two ends of CD-ROM drive motor, for preventing surge voltage, in parallel respectively capacitor C 1, C2 and C11, C12 at the motor two ends, electric capacity other end ground connection.
Central controlled lock position detecting circuit 5 as shown in Figure 6.Position detecting circuit 5 is built around comparer chip LM339.The rack-and-pinion mechanical connection that switch S 1 and CD-ROM drive motor drive, its position can reflect the central controlled lock state.When CD-ROM drive motor is just forwarding extreme position to, the central controlled lock locking, its mechanical linkage which controls pull switch SW closure, otherwise, when switch S 1 is opened, the counter-rotating of expression motor, central controlled lock is opened.Switch one side joint power supply signal VCC, opposite side links to each other with comparer negative signal input end, simultaneously, by resistance R 3 ground connection, makes negative input input low level when switch opens, input high level when closed.The comparer electrode input end is by resistance R 9 input reference voltages, and reference voltage is provided by external circuit by interface circuit.Electrode input end also is parallel with two resistance R 10, R11 simultaneously, resistance R 10 other end ground connection, resistance R 11 other ends link to each other with comparator output terminal, and this partial circuit forms positive-feedback circuit, avoid comparer both positive and negative polarity input terminal voltage value near the time shake appears at output terminal.The position detecting circuit output terminal links to each other with single-chip microcomputer RB1.Power supply links to each other with the comparer power end, links to each other with comparator output terminal by pull-up resistor R1 simultaneously.
Over-current detection circuit 6 as shown in Figure 7.Over-current detection circuit is an operational amplification circuit commonly used, power supply termination VCC, earth terminal ground connection, and electrode input end directly links to each other with motor driven chip SL end, as the computing amplifying signal.Negative input two resistance R 6 in parallel, R7, resistance R 6 other ends link to each other with comparator output terminal, R7 other end ground connection.Comparator output terminal links to each other with single-chip microcomputer RB0 pin.For avoiding surge voltage, comparator output terminal is by capacitor C 3 ground connection.
Interface circuit 7 as shown in Figure 8.Interface circuit has three interfaces.The J1 interface is for the programming of Single Chip Microcomputer (SCM) program online programming, the J2 interface provides positive source VCC, negative pole GND, motor control line MO1, MO2 and the reference voltage Vrf of this circuit, and J3 provides the CAN bus to insert CAN_H, CAN_L and local control signal line LC1, LC2.
2, communication protocol
Communication protocol of the present invention is deferred to the CAN2.0B standard, and protocol format is with reference to SAE J1939.Concrete grammar is that node address adopts J1939 not have the address of using at present.Parameter group is numbered with 29 ID forms, and chooses the parameter group numbering that J1939 does not have application.The transmission concrete parameter according to the present invention needs stipulate.
According to above principle, regulation central controlled lock node address is 218 to 211 in the communication protocol of the present invention, the central controlled lock node of left front, right front, left back, right back four the car door positions of the corresponding vehicle of difference, and traffic rate is 250k, data byte 8 bytes.
It is as shown in table 1 that communication protocol central controlled lock of the present invention receives message frame:
Table 1
Figure GA20192056200610164802101D00081
The message frame name that central controlled lock receives is called lockin, and frame number is 61778.Regulation has the speed of a motor vehicle, ignition key position, local central controlled lock control permission, the order of network control central controlled lock to amount to 4 signals in the message frame.Wherein the speed of a motor vehicle and ignition key position signal are state detection signal, obtain from vehicle power drive system and body control system respectively.Local central controlled lock control allows, the order of network control central controlled lock is a control signal, is sent by human pilot, through the CAN bus transfer.Local central controlled lock control allows the expression central controlled lock whether to accept local switch control, has embodied human pilot and passenger's authority.The order of network control central controlled lock is that human pilot is wished the order that central controlled lock is carried out.
It is as shown in table 2 that communication protocol central controlled lock of the present invention sends message frame,
Table 2
Figure GA20192056200610164802101D00082
The message frame name that central controlled lock sends is called lockout, and frame number is 61882.Regulation has central controlled lock position, central controlled lock fault, central controlled lock warning, restricted speed to amount to 4 signals in the message frame, and signal offers the vehicle other system, for the overall control strategy of vehicle provides state parameter.The central controlled lock location parameter all is the important parameter that central controlled lock sends under normal condition still is malfunction.Central controlled lock fault, central controlled lock warning, restricted speed signal are used under fault or alarm condition.Under the normal condition, this three parameter is 0, shows non-fault or does not have warning.Be divided into CD-ROM drive motor over current fault and the CD-ROM drive motor two kinds of faults that report an error in the central controlled lock fault again in detail.The CD-ROM drive motor over current fault records by over-current detection circuit, and signal records through single-chip microcomputer RB0 pin.CD-ROM drive motor reports an error fault through the motor driven chip detection, reports an error to be meant and may to have that temperature is too high, driving voltage is crossed low or open circuit fault.Central controlled lock warning parameter indicating is under current vehicle central controlled lock state, and vehicle operating is dangerous, reminds human pilot to note the central controlled lock state.The restricted speed signal sends to power-driven system, and whether expression needs restricted speed to ensure safety, and the execution of restricted speed is realized by power-driven system control.
As shown in Figure 9, central controlled lock control device control flow master routine of the present invention mainly is divided into four parts, is respectively that initial detecting, control command affirmation, Based Intelligent Control and central controlled lock drive.
Initial detecting is partly accused the initialization of system device, CD-ROM drive motor error-detecting and is detected three steps in central controlled lock position.Single-chip microcomputer U3 finishes program initialization, and the initial value of control device each several part is set.Detect whether there is fault by motor drive circuit 4 and over-current detection circuit 6.If there is fault, will make single-chip microcomputer U3 pin 7 and pin two 1 be in high level state.After single-chip microcomputer detects pin 7,21 states, will control CAN interface circuit 2 and send the central controlled lock status message to the CAN network, there is fault in the report central controlled lock, reminds the driver to be noted.The back program records the central controlled lock current location by position detecting circuit 5, and location parameter kept, so that should be able to be used.
Control command confirms that part is by the control messages that sends on the single-chip microcomputer detection network and the control signal of local switch.Single-chip microcomputer is resolved " local central controlled lock control allows " parameter and " order of network control central controlled lock " two parameters in the lockin message.Single-chip microcomputer U3 has judged whether local switch controlling signal by the level state that detects pin 11,12.If " local central controlled lock control permission " parameter is to allow, then local control is effective, and single-chip microcomputer U3 controls the State Control central controlled lock motor of motor drive circuit 4 according to pin one 1,12, otherwise, according to " order of network control central controlled lock " control central controlled lock motor.If single-chip microcomputer U3 detects the level state of pin 11,12 and is low level, show that then local control command do not have input, single chip circuit 3 is according to " order of network control central controlled lock " control motor drive circuit 4.
If control command affirmation program is thought the current control command input of not having, be that " order of network control central controlled lock " is attonity in the single-chip microcomputer parsing lockin message, and the state that detects pin 11,12 is low level, prove local control command no signal input, then program enters intelligent control part.Single-chip microcomputer obtains the speed of a motor vehicle, ignition key position information according to the analysis result of lockin message, and the output level by detection position testing circuit [5] obtains current central controlled lock positional information.According to the information that said procedure obtains, the Single-chip Controlling program judges whether to need the control central controlled lock and how to control central controlled lock.Figure 12 is one section safety protection program process flow diagram, and this section program realizes two functions, and the function of first realization is: single-chip microcomputer is resolved lockin message, obtains speed of a motor vehicle parameter, and according to former speed of a motor vehicle parameter decision vehicle acceleration and deceleration state.Judge the central controlled lock location status according to the position detecting circuit output level.If the speed of a motor vehicle is lower than 10km/h, vehicle is under the acceleration mode, and central controlled lock do not have locking, and then Single-chip Controlling CAN driving circuit 2 sends lockout message to the CAN network, in order to the warning human pilot, and the restriction car speed.Simultaneously, near the LED 1 of single-chip microcomputer 3 drive installations central controlled lock makes its flicker to remind occupant on the car.After the vehicle body other system receives lockout information, can remind human pilot to note the central controlled lock state in modes such as sound, light, electricity.The vehicle power control system forces the speed of a motor vehicle to be controlled at below the 10km/h according to this message, and when avoiding the speed of a motor vehicle to raise, the car door accident is opened and caused danger.Second function is in the vehicle ' process, and the central controlled lock that may someone will open makes central controlled lock be in open mode.Single chip circuit 3 obtains speed of a motor vehicle parameter according to the lockin message that receives, if the speed of a motor vehicle is higher than 60km/h, the central controlled lock control device thinks that this is a kind of precarious position, and single-chip microcomputer U3 controls motor drive circuit 4 automatically, and central controlled lock is controlled to be locking states.Program shown in Figure 10 has certain intelligent and safe defencive function but is not unique, and the program development personnel can develop the various control program as required, realizes the more intelligent control function.
Confirm program and intelligent control program through control command, whether control device can be judged needs to control motor drive circuit to produce central controlled lock locking or opening action.Control central controlled lock if desired and produce control action, then program circuit enters the central controlled lock drive part, otherwise will change circulation next time over to.Before the driving, control program judges at first whether the target location that will control the central controlled lock realization is with consistent by position detecting circuit 5 acquisition central controlled lock current locations.If inconsistent, just need the drive motor circuit.In the driving process, control program detects the U4 chip I S pin signal of over-current detection circuit 6 output signals, driving circuit section 4, the output signal of position detecting circuit 5 constantly, whether has in order to detect that electric current is excessive, driving malfunction, whether central controlled lock drives puts in place.If preceding two kinds of situations exist, should stop at once driving with protection central controlled lock motor, transmit status message is given human pilot simultaneously.Do not put in place if drive, this section of execution program that should circulate drives up to central controlled lock and puts in place.
It is periodic regularly to the current central controlled lock state of vehicle network report that the central controlled lock control device is wanted, and sends lockout and interrupt finishing by timer.What Figure 11 provided is timer interrupt program.If program detects fault, then send the central controlled lock status message at once and need not by the time that timer interrupts.

Claims (8)

1. automobile-used central controlled lock control device with the CAN interface, it is characterized in that comprising power circuit [1], realize the CAN interface circuit [2] of CAN communication drivers, realize the single chip circuit [3] of message sink, transmission, information processing and control, drive the motor drive circuit [4] of central authorities' control door lock, detect the position detecting circuit [5] of central control gate lock position state, detect the over-current detection circuit [6] of CD-ROM drive motor electric current, and interface circuit [7]; CAN interface circuit [2] links to each other with single chip circuit [3], single chip circuit [3] links to each other with motor drive circuit [4], and control central controlled lock CD-ROM drive motor is according to CAN that receives and monitoring information, in conjunction with central controlled lock Based Intelligent Control thought, the control signal of output central controlled lock CD-ROM drive motor; Single chip circuit [3] also links to each other with central controlled lock position detecting circuit [5] and over-current detection circuit [6] simultaneously; Power circuit [1] provides stable voltage to the CAN of CAN communication drivers interface circuit [2], single chip circuit [3], motor drive circuit [4], position detecting circuit [5] and motor current over-current detection circuit [6]; Microprocessor PIC18F258 in the single chip circuit [3] is embedded with the CAN protocol controller, two pins of CAN_TX, the CAN_RX of chip BTS7710 by motor drive circuit [4] are realized the transmitting-receiving of bus message, monitor whether overcurrent of central controlled lock position and central controlled lock CD-ROM drive motor simultaneously, according to CAN that receives and monitoring information, in conjunction with the central controlled lock intelligent control program, the control signal of output central controlled lock CD-ROM drive motor; The motor drive circuit [4] of central authorities' control door lock receives the control signal of single chip circuit [3], according to the requirement output motor drive current of control signal; Motor drive circuit [4] is according to the drive current of CD-ROM drive motor, and the place produces corresponding current signal at the SL of chip BTS7710 pin, and this current signal is that voltage signal offers over-current detection circuit through electric resistance changing; The location status of central controlled lock position detecting circuit [5] monitoring switch [S1], the location status of switch [S1] can reflect the state of central authorities' control door lock; Switch [S1] side joint power supply signal VCC, opposite side links to each other with comparer negative signal input end; The current signal that over-current detection circuit [6] utilizes motor drive circuit [5] to provide offers single chip circuit [3] through after amplifying, and single chip circuit [3] is just judged whether over range of drive current by detecting level.
2. according to the described automobile-used central controlled lock control device of being with the CAN interface of claim 1, it is characterized in that interface circuit [7] links to each other with external circuit in the connector mode, the J1 interface of the P1 interface of external circuit and interface circuit [7] patches, and connects online DLL (dynamic link library) MCLR, VCC, GND, PGD, PGC; The J2 interface of the P2 interface of external circuit and interface circuit [7] patches, and connects MO1, the MO2 port of battery feed both positive and negative polarity, reference voltage Vrf and motor drive circuit [4]; The J3 interface of the P3 interface of external circuit and interface circuit [7] patches, LC1, the LC2 pin of the chip BTS7710 of CAN_H, CAN_L pin and the motor drive circuit [4] of the CAN chip for driving TJA1050 of connection CAN interface circuit [2]; VBB, the GND of power supply chip U1 pin IN, the middle J2 interface of GND place circuit difference connection interface circuit [7] in the power circuit [1], the pin OUT place circuit of power supply chip U1 links to each other with other element circuits VCC; CAN_L, the CAN_H of J3 interface link to each other in 6,7 pins of the chip for driving TJA1050 of CAN interface circuit [2] and the interface circuit [7], and the pin one of TJA1050,4 links to each other with 23,24 pins of microprocessor PIC18F258 in the single chip circuit [3]; The pin one 1 of the microprocessor PIC18F258 of single chip circuit [3], 12 with interface circuit [7] in LC1 in the J3 interface, the LC2 terminal links to each other, the pin 7 of microprocessor PIC18F258 in the single chip circuit [3], 3,4,5,6 respectively with the pin 8 of the chip for driving BTS7710 of motor drive circuit [4], 7,6,2,13 link to each other, the pin one of microprocessor PIC18F258 in the single chip circuit [3], 20,8,28,27 link to each other with the J1 interface of interface circuit [7] respectively, the pin two 1 of microprocessor PIC18F258 in the single chip circuit [3] links to each other with the pin one of the operational amplifier LM358 of over-current detection circuit [6], and the pin two 2 of the microprocessor PIC18F258 in the single chip circuit [3] links to each other with the pin two of the comparer chip LM339 of position detecting circuit [5]; The pin one 9,5,24,10 of the chip for driving BTS7710 of motor drive circuit [4] all is connected with the VBB of J2 interface in the interface circuit [7] with the VBB interface of position detecting circuit [5]; 22,23,1,3,25,28 ports of motor driven chip BTS7710 link together, 20,21,12,14,15,18 ports of motor drive circuit [4] chip for driving BTS7710 link together, and link to each other with MO1, the MO2 terminal of J2 interface in the interface circuit [7] respectively; The pin two 7,26,17,16 of the motor driven chip BTS7710 back that connects together links to each other with the pin 3 of the operational amplifier LM358 of over-current detection circuit [6].
3. according to claim 1 or the 2 described automobile-used central controlled lock control device of being with the CAN interfaces, it is characterized in that motor drive circuit [4] is by chip BTS7710 realization, chip BTS7710 power supply connects the ST pin by resistance R 5, and the DHVS pin of chip BTS7710 all links to each other with the storage battery power supply voltage VBB of J2 interface in the interface circuit [7]; RA1, RA2, RA3, the RA4 pin of microprocessor PIC18F258 in the IH1 of chip BTS7710, IH2, IL1, IL2 pin and the single chip circuit [3] link to each other, in order to receive motor control signal; The SL1 of chip BTS7710, SL2 pin are according to the electric current difference of CD-ROM drive motor, export different electric currents, circuit links to each other and ground connection with the GND pin after resistance R 8, current signal is converted to voltage signal offers over-current detection circuit [6] as the drive current detection signal; Be connected respectively to MO1, the MO2 port of the J3 interface in the interface circuit [7] after SH1 port and the DL1 port of chip BTS7710 connects together, SH2 port and DL2 port connect together, connect respectively in MO1 and MO2 port and to have joined capacitor C 1, C2 and C11, C12, electric capacity other end ground connection.
4. according to the automobile-used central controlled lock control device of claim 1 or 2 described band CAN interfaces, it is characterized in that central controlled lock position detecting circuit [5] centers on comparer chip LM339 and builds; The rack-and-pinion mechanical connection that switch S 1 and CD-ROM drive motor drive; When CD-ROM drive motor is just forwarding extreme position to, the central controlled lock locking, its mechanical linkage which controls pull switch SW closure, otherwise, when switch S 1 is opened, the counter-rotating of expression motor, central controlled lock is opened; Switch SW one side joint power supply signal VBB, opposite side links to each other with comparer negative signal input end, simultaneously, by resistance R 3 ground connection, makes negative input input low level when switch SW is opened, input high level when closed; The anodal input pin 5 of comparer LM339 is by resistance R 9 input reference voltage Vrf, and reference voltage Vrf is provided by external circuit by interface circuit [7]; Electrode input end also is parallel with two resistance R 10, R11 simultaneously, resistance R 10 other end ground connection, resistance R 11 other ends link to each other with comparator output terminal, and this partial circuit forms positive-feedback circuit, avoid comparer both positive and negative polarity input terminal voltage value near the time shake appears at output terminal; The position detecting circuit output terminal links to each other with single-chip microcomputer RB1; Power supply links to each other with the comparer power end, links to each other with comparator output terminal by pull-up resistor R1 simultaneously.
5. according to claim 1 or the 2 described automobile-used central controlled lock control device of being with the CAN interfaces, the pin 8 that it is characterized in that operational amplifier LM358 in the over-current detection circuit [6] connects VCC, pin 4 ground connection, anodal input pin 3 directly links to each other with the SL pin of motor drive circuit [4] chip for driving BTS7710, as the computing amplifying signal; Negative pole input pin 2 connects two resistance R 6, R7, and resistance R 6 other ends link to each other with the output pin 1 of operational amplifier LM358, the other end ground connection of resistance R 7; The output terminal of operational amplifier LM358 links to each other with the RB0 pin of the microprocessor PIC18F258 of single chip circuit [3]; For avoiding surge voltage, the output terminal of operational amplifier LM358 is by capacitor C 3 ground connection.
6. according to claim 1 or the 2 described control methods of being with the automobile-used central controlled lock control device of CAN interfaces, it is characterized in that single chip circuit [3] microprocessor PIC18F258 central controlled lock control flow is divided into initial detecting, control command affirmation, Based Intelligent Control, four parts of central controlled lock driving; Partly finish control device initialization, CD-ROM drive motor error-detecting and central controlled lock position probing in initial detecting; Control command confirms that part detects the lockin message that sends on the network and the control signal of local switch by single-chip microcomputer, confirm microprocessor PIC18F258 according to " order of network control central controlled lock " parameter in the lockin message still according to the command driven motor drive circuit [4] of local gauge tap; Control command confirms that part thinks current when not having the control command input, enters intelligent control part, realizes safety protection function; At the central controlled lock drive part, program detects the output signal of over-current detection circuit [6], the IS pin signal of motor drive circuit [4], the output signal of position detecting circuit [5] constantly, whether has in order to detect that electric current is excessive, driving malfunction, whether central controlled lock drives puts in place.
7. according to the described control method of being with the automobile-used central controlled lock control device of CAN interface of claim 6, it is characterized in that the intelligent control part in the central controlled lock control flow, safety protection program is resolved lockin message by single chip circuit [3] microprocessor PIC18F258, obtain speed of a motor vehicle parameter, and, judge the central controlled lock location status according to the position detecting circuit output level according to former speed of a motor vehicle parameter decision vehicle acceleration and deceleration state; If the speed of a motor vehicle is lower than 10km/h, vehicle is under the acceleration mode, and central controlled lock does not have locking, then microprocessor PIC18F258 control CAN interface circuit [2] sends lockout message to the CAN network, send the warning parameter and notify the power-driven system restricted speed, near LED 1 flicker of microprocessor PIC18F258 drive installation central controlled lock.
8. according to claim 6 or the 7 described control methods of being with the automobile-used central controlled lock control device of CAN interfaces; it is characterized in that in the safety protection program of intelligent control part in the central controlled lock control flow; microprocessor PIC18F258 obtains speed of a motor vehicle parameter according to the lockin message that receives; if the speed of a motor vehicle is higher than 60km/h; microprocessor PIC18F258 controls motor drive circuit [4] automatically, and central controlled lock is controlled to be locking states.
CN2006101648021A 2006-12-06 2006-12-06 Control apparatus of motor central lock with CAN interface Expired - Fee Related CN1963874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101648021A CN1963874B (en) 2006-12-06 2006-12-06 Control apparatus of motor central lock with CAN interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101648021A CN1963874B (en) 2006-12-06 2006-12-06 Control apparatus of motor central lock with CAN interface

Publications (2)

Publication Number Publication Date
CN1963874A CN1963874A (en) 2007-05-16
CN1963874B true CN1963874B (en) 2010-07-21

Family

ID=38082915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101648021A Expired - Fee Related CN1963874B (en) 2006-12-06 2006-12-06 Control apparatus of motor central lock with CAN interface

Country Status (1)

Country Link
CN (1) CN1963874B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115083041B (en) * 2022-06-08 2024-05-14 福州昇宇门控智能科技有限公司 Electronic lock control system with line sequence automatic detection function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0694665A1 (en) * 1994-07-27 1996-01-31 Ymos France Arrangement comprising an electric door lock for a motor vehicle and its associated control and supply means
CN2706368Y (en) * 2004-05-08 2005-06-29 福建省天通电讯科技有限公司 Automobile door lock and window glass automatic control device
CN2769439Y (en) * 2004-11-23 2006-04-05 张正新 Anti-theft alarm central lock for automobile

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0694665A1 (en) * 1994-07-27 1996-01-31 Ymos France Arrangement comprising an electric door lock for a motor vehicle and its associated control and supply means
CN2706368Y (en) * 2004-05-08 2005-06-29 福建省天通电讯科技有限公司 Automobile door lock and window glass automatic control device
CN2769439Y (en) * 2004-11-23 2006-04-05 张正新 Anti-theft alarm central lock for automobile

Also Published As

Publication number Publication date
CN1963874A (en) 2007-05-16

Similar Documents

Publication Publication Date Title
CN101973235B (en) CANBUS network-based whole vehicle quiescent current control method
CN104512422B (en) Hybrid electric vehicle fault handling method and its fault processing system
CN101417636B (en) Pure electric motor coach communication system and method based on three CAN bus
CN101123561A (en) Intelligent car body network system
CN206664500U (en) A kind of whole pure electric vehicle complex control system
CN102541016B (en) Intelligent vehicle controller
CN105083459B (en) A kind of electric vehicle control system based on CAN
CN107738623A (en) A kind of motor-driven low-speed pure electric automobile entire car controller of list and its control method
CN104163151B (en) A kind of whole vehicle bus control system
CN200993741Y (en) Hybrid power electric automobile matching demarcation device based on serial communication
CN201901171U (en) Electric power-assisted steering control system adopting dual-microcomputer to jointly control relay
CN104423374B (en) Controller for automobile and the automobile with it, monitoring method
CN106004645B (en) A kind of trailer turns to lamp control system and control method
EP3407566A1 (en) Automobile electrical system and isolation system for automobile electrical system
CN110356250A (en) The motor control method and system of automatic driving vehicle
CN207157160U (en) A kind of automotive electronics lock for steering column control system
CN106593147B (en) Passenger car doorlock control unit
CN105242585A (en) Dual microprocessor based electric power steering (EPS) motor relay control method
CN101654089A (en) Automobile collision protection system
CN106020169B (en) Control method of vehicle-mounted intelligent control system for remote management of muck vehicle
WO2023273678A1 (en) Distributed power distribution system and vehicle
CN104583017B (en) Vehicular communication system and vehicle-mounted communication method
CN106838296B (en) A kind of car automatic mechanical transmission electronic control unit safety monitoring system
CN1963874B (en) Control apparatus of motor central lock with CAN interface
CN116788173A (en) Service type regional controller for vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100721

Termination date: 20151206

EXPY Termination of patent right or utility model