{"id":2091,"date":"2022-12-09T16:44:43","date_gmt":"2022-12-09T08:44:43","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=2091"},"modified":"2024-08-29T17:13:51","modified_gmt":"2024-08-29T09:13:51","slug":"get-tosun-lin-function-operation-process-in-3-minutes","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/get-tosun-lin-function-operation-process-in-3-minutes\/","title":{"rendered":"3\u5206\u949fget\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\uff08\u63a8\u8350\u6536\u85cf\uff09"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

\u672c\u6587\u5bfc\u8bfb<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

LIN \u662f Local Interconnect Network \u7684\u7f29\u5199\uff0c\u662f\u57fa\u4e8e UART\/SCI(Universal Asynchronous Receiver-Transmitter \/ Serial Communication Interface\uff0c\u901a\u7528\u5f02\u6b65\u6536\u53d1\u5668\/\u4e32\u884c\u901a\u4fe1\u63a5\u53e3)\u7684\u4f4e\u6210\u672c\u4e32\u884c\u901a\u4fe1\u534f\u8bae\u3002\u53ef\u7528\u4e8e\u6c7d\u8f66\u3001\u5bb6\u7535\u3001\u529e\u516c\u8bbe\u5907\u7b49\u591a\u79cd\u9886\u57df\u3002<\/p>

\u672c\u6587\u4e3b\u8981\u9488\u5bf9\u540c\u661fLIN\u4e3b\u3001\u4ece\u8282\u70b9\u4eff\u771f\u529f\u80fd\u4ee5\u53ca\u5176\u4ed6\u529f\u80fd\u7684\u64cd\u4f5c\u6d41\u7a0b\u51fa\u4e00\u4e2a\u8be6\u7ec6\u6559\u7a0b\u3002<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

\u4e00\u3001\u540c\u661fLIN\u4e3b\u8282\u70b9\u4eff\u771f\u529f\u80fd\u64cd\u4f5c<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

1\u3001\u786c\u4ef6\u8fde\u63a5\u51c6\u5907<\/span><\/p>

\u4f7f\u7528\u540c\u661fLIN\u786c\u4ef6\u4eff\u771f\u4e3b\u8282\u70b9\u6a21\u5f0f\u4e0b\uff0c\u9700\u8981\u5916\u90e8\u7535\u6e90\u4f9b\u7535\uff0c\u4e3a\u4e86\u4fdd\u6301LIN\u603b\u7ebf\u7535\u5e73\u4fe1\u53f7\u8ddf\u88ab\u6d4b\u4ef6\u4e00\u81f4\uff0c\u8fde\u63a5\u793a\u610f\u56fe\u5982\u4e0b\uff1a<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

2\u3001TSMaster\u8f6f\u4ef6\u64cd\u4f5c\u6d41\u7a0b<\/span><\/span><\/p>

\u4ee5\u4e0b\u64cd\u4f5c\u6d41\u7a0b\u4ee5TSMaster\u4eff\u771fLIN\u4e3b\u8282\u70b9\uff0c\u88ab\u6d4b\u4ef6\u4ece\u8282\u70b9\u4e3aLED\u706f\u4e3a\u793a\u4f8b\u3002<\/span><\/span><\/p>

2.1 \u5bfc\u5165LDF\u6587\u4ef6\u6570\u636e\u5e93<\/span><\/span><\/p>

\u901a\u8fc7\u6570\u636e\u5e93\u6dfb\u52a0LED\u706f\u7684LDF\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u67e5\u770b\u5230LDF\u6587\u4ef6\u91cc\u7684\u3010\u8282\u70b9\u3011\u5206\u522b\u6709\u3010master\u3011\u548c\u3010RGB_Slave\u3011, \u5e76\u5305\u542b\u4e86\u4e3b\u8282\u70b9\u8c03\u5ea6\u8868\u4fe1\u606f\uff0c\u62a5\u6587\u548c\u4fe1\u53f7\u5b9a\u4e49\uff1a<\/span><\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

2.2 \u521b\u5efaLIN\u53d1\u9001\u7a97\u53e3\uff0c\u8fdb\u884cLIN\u4e3b\u8282\u70b9\u914d\u7f6e<\/span><\/span><\/p>

\u52fe\u9009\u3010\u4e3b\u8282\u70b9\u6a21\u5f0f\u3011\uff0c\u7136\u540e\u9009\u62e9\u8fd0\u884c\u8c03\u5ea6\u8868Run_normal\uff0c\u5e76\u9009\u62e9\u4eff\u771f\u3010master\u4e3b\u8282\u70b9\u3011\uff0c\u53ef\u4ee5\u770b\u5230\u8c03\u5ea6\u8868\u7684\u4e24\u6761\u62a5\u6587\u5df2\u52fe\u9009\u3002\u6b64\u65f6\u53ef\u4ee5\u3010\u90e8\u7f72\u3011\u8fd0\u884c\u8c03\u5ea6\u8868\u3002<\/span><\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u25b2\u3010\u6ce8\u610f\u3011\uff1a\u9700\u8981\u6ce8\u610f\u8c03\u5ea6\u8868\u4e2d\u4e3b\u4ece\u8282\u70b9\u62a5\u6587\u7684\u53d1\u9001\u65b9\u5411\u3002<\/p>

\u4eff\u771fmaster\u4e3b\u8282\u70b9\u7684\u62a5\u6587\u65b9\u5411\uff1a\u3010\u53d1\u3011<\/p>

\u4ece\u8282\u70b9\u54cd\u5e94\u7684\u62a5\u6587\u65b9\u5411\u4e3a\uff1a\u3010\u6536\u3011<\/p>

\u5373\uff1a\u62a5\u65870x02\u4e3a\u4e3b\u8282\u70b9\u53d1\u9001\u7ed9RGB\u4ece\u8282\u70b9\u7684\u63a7\u5236\u62a5\u6587\uff0c\u6240\u4ee5\u65b9\u5411\u4e3a\u53d1\u9001\uff0c\u800c\u62a5\u65870x10\u4e3a\u4ece\u8282\u70b9RGB\u7ed9\u4e3b\u8282\u70b9\u53cd\u9988\u4fe1\u606f\u7528\uff0c\u6240\u4ee5\u65b9\u5411\u4e3a\u63a5\u6536\u3002<\/p>

2.3 LIN\u62a5\u6587\u4fe1\u606f\u76d1\u6d4b<\/p>

\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u8c03\u5ea6\u8868\u8fd0\u884c\u540e\uff0c\u53ef\u4ee5\u5728LIN\u62a5\u6587\u4fe1\u606f\u7a97\u53e3\u67e5\u770b\u5230\u4e24\u6761\u62a5\u6587\u7684\u6570\u636e\u5185\u5bb9\uff0c\u8868\u660e\u4ece\u8282\u70b9\u4e0e\u4e3b\u8282\u70b9\u6b63\u5e38\u901a\u4fe1\u5e76\u53cd\u9988\u6570\u636e\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u00a0<\/p>

\u25b2\u975e\u6b63\u5e38\u60c5\u51b5\uff1a\u5982\u679c\u51fa\u73b0\u4ece\u8282\u70b9\u7684\u62a5\u6587\u54cd\u5e94\u6570\u636e\u4e3a\u7a7a\uff0c\u53ef\u4ee5\u5224\u65ad\u4e3a\u4ece\u8282\u70b9\u65e0\u54cd\u5e94\uff0c\u6b64\u65f6\u53ef\u4ee5\u68c0\u6d4bLIN\u603b\u7ebf\u8fde\u63a5\u662f\u5426\u6b63\u786e\u6216\u8005LIN\u4ece\u8282\u70b9\u4f9b\u7535\u662f\u5426\u6b63\u5e38\u7b49\uff0c\u4e0b\u56fe\u6240\u793a<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

2.4  \u4fee\u6539LIN\u4e3b\u8282\u70b9\u63a7\u5236\u62a5\u6587\u5185\u5bb9<\/p>

\u5728\u3010LIN\u53d1\u9001\u7a97\u53e3\u3011\u9009\u62e9\u4e3b\u8282\u70b9\u62a5\u6587\u59820x02\uff0c\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539LIN\u4fe1\u53f7\u7684\u539f\u59cb\u503c\u6216\u8005\u7269\u7406\u503c\uff0c\u8fdb\u884c\u62a5\u6587\u4fe1\u53f7\u8d4b\u503c\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u901a\u8fc7\u4fee\u6539RGB\u4e09\u79cd\u4e0d\u540c\u989c\u8272\u7684\u4fe1\u53f7\u6570\u503c\uff0c\u53ef\u4ee5\u7ec4\u5408\u51fa\u6765\u540c\u7684\u706f\u5149\u8272\u5f69\uff0c\u5982\u4e0b\u56fe\u4e3aRGB\u706f\u7684\u70b9\u4eae\u60c5\u51b5\uff0c\u4f9b\u53c2\u8003\uff1a<\/span><\/font>
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

3. \u3010\u793a\u4f8b\u4e00\u3011LIN\u8bca\u65ad\u529f\u80fd-\u81ea\u52a8\u5206\u914d\u5730\u5740<\/p>

\u901a\u5e38RGB\u70b9\u4eae\u529f\u80fd\u6d4b\u8bd5\u524d\uff0c\u9700\u8981\u5148\u5bf9RGB\u706f\u8fdb\u884c\u81ea\u52a8\u5206\u914d\u5730\u5740\uff0c\u7136\u540e\u624d\u80fd\u8fdb\u884c\u706f\u5149\u989c\u8272\uff0c\u4eae\u5ea6\u6d4b\u8bd5\uff0c\u7248\u672c\u53f7\u8bfb\u53d6\u7b49\u7b49\u3002<\/p>

\u3010\u80cc\u666f\u3011\uff1a\u6839\u636eLIN\u81ea\u52a8\u5206\u914d\u5730\u5740\u7684\u534f\u8bae\uff0c\u9700\u8981\u5355\u6b21\u53d1\u9001\u591a\u67613C\u8bca\u65ad\u62a5\u6587\u8fdb\u884c\u5730\u5740\u5206\u914d\uff0c\u800cTSMaster\u662f\u53ef\u4ee5\u901a\u8fc7\u3010Single Frame\u3011\u6a21\u5f0f\u6765\u5b8c\u6210\u3002<\/p>

RGB\u706f\u7684\u81ea\u52a8\u5206\u914d\u5730\u5740\u7684\u62a5\u6587\u5982\u4e0b\uff1a<\/p>

1.\u5355\u6b21\u53d1\u9001\uff1a7F 06 B5 FF 7F 01 02 FF<\/p>

2.\u5355\u6b21\u53d1\u9001\uff1a7F 06 B5 FF 7F 02 02 01<\/p>

3.\u5355\u6b21\u53d1\u9001\uff1a7F 06 B5 FF 7F 03 02 FF<\/p>

4.\u5355\u6b21\u53d1\u9001\uff1a7F 06 B5 FF 7F 04 02 FF<\/p>

\u3010\u5b9e\u64cd\u3011\uff1a\u5728TSMaster\u8f6f\u4ef6\u7684\u3010Single Frame\u3011\u8fd0\u884c\u8bca\u65ad\u6307\u4ee4\uff0c\u521b\u5efa\u597d\u76f8\u5e94\u62a5\u6587\u540e\u5206\u522b\u4ece\u4e0a\u5f80\u4e0b\uff0c\u5355\u6b21\u53d1\u9001\u62a5\u6587\u884c1\u30012\u30013\u30014\uff0c\u5b8c\u6210RGB\u7684\u81ea\u52a8\u5206\u914d\u5730\u5740\uff1a<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

4. \u3010\u793a\u4f8b\u4e8c\u3011\u63d2\u5165\u62a5\u6587\u5e27inject_lin_message\u51fd\u6570\u7684\u4f7f\u7528<\/p>

\u6709\u4e00\u4e2a\u5e38\u89c1\u7684\u4f7f\u7528\u573a\u666f\uff0c\u5f53\u4eff\u771f\u4e3b\u8282\u70b9\u6b63\u5728\u8fd0\u884c\u8c03\u5ea6\u8868\u65f6\uff0c\u5728\u4e0d\u505c\u6b62\u8fd0\u884c\u8c03\u5ea6\u8868\u7684\u60c5\u51b5\u4e0b\uff0c\u63d2\u5165\u4e00\u5e27\u5176\u4ed6\u7684LIN\u62a5\u6587\u5e27\uff0c\u6bd4\u59820x3C \u62a5\u6587\uff0c\u8fd9\u4e2a\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7inject_lin_message\u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>

\u521b\u5efa\u4e00\u4e2a\u65b0\u7684C\u811a\u672c\u7f16\u8f91\u5668\uff0c\u9009\u62e9\u3010\u6309\u952e\u4e8b\u4ef6\u3011\uff0c\u6bd4\u5982\u521b\u5efa\u6309\u952e\u201dA\u201d\u6267\u884c\u63d2\u5165\u62a5\u6587\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>

TLIN f0 = {0,0×0,0x1,8,0x3C,0x0,0,0,{0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};<\/em><\/span><\/p>

com.inject_lin_message(&f0);<\/em><\/span><\/p>

app.wait(10, “”);<\/em><\/span><\/p>


<\/p>

\u7136\u540e\u7f16\u8bd1\u8fd0\u884cC\u811a\u672c\uff0c\u5728\u5df2\u8fd0\u884c\u90e8\u7f72\u8c03\u5ea6\u8868\u7684\u60c5\u51b5\u4e0b\uff0c\u6309\u4e0b\u201cA\u201d\u952e\uff0c\u5728LIN\u62a5\u6587\u6d88\u606f\u53ef\u4ee5\u89c2\u5bdf\u52303C\u62a5\u6587\u53d1\u9001\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u3010TSMaster\u8f6f\u4ef6\u5c0f\u6280\u5de7-\u5feb\u901f\u751f\u6210LIN\u62a5\u6587\u7684C\u4ee3\u7801\u3011\uff1a\u53ef\u4ee5\u5728\u8c03\u5ea6\u8868\u91cc\u65b0\u521b\u5efa\u4e00\u6761LIN\u62a5\u6587\uff0c\u53f3\u952e\u590d\u5236\u4e3aC\u811a\u672c\uff0c\u5c31\u53ef\u4ee5\u628a\u62a5\u6587\u7684C\u4ee3\u7801\u5feb\u901f\u590d\u5236\u5230\u811a\u672c\u4e2d\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

\u4e8c\u3001\u540c\u661fLIN\u4ece\u8282\u70b9\/\u76d1\u542c\u8282\u70b9\u529f\u80fd\u64cd\u4f5c<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

1. \u786c\u4ef6\u8fde\u63a5\u51c6\u5907<\/p>\n

\u4eff\u771f\u4ece\u8282\u70b9\uff0c\u53ef\u4ee5\u4e0d\u9700\u8981\u7ed9\u540c\u661fLIN\u5361\u4f9b\u7535\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

2. \u4eff\u771f\u4ece\u8282\u70b9\u53d1\u9001\u54cd\u5e94\u62a5\u6587<\/p>

\u5f53\u540c\u661fLIN\u5361\u4eff\u771f\u4e3a\u4ece\u8282\u70b9\u65f6\uff0cECU\u4e3b\u8282\u70b9\u9700\u8981\u53d1\u9001\u8c03\u5ea6\u8868\u7684\u62a5\u5934Header\uff0c\u4ece\u8282\u70b9\u54cd\u5e94\u62a5\u6587\u624d\u4f1a\u6b63\u5e38\u53d1\u51fa\u3002<\/p>

\u672c\u6587\u4ee5TSMaster \u7684LIN\u901a\u90531\u4eff\u771f\u4e3b\u8282\u70b9\u8fd0\u884c\u8c03\u5ea6\u8868\uff0cLIN\u901a\u90532\u4eff\u771f\u4ece\u8282\u70b9\u54cd\u5e94\u62a5\u65870x10(Tech_Info_RGB_Slave) \u3002<\/p>

\u9996\u5148\uff0cLIN\u901a\u90531\u4eff\u771f\u4e3b\u8282\u70b9\u8fd0\u884c\u8c03\u5ea6\u8868\uff0c\u5176\u4e2d\u4ece\u8282\u70b9\u54cd\u5e94\u62a5\u6587\u7684header\u65b9\u5411\u4e3a\u3010\u6536\u3011\uff1a<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u90e8\u7f72\u8fd0\u884c\u4e4b\u540e\uff0c\u53ef\u4ee5\u770b\u5230LIN\u4ece\u8282\u70b9\u62a5\u6587\u62a5\u5934\u5df2\u53d1\u51fa\uff0c\u6570\u636e\u4e3a\u7a7a\uff1a
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

\u7136\u540e\uff0c LIN\u901a\u90532\u4eff\u771f\u4ece\u8282\u70b9\u53d1\u9001\u54cd\u5e94\u62a5\u65870x10(Tech_Info_RGB_Slave)\uff0c\u65b9\u5411\u4e3a\u3010\u53d1\u3011\uff0c\u4fee\u6539\u6570\u636e\u5185\u5bb9\uff1a<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

2\u70b9\u51fb\u3010\u90e8\u7f72\u3011\uff0c\u53ef\u4ee5\u4eceLIN\u62a5\u6587\u4fe1\u606f\u91cc\u89c2\u5bdf\u5230\u4ece\u8282\u70b9\u62a5\u65870x10\u6210\u529f\u53d1\u51fa\u54cd\u5e94\u62a5\u6587\uff0c\u4e3b\u8282\u70b9\u540c\u6837\u63a5\u6536\u6210\u529f\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\u540c\u661fLIN\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b\"\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5bfc\u8bfb LIN \u662f Local Interconnect Network \u7684\u7f29\u5199\uff0c\u662f\u57fa\u4e8e UART\/SCI( […]<\/p>\n","protected":false},"author":4,"featured_media":2092,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"on","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[90],"tags":[58,95,94],"class_list":{"0":"post-2091","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-software-tutorial","8":"tag-lin","9":"tag-95","11":"entry","12":"has-media","13":"owp-thumbs-layout-horizontal","14":"owp-btn-normal","15":"owp-tabs-layout-horizontal","16":"has-no-thumbnails","17":"has-product-nav"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/posts\/2091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/comments?post=2091"}],"version-history":[{"count":0,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/posts\/2091\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/media\/2092"}],"wp:attachment":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/categories?post=2091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/tags?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}