1. Trang chủ
  2. » Tất cả

Thiết kế, chế tạo máy chuẩn đoán ôtô thông qua mạng can

111 412 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 111
Dung lượng 7,98 MB

Nội dung

Nghiên cu thit k, ch to máy chmng CAN   iv HVTH : KS NGUYNGC  ,                ,                ,           ,            ,        ,        ,            .làm cho vic kim soát các h thng trên                                      và va có th giám sát các h thn t i cp thit.                                . T ,             nên ph thu        .                                              .        ,                     sau: 1.                  CAN. 2.                -2  -2. 3.    24HJ64GP506A,             ,      . 4.                                        3133. Kt qu   t         CAN, qua th nghi   ng trên xe Honda Civic  c    ,                  , kt c gin gn nh.     c sn xu        Nghiên cu thit k, ch to máy chmng CAN   v HVTH : KS NGUYNGC ABSTRACT Today, automotive technology have developed dramatically, Many systems on modern cars are equipped with eletronic control modules such as : electronic fuel injection, electronic ignition, automatical air conditioning, ABS brake, electronic suspension, automatic emission control, etc. These innovations make automobile control become more and more complicated, so that the demand of a common system which can both control the quality of harmful gases emission as well as monitor all other electronic and mechanical system on automobile is an imperative requirement.CAN system is produced to response the former requirements and soon be an indispensable part in  high-priced dedicated devices and softwares. For manufacturing automotive diagnostic divice via CAN with cheaper cost for using in automotive service stations and vocational schools, the thesis issued following content: 1. Theoretical research on CAN and data communication in the CAN systems. 2. Research method of the data encryption standards OBD-2 and communication standards OBD -2. 3. Using microchip PIC24HJ64GP506A, LCD and electronic units, which are easy found in Vietnam market to design and produce electronic board of the tester. Programming and Load data for the device. 4. To carry out diagnosis experiments on the Honda Civic series with the manufactured tester and make comparison with the results with Inova 3133 diagnostic equipment. The thesis result is successfully manufacturing automotive diagnostic divice via CAN system with robust design and simply structure. During test time, the device has operated propertly in Honda Civic as technical requirements; the detected fault codes from the device are completely satisfy manufacturers and ISO standards.The result of the thesis is a scientific foundation for producing automotive diagnostic equipments in the future. Nghiên cu thit k, ch to máy chmng CAN   vi HVTH : KS NGUYNGC MC LC Trang ta Trang  Lý lch cá nhân i L ii Cm t iii Tóm tt iv Mc lc vi Danh sách các ch vit tt x Danh sách các hình xi Danh sách các bng xii  TNG QUAN 1.1. Tng quan chung v c nghiên cu, các kt qu nghiên cu trong và  1 1.1.1. Tng quan chung v c nghiên cu 1 1.1.2. Các kt qu nghiên c 2 1.1.2.1. Tình hình nghiên cc 2 1.1.2.2Tình hình nghiên cc 6 1.2. Mc tiêu c tài 8 1.3.Nhim v c tài và gii h tài 8 u 8 1.5.K hoch thc hin 9  LÝ THUYT 2.1. Khái quát v chun giao thc CAN ················································ 10 2.1.1 Gii thiu v mng CAN ·························································· 10 2.1.2 Khái quát v giao thc CAN ······················································ 11 2.2. Lp vt lý ·············································································· 14 2.2.1 Non return zero ······································································ 14 2.2.2 Bit Stuffing ·········································································· 15 Nghiên cu thit k, ch to máy chmng CAN   vii HVTH : KS NGUYNGC 2.2.3 Bit Timing ··········································································· 15 2.3.  dài ca mt Bus ·································································· 16 2.4. Trng t ··········································· 17 2.5. Gii quyt tranh chp trên Bus ····················································· 18 2.6. CAN frame ············································································ 19 2.7. Các segment khác nhau ······························································ 25 2.8. Khong thi gian khác nhau ca các Segment và Time Quantum ············· 25 2.9. S ng b xung clock ······························································ 27 2.9.1. SJW ················································································· 27 2.9.2. Li pha ··············································································· 27  ng b ···································································· 29 2.9.4. Truyn nhn message ······························································ 30 2.9.5. X lý li ············································································· 30 2.10. ng dng mng CAN trên xe ···················································· 32 2.10.1. Nhng hn ch cy in ···················································· 32 ng truyn d liu a hp ···················································· 34 2.10.3. S  mng CAN trên xe Honda Civic ········································ 37 2.10.4. S  mng CAN trên xe Toyota Vios 2007 ································· 39 2.10.5. S  mng CAN trên xe Toyota Yaris 2007 ································· 40  :CÁC PHNG PHÁP MÃ HÓA D LIU CHOÁN OBD-2 VÀ CÁC CHU GIAO TI OBD-2 3.1. Gii thiu v OBD -2 PIDs ························································· 41 3.2. Các ch  hot ng ································································ 41 3.3. Bng mã PIDs ········································································· 42 3.3.1.Bng mã PIDs và cách gii mã ···················································· 42 3.3.2. Cách gii mã các c bit ·················································· 55 3.3.2.1. Ch  1  PID01 ································································ 55 3.3.2.2. Ch  1  PID03 ································································ 56 3.3.2.3. Ch  1  PID12 ································································ 57 Nghiên cu thit k, ch to máy chmng CAN   viii HVTH : KS NGUYNGC 3.3.2.4Ch  1  PID 1C ································································ 57 3.3.2.5. Ch 1 PID41 ··································································· 58 3.3.2.6. Ch  3 ··········································································· 59 3.4. Qúa trình truyn d liu s dng CAN 11 bit ···································· 61 3.4.1. Qúa trình truyn d liu ·························································· 62 3.4.2.Qúa trình nhn d liu ······························································ 62 3.5. Các chun giao tip OBD -2 ······················································· 62 3.5.1. Gic choán OBD -2 ···························································· 63 3.5.2. Mã li ················································································ 64 3.5.3. Các chun giao tip OBD -2 ······················································ 65 3.5.3.1. Giao thc ISO 9141-2 ··························································· 65 3.5.2.2. Giao thc SAE J1850 VPW ···················································· 67 3.5.2.3 Giao thc SAE J1850 PWM ···················································· 67 3.5.2.4 Giao thc ISO 14230 KWP2000 ··············································· 69 3.5.2.5 Giao thc ISO 15765 CAN ······················································ 70 THIT K, CH TO MÁY CH QUA MNG CAN 4.1. Tng quan v dòng PIC24HJ64GP506A ·········································· 71 m chính ································································· 71 4.1.2 Tóm tt các dòng PIC24H ························································· 73 4.1.3 Ki ······································································· 74 4.2. Module CAN trong PIC24HJ64GP506A ········································· 74 4.2.1. Tng quan module CAN ·························································· 74 4.2.2. Các dng Frame truyn ···························································· 75 4.2.3 Các ch  hong ······························································· 75 4.2.3.1 Ch  Initialization ······························································ 75 4.2.3.2 Ch  Disable ···································································· 76 4.2.3.3.Ch  Normal ···································································· 76 4.2.3.4.Ch  Loopback ································································ 76 Nghiên cu thit k, ch to máy chmng CAN   ix HVTH : KS NGUYNGC 4.3. Thit k các mn ca máy ·········································· 77 4.3.1. Mch ngun ········································································ 77 4.3.2. Mch MCU ·········································································· 77 4.3.3. Mch Vehicle interface ··························································· 79 4.3.4. Mch LCD Interface ······························································ 80 4.4. Ch to máy chng CAN ····························· 82 4.4.1 S mch in lp trên và v trí linh kin ········································ 82 4.4.2. S mch in li ·························································· 83 4.4.3. Máy chng CAN ····································· 84 4.4.4. L thut toán ································································ 85  THC NGHIM MÁY CHUTRÊN XE ng dn s dng máy ch ········································ 86 5.1.1. Cu to máy ch ····················································· 86 5.1.2. Ch ················································· 87 5.1.3. An toànkhi s dng máy ·························································· 87 5.2. Thc nghim cha xe Honda Civic ····································· 88 5.2.1. Kt ni máy chi xe ··················································· 88 5.2.2. Vn hành ch ······························································· 89 5.2.2.1         nhit  không khítrên xe Honda Civic ·········· 91 5.2.2.2       m bin MAF ··················································· 91 5.2.2.3. Xóa mã li ········································································ 92 5.t qu thc nghim ···················································· 92 5.2.3.1 nh giá kt qu chn oán mã li trên xe ···································· 92  thí nghim máy ch ·············································· 93 5.2.3.3 nh giá kt qu thc nghim bng máy ch·········· 94 KT LUN - NG PHÁT TRIN C TÀI 6.1. Kt lun ··············································································· 96 6.2. Mt s  ngh ········································································ 97 6.3 ng phát trin c tài ·························································· 97 TÀI LIU THAM KHO ······························································ 98 Nghiên cu thit k, ch to máy chmng CAN   x HVTH : KS NGUYNGC  CAN Controller Area Network DTC Diagnostic Trouble Codes ECMElectronic Control Module ECU Electronic Control Unit ISO International Standard Organization OBD On-Board Diagnostic EOBDEuropean On Board Diagnostics HDOBD Heavy Duty On-Board Diagnostic CPU Central Proceeing Unit LLC Logical Link Control MAC Medium Access Control PWM-Pulse-Width Modulation ALU Arithmetic Logical Unit NRZ None Return to Zero NMT Network Mangement VPW Variable Pulse Width PWM Pulse Width Mdulation KWP Keyword Protocol SOF Start Of Frame DMA Direct Memory Access DLC Diagnostic Link Connector LCD Liquid Crystal Display CRC Cyclic Redundancy Code PSW Program Status Word SAE Society of Automotive Engineers Nghiên cu thit k, ch to máy chmng CAN   xi HVTH : KS NGUYNGC   TRANG Baûng 1.1: B nh nh thi h MSC-51 ·················································· 3 Bng 1.2 : k hoch và thi gian thc hin··············································· 9 Bng 2.1: Vn tc   dài  Bit time ·················································· 16 Bng 2.2: So sánh CAN low speed và CAN high speed ····························· 17 Bng 2.3: Thi gian ca mi segment ·················································· 26 B ng b ································································ 29 Bng 3.1: Các ch  hong ························································· 41 Bng 3.2: Bng mã PIDs và cách gii mã ·············································· 54 Bng 3.3: Mã hóa Ch  1- PID01 ···················································· 55 Bng 3.4: Cách mã hóa quá trình kim tra ············································ 55 Bng 3.5: Mã hóa Byte C và D   ······································· 56 Bng 3.6: Mã hóa Byte C và D  u ········································ 56 Bng 3.7: Mã hóa Ch  1 PID03 ···················································· 57 Bng 3.8: Mã hóa Ch  1 PID12 ···················································· 57 Bng 3.9: Mã hóa Ch  1 PID1C ···················································· 58 Bng 3.10: Mã hóa Ch  1 PID41 ··················································· 59 Bng 3.11: Mã hóa Ch  c DTCs bit A7,A6 ·································· 59 Bng 3.12: Mã hóa Ch  c DTCs bit A5,A4 ·································· 59 Bng 3.13: Mã hóa Ch  c DTCs bit A3,A2,A1,A0 ························· 60 Bng 3.14: Mã hóa loi nhiên liu······················································· 61 Bng 3.15: Chn ······························ 62 Bng 3.16: Chn ································· 62 Bng 4.1: Các dòng PIC24H trên th ng ··········································· 73 Nghiên cu thit k, ch to máy chmng CAN   xii HVTH : KS NGUYNGC DANH SÁCH CÁC HÌNH HÌNH TRANG Hình 1.1:  chânAT89C51 ··························································· 4 Hình 1.2: S chân vu khinAT89S52 ··········································· 6 Hình 2.1: Tính nh ca CAN ······················································· 11 Hình 2.2: Ví d v mng CAN ·························································· 12 Hình 2.3: Mt nút mng CAN ··························································· 12 Hình 2.4: Mô hình mng CAN ·························································· 13 Hình 2.5: Các lp layer giao tip ························································ 14 Hình 2.6: NRZ method ··································································· 15 Hình 2.7: K thut Bit Stuffing ························································· 15 Hình 2.8: Gi thi gian ······························································ 15 Hình 2.9: T t l nghch v dài Bus ·········································· 16 Hình 2.10: n áp ca CAN low speed ··············································· 17 Hình 2.11: n áp ca CAN high speed ·············································· 18 Hình 2.12: S kháng nhiu vi ng cn t ······························ 18 Hình 2.13: Gii quyt tranh chp trên Bus ············································ 19 Hình 2.14: Khung truyn ································································· 20 Hình 2.15 : CRC field ···································································· 20 Hình 2.16: Khung truyn d liu CAN················································· 21 Hình 2.17: CAN standard frame ························································ 22 Hình 2.18: CAN Extended frame ······················································· 22 Hình 2.19: CAN remote frame ·························································· 23 Hình 2.20: CAN error frame····························································· 23 Hình 2.21i gian cho 1 bit ·································· 24 Hình 2.22: Mc cu to bi 4 segments ····································· 24 Hình 2.23: Cu trúc ca Time Quantum ··············································· 25 Hình 2.24: S ng Time Quanta có th cho mi segment ························ 26 Nghiên cu thit k, ch to máy chmng CAN   xiii HVTH : KS NGUYNGC Hình 2.25: V ng b ······························································ 27 Hình 2.26: Chui dch chuy dài Segment ca Nominal Bit Time ··········· 28 Hình 2.27 khi b nhn CAN message ········································ 30 Hình 2.28:  khi b truyn CAN message ······································ 30 Hình 2.29: Các loi li khác nhau······················································· 31 Hình 2.30. Mô t ng truyp················································· 33 Hình 2.31. Mô hình mng CAN trên xe ················································ 35 Hình 2.32. Mng giao tip CAN vi ECU trên xe ···································· 36 Hình 2.33: Mng giao tip CAN vi ECU trên xe Volvo ··························· 36 Hình 2.34 mng CAN trên xe Honda Civic 2007 ··························· 37 Hình 2.35 mng CAN trên xe Vios 2007 ······································ 39 Hình 2.36 mng CAN trên xe Toyota Yaris 2007···························· 40 Hình 3.1. Gic ch 2 ····················································· 63 Hình 3.2: Hình 3.2:  trong mt mã li ····························· 64 Hình 3.3:  khi chun giao tip ISO 9141 ······································ 66 Hình 3.4:Dng sóng ca giao thc ISO 9141-2 ······································· 66 Hình 3.5: khi chun giao tip SAE J1850 VPW ····························· 67 Hình 3.6: Dng sóng ca giao thc SAE J1850 VPW ······························· 67 Hình 3.7: khi chun giao tip SAE J1850 PWM ····························· 67 Hình 3.8: Dng sóng ca giao thc SAE J1850 PWM ······························· 67 Hình 3.9: khi chun giao tip ISO 14320 KWP2000 ························ 69 Hình 3.10:Dng sóng ca giao thc KWP2000 ······································· 69 Hình 3.11:  khi chun giao tip ISO 15765 CAN ···························· 70 Hình 3.12: Dng sóng ca giao thc ISO 15765 CAN ······························· 70 Hình 4.1:  u 64-Pin TQFP ·········································· 74 Hình 4.2:  khi module CAN ····················································· 75 Hình 4.3 mch ngun cp 5V và 3.3V ········································· 77 Hình 4.4: Mch MCU s dng PIC24HJ64GP506A ································· 78 Hình 4.5: Mch Vehicle Interface ······················································ 79 [...]... NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN - Thực nghiệm trên máy chẩn đốn 3133 để xác định các thơng số mã lỗi động cơ có chuẩn giao tiếp CAN trên xe Honda Civic để làm cơ sở chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN - Nghiên cứu thiết kế chế tạo máy chẩn đốn ơtơ thơng qua mạng CAN Thực nghiệm xuất mã lỗi động cơ và đánh giá kết quả hoạt đơ ̣ng của máy 1.4 Ph ng pháp... layer và MAACsub layer của các chuẩn này là CAN 2.1.2 Khái qt v giao thức CAN Chuẩn đầu tiên của CAN là chuẩn ISO 11898-2 định nghĩa các tính chất của CAN High Speed Một ví dụ về mạng CAN trong thực tế: GVHD: PGS_TS ĐÕ VĂN DŨNG 11 HVTH: KS NGUYỄN VĂN NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN Hình 2.2: Ví dụ về mạng CAN Cơng nghệ cáp của mạng CAN có đường dây dẫn đơn giản,... đáp ứng của từng thơng điệp Ý nghĩa quan trọng trong việc thiết kế hệ thống nhúng thời gian thực Trước khi có mạng CAN, lựa chọn duy nhất cho mạng giao tiếp trong hệ thống thời gian thực là mạng Token Ring chậm chạp Hình 2.4: Mơ hình mạng CAN GVHD: PGS_TS ĐÕ VĂN DŨNG 13 HVTH: KS NGUYỄN VĂN NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN Tiêu chuẩn ISO 11898 định nghĩa hai lớp... NGUYỄN VĂN NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN Việc thực hiện chuẩn CAN trở nên cực kì đơn giản nhờ sự hỗ trợ của các nhà sản xuất chip đó Điểm nổi trội nhất ở chuẩn CAN là tính ổn định và an tồn (reliability and safety) Nhờ cơ chế phát hiện và xử lý lỗi cực mạnh, lỗi CAN messages hầu như được phát hiện Theo thống kê, xác suất để một message của CAN bị lỗi khơng được phát... NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN CHƯƠNG 2 CƠ S LÝ THUY T V M NG CAN 2.1 Khái qt v chu n giao thức CAN : 2.1.1 Gi i thi u v m ng CAN Controller Area Network (CAN) là giao thức giao tiếp nối tiếp hỗ trợ mạnh cho những hệ thống điều khiển thời gian thực phân bố (Distributed Realtime Control System) với độ ổn định, bảo mật và chống nhiễu cực tốt CAN lần đầu tiên được... thuyết vi xử ly 2 Tháng 04/2013 - Nghiên cưu cơ sở ly thut ma ̣ng CAN va cac ch̉ n giao tiêp OBD -2 GVHD: PGS_TS ĐÕ VĂN DŨNG 9 HVTH: KS NGUYỄN VĂN NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN 3 Tháng 05/2013 4 Tháng 07/2013 5 Tháng 8,9/2013 - Thiết kế board mạch va chê ta ̣o máy chẩn đốn ơ tơ thơng qua ma ̣ng CAN - Nghiên cưu lập trình va na ̣p dữ liê ̣u cho may - Thử nghiệm,... sennsor, PLC communication, thiếtbị y tế… Ngày nay, CAN đã có vị trí chiếm lĩnh trong ngành cơng nghiệp ơ tơ Trong những chiếc xe đời mới thường có một mạng CAN high speed để điều khiển động cơ và phanh…một mạng CAN low speed dùng để điều khiển những thiết bị khác như kiếng chiếu hậu, đèn… Chuẩn Field Bus Divice net, CAN open, J1939 thường dùng trong cơng nghiệp chính là chuẩn CAN mở rộng với Physixcal...Nghiên cứu thiết kế, chế tạo máy chẩn đốn ơ tơ tểơng Ọua mạng CAN Hình 4.6:Sơ đồ mạch LCD Interface ··················································· 81 Hình 4.7:Sơ đồ mạch in lớp trên và vị trí linh kiện··································· 82 Hình 4.8:Sơ đồ mạch in lớp dưới ······················································· 83 Hình 4.9: Máy chẩn đốn ơ tơ thơng qua mạng CAN ································... điệp Mỗi loại thơng điệp trong mạng CAN được gán cho một ID – số định danh – tùy theo mức độ ưu tiên của thơng điệp đó Hình 2.3: Một nút mạng CAN GVHD: PGS_TS ĐÕ VĂN DŨNG 12 HVTH: KS NGUYỄN VĂN NGỌC Nghiên cứu, thiết kế chế tạo máy chẩn đốn ơ tơ thơng qua mạng CAN Mạng CAN thuộc loại Message Base System, khác với Address Base System, mỗi loại thơng điệp được gán một ID Những hệ thống Address Base System... cơng nghệ cao để có được sự chủ động trong sản xuất đang được các cơ sở sản xuất quan tâm hàng đầu Vì thế Thầy PGS_TS Đ VĔN DǛNG nhận thấy được sự cần thiết của cơng nghệ chế tạo, thiết kế và lập trình vi điều khiển Thầy đã đề xuất và hướng dẫn các đề tài mang tính chất thiết kế, chế tạo và ứng dụng cao như:  Nghiên cứu, chế tạo mạch đánh lửa trên động cơ ô tô theo chương trình – KS Nguyễn Văn Long Giang . ········································································ 95 Nghiên cứu, thiết kế chế tạo máy chẩn đoán ô tô thông qua mạng CAN  1 HVTH: KS NGUYC CH 1 TOÅNG QUAN 1.1.  . cứu, thiết kế chế tạo máy chẩn đoán ô tô thông qua mạng CAN  4 HVTH: KS NGUYC ° Gii thiu AT89C52: Hình 1.1: chân AT89C51 Nghiêncu ch to máy. AT89S52 gm các khi: - CPU ( Central Processing Unit): Nghiên cứu, thiết kế chế tạo máy chẩn đoán ô tô thông qua mạng CAN  5 HVTH: KS NGUYC A.

Ngày đăng: 18/11/2020, 14:00

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN