CN201961226U - Trailer car lamp control system - Google Patents

Trailer car lamp control system Download PDF

Info

Publication number
CN201961226U
CN201961226U CN 201120015040 CN201120015040U CN201961226U CN 201961226 U CN201961226 U CN 201961226U CN 201120015040 CN201120015040 CN 201120015040 CN 201120015040 U CN201120015040 U CN 201120015040U CN 201961226 U CN201961226 U CN 201961226U
Authority
CN
China
Prior art keywords
circuit
control module
micro controller
lin
controller system
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 - Lifetime
Application number
CN 201120015040
Other languages
Chinese (zh)
Inventor
韩琳
杨乐
周雄
李玄
Original Assignee
XI'AN KING-TRUCK ELECTRON 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 XI'AN KING-TRUCK ELECTRON Co Ltd filed Critical XI'AN KING-TRUCK ELECTRON Co Ltd
Priority to CN 201120015040 priority Critical patent/CN201961226U/en
Application granted granted Critical
Publication of CN201961226U publication Critical patent/CN201961226U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The utility model relates to a trailer car lamp control system, which improves the reliability of trailer system, and provides a great convenience for vehicle's repair and maintenance. The trailer car lamp control system comprises a main control module and an appurtenant control module, and the main control module and the appurtenant control module are connected by power line and communication line. The main control module comprises a singlechip treatment circuit, and the singlechip treatment circuit is respectively connected with a switching signal testing circuit, a power supply circuit and a communication circuit, the appurtenant control module comprises a singlechip treatment circuit, and the singlechip treatment circuit is respectively connected with a lamp driving circuit and a power supply circuit, and the power supply circuit is connected with a communication circuit, the lamp driving circuit is connected with a trailer car lamp.

Description

A kind of trailer car lamp control system
One, technical field:
The utility model relates to a kind of automotive control system, especially relates to a kind of trailer car lamp control system.
Two, background technology:
Along with the development of automotive electronic technology, the electronic control mode in the modern automobile is more and more advanced, and develops towards strong power, high reliability, safety, environmental protection and traveling comfort direction.Increasing ECU (Electrical Control Unit) is applied on the car.The application of ECU (Electrical Control Unit) in automobile is more and more, the data communication of each electric room becomes more and more, a large amount of uses of these separation modules have simultaneously also brought problems such as cost increase, fault rate rise, wiring complexity when improving vehicle riding comfort.And the safety more and more paid close attention to of people and comfortable problem, all each parts of automobile and the co-ordination between them are had higher requirement.The control of being undertaken by bussing technique has wiring simply, clear in structure, and the independence between different control modules is strong, is convenient to the advantages such as upgrading expansion of later system overhaul and system.
Nowadays, for the various medium-to-high grade family-sized car vehicles of the overwhelming majority, what control was partly used about lamp all is special control circuit, controls car light with smart power chip.And for most trailer systems, still traditional relay of its use adds the light control that wire fuse carries out.It is lower to do cost like this.But the relay volume weight is big, and the frequency of switch is low, and shake easily the contact, has serious electromagnetic interference like this, influences the safe handling of other electronic machines on the car.In addition,,, will have big electric current and pass through, burn wire fuse such as short circuit when car light breaks down.Must change the original paper that all are burnt simultaneously.Use smart power chip then not have these problems.In addition, adopt traditional relay to add the mode of wire fuse mode, all lamp lines must be controlled cloth to lamp from switch, like this, when car light in case increase a lot of the time, wiring will complexity and repair and maintenance quite bother.Cost increases simultaneously.After adopting bus mode, what car body partly needed cloth only is several connections, and all car lights all are to control nearby.Wiring complexity and wire harness cost like this, have greatly been reduced.And after the employing bus mode can also and car on other electronic unit communications.Conveniently can understand the car light state at any time by controlling machine.
Three, utility model content:
The utility model provides a kind of trailer car lamp control system in order to solve the weak point in the above-mentioned background technology, and it has improved the reliability of trailer systems, and provides a great convenience for the maintenance of vehicle and maintenance.
For achieving the above object, the technical solution adopted in the utility model is:
A kind of trailer car lamp control system, it is characterized in that: comprise the master control module and from control module, the master control module be connected with connection by power lead from control module, the master control module comprises the micro controller system treatment circuit, the micro controller system treatment circuit is connected with on-off signal testing circuit, power circuit and communicating circuit respectively, comprise the micro controller system treatment circuit from control module, the micro controller system treatment circuit is connected with power circuit with lamp drive circuit respectively, power circuit is connected with communicating circuit, and lamp drive circuit is connected with the trailer car light.
Micro controller system treatment circuit in the above-mentioned master control module adopts the ATMEG88 micro controller system.
Above-mentioned micro controller system treatment circuit from control module adopts the ATMEG88 micro controller system.
Compared with prior art, the advantage and the effect that the utlity model has are as follows:
1, in trailer taillight control, uses this system can save the wire harness cost, reduce trailer wiring complexity, like this, improved the reliability of trailer systems on the one hand, provide a great convenience for the maintenance of vehicle and maintenance on the other hand.In addition, the control method that this system is more original, electromagnetic interference want little a lot, like this, for the normal operation of vehicle other system provides the failure-free environment, have improved the safety of car load.
2, because the use of LIN bus makes car lamp control system to upgrade easily, can carry out communication with other electronic systems of vehicle where necessary in addition, better co-ordination.In today of more and more paying attention to the car load communication, this point is even more important.
Four, description of drawings:
Fig. 1 is the schematic circuit diagram of master control module in the utility model;
Fig. 2 is from the schematic circuit diagram of control module in the utility model;
Fig. 3 is the program flow diagram of the micro controller system treatment circuit in the master control module;
Fig. 4 is the LIN initialization flowchart in the communicating circuit of master control module;
Fig. 5 is timer interrupt service routine diagram of circuit in the communicating circuit of master control module;
Fig. 6 is the program flow diagram of LIN management and running in the communicating circuit of master control module;
Fig. 7 is for starting the program flow diagram of a new application of frame in the communicating circuit of master control module;
Fig. 8 is the program flow diagram of the micro controller system treatment circuit from control module;
Fig. 9 is the program flow diagram of lamp drive circuit from control module;
The program flow diagram that Figure 10 interrupts for timer;
Figure 11 is the program flow diagram of LIN management and running from the communicating circuit of control module.
Five, the specific embodiment:
The utility model trailer car lamp control system is to adopt smart power chip to drive car light, adopts the LIN bus to set up communication network.The LIN agreement is that a master is many from structure, and communication can only be initiated by the main task in the major joint, and the transmission of a complete LIN message frame realizes that by main task with from task is common main task transmission " header " sends or receive " response " from task.For guaranteeing system stability, comprise in the LIN architecture that major joint can have 16 nodes at most, and just used two nodes in the native system that this that is to say that native system will have very big extensibility.Host task is positioned at host node, is responsible for the scheduling of message and the transmission of header, and the slave task is positioned at slave node and host node, is responsible for sending, receiving response.And message frame has been formed in header and response jointly.Signal " be the element of " response "; and the operation characteristic of system and the characteristic of controlled object are depended in the definition of signal, in this car light LIN net, need the car light of control that parking light, stoplight stop lamp, registration mark light/marker lamp etc. are arranged; the form with boolean signal is controlled, and a byte gets final product.Additional in addition byte can be used for later expanded function.
In the native system, two control circuits being arranged, is respectively master control module and from control module, the master control module be connected with connection by power lead from control module.Referring to Fig. 1, the master control module comprises the micro controller system treatment circuit, and the micro controller system treatment circuit is connected with on-off signal testing circuit, power circuit and communicating circuit respectively, and the micro controller system treatment circuit in the master control module adopts the ATMEG88 micro controller system.The 24V that draws in the on-off signal testing circuit shown in Figure 1 passes to the power lead of back from control desk.For preventing voltage overshoot, added Transient Suppression Diode with protective circuit.In the power circuit, voltage regulator LM317 produces 12V voltage, supplies with LIN controller TJA1020 and low-dropout regulator SPX1117 and uses, and low-dropout regulator SPX1117 produces 5V voltage and supplies with micro controller system.In the communicating circuit, the LIN protocol controller adopts the TJA1020 of PHILIPS, and the UART of use MCU carries out the transmitting-receiving of LIN communication.In the micro controller system treatment circuit, micro controller system adopts the ATMEG88-16 micro controller system, and crystal oscillator is 8MHz.Referring to Fig. 2, comprise the micro controller system treatment circuit from control module, the micro controller system treatment circuit is connected with power circuit with lamp drive circuit respectively, and power circuit is connected with communicating circuit, lamp drive circuit is connected with the trailer car light, and the micro controller system treatment circuit from control module adopts the ATMEG88 micro controller system.In the communicating circuit shown in Figure 2, in this, same by the LIN wire joint of master board, that still use from the LIN protocol controller of control desk is TJA1020.In the power circuit, LM317 produces 12V voltage, supplies with TJA1020 and SPX1117 and uses.SPX1117 produces 5V voltage and supplies with micro controller system.In the micro controller system treatment circuit, chip is ATMEG88, and that crystal oscillator still adopts is 8M.In the lamp drive circuit, that chip for driving adopts is the BTS724G of infineon, and its load-carrying capacity is strong, and single channel can normally provide the electric current of 3.3A, and enough trailer taillights use.And have short-circuit protection and open function of short circuit detection.
Referring to Fig. 3, the various initialized work of main realization in main flow.Check after initialization is finished whether on-off signal is arranged,, be ready for sending, if not then cycle check if having then change LIN communication frames buffer zone.Program circuit is:
(1) IO mouth initialization; The clock initialization; The application of frame initialization; Bus initialization; The LIN initialization;
(2) is there there definite switch input? be then to enter next step, otherwise return;
(3) the change frame buffer data returns step (2).
Referring to Fig. 4, this is as a LIN node, and the initialization that need carry out the LIN communication in when beginning is as putting height with connection, and baud rate is initialized as 19200bps, and opens timer, and program circuit is:
(1) LIN hardware initialization;
(2) LIN baud rate initialization;
(3) LIN state initialization;
(4) timer T1 initialization: six bit timing devices overflow and interrupt enabling to use internal clock source; The timer initial value is set.
Referring to Fig. 5, in the timer flow process, call the LIN dispatching management module, carry out the relevant communication 25ms of LIN read switch state again, timing is 52us, program circuit is:
(1) beginning;
(2) timer initial value refitting;
(3) to 25 milliseconds of countings? be to enter next step; Otherwise enter step (5);
(4) read switch input byte;
(5) LIN management and running;
(6) interrupt returning.
Referring to Fig. 6, program circuit is:
(1) whether inquiry LIN current state is busy, if busy returning, otherwise would judge whether current LIN is the task completion status;
(2) if finish, whether inquiry is remote frame, if then read in data, otherwise return;
(3) if LIN does not also finish the work, whether inquiry can send, if could would send, otherwise return; If cannot send, but transmission count value (frame period time) subtracts counting for 0(), then send, otherwise return.
Referring to Fig. 7, in this flow process, carry out the maintenance of frame scheduling table, the bookbinding and the transmission of data packet.Initialization dispatch list pointer at first, the LIN state that resets, maintenance frame index counter.Judge whether to be remote frame and standard frame according to dispatch list, bind transmission then accordingly.The specific procedure flow process is:
(1) beginning;
(2) initialization dispatch list pointer; The LIN state resets;
(3) maintenance frame index counter;
(4) judging whether current scheduling table index information frame is standard frame, is to enter next step; Otherwise judging whether to be remote frame, is then to assemble remote frame, and the initialization frame counting machine is carried out remote frame and sent, otherwise enters step (6);
(5) assembling standard frame, initialization transmission counting machine carries out sending standard frame;
(6) return.
Referring to Fig. 8, in program, the IO mouth of initialization MCU successively, LIN dispatch list, timer, LIN bus state, LIN controller and interruption.The specific procedure flow process is:
(1) beginning;
(2) initialization application of frame;
(3) initialization dispatch list;
(4) initialization timing device clock;
(5) initialization IO;
(6) initialization bus;
(7) initialization LIN controller;
(8) initialization is interrupted;
(9) receiving key data handing.
Referring to Fig. 9, in this module, program is according to the data that read, the light on and off state of corresponding control lamp.The specific procedure flow process is:
(1) beginning;
(2) read the reception data;
(3) judge whether black line has electricity, have then left rear lamp bright, then not left rear lamp closes; Judge whether yellow line has electricity, have the lamp that then turns left bright, the lamp that then do not turn left closes; Judge whether red line has electricity, have that then parking light is bright, then parking light does not close; Judge whether green line has electricity, have that then registration mark light is bright, then registration mark light does not close; Judge whether gray line has electricity, have then right rear lamp bright, then not right rear lamp closes; Judge whether blue line has electricity, have that then stoplight stop lamp is bright, then stoplight stop lamp does not close.
Referring to Figure 10, what mainly finish in the interrupt service routine of slave controller is exactly reloading and calling LIN management and running program of timing value, and timing is 52us.
Referring to Figure 11, this flow process is the LIN scheduling flow of slave controller, when calling, at first to inquire about the mode of operation of current LIN bus, busy then withdraw from, be not in a hurry and then do further judgement, be divided into: data whether finish receiving, whether receive corresponding ID number, whether be data be sent completely, whether idle and receive wrong instruction these five kinds of situations altogether, judge that the laggard line correlation that finishes handles.The specific procedure flow process is:
(1) beginning;
(2) judgement is hurried to the implementation status of order, then withdraws from; Be not in a hurry, then enter next step;
(3) query State sees that whether data are sent completely, and are the LIN buses that then resets, otherwise enter next step;
(4) judge whether controller has received cooresponding ID, be then frame to be differentiated and handled, otherwise enter next step;
(5) query State sees whether data finish receiving, and is copies data then, otherwise enters next step;
(6) judging whether the free time, is the LIN bus that then resets.
The compatibility of system:
1, with the compatibility of ABS:
When being equipped with ABS on the car, native system can pass through the 7638 or 1185 interface normal supply ABS 24V of system power supplys, and ground wire is provided, and by discerning the light on and off of the information Control car light on 1185 interfaces.Like this, can make two cover systems work simultaneously and can not exert an influence.Can save wire harness significantly.
When not assembling ABS on the car, native system is by 1185 or 7638 power takings, and feed system uses.But what cost reduced like this is not obvious.But its advantage still exists, and when needing to install additional other electrical equipment exactly such as directly power taking nearby of ABS, and needn't increase, arrange wire harness again.
2, with the compatibility of other products:
This control and management system can provide the 24V power supply, can supply low-power electrical device power taking nearby on other cars, and need not rearrange wire harness again.
Owing to adopt automobile-used local area network communication, when needed,, can realize full car communication as long as each current consumer provides the corresponding interface.More valuable is to realize that this communication does not need to increase wire harness equally again.
If desired, can pass through master controller, drive liquid crystal display, the running condition of the various piece that the system that provides controls (normal operation whether, short circuit still open circuit etc.)
All device, mechanism, parts or the technology of the utility model with obvious characteristic function and effect, under the prerequisite of normal operation of the system that do not influence and effect, both can increase or reduce, also can be each other for and combination mutually, not lacked by the foregoing description to state, accompanying drawing lacks picture or shown in the restriction of concrete shape and structure.Protection of the present invention is not restricted to the described embodiments, and all any Technological improvement plans of being done on the utility model basis are all within protection scope of the present invention.

Claims (3)

1. trailer car lamp control system, it is characterized in that: comprise the master control module and from control module, the master control module be connected with connection by power lead from control module, the master control module comprises the micro controller system treatment circuit, the micro controller system treatment circuit is connected with on-off signal testing circuit, power circuit and communicating circuit respectively, comprise the micro controller system treatment circuit from control module, the micro controller system treatment circuit is connected with power circuit with lamp drive circuit respectively, power circuit is connected with communicating circuit, and lamp drive circuit is connected with the trailer car light.
2. a kind of trailer car lamp control system according to claim 1 is characterized in that: the micro controller system treatment circuit in the master control module adopts the ATMEG88 micro controller system.
3. a kind of trailer car lamp control system according to claim 1 is characterized in that: the micro controller system treatment circuit from control module adopts the ATMEG88 micro controller system.
CN 201120015040 2011-01-18 2011-01-18 Trailer car lamp control system Expired - Lifetime CN201961226U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201120015040 CN201961226U (en) 2011-01-18 2011-01-18 Trailer car lamp control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201120015040 CN201961226U (en) 2011-01-18 2011-01-18 Trailer car lamp control system

Publications (1)

Publication Number Publication Date
CN201961226U true CN201961226U (en) 2011-09-07

Family

ID=44523757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201120015040 Expired - Lifetime CN201961226U (en) 2011-01-18 2011-01-18 Trailer car lamp control system

Country Status (1)

Country Link
CN (1) CN201961226U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102101457A (en) * 2011-01-18 2011-06-22 西安正昌电子有限责任公司 Control system of trailer lamp

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102101457A (en) * 2011-01-18 2011-06-22 西安正昌电子有限责任公司 Control system of trailer lamp
CN102101457B (en) * 2011-01-18 2015-02-04 西安正昌电子有限责任公司 Control system of trailer lamp

Similar Documents

Publication Publication Date Title
CN102101457B (en) Control system of trailer lamp
CN201117091Y (en) Automobile light state feedback device based on CAN bus
CN101456391B (en) Automobile complete vehicle electronic appliance CANBUS network control method
CN101240767B (en) Information integration based passenger car starting-up control system
CN101026527A (en) CAN/CAN intelligent het bridge for automobile electronic information integrated control system
CN101456392B (en) Automobile complete vehicle electronic appliance CANBUS network control system
CN206224174U (en) The low-power dissipation system and car-mounted terminal of car-mounted terminal
CN103166821A (en) Method, device and system capable of achieving serial port communication
CN203119950U (en) Vehicle-mounted information service terminal for internet of vehicles
JP2020501479A (en) Intelligent charging communication switching device in CAN-based charging system
CN103010127A (en) Networked control system for electric vehicle
CN201961226U (en) Trailer car lamp control system
CN109951256A (en) On-board high-voltage power supply integrating device and its communication means and the new-energy automobile high voltage power supply for applying it
CN105679073A (en) LED traffic signal lamp fault feedback method
CN103400510A (en) RFID-based multi-stall wireless interactive system for electric vehicles and method thereof
CN204086878U (en) The centralized car body control module of a kind of commercial car based on CAN
CN207868816U (en) A kind of intelligent DC charger controller
CN115320621A (en) Vehicle electronic architecture for supporting software-defined vehicle and working method thereof
CN201405808Y (en) CAN bus whole vehicle controller
CN105679065A (en) Bus stop bus-taking request system and realization method thereof
CN205121915U (en) Suggestion electronic bus stop board arrives at a station
CN203616627U (en) Switch controller based on CAN bus key state configuration
CN220820489U (en) Vehicle-road cooperation vehicle-mounted intelligent interconnection device
CN205692000U (en) A kind of integrated switch controlling Automobile drive pattern
CN203496814U (en) Multifunctional auxiliary control system for automobile

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: XI'AN ZHENGCHANG ELECTRONIC CO., LTD.

Free format text: FORMER NAME: ZHENGCHANG ELECTRONIC CO., LTD., XI'AN CITY

CP03 Change of name, title or address

Address after: 710311 Shaanxi city of Xi'an province science and technology industrial base of Qinling Mountains high tech Zone Cottage Road West No. 2 technology enterprise accelerator Park 9 building 10101

Patentee after: XI'AN KING-TRUCK ELECTRON CO., LTD.

Address before: 710075 innovation building, No. 25, Gaoxin hi tech Road, Shaanxi, Xi'an N201

Patentee before: Xi'an King-Truck Electron Co., Ltd.

CX01 Expiry of patent term

Granted publication date: 20110907

CX01 Expiry of patent term