{"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\u6982\u8ff0<\/h2>\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

\u4f7f\u7528VB\u5b9e\u73b0CAN\u901a\u8baf<\/h2>\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

  \u5b89\u88c5CANLib.dll<\/h3>\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