patents.google.com

CN109067629A - A kind of hardware download tool communicating more new data by LIN - Google Patents

  • ️Fri Dec 21 2018

CN109067629A - A kind of hardware download tool communicating more new data by LIN - Google Patents

A kind of hardware download tool communicating more new data by LIN Download PDF

Info

Publication number
CN109067629A
CN109067629A CN201810753790.9A CN201810753790A CN109067629A CN 109067629 A CN109067629 A CN 109067629A CN 201810753790 A CN201810753790 A CN 201810753790A CN 109067629 A CN109067629 A CN 109067629A Authority
CN
China
Prior art keywords
lin
mcu
ecu
chip
outer housing
Prior art date
2018-07-10
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.)
Pending
Application number
CN201810753790.9A
Other languages
Chinese (zh)
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.)
Jiangsu Xiehe electronic Limited by Share Ltd
Original Assignee
Nanjing Xiehe Electronic 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.)
2018-07-10
Filing date
2018-07-10
Publication date
2018-12-21
2018-07-10 Application filed by Nanjing Xiehe Electronic Technology Co Ltd filed Critical Nanjing Xiehe Electronic Technology Co Ltd
2018-07-10 Priority to CN201810753790.9A priority Critical patent/CN109067629A/en
2018-12-21 Publication of CN109067629A publication Critical patent/CN109067629A/en
Status Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40234Local Interconnect Network LIN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of hardware download tools that more new data is communicated by LIN, including outer housing, outer housing is in rectangular parallelepiped structure, outer housing side is equipped with USB interface, the other side is equipped with DB9 output interface, DB9 output interface is equipped with LIN communication port, shell intracoelomic cavity is equipped with LIN transceiver and MCU, LIN transceiver connects LIN communication port, MCU connection LIN transceiver, and MCU connects host computer by USB interface, the present invention provides a kind of tool for capableing of download online data, the tool is based on LIN communications protocol, and LIN communication only needs single line that both-way communication can be realized, save the cost, it does not need additionally to increase many costs substantially in the hardware design of ECU, it can realize the LIN communication of ECU.

Description

A kind of hardware download tool communicating more new data by LIN

Technical field

The present invention relates to data downloading technology field, specially a kind of hardware for communicating more new data by LIN downloads work Tool.

Background technique

In recent years, develop with the quick of automobile industry and toward intelligent direction, used ECU is increasingly on vehicle It is more.Since ECU does not fully take into account certain special states of vehicle during designing and developing, for example electromagnetic interference, power on arteries and veins Rush spine etc., the not found problem in engine bench test caused to occur in Full Vehicle System, must carry out at this time software upgrading with Evade these abnormal problems.The mode of traditional update ECU software is mainly the programming port that ECU is connected by programmable device, so Afterwards by the operation of computer end, data burning again is carried out.For disassembly, eaily ECU is implemented not is very tired for this Difficulty, and the time consumed will not be too many.But certain ECU for being mounted on inside vehicle, such as PTC controller, air-conditioning control Device processed, control unit of engine etc., due to its special installation site, it is desirable to by tearing vehicle open, then ECU be removed and brushed Newly, this will certainly spend very big cost of human and material resources, and automobile research plan does not also allow such case occur, may New car delay listing is caused to cause huge loss to vehicle factor to lose the plan for originally seizing the first market opportunities.It is big at present Part ECU has CAN bus communication, and more commonly used is that download online is carried out by way of CAN bus, so as to keep away Exempt to tear vehicle open, saves most of the time.But for certain ECU without CAN bus, then it can only take and traditional tear vehicle mode open It is updated.

For the ECU without CAN bus, if it is desired to data upgrading is carried out by CAN bus, then it must be in hardware design Increase the interface circuit of hardware, since CAN transceiving chip price is higher, this certainly will will cause increased costs, further have compressed The profit margin of enterprise.If to can be realized online data update again, then can may be used by not increasing CAN interface circuit Ideally to solve the problems, such as this;At present in the single-chip microcontroller of mainstream, there are SCI mouthfuls substantially, this provides certain to data downloading Convenience.LIN communication is based on serial ports, it is possible to by serial ports, give ECU more new procedures using LIN agreement.But it also needs Cooperate certain host computer tool, can realize data download function.Traditional mode utilizes Vector company The VehicleSpy tool of CANoe or IntrepidCS company carries out secondary development, to meet the needs of data downloading. But this different tool is expensive.

Summary of the invention

It is above-mentioned to solve the purpose of the present invention is to provide a kind of hardware download tool for communicating more new data by LIN The problem of being proposed in background technique.

To achieve the above object, the invention provides the following technical scheme: under a kind of hardware for communicating more new data by LIN Load tool, including outer housing, the outer housing are in rectangular parallelepiped structure, and the outer housing side is equipped with USB interface, and the other side is equipped with DB9 output interface, the DB9 output interface are equipped with LIN communication port, and the shell intracoelomic cavity is equipped with LIN transceiver and MCU, The LIN transceiver connection LIN communication port, the MCU connection LIN transceiver, and the MCU are connected upper by USB interface Machine.

Preferably, the LIN transceiver uses the chip of model TJA1027, and the end the chip RXD connects resistance B mono- End, the end SLP connect the one end resistance A, and the resistance A other end and the resistance B other end are all connected with power end, and the end the chip NC is hanging, The end TXD connects the SCI mouth of MCU, and the end VBAT of the chip connects diode cathode, and the end LIN connects DB9 output interface, described The end GND connection capacitor one end of chip is simultaneously grounded, and the capacitor other end connects the one end resistance C, and it is negative that the resistance C other end connects diode Pole.

Preferably, the MCU uses the single-chip microcontroller of model MC9S12G48.

Preferably, the outer housing uses moisture-proof dust cover body.

Compared with prior art, the beneficial effects of the present invention are:

(1) present invention provides a kind of tool for capableing of download online data, which is based on LIN communications protocol, and LIN communication is only Need single line to can be realized both-way communication, save the cost, do not need additionally to increase substantially in the hardware design of ECU it is many at This, so that it may realize the LIN communication of ECU.

(2) present invention can be greatly shortened program renewal time, traditional to tear vehicle mode open, it is few then 10 minutes, it is more then Several hours, the program that could complete an ECU update work;By the way of LIN communication, program can be completed within 2-3 minutes Upgrade job, it is simple and fast;Avoid during tearing vehicle open that there may be the risks that ECU is made a mess of or scratched.Components are being torn open When unloading, abrasion is always inevitably had, or even scratch.The more new procedures by the way of LIN communication, do not need to dismantle, just ECU can not be made a mess of or be scratched.

(3) present invention is by the way of two-way multiple check, it is ensured that the accuracy shaken hands unidirectionally is tested compared to traditional Card, can more protect data safety;The data refreshed can will be needed to be prestored in the flash of MCU, in this way in connection After ECU, program can be downloaded automatically, avoid it is manually-operated cumbersome, and can be to avoid error.

Detailed description of the invention

Fig. 1 is overall structure of the present invention;

Fig. 2 is LIN transceiver circuit schematic diagram of the present invention.

Specific embodiment

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.

The present invention provides a kind of technical solution referring to FIG. 1-2: a kind of hardware downloading communicating more new data by LIN Tool, including outer housing 1, outer housing 1 use moisture-proof dust cover body;The outer housing 1 is in rectangular parallelepiped structure, the outer housing 1 side is equipped with USB interface 2, and the other side is equipped with DB9 output interface 3, and the DB9 output interface 3 is equipped with LIN communication port, described 1 inner cavity of outer housing is equipped with LIN transceiver 4 and MCU5, and the LIN transceiver 4 connects LIN communication port, and the MCU5 connection LIN is received Device 4 is sent out, and the MCU5 connects host computer 6 by USB interface 2;MCU5 uses the single-chip microcontroller of model MC9S12G48.

In the present invention, for LIN transceiver 4 using the chip 7 of model TJA1027, the end the chip 7RXD connects resistance B2a One end, the end SLP connect the one end resistance A1a, and the resistance A1a other end and the resistance B2a other end are all connected with power end, the chip The end 7NC is hanging, and the end TXD connects the SCI mouth of MCU5, and 8 anode of the end VBAT connection diode of the chip 7, the end LIN connects DB9 Output interface 3, the end GND connection 9 one end of capacitor of the chip 7 are simultaneously grounded, and 9 other end of capacitor connects the one end resistance C3a, resistance The C3a other end connects 8 cathode of diode.

Then LIN communication port connects the serial ports SCI0 of MCU, directly by TJA1027 chip so as to pass through serial ports mould Quasi- LIN communication;By carrying out software development to MCU, SCI initialization, LIN initialization, the transmission of SCI data receiver, data are completed Equal Key Functions are write.By LIN2.0 agreement, the ID of communication, the calculating side of checksum are agreed upon with the ECU refreshed Then method carries out data transmission.Loss of data in order to prevent can be to avoid short for data receiver by the way of interrupting Loss of data is caused when receiving mass data in the time.

In actual use, need to cooperate upper computer software carry out using.Hardware refresh tool is passed through into USB connection electricity Then brain opens upper computer software on computer, whether computer can go to search automatically has available hardware to be inserted into, if searched, meeting Automatic connection.Then the baud rate of communication is set, in order to be matched with ECU, using the baud rate of 19200bit/s, the baud Rate is also more commonly used transmission rate.

The software of ECU is accidentally brushed or by artificial destruction in order to prevent, needs use to shake hands when operating the internal data of ECU Mode, and want to shake hands, it is necessary to which entering specific mode just can be with.When only shaking hands successfully, ECU data can be carried out Refresh and changes.It when ECU needs more new procedures, is filed an application by host computer tool, after obtaining the agreement of ECU, that is, enters and compile Journey mode is shaken hands by the way of two-way multiple check under programming mode, and which and previous most of ECU data refresh The method of calibration of use is had any different, previous ECU handshake authentication, is basically using one group of seed of transmission, then according to seed One group of Key is calculated, Key is issued into ECU, if the key agreement that Key and ECU oneself is calculated, success of shaking hands.Using two-way more The mode of re-examination card, is equivalent to previous verification, can be safer, and user thinks artificially to destroy data difficulty can be bigger.Specific behaviour When making, sent first by host computer after one group of random number receives this group of random number to ECU, ECU, it can be according to the calculation appointed in advance Method 1 calculates one group of data, we fix tentatively as array A, and then array A is sent to host computer by ECU, if host computer calculates Key it is identical with array A, then first round certification passes through, and host computer can reply result that the first round passes through to ECU.ECU is being received After the instruction that the first round passes through, ECU retransmits one group of random number to host computer, and then host computer is counted further according to the algorithm 2 made an appointment Calculate one group of data, we fix tentatively as array B, and then array B is sent to ECU by host computer, if the calculated key of ECU and Array B is identical, then the second wheel certification passes through.

After two-wheeled verifying all passes through, the instruction of erasing flash can be just operated, after the instruction wiped, ECU will be certainly The data of the application program part of body MCU are all wiped.Host computer is notified that after erasing, all data, which have been wiped, to be finished. After obtaining data and all wiping the instruction finished, host computer starts to send data, and testing tool receives host computer transmission After the data come, in such a way that LIN is communicated, data are sent from 9 feet of DB9, are received by ECU, while will received To data be deposited into specified address.After all data are sent, upper all data of opportunity notifications slave computer It has all sent, has been sent to ECU after slave computer receives the instruction of data end of transmission, then by this message, when ECU is received To after the message, stop storing data, starts simultaneously at the data received before verification.If verified successfully, then it represents that this time Data are updated successfully;If verification failure illustrates that this data updates failure, needs to re-download.

The present invention is by the way of two-way multiple check, it is ensured that the accuracy shaken hands, compared to traditional unidirectional authentication, more Data safety can be protected;The data refreshed can will be needed to be prestored in the flash of MCU, connect upper ECU in this way Afterwards, program can be downloaded automatically, avoid it is manually-operated cumbersome, and can be to avoid error.

The present invention can be greatly shortened program renewal time, traditional to tear vehicle mode open, it is few then 10 minutes, it is how then several Hour, the program that could complete an ECU updates work;By the way of LIN communication, program upgrading can be completed within 2-3 minutes Work, it is simple and fast;Avoid during tearing vehicle open that there may be the risks that ECU is made a mess of or scratched.Components disassembly when, Abrasion is always inevitably had, or even is scratched.The more new procedures by the way of LIN communication, do not need to dismantle, it is then not possible to ECU is made a mess of or scratched.

In conclusion the present invention provides a kind of tool for capableing of download online data, which is based on LIN communications protocol, And LIN communication only needs single line that both-way communication can be realized, save the cost does not need additional substantially in the hardware design of ECU Increase many costs, so that it may realize the LIN communication of ECU.

It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (4)

1. a kind of hardware download tool for communicating more new data by LIN, including outer housing (1), it is characterised in that: the shell Body (1) is in rectangular parallelepiped structure, and outer housing (1) side is equipped with USB interface (2), and the other side is equipped with DB9 output interface (3), institute DB9 output interface (3) are stated equipped with LIN communication port, outer housing (1) inner cavity is equipped with LIN transceiver (4) and MCU(5), institute State LIN transceiver (4) connection LIN communication port, the MCU(5) connection LIN transceiver (4), and the MCU(5) connect by USB Mouth (2) connection host computer (6).

2. a kind of hardware download tool for communicating more new data by LIN according to claim 1, it is characterised in that: institute The chip (7) that LIN transceiver (4) use model TJA1027 is stated, chip (7) end RXD connects the one end resistance B (2a), The end SLP connects the one end resistance A (1a), and resistance A (1a) other end and resistance B (2a) other end are all connected with power end, the chip (7) end NC is hanging, and the end TXD connects MCU(5) SCI mouth, the end VBAT connection diode (8) of the chip (7) is positive, the end LIN It connects DB9 output interface (3), the end GND connection capacitor (9) one end of the chip (7) is simultaneously grounded, the connection of capacitor (9) other end The one end resistance C (3a), resistance C (3a) other end connect diode (8) cathode.

3. a kind of hardware download tool for communicating more new data by LIN according to claim 1, it is characterised in that: institute State MCU(5) using the single-chip microcontroller of model MC9S12G48.

4. a kind of hardware download tool for communicating more new data by LIN according to claim 1, it is characterised in that: institute It states outer housing (1) and uses moisture-proof dust cover body.

CN201810753790.9A 2018-07-10 2018-07-10 A kind of hardware download tool communicating more new data by LIN Pending CN109067629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810753790.9A CN109067629A (en) 2018-07-10 2018-07-10 A kind of hardware download tool communicating more new data by LIN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810753790.9A CN109067629A (en) 2018-07-10 2018-07-10 A kind of hardware download tool communicating more new data by LIN

Publications (1)

Publication Number Publication Date
CN109067629A true CN109067629A (en) 2018-12-21

Family

ID=64815813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810753790.9A Pending CN109067629A (en) 2018-07-10 2018-07-10 A kind of hardware download tool communicating more new data by LIN

Country Status (1)

Country Link
CN (1) CN109067629A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039808A (en) * 2021-11-08 2022-02-11 深圳驰越科技有限公司 CAN-based multi-channel CAN/LIN/SENT forwarding protocol

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201152942Y (en) * 2008-02-02 2008-11-19 联创汽车电子有限公司 Automobile failure diagnosis instrument
CN202110528U (en) * 2010-12-28 2012-01-11 重庆恩菲斯软件有限公司 ECU (electrical conversion unit) embedded type software refreshing and downloading programming system
CN104298231A (en) * 2014-10-29 2015-01-21 中国重汽集团济南动力有限公司 Diagnostic equipment for multiple controllers of vehicle
CN106991065A (en) * 2017-03-31 2017-07-28 东莞博力威电池有限公司 Method for communicating with equipment with CAN and/or LIN bus through USB upper computer
CN107065818A (en) * 2016-12-28 2017-08-18 海特汽车科技(苏州)有限公司 A kind of EPS controllers diagnostic equipment
CN107391215A (en) * 2017-09-25 2017-11-24 南京科拓软件科技有限公司 The system that a kind of ECU embedded softwares refresh and download programming
CN108170443A (en) * 2016-12-06 2018-06-15 上汽通用汽车有限公司 Vehicle-mounted LIN buses part software refreshing system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201152942Y (en) * 2008-02-02 2008-11-19 联创汽车电子有限公司 Automobile failure diagnosis instrument
CN202110528U (en) * 2010-12-28 2012-01-11 重庆恩菲斯软件有限公司 ECU (electrical conversion unit) embedded type software refreshing and downloading programming system
CN104298231A (en) * 2014-10-29 2015-01-21 中国重汽集团济南动力有限公司 Diagnostic equipment for multiple controllers of vehicle
CN108170443A (en) * 2016-12-06 2018-06-15 上汽通用汽车有限公司 Vehicle-mounted LIN buses part software refreshing system and method
CN107065818A (en) * 2016-12-28 2017-08-18 海特汽车科技(苏州)有限公司 A kind of EPS controllers diagnostic equipment
CN106991065A (en) * 2017-03-31 2017-07-28 东莞博力威电池有限公司 Method for communicating with equipment with CAN and/or LIN bus through USB upper computer
CN107391215A (en) * 2017-09-25 2017-11-24 南京科拓软件科技有限公司 The system that a kind of ECU embedded softwares refresh and download programming

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039808A (en) * 2021-11-08 2022-02-11 深圳驰越科技有限公司 CAN-based multi-channel CAN/LIN/SENT forwarding protocol

Similar Documents

Publication Publication Date Title
CN110032382A (en) 2019-07-19 A kind of vehicle electronic control unit upgrade method, system and terminal device
US7778750B2 (en) 2010-08-17 Vehicle communications network adapter
CN104915237B (en) 2019-02-15 Upgrading, upgrade control method and the equipment of bluetooth equipment firmware program
CN106471789A (en) 2017-03-01 The methods, devices and systems of adapter upgrade
US20030167345A1 (en) 2003-09-04 Communications bridge between a vehicle information network and a remote system
US20130031540A1 (en) 2013-01-31 Method and Apparatus for Automatic Module Upgrade
CN108491224A (en) 2018-09-04 A kind of vehicle-mounted Oftware updating method and system
CN113010200A (en) 2021-06-22 Flash method, flash system, flash device and server
ES2725684T3 (en) 2019-09-26 Tire pressure monitoring sensor
CN108037943B (en) 2021-11-09 FPGA (field programmable Gate array) online upgrading method based on NIOS II
CN103970565A (en) 2014-08-06 Method for implementing FPGA multi-path downloading configuration in server system
JP3981183B2 (en) 2007-09-26 Apparatus and method for automatically providing jet engine thrust rating data to an aircraft avionics system
CN110114761A (en) 2019-08-09 Software renewing apparatus and software update system
CN105372619B (en) 2019-01-22 A kind of safety chip power failure test equipment
CN103257869B (en) 2016-08-24 A kind of ECU program smart download method
CN108667857A (en) 2018-10-16 A kind of security strategy maintaining method and system, server-side, client
CN109067629A (en) 2018-12-21 A kind of hardware download tool communicating more new data by LIN
CN104199707A (en) 2014-12-10 System and method for upgrading FPGAs
CN206946466U (en) 2018-01-30 The upgrading of Intelligent mobile equipment or rebuilt component
TW201826130A (en) 2018-07-16 Mobile device external controller module
CN110377297A (en) 2019-10-25 A kind of image file curing system, method, apparatus and relevant device
CN109774670A (en) 2019-05-21 A kind of car inspection and repair method, system and relevant device
CN116560688B (en) 2024-07-12 Software updating method for domain controller
US11928458B2 (en) 2024-03-12 Method for updating a digital system
CN103264668B (en) 2016-08-17 Car body controller and use programming system and the method for burn-recording of this car body controller

Legal Events

Date Code Title Description
2018-12-21 PB01 Publication
2018-12-21 PB01 Publication
2019-01-15 SE01 Entry into force of request for substantive examination
2019-01-15 SE01 Entry into force of request for substantive examination
2019-03-19 TA01 Transfer of patent application right
2019-03-19 TA01 Transfer of patent application right

Effective date of registration: 20190228

Address after: 210012 South 11th Floor, C1, Kechuang City, 88 Dazhou Road, Yuhuatai District, Nanjing, Jiangsu Province

Applicant after: Nanjing Xiehe Electronic Technology Co., Ltd.

Applicant after: Jiangsu Xiehe electronic Limited by Share Ltd

Address before: Room 1115-1128, No. 30 Fengzhan Road, Yuhuatai District, Nanjing City, Jiangsu Province

Applicant before: Nanjing Xiehe Electronic Technology Co., Ltd.

2021-05-11 WD01 Invention patent application deemed withdrawn after publication
2021-05-11 WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181221