{"id":1687,"date":"2025-06-03T16:14:40","date_gmt":"2025-06-03T08:14:40","guid":{"rendered":"https:\/\/aoofoo.com\/?p=1687"},"modified":"2025-06-04T10:15:11","modified_gmt":"2025-06-04T02:15:11","slug":"7-1-%e6%8e%a7%e5%88%b6%e5%99%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e6%80%bb%e7%ba%bf%ef%bc%88can%e6%80%bb%e7%ba%bf%ef%bc%89","status":"publish","type":"post","link":"https:\/\/aoofoo.com\/index.php\/2025\/06\/03\/7-1-%e6%8e%a7%e5%88%b6%e5%99%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e6%80%bb%e7%ba%bf%ef%bc%88can%e6%80%bb%e7%ba%bf%ef%bc%89\/","title":{"rendered":"7.1 \u63a7\u5236\u5668\u5c40\u57df\u7f51\u603b\u7ebf\uff08CAN\u603b\u7ebf\uff09"},"content":{"rendered":"<h2>CAN\u7b80\u4ecb<\/h2>\n<p>CAN\u603b\u7ebf\uff08Controller Area Network Bus\uff09\u63a7\u5236\u5668\u5c40\u57df\u7f51\u603b\u7ebf CAN\u603b\u7ebf\u662f\u7531BOSCH\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u79cd\u7b80\u6d01\u6613\u7528\u3001\u4f20\u8f93\u901f\u5ea6\u5feb\u3001\u6613\u6269\u5c55\u3001\u53ef\u9760\u6027\u9ad8\u7684\u4e32\u884c\u901a\u4fe1\u603b\u7ebf\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6c7d\u8f66\u3001\u5d4c\u5165\u5f0f\u3001\u5de5\u4e1a\u63a7\u5236\u7b49\u9886\u57df\u3002<\/p>\n<p>CAN\u603b\u7ebf\u7279\u5f81\uff1a<\/p>\n<p style=\"padding-left: 40px;\">\u4e24\u6839\u901a\u4fe1\u7ebf\uff08CAN_H\u3001CAN_L\uff09\uff0c\u7ebf\u8def\u5c11\uff0c\u65e0\u9700\u4f9b\u5730*\u3002\uff08*\u867d\u7136\u5dee\u5206\u4fe1\u53f7\u65e0\u9700\u4f9b\u5730\uff0c\u4f46\u5b9e\u9645\u4e2d\u901a\u5e38\u8fd8\u662f\u4f1a\u5171\u5730\uff0c\u9632\u6b62\u8ba9\u6536\u53d1\u5668\u627f\u53d7\u8f83\u9ad8\u7684\u5171\u6a21\u7535\u538b\uff09<\/p>\n<p style=\"padding-left: 40px;\">\u5dee\u5206\u4fe1\u53f7\u901a\u4fe1\uff0c\u6297\u5e72\u6270\u80fd\u529b\u5f3a\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u9ad8\u901fCAN\uff08ISO11898\uff09\uff1a125k~1Mbps, &lt;40m\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u4f4e\u901fCAN\uff08ISO11519\uff09\uff1a10k~125kbps, &lt;1km\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u5f02\u6b65\uff0c\u65e0\u9700\u65f6\u949f\u7ebf\uff0c\u901a\u4fe1\u901f\u7387\u7531\u8bbe\u5907\u5404\u81ea\u7ea6\u5b9a\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u534a\u53cc\u5de5*\uff0c\u53ef\u6302\u8f7d\u591a\u8bbe\u5907\uff0c\u591a\u8bbe\u5907\u540c\u65f6\u53d1\u9001\u6570\u636e\u65f6\u901a\u8fc7\u4ef2\u88c1\u5224\u65ad\u5148\u540e\u987a\u5e8f\u3002\uff08*\u4e0d\u53ef\u4ee5\u540c\u65f6\u53d1\u9001\u548c\u63a5\u6536\uff09<\/p>\n<p style=\"padding-left: 40px;\">11\u4f4d\/29\u4f4d\u62a5\u6587ID\uff0c\u7528\u4e8e\u533a\u5206\u6d88\u606f\u529f\u80fd\uff0c\u540c\u65f6\u51b3\u5b9a\u4f18\u5148\u7ea7*\u3002\uff08*ID\u53f7\u8d8a\u5c0f\uff0c\u4f18\u5148\u7ea7\u8d8a\u9ad8\uff09<\/p>\n<p style=\"padding-left: 40px;\">\u53ef\u914d\u7f6e1~8\u5b57\u8282\u7684\u6709\u6548\u8f7d\u8377\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u53ef\u5b9e\u73b0\u5e7f\u64ad\u5f0f\u548c\u8bf7\u6c42\u5f0f\u4e24\u79cd\u4f20\u8f93\u65b9\u5f0f \u5e94\u7b54\u3001CRC\u6821\u9a8c\u3001\u4f4d\u586b\u5145\u3001\u4f4d\u540c\u6b65\u3001\u9519\u8bef\u5904\u7406\u7b49\u7279\u6027\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1688\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2025\/06\/\u5c4f\u5e55\u622a\u56fe-2025-06-03-160411.png\" alt=\"\" width=\"1057\" height=\"237\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1689\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2025\/06\/\u5c4f\u5e55\u622a\u56fe-2025-06-03-160836.png\" alt=\"\" width=\"1052\" height=\"196\" \/><\/p>\n<p>CAN\u603b\u7ebf\u5373\u7ee7\u627f\u4e86UART\u7684\u65b9\u4fbf\u6613\u7528\uff0c\u53c8\u62e5\u6709\u9879I2C\u4e00\u6837\u7684\u591a\u4e3b\u673a\u7279\u6027\uff0c\u5728\u5dee\u5206\u4fe1\u53f7\u4e0a\uff0c\u53c8\u548cRS485\u5f02\u66f2\u540c\u5de5\u3002<\/p>\n<h3>CAN\u603b\u7ebf\u786c\u4ef6\u7535\u8def<\/h3>\n<h4>CAN\u63a7\u5236\u5668\uff1a<\/h4>\n<p>CAN\u63a7\u5236\u5668\u5f15\u51fa\u7684TX\u548cRX\u4e0eCAN\u6536\u53d1\u5668\u76f8\u8fde\u3002\uff08\u4f8b\u5982STM32\uff09\u3002<\/p>\n<h4>CAN\u6536\u53d1\u5668\uff1a<\/h4>\n<p>\u5c31\u662f\u4e00\u4e2a\u82af\u7247\uff0c\u4e3b\u8981\u5b9e\u73b0\u7535\u5e73\u8f6c\u6362\u3001\u8f93\u51fa\u9a71\u52a8\u548c\u8f93\u5165\u91c7\u6837\u7684\u529f\u80fd\u3002CAN\u6536\u53d1\u5668\u5f15\u51fa\u7684CAN_H\u548cCAN_L\u5206\u522b\u4e0e\u603b\u7ebf\u7684CAN_H\u548cCAN_L\u76f8\u8fde \u3002<\/p>\n<h4>\u95ed\u73afCAN\u603b\u7ebf\uff1a<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1693\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2025\/06\/\u5c4f\u5e55\u622a\u56fe-2025-06-03-165330.png\" alt=\"\" width=\"587\" height=\"320\" \/><\/p>\n<p>CAN\u603b\u7ebf\u4e32\u8054\u6bcf\u4e2a\u8282\u70b9\u540e\uff0c\u5b83\u7684\u4e24\u7aef\u8981\u5206\u522b\u63a5\u4e00\u4e2a120\u03a9\u7684\u7535\u963b\uff0c\u4f7fCAN\u603b\u7ebf\u5f62\u6210\u4e00\u4e2a\u95ed\u5408\u7684\u73af\u8def\uff0c\u6240\u4ee5\u53eb\u505a\u95ed\u73afCAN\u603b\u7ebf\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8981\u52a0\u5165\u8fd9\u4e24\u4e2a\u7ec8\u7aef\u7535\u963b\u5462\uff1f<\/p>\n<p>1\u3001\u9632\u6b62\u56de\u6ce2\u53cd\u5c04\uff0c\u5c24\u5176\u662f\u9ad8\u9891\u4fe1\u53f7\u3001\u8fdc\u8ddd\u79bb\u4f20\u8f93\u7684\u573a\u666f\uff0c\u56de\u6ce2\u53cd\u5c04\u662f\u4e0d\u80fd\u5ffd\u7565\u7684\u95ee\u9898\u3002\u5982\u679c\u4e0d\u52a0\u7535\u963b\uff0c\u4fe1\u53f7\u6ce2\u5f62\u4f1a\u5728\u7ebf\u8def\u7ec8\u7aef\u53cd\u5c04\uff0c\u8fdb\u800c\u5e72\u6270\u539f\u59cb\u4fe1\u53f7\u3002<\/p>\n<p>2\u3001\u5728\u6ca1\u6709\u8bbe\u5907\u64cd\u4f5c\u65f6\uff0c\u5c06\u4e24\u6839\u5dee\u5206\u7ebf\u7684\u7535\u538b\u6536\u7d27*\uff08*\u5b83\u7684\u610f\u601d\u662f\u5c31\u662f\uff0c\u5728\u6ca1\u6709\u8bbe\u5907\u64cd\u4f5c\u603b\u7ebf\u7684\u60c5\u51b5\u4e0b\uff0c\u7ec8\u7aef\u7535\u963b\u5c31\u50cf\u5f39\u7c27\u4e00\u6837\uff0c\u4f1a\u5c06\u4e24\u6839\u7ebf\u7684\u7535\u538b\u62c9\u5230\u540c\u4e00\u4e2a\u6c34\u5e73\uff09\uff0c\u4f7f\u5176\u7535\u538b\u4e00\u81f4\uff0c\u56e0\u4e3aCAN\u603b\u7ebf\u662f\u5dee\u5206\u4fe1\u53f7\uff0c\u6709\u4e24\u6839\u7ebf\uff0c\u6240\u4ee5\u4e24\u8fb9\u7684\u7ec8\u7aef\u7535\u963b\u53ef\u4ee5\u5c06\u4e24\u6839\u7ebf\u201c\u6536\u7d27\u201d\u81f3\u7535\u538b\u4e00\u81f4\u7684\u72b6\u6001\uff0c\u4ee3\u8868\u5c31\u662f\u9ed8\u8ba4\u7684\u201c1\u201d\u72b6\u6001\uff0c\u5e76\u4e14\u8fd9\u4e24\u4e2a\u7535\u963b\u7684\u963b\u503c\u4e0d\u5927\uff0c\u6536\u7d27\u7684\u901f\u5ea6\u5f88\u5feb\uff0c\u4f7f\u5f97CAN\u603b\u7ebf\u7684\u6700\u5927\u901f\u7387\u4e5f\u6bd4\u8f83\u5feb\uff0c\u4f46\u4ee3\u4ef7\u5c31\u662fCAN\u603b\u7ebf\u7684\u529f\u8017\u4e5f\u5c31\u6bd4\u8f83\u5927\u3002\u4f8b\u5982\uff0c\u5f53\u67d0\u4e2aCAN\u63a7\u5236\u5668\u60f3\u8981\u53d1\u9001\u201c0\u201d\uff0c\u4ed6\u5c31\u4f1a\u64cd\u4f5c\u603b\u7ebf\uff0c\u628a\u603b\u7ebf\u201c\u62c9\u5f00\u201d\u4f7f\u5176\u5448\u73b0\u201c0\u201d\u72b6\u6001\uff0c\u5f53\u8fd9\u4e2a\u63a7\u5236\u5668\u60f3\u8981\u53d1\u9001\u201c1\u201d\u65f6\uff0c\u5c31\u4e0d\u53bb\u78b0\u603b\u7ebf\uff0c\u603b\u7ebf\u5728\u7ec8\u7aef\u7535\u963b\u7684\u6536\u7f29\u4e0b\uff0c\u81ea\u52a8\u5f52\u4f4d\u9ed8\u8ba4\u72b6\u6001\u201c1\u201d\u3002<\/p>\n<div class=\"sc-collapse\"><div class=\"sc-collapse__header\"><svg class=\"sc-collapse__arrow\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6 9 12 15 18 9\"\/><\/svg>\u4e0d\u7406\u89e3\uff1f\u67e5\u770b\u66f4\u52a0\u901a\u4fd7\u7684\u89e3\u91ca<\/div><div class=\"sc-collapse__body\"><div class=\"sc-collapse__content\"><\/p>\n<p>CAN \u603b\u7ebf\u901a\u8baf\u662f\u7528\u4e24\u6839\u7ebf\uff08\u5e38\u79f0 CAN_H\u3001CAN_L\uff09\u6765\u4f20\u9012\u4fe1\u53f7\u7684\uff0c\u6bcf\u4e2a\u6bd4\u7279\u5468\u671f\u4e2d\uff0c\u603b\u7ebf\u8981\u4e48\u5904\u4e8e\u201c\u9690\u6027\u201d\u72b6\u6001\uff08\u903b\u8f91 1\uff09\uff0c\u8981\u4e48\u5904\u4e8e\u201c\u663e\u6027\u201d\u72b6\u6001\uff08\u903b\u8f91 0\uff09\u3002<\/p>\n<ul>\n<li>\u9690\u6027\uff08recessive\uff0c\u903b\u8f91 1\uff09<br \/>\n\u2022 \u4efb\u4f55\u8282\u70b9\u90fd\u4e0d\u4e3b\u52a8\u9a71\u52a8 CAN_H\/CAN_L\uff0c\u7ebf\u662f<strong>\u91ca\u653e<\/strong>\u7684\u72b6\u6001\u3002<br \/>\n\u2022 \u7ebf\u5bf9\u7ebf\u4e4b\u95f4\u7684\u7535\u538b\u5dee \u0394V \u2248 0 V\uff08\u6216\u5f88\u5c0f\uff09\uff0c\u4e5f\u5c31\u662f CAN_H \u2248 CAN_L\u3002<br \/>\n\u2022 \u8fd9\u65f6\u603b\u7ebf\u5c31\u5904\u4e8e\u201c\u7a7a\u95f2\u201d\u6216\u201c\u903b\u8f91 1\u201d\u72b6\u6001\u3002<\/li>\n<li>\u663e\u6027\uff08dominant\uff0c\u903b\u8f91 0\uff09<br \/>\n\u2022 \u67d0\u4e2a\u8282\u70b9\u628a CAN_H \u62c9\u5230\u9ad8\u7535\u5e73\uff08\u22483.5 V\uff09\uff0c\u540c\u65f6\u628a CAN_L \u62c9\u5230\u4f4e\u7535\u5e73\uff08\u22481.5 V\uff09\u3002<br \/>\n\u2022 \u8fd9\u6837\u4e24\u7ebf\u4e4b\u95f4\u5c31\u4ea7\u751f \u0394V \u2248 2 V \u7684\u5dee\u5206\u4fe1\u53f7\u3002<br \/>\n\u2022 \u63a5\u6536\u7aef\u4e00\u770b \u0394V &gt; \u67d0\u4e2a\u9608\u503c\uff0c\u5c31\u5224\u5b9a\u4e3a\u201c0\u201d\u3002<\/li>\n<\/ul>\n<p><\/div><\/div><\/div>\n<h4>\u5f00\u73afCAN\u603b\u7ebf\uff1a<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1694\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2025\/06\/\u5c4f\u5e55\u622a\u56fe-2025-06-03-165337.png\" alt=\"\" width=\"571\" height=\"363\" \/><\/p>\n<p>\u4f4e\u901fCAN\u4f7f\u7528\u5f00\u73af\u7f51\u7edc\uff0cCAN_H\u548cCAN_L\u5176\u4e2d\u4e00\u7aef\u6dfb\u52a02.2k\u03a9\u7684\u7ec8\u7aef\u7535\u963b\u3002<\/p>\n<p>\u8fd9\u4e2a\u7ec8\u7aef\u7535\u963b\u7684\u63a5\u6cd5\u6bd4\u8f83\u7279\u6b8a\uff0c\u5176\u4e2d\u4e00\u7aef\u63a5\u5728\u603b\u7ebf\uff0c\u53e6\u4e00\u7aef\u60ac\u7a7a\uff0c\u6839\u636e\u7535\u8def\u7684\u539f\u7406\uff0c\u8fd9\u4e2a\u7535\u963b\u5e94\u8be5\u662f\u6ca1\u6709\u4efb\u4f55\u4f5c\u7528\u7684\uff0c\u56e0\u4e3a\u7535\u8def\u53ea\u6709\u5f62\u6210\u56de\u8def\u624d\u6709\u6548\uff0c\u4f46\u5728\u8fd9\u91cc\u4ed6\u6709\u9632\u6b62\u56de\u6ce2\u53cd\u5c04\u7684\u4f5c\u7528\u3002<\/p>\n<h2>CAN\u7535\u5e73\u6807\u51c6<\/h2>\n<p>CAN\u603b\u7ebf\u91c7\u7528\u5dee\u5206\u4fe1\u53f7\uff0c\u5373\u4e24\u7ebf\u7535\u538b\u5dee\uff08VCAN_H-VCAN_L\uff09\u4f20\u8f93\u6570\u636e\u4f4d\u3002<\/p>\n<p>\u9ad8\u901fCAN\u89c4\u5b9a\uff1a \u7535\u538b\u5dee\u4e3a0V\u65f6\u8868\u793a\u903b\u8f911\uff08\u9690\u6027\u7535\u5e73\uff09 \u7535\u538b\u5dee\u4e3a2V\u65f6\u8868\u793a\u903b\u8f910\uff08\u663e\u6027\u7535\u5e73\uff09\u3002<\/p>\n<p>\u4f4e\u901fCAN\u89c4\u5b9a\uff1a \u7535\u538b\u5dee\u4e3a-1.5V\u65f6\u8868\u793a\u903b\u8f911\uff08\u9690\u6027\u7535\u5e73\uff09 \u7535\u538b\u5dee\u4e3a3V\u65f6\u8868\u793a\u903b\u8f910\uff08\u663e\u6027\u7535\u5e73\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1695\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2025\/06\/\u5c4f\u5e55\u622a\u56fe-2025-06-03-170154.png\" alt=\"\" width=\"1075\" height=\"295\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CAN\u7b80\u4ecb CAN\u603b\u7ebf\uff08Controller Area Network Bus\uff09\u63a7\u5236\u5668\u5c40\u57df\u7f51\u603b\u7ebf CAN\u603b\u7ebf\u662f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-1687","post","type-post","status-publish","format-standard","hentry","category-can"],"_links":{"self":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts\/1687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/comments?post=1687"}],"version-history":[{"count":5,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts\/1687\/revisions"}],"predecessor-version":[{"id":1698,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts\/1687\/revisions\/1698"}],"wp:attachment":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/media?parent=1687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/categories?post=1687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/tags?post=1687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}