{"id":38864,"date":"2023-10-01T18:49:06","date_gmt":"2023-10-01T10:49:06","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=38864"},"modified":"2023-10-01T18:49:06","modified_gmt":"2023-10-01T10:49:06","slug":"czxdtxyl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/38864.html","title":{"rendered":"CAN\u603b\u7ebf\u7684\u901a\u4fe1\u539f\u7406"},"content":{"rendered":"

  CAN\u603b\u7ebf\uff08Controller Area Network\uff09\u662f\u4e00\u79cd\u73b0\u4ee3\u6c7d\u8f66\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u5c06\u6c7d\u8f66\u4e2d\u7684\u5404\u4e2a\u7cfb\u7edf\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u4f7f\u6c7d\u8f66\u7684\u63a7\u5236\u548c\u4fe1\u606f\u4f20\u8f93\u66f4\u52a0\u9ad8\u6548\u3002\u672c\u6587\u5c06\u4ecb\u7ecdCAN\u603b\u7ebf\u7684\u901a\u4fe1\u539f\u7406\uff0c\u5305\u62ecCAN\u603b\u7ebf\u7684\u7269\u7406\u5c42\u3001\u6570\u636e\u94fe\u8def\u5c42\u53ca\u5e94\u7528\u5c42\u7684\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n

\u7269\u7406\u5c42<\/h2>\n

  CAN\u603b\u7ebf\u7684\u7269\u7406\u5c42\u662fCAN\u603b\u7ebf\u7684\u6700\u5e95\u5c42\uff0c\u5b83\u5b9a\u4e49\u4e86CAN\u603b\u7ebf\u7684\u7269\u7406\u5c5e\u6027\uff0c\u5982\u4fe1\u53f7\u7684\u4f20\u8f93\u548c\u63a5\u6536\uff0c\u786c\u4ef6\u7684\u7535\u6c14\u7279\u6027\u7b49\u3002CAN\u603b\u7ebf\u7684\u7269\u7406\u5c42\u91c7\u7528\u4e86\u53cc\u7ede\u7ebf\u4f5c\u4e3a\u4f20\u8f93\u4ecb\u8d28\uff0c\u5206\u522b\u4e3aCAN_H\uff08\u9ad8\u7535\u5e73\u6709\u6548\u7ebf\uff09\u548cCAN_L\uff08\u4f4e\u7535\u5e73\u6709\u6548\u7ebf\uff09\u3002CAN_H\u548cCAN_L\u4e4b\u95f4\u7684\u7535\u538b\u5dee\u4e3a5V\uff0c\u5f53CAN_H\u7684\u7535\u538b\u9ad8\u4e8eCAN_L\u7684\u7535\u538b\u65f6\uff0c\u8868\u793a\u4f20\u8f93\u7684\u662f\u201c1\u201d\uff1b\u5f53CAN_H\u7684\u7535\u538b\u4f4e\u4e8eCAN_L\u7684\u7535\u538b\u65f6\uff0c\u8868\u793a\u4f20\u8f93\u7684\u662f\u201c0\u201d\u3002<\/p>\n

  \u4fe1\u53f7\u4f20\u8f93<\/h3>\n

  CAN\u603b\u7ebf\u7684\u4fe1\u53f7\u4f20\u8f93\u91c7\u7528\u4e86\u975e\u6325\u53d1\u6027\u4f20\u8f93\u6280\u672f\uff0c\u53d1\u9001\u7aef\u53ea\u9700\u8981\u628a\u4fe1\u53f7\u4f20\u8f93\u5230CAN\u603b\u7ebf\u4e0a\uff0c\u63a5\u6536\u7aef\u5c31\u80fd\u6536\u5230\u4fe1\u53f7\uff0c\u65e0\u9700\u7ef4\u6301\u4fe1\u53f7\u7684\u4f20\u8f93\u3002\u5728CAN\u603b\u7ebf\u4e0a\u4f20\u8f93\u7684\u4fe1\u53f7\u662f\u201c\u7a7f\u63d2\u201d\u7684\uff0c\u5373\u4e00\u4e2a\u8282\u70b9\u53d1\u9001\u7684\u4fe1\u53f7\u4f1a\u5f71\u54cd\u53e6\u4e00\u4e2a\u8282\u70b9\u63a5\u6536\u7684\u4fe1\u53f7\u3002<\/p>\n

  \u786c\u4ef6\u7535\u6c14\u7279\u6027<\/h3>\n

  CAN\u603b\u7ebf\u7684\u786c\u4ef6\u7535\u6c14\u7279\u6027\u5305\u62ec\uff1a\u4fe1\u53f7\u7684\u6709\u6548\u7535\u538b\u8303\u56f4\u3001\u4fe1\u53f7\u7684\u4f20\u8f93\u901f\u7387\u3001\u4fe1\u53f7\u7684\u4f20\u8f93\u8ddd\u79bb\u7b49\u3002CAN\u603b\u7ebf\u7684\u6709\u6548\u7535\u538b\u8303\u56f4\u4e3a2V-5V\uff0c\u4f20\u8f93\u901f\u7387\u53ef\u8fbe1Mb\/s\uff0c\u4f20\u8f93\u8ddd\u79bb\u53ef\u8fbe40m\u3002<\/p>\n

\u6570\u636e\u94fe\u8def\u5c42<\/h2>\n

  CAN\u603b\u7ebf\u7684\u6570\u636e\u94fe\u8def\u5c42\u63d0\u4f9b\u4e86\u4e00\u79cd\u673a\u5236\uff0c\u53ef\u4ee5\u786e\u4fddCAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u4f20\u8f93\u53ef\u9760\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u5982CSMA\/CA\u3001CSMA\/CD\u7b49\u3002<\/p>\n

  CSMA\/CA\u534f\u8bae<\/h3>\n

  CSMA\/CA\uff08Carrier Sense Multiple Access with Collision Avoidance\uff09\u534f\u8bae\u662fCAN\u603b\u7ebf\u4e0a\u6700\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u91c7\u7528\u4e86\u65e0\u78b0\u649e\u7684\u65b9\u5f0f\u6765\u786e\u4fddCAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u4f20\u8f93\u53ef\u9760\u3002\u5728CSMA\/CA\u534f\u8bae\u4e2d\uff0c\u53d1\u9001\u7aef\u4f1a\u5148\u68c0\u6d4bCAN\u603b\u7ebf\u4e0a\u662f\u5426\u6709\u5176\u4ed6\u8282\u70b9\u6b63\u5728\u53d1\u9001\u6570\u636e\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u5219\u53d1\u9001\u7aef\u53ef\u4ee5\u5f00\u59cb\u53d1\u9001\u6570\u636e\uff1b\u5982\u679c\u6709\uff0c\u5219\u53d1\u9001\u7aef\u4f1a\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u76f4\u5230CAN\u603b\u7ebf\u4e0a\u6ca1\u6709\u5176\u4ed6\u8282\u70b9\u53d1\u9001\u6570\u636e\u4e3a\u6b62\uff0c\u518d\u5f00\u59cb\u53d1\u9001\u6570\u636e\u3002<\/p>\n

  CSMA\/CD\u534f\u8bae<\/h3>\n

  CSMA\/CD\uff08Carrier Sense Multiple Access with Collision Detection\uff09\u534f\u8bae\u4e5f\u662fCAN\u603b\u7ebf\u4e0a\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u91c7\u7528\u4e86\u78b0\u649e\u68c0\u6d4b\u7684\u65b9\u5f0f\u6765\u786e\u4fddCAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u4f20\u8f93\u53ef\u9760\u3002\u5728CSMA\/CD\u534f\u8bae\u4e2d\uff0c\u53d1\u9001\u7aef\u4f1a\u5148\u68c0\u6d4bCAN\u603b\u7ebf\u4e0a\u662f\u5426\u6709\u5176\u4ed6\u8282\u70b9\u6b63\u5728\u53d1\u9001\u6570\u636e\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u5219\u53d1\u9001\u7aef\u53ef\u4ee5\u5f00\u59cb\u53d1\u9001\u6570\u636e\uff1b\u5982\u679c\u6709\uff0c\u5219\u53d1\u9001\u7aef\u4f1a\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u76f4\u5230CAN\u603b\u7ebf\u4e0a\u6ca1\u6709\u5176\u4ed6\u8282\u70b9\u53d1\u9001\u6570\u636e\u4e3a\u6b62\uff0c\u518d\u5f00\u59cb\u53d1\u9001\u6570\u636e\u3002\u5982\u679c\u5728\u53d1\u9001\u7aef\u53d1\u9001\u6570\u636e\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0CAN\u603b\u7ebf\u4e0a\u6709\u5176\u4ed6\u8282\u70b9\u4e5f\u5728\u53d1\u9001\u6570\u636e\uff0c\u5219\u53d1\u9001\u7aef\u4f1a\u505c\u6b62\u53d1\u9001\uff0c\u5e76\u91cd\u65b0\u5f00\u59cb\u7b49\u5f85\u3002<\/p>\n

\u5e94\u7528\u5c42<\/h2>\n

  CAN\u603b\u7ebf\u7684\u5e94\u7528\u5c42\u4e3a\u4e0a\u5c42\u5e94\u7528\u63d0\u4f9b\u4e86\u4e00\u79cd\u673a\u5236\uff0c\u53ef\u4ee5\u628a\u6570\u636e\u4ee5\u6807\u51c6\u7684\u683c\u5f0f\u4f20\u8f93\u5230CAN\u603b\u7ebf\u4e0a\u3002CAN\u603b\u7ebf\u7684\u5e94\u7528\u5c42\u652f\u6301\u591a\u79cd\u5e94\u7528\u534f\u8bae\uff0c\u5982J1939\u3001CANopen\u7b49\u3002<\/p>\n

  J1939\u534f\u8bae<\/h3>\n

  J1939\u534f\u8bae\u662fCAN\u603b\u7ebf\u4e0a\u5e38\u7528\u7684\u5e94\u7528\u534f\u8bae\uff0c\u5b83\u5b9a\u4e49\u4e86CAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u683c\u5f0f\uff0c\u4ee5\u53caCAN\u603b\u7ebf\u4e0a\u6570\u636e\u7684\u4f20\u8f93\u65b9\u5f0f\u3002J1939\u534f\u8bae\u91c7\u7528\u4e86\u201c\u6d88\u606f\u201d\u7684\u65b9\u5f0f\u6765\u4f20\u8f93\u6570\u636e\uff0c\u6bcf\u4e2a\u6d88\u606f\u75313\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a\u6d88\u606f\u6807\u8bc6\u7b26\u3001\u6570\u636e\u957f\u5ea6\u3001\u6570\u636e\u5185\u5bb9\u3002J1939\u534f\u8bae\u8fd8\u5b9a\u4e49\u4e86\u4e00\u7cfb\u5217\u7684\u6d88\u606f\u4f20\u8f93\u673a\u5236\uff0c\u7528\u4e8e\u786e\u4fddCAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u4f20\u8f93\u53ef\u9760\u3002<\/p>\n

  CANopen\u534f\u8bae<\/h3>\n

  CANopen\u534f\u8bae\u4e5f\u662fCAN\u603b\u7ebf\u4e0a\u5e38\u7528\u7684\u5e94\u7528\u534f\u8bae\uff0c\u5b83\u5b9a\u4e49\u4e86CAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u683c\u5f0f\uff0c\u4ee5\u53caCAN\u603b\u7ebf\u4e0a\u6570\u636e\u7684\u4f20\u8f93\u65b9\u5f0f\u3002CANopen\u534f\u8bae\u91c7\u7528\u4e86\u201c\u5e27\u201d\u7684\u65b9\u5f0f\u6765\u4f20\u8f93\u6570\u636e\uff0c\u6bcf\u4e2a\u5e27\u75316\u4e2a\u90e8\u5206\u7ec4\u6210\uff1aID\u3001RTR\u3001DLC\u3001DATA\u3001CRC\u3001ACK\u3002CANopen\u534f\u8bae\u8fd8\u5b9a\u4e49\u4e86\u4e00\u7cfb\u5217\u7684\u5e27\u4f20\u8f93\u673a\u5236\uff0c\u7528\u4e8e\u786e\u4fddCAN\u603b\u7ebf\u4e0a\u7684\u6570\u636e\u4f20\u8f93\u53ef\u9760\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  CAN\u603b\u7ebf\u662f\u4e00\u79cd\u73b0\u4ee3\u6c7d\u8f66\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u5c06\u6c7d\u8f66\u4e2d\u7684\u5404\u4e2a\u7cfb\u7edf\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u4f7f\u6c7d\u8f66\u7684\u63a7\u5236\u548c\u4fe1\u606f\u4f20\u8f93\u66f4\u52a0\u9ad8\u6548\u3002<\/strong>\u672c\u6587\u4ecb\u7ecd\u4e86CAN\u603b\u7ebf\u7684\u901a\u4fe1\u539f\u7406\uff0c\u5305\u62ecCAN\u603b\u7ebf\u7684\u7269\u7406\u5c42\u3001\u6570\u636e\u94fe\u8def\u5c42\u53ca\u5e94\u7528\u5c42\u7684\u5de5\u4f5c\u539f\u7406\u3002CAN\u603b\u7ebf\u7684\u7269\u7406\u5c42\u91c7\u7528\u4e86\u53cc\u7ede\u7ebf\u4f5c\u4e3a\u4f20\u8f93\u4ecb\u8d28\uff0c\u6570\u636e\u94fe\u8def\u5c42\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u534f\u8bae\uff0c\u5982CSMA\/CA\u3001CSMA\/CD\u7b49\uff0c\u5e94\u7528\u5c42\u652f\u6301\u591a\u79cd\u5e94\u7528\u534f\u8bae\uff0c\u5982J1939\u3001CANopen\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

CAN\u603b\u7ebf\uff08ControllerAreaNetwork\uff09\u662f\u4e00\u79cd\u73b0\u4ee3\u6c7d\u8f66\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u5c06\u6c7d\u8f66\u4e2d\u7684\u5404\u4e2a\u7cfb\u7edf\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u4f7f\u6c7d\u8f66\u7684\u63a7\u5236\u548c\u4fe1\u606f\u4f20\u8f93\u66f4\u52a0\u9ad8\u6548\u3002\u672c\u6587\u5c06\u4ecb\u7ecdCAN\u603b\u7ebf\u7684<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[212],"class_list":["post-38864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-ctx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/38864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=38864"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/38864\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=38864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=38864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=38864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}