{"id":41061,"date":"2023-10-03T06:47:21","date_gmt":"2023-10-02T22:47:21","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=41061"},"modified":"2023-10-03T06:47:21","modified_gmt":"2023-10-02T22:47:21","slug":"vzctx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/41061.html","title":{"rendered":"VB\u505aCAN\u901a\u8baf"},"content":{"rendered":"
CAN\u901a\u8baf\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6c7d\u8f66\u7f51\u7edc\u6280\u672f\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a\u63a7\u5236\u5668\u8fde\u63a5\u5230\u4e00\u4e2a\u603b\u7ebf\u4e0a\uff0c\u4ee5\u5b9e\u73b0\u6c7d\u8f66\u7684\u96c6\u4e2d\u63a7\u5236\u3002\u867d\u7136\u901a\u8fc7CAN\u901a\u8baf\u53ef\u4ee5\u5b9e\u73b0\u6c7d\u8f66\u7684\u96c6\u4e2d\u63a7\u5236\uff0c\u4f46\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u6240\u9700\u8981\u7684\u7f16\u7a0b\u6280\u672f\u5374\u5e76\u4e0d\u7b80\u5355\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528VB\u6765\u5b9e\u73b0CAN\u901a\u8baf\uff0c\u4ee5\u53ca\u4f7f\u7528VB\u6765\u5b9e\u73b0CAN\u901a\u8baf\u6240\u9700\u8981\u7684\u6280\u672f\u8981\u70b9\u3002<\/p>\n
CAN\u901a\u8baf\uff08Controller Area Network\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u6c7d\u8f66\u96c6\u4e2d\u63a7\u5236\u7684\u7f51\u7edc\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5c06\u591a\u4e2a\u63a7\u5236\u5668\u8fde\u63a5\u5230\u4e00\u4e2a\u603b\u7ebf\u4e0a\uff0c\u4ee5\u5b9e\u73b0\u6c7d\u8f66\u7684\u96c6\u4e2d\u63a7\u5236\u3002CAN\u901a\u8baf\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u6c7d\u8f66\u63a7\u5236\u7cfb\u7edf\u4e2d\u7684\u8bbe\u5907\u6570\u91cf\uff0c\u4ece\u800c\u964d\u4f4e\u6c7d\u8f66\u7684\u7ef4\u62a4\u548c\u7ef4\u4fee\u6210\u672c\u3002<\/p>\n
CAN\u901a\u8baf\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u7528\u7684\u6c7d\u8f66\u7f51\u7edc\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u63a7\u5236\u5668\u4e4b\u95f4\u7684\u9ad8\u901f\u901a\u8baf\uff0c\u4ece\u800c\u5b9e\u73b0\u6c7d\u8f66\u7684\u96c6\u4e2d\u63a7\u5236\u3002CAN\u901a\u8baf\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u6c7d\u8f66\u63a7\u5236\u7cfb\u7edf\u4e2d\u7684\u8bbe\u5907\u6570\u91cf\uff0c\u4ece\u800c\u964d\u4f4e\u6c7d\u8f66\u7684\u7ef4\u62a4\u548c\u7ef4\u4fee\u6210\u672c\u3002<\/p>\n
VB\uff08Visual Basic\uff09\u662f\u4e00\u79cd\u5e38\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0CAN\u901a\u8baf\u3002\u8981\u5b9e\u73b0CAN\u901a\u8baf\uff0c\u9700\u8981\u4f7f\u7528\u5230VB\u7684\u76f8\u5173\u5e93\uff0c\u5982CANLib.dll\uff0cCANOpenLib.dll\u7b49\u3002<\/p>\n
CANLib.dll\u662f\u4e00\u4e2a\u7528\u4e8e\u5b9e\u73b0CAN\u901a\u8baf\u7684\u5e93\u6587\u4ef6\uff0c\u8981\u4f7f\u7528\u5b83\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\u3002\u5b89\u88c5CANLib.dll\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n
\u8981\u4f7f\u7528CANLib.dll\u5b9e\u73b0CAN\u901a\u8baf\uff0c\u9700\u8981\u5148\u5728VB\u7a0b\u5e8f\u4e2d\u5f15\u7528CANLib.dll\uff0c\u7136\u540e\u4f7f\u7528\u76f8\u5173\u51fd\u6570\u5b9e\u73b0CAN\u901a\u8baf\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528VB\u6765\u5b9e\u73b0CAN\u901a\u8baf\uff0c\u4ee5\u53ca\u4f7f\u7528VB\u6765\u5b9e\u73b0CAN\u901a\u8baf\u6240\u9700\u8981\u7684\u6280\u672f\u8981\u70b9\u3002<\/strong>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5CANLib.dll\uff0c\u7136\u540e\u5728VB\u7a0b\u5e8f\u4e2d\u5f15\u7528CANLib.dll\uff0c\u6700\u540e\u4f7f\u7528CANLib.dll\u4e2d\u7684\u76f8\u5173\u51fd\u6570\u5b9e\u73b0CAN\u901a\u8baf\u3002\u53ea\u6709\u7406\u89e3\u4e86CAN\u901a\u8baf\u7684\u539f\u7406\uff0c\u624d\u80fd\u4f7f\u7528VB\u6765\u5b9e\u73b0CAN\u901a\u8baf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" CAN\u901a\u8baf\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6c7d\u8f66\u7f51\u7edc\u6280\u672f\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a\u63a7\u5236\u5668\u8fde\u63a5\u5230\u4e00\u4e2a\u603b\u7ebf\u4e0a\uff0c\u4ee5\u5b9e\u73b0\u6c7d\u8f66\u7684\u96c6\u4e2d\u63a7\u5236\u3002\u867d\u7136\u901a\u8fc7CAN\u901a\u8baf\u53ef\u4ee5\u5b9e\u73b0\u6c7d\u8f66\u7684\u96c6\u4e2d\u63a7\u5236\uff0c\u4f46\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u6240\u9700\u8981\u7684\u7f16\u7a0b\u6280\u672f\u5374\u5e76\u4e0d<\/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-41061","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\/41061","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=41061"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/41061\/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=41061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=41061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=41061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}