{"id":6115,"date":"2022-09-02T15:11:59","date_gmt":"2022-09-02T07:11:59","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=6115"},"modified":"2024-04-23T15:20:27","modified_gmt":"2024-04-23T07:20:27","slug":"how-tsmaster-realizes-j1939-multi-frame-message-sending-and-receiving","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/how-tsmaster-realizes-j1939-multi-frame-message-sending-and-receiving\/","title":{"rendered":"\u65b0\u529f\u80fd\u53d1\u5e03 | TSMaster\u5982\u4f55\u5b9e\u73b0J1939\u591a\u5e27\u62a5\u6587\u6536\u53d1"},"content":{"rendered":"\t\t
\u4f17\u6240\u5468\u77e5\uff0cJ1939\u534f\u8bae\u662f\u7531\u7f8e\u56fd\u6c7d\u8f66\u5de5\u7a0b\u5e08\u534f\u4f1a\uff08SAE\uff09\u5b9a\u4e49\u7684\u4e00\u7ec4\u6807\u51c6\u3002J1939\u6807\u51c6\u7528\u4e8e\u5361\u8f66\u3001\u516c\u5171\u6c7d\u8f66\u548c\u79fb\u52a8\u6db2\u538b\u7b49\u91cd\u578b\u8f66\u8f86\u3002\u5982\u4eca\u5927\u591a\u6570\u8f66\u8f86\u90fd\u901a\u8fc7CAN\u8fdb\u884cECU\u901a\u4fe1\u3002\u4f46\u662fCAN\u603b\u7ebf\u4ec5\u4ec5\u662f\u63d0\u4f9b\u4e86\u901a\u4fe1\u7684\u57fa\u7840\uff08\u5c31\u50cf\u662f\u7535\u8bdd\uff09\uff0c\u4f46\u662f\u6ca1\u6709\u63d0\u4f9b\u5bf9\u8bdd\u7684\u201c\u8bed\u8a00\u201d\u6765\u8fdb\u884c\u66f4\u590d\u6742\u7684\u64cd\u4f5c\u3002\u6240\u4ee5\u5728\u5927\u591a\u6570\u5927\u578b\u8f66\u8f86\u4e2d\uff0c\u8fd9\u4e2a\u201c\u8bed\u8a00\u201d\u5c31\u662fSAE\u5b9a\u4e49\u7684J1939\u6807\u51c6\u3002<\/p>
\u4eca\u5929\u6211\u4eec\u7ee7\u7eed\u6765\u4ecb\u7ecdTSMaster\u65b0\u529f\u80fd\u2014J1939\u591a\u5e27\u62a5\u6587\u6536\u53d1\u3002\u8fd9\u4e2a\u529f\u80fd\u5c5e\u4e8eJ1939\u7684\u9ad8\u7ea7\u529f\u80fd\uff0c\u9700\u8981license\u7684\u6388\u6743\uff0c\u5177\u4f53\u64cd\u4f5c\u9700\u6c42\u53ef\u4ee5\u8054\u7cfb\u6211\u4eec\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 \u6211\u4eec\u5047\u8bbe\u5df2\u7ecf\u62e5\u6709\u4e86\u5e26license\u7684\u786c\u4ef6\uff0c\u4ee5TC1005\u4e3a\u4f8b\uff0c\u9009\u62e9\u786c\u4ef6\u901a\u9053\u540e\u8fde\u63a5\u5e94\u7528\u7a0b\u5e8f\uff0c\u968f\u540e\u6253\u5f00about\u7a97\u53e3\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u62e5\u6709license\u7684\u5217\u8868\u3002\u5176\u4e2d\u6709\u4e00\u4e2aJ1939\u7684option\uff0c\u63a5\u4e0b\u6765\u4ecb\u7ecd\u8fd9\u4e2a\u529f\u80fd\u7684\u4f7f\u7528\u3002<\/p><\/section> > \u9996\u5148\u6253\u5f00TSMaster\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u8fdb\u5165demo\u6587\u4ef6\u5939\uff0c\u627e\u5230\u793a\u4f8b\u6570\u636e\u5e93J1939ILDemo\u7684\u6570\u636e\u5e93\u6587\u4ef6\u3002\u6211\u4eec\u5c06\u5176\u62d6\u5165TSMaster\u4e2d\uff0c\u8fd9\u4e2a\u62d6\u5165\u7684\u8fc7\u7a0b\u9700\u8981\u5728\u7a0b\u5e8f\u65ad\u5f00\u8fde\u63a5\u7684\u65f6\u5019\u6765\u5b8c\u6210\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u8fd9\u4e2a\u6570\u636e\u5e93\u91cc\u9762\u6709\u56db\u5e27\u62a5\u6587\uff0c\u5b83\u7684PGN\u5206\u522b\u4e3aEF00\uff0cEF00\uff0cFF02\u548cFF01\u3002<\/p><\/section> > \u5176\u4e2d\u524d\u4e24\u5e27\u4e3a\u70b9\u5bf9\u70b9\u7684\u591a\u5e27\uff0c\u5206\u522b\u662f\u8282\u70b92\u5f801\u53d1\uff0c1\u5f802\u53d1\uff1b\u540e\u4e24\u4e2a\u662f\u5e7f\u64ad\uff0c\u5206\u522b\u662f\u5730\u57402\u7684\u5e7f\u64ad\u548c\u5730\u57401\u7684\u5e7f\u64ad\u3002\u4ee5\u7b2c\u4e00\u5e27\u4e3a\u4f8b\uff0c\u4ed6\u7684DLC=35\u4e2a\u5b57\u8282\uff0c\u8fd9\u610f\u5473\u7740\u8fd9\u4e2a\u4fe1\u53f7\u53ef\u4ee5\u5728\u8fd935\u4e58\u4ee58\uff0c\u4e5f\u5c31\u662f280\u4e2a\u4f4d\u7f6e\u91cc\u9762\u4efb\u610f\u6392\u5e03\u3002\u90a3\u4e48\u62a5\u6587\u4e2d\u7684sgn1~4\u5c31\u662f\u6a21\u62df\u4e86\u8fd9\u79cd\u60c5\u51b5\u3002\u5982\u679c\u5e0c\u671b\u53d1\u9001\u8fd9\u4e9b\u62a5\u6587\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u53d1\u9001\u7a97\u53e3\uff0c\u6211\u4eec\u6253\u5f00CAN Transmit\u7a97\u53e3\uff0c\u70b9\u51fb\u5de6\u4e0a\u89d2\u7684\u6765\u81ea\u6570\u636e\u5e93\u7684\u6309\u94ae\uff0c\u9009\u62e9\u521a\u624d\u770b\u5230\u7684\u56db\u5e27\u62a5\u6587\uff0c\u7136\u540e\u518d\u5c06\u89c6\u56fe\u5207\u6362\u6210J1939\uff0c\u8fd9\u6837\u534f\u8bae\u76f8\u5173\u7684\u4fe1\u606f\u5c31\u4e00\u89c8\u65e0\u4f59\u4e86\u3002<\/p><\/section> \u524d\u4e24\u4e2a\u662f\u70b9\u5bf9\u70b9\uff0c\u540e\u4e24\u4e2a\u662f\u5e7f\u64ad\uff0c\u53ef\u4ee5\u4ece\u76ee\u7684\u5730\u5740\u770b\u51fa\u6765\uff0c\u5bf9\u4e8e\u5e7f\u64ad\u62a5\u6587\u6765\u8bb2\uff0c\u53d1\u9001\u8282\u70b9\u53ea\u8981\u81ea\u987e\u81ea\u7684\u53d1\u9001\u5c31\u53ef\u4ee5\u4e86\u3002\u800c\u5bf9\u4e8e\u524d\u4e24\u4e2a\u70b9\u5bf9\u70b9\u7684\u53d1\u9001\u8fc7\u7a0b\uff0c\u4e0d\u4f46\u9700\u8981\u53d1\u9001\u8282\u70b9\uff0c\u8fd8\u9700\u8981\u63a5\u6536\u8282\u70b9\u5728\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u5e94\u7b54\uff0c\u624d\u80fd\u5b8c\u6210\u6574\u4e2a\u53d1\u9001\u8fc7\u7a0b\u3002\u6240\u4ee5\u6211\u4eec\u8fd8\u9700\u8981\u6fc0\u6d3bTSMaster\u5185\u7f6e\u7684J1939\u7684\u4eff\u771f\u8282\u70b9\u3002<\/p> > \u63a5\u4e0b\u6765\u6211\u4eec\u6765\u5230\u4eff\u771f\uff0cJ1939\u7684\u4eff\u771f\u914d\u7f6e\u5bf9\u8bdd\u6846\u91cc\u9762\uff0c\u53ef\u4ee5\u770b\u5230\u8282\u70b91\u548c2\uff0c\u5206\u522b\u88ab\u6807\u6ce8\u4e3aNode1\u548cNode2\uff0c\u6240\u6709\u7684\u8282\u70b9\u90fd\u52fe\u9009\u4e86\u4eff\u771f\u53d1\u9001\u529f\u80fd\uff0c\u4f46\u662f\u4eff\u771f\u63a5\u6536\u529f\u80fd\u9ed8\u8ba4\u662f\u6ca1\u6709\u52fe\u9009\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6fc0\u6d3brbs\u7684\u65b9\u6cd5\u6765\u81ea\u52a8\u6fc0\u6d3b\u8fd9\u4e24\u4e2a\u63a5\u6536\u7684\u529f\u80fd\uff0c\u540c\u65f6\u5462\u4e5f\u53ef\u4ee5\u624b\u52a8\u52fe\u4e0a\uff0c\u5728\u6b64\u6211\u4eec\u5c31\u624b\u52a8\u52fe\u9009\uff0c\u5e76\u4e14\u70b9\u51fb\u5e94\u7528\u8bbe\u7f6e\u6765\u5173\u95ed\u5bf9\u8bdd\u6846\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t > \u8fd9\u4e2a\u65f6\u5019\u5c31\u53ef\u4ee5\u542f\u52a8\u4eff\u771f\u4e86\uff0c\u6211\u4eec\u6309\u4e0bF5\uff0c\u7136\u540e\u6253\u5f00trace\u7a97\u53e3\uff0c\u968f\u540e\u5462\u6211\u4eec\u6fc0\u6d3b\u8fd94\u4e2a\u8282\u70b9\u7684\u8fd94\u4e2a\u62a5\u6587\u7684\u53d1\u9001\uff0c\u5c31\u4f9d\u6b21\u70b9\u51fb\u53d1\u9001\u5c31\u53ef\u4ee5\u4e86\u3002\u4e8e\u662f\u5728\u53f3\u4fa7\u7684trace\u7a97\u53e3\u4e2d\u95f4\u5c31\u53ef\u4ee5\u770b\u5230\u8fd94\u4e2a\u591a\u5e27\u62a5\u6587\u7684\u63a5\u6536\u60c5\u51b5\u3002\u4ed6\u4eec\u7684DLC\u5206\u522b\u662f\u53f3\u8fb9\u768435\uff0c36\uff0c13\u548c33\uff0c\u7136\u540e\u53f3\u8fb9\u663e\u793a\u7684\u5c31\u662f\u4ed6\u4eec\u7684\u9ed8\u8ba4\u7684\u6570\u636e\u6bb5\u9ed8\u8ba4\u90fd\u662f0\u3002<\/p><\/section> >\u00a0\u6211\u4eec\u5f53\u7136\u53ef\u4ee5\u4fee\u6539\u4ed6\u4eec\u7684\u6570\u636e\u5b57\u8282\u6765\u4efb\u610f\u7684\u4fee\u6539\u4ed6\u4eec\u7684\u6570\u636e\uff0c\u90a3\u8fd9\u91cc\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u662f\u6211\u4eec\u521a\u624d\u4fee\u6539\u7684\u7ed3\u679c\uff0c\u6211\u4eec\u5f53\u7136\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4fe1\u53f7\u751f\u6210\u5668\u7684\u65b9\u5f0f\u6765\u6539\uff0c\u6bd4\u5982\u8bf4\u6211\u4eec\u9009\u4e2d\u7b2c\u4e00\u5e27\u62a5\u6587\uff0c\u5728\u8fd9\u4e2asgn1 a2\u4e0a\u9762\u9009\u62e9\u6b63\u5f26\uff0c\u7136\u540e\u70b9\u51fb\u914d\u7f6e\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u5cf0\u503c\u6539\u7684\u7a0d\u5fae\u5927\u4e00\u70b9\uff0c\u7136\u540e\u70b9\u51fb\u5e94\u7528\u3001\u70b9\u51fb\u542f\u52a8\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2asgn1 a2\u5c31\u5728\u53d1\u751f\u53d8\u5316\u3002<\/p><\/section> > \u63a5\u4e0b\u6765\u53ef\u4ee5\u6253\u5f00\u56fe\u5f62\u7a97\u53e3\uff0c\u5c06\u8fd9\u4e2a\u4fe1\u53f7\u62d6\u8fdb\u6765\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u6b63\u5f26\u6ce2\uff0c\u5f53\u7136\u8fd9\u4e2a\u6b63\u5f26\u6ce2\u7684\u9891\u7387\u6bd4\u8f83\u4f4e\uff0c\u8fd9\u662f\u56e0\u4e3a\u5b83\u662f\u591a\u5e27\uff0c\u5b83\u53d1\u4e00\u5e27\u9700\u8981200\u6beb\u79d2\uff0c\u6240\u4ee5\u4e00\u79d2\u53ea\u67095\u4e2a\u70b9\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u7684\u7a97\u53e3\u6765\u8fdb\u884c\u89c2\u5bdf\uff0c\u6bd4\u5982\u8bf4\u6570\u503c\u663e\u793a\u3002<\/p><\/section> > \u6700\u540e\u6211\u4eec\u6253\u5f00\u6570\u503c\u663e\u793a\uff0c\u70b9\u51fb\u8fd9\u91cc\u7684\u6dfb\u52a0\u6309\u94ae\uff0c\u53ef\u4ee5\u9009\u62e9\u6211\u4eec\u7684\u4fe1\u53f7\uff0c\u5f53\u7136\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u62d6\u52a8\u7684\u65b9\u5f0f\u5c06\u4fe1\u53f7\u62d6\u8fdb\u53bb\uff0c\u4e4b\u540e\u53ef\u4ee5\u8c03\u6574\u7a97\u53e3\u7684\u5927\u5c0f\uff0c\u4f7f\u5f97\u4fe1\u53f7\u503c\u53ef\u4ee5\u5728\u4e0a\u9762\u663e\u793a\u3002\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u9762\u677f\u7684\u65b9\u5f0f\u6dfb\u52a0\uff0c\u5f53\u7136\u9762\u677f\u9700\u8981\u8bbe\u8ba1\uff0c\u6240\u4ee5\u9996\u5148\u9700\u8981\u505c\u6b62\u4eff\u771f\uff0c\u505c\u6b62\u4eff\u771f\u4e4b\u540e\u6211\u4eec\u53ef\u4ee5\u5c06\u4fe1\u53f7\u62d6\u5165\u9762\u677f\uff0c\u518d\u542f\u52a8\u4eff\u771f\uff0c\u7136\u540e\u518d\u542f\u52a8\u62a5\u6587\u7684\u53d1\u9001\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u4e9b\u4fe1\u53f7\u90fd\u53ef\u4ee5\u5728\u6d4b\u91cf\u7a97\u53e3\u91cc\u9762\u6b63\u786e\u7684\u663e\u793a\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 J1939\u6709\u4e00\u5957API\u7684\u51fd\u6570\uff0c\u901a\u8fc7\u8fd9\u4e00\u5957API\u5c31\u53ef\u4ee5\u5b9e\u73b0J1939\u7684\u4fe1\u53f7\u8bfb\u5199\u3001\u62a5\u6587\u53d1\u9001\u7b49\u7b49\u4e00\u7cfb\u5217\u529f\u80fd\u3002<\/p> > \u6211\u4eec\u6253\u5f00\u4e00\u4e2a\u81ea\u52a8\u5316\u6a21\u5757\uff0c\u7136\u540e\u9009\u4e2d\u5165\u53e3\u70b9\uff0c\u6309\u56de\u8f66\u589e\u52a0\u4e00\u7cfb\u5217\u7684\u52a8\u4f5c\u3002\u6211\u4eec\u9009\u7b2c\u4e00\u4e2a\u52a8\u4f5c\uff0c\u7136\u540e\u8bbe\u7f6e\u4ed6\u4e3aAPI\u51fd\u6570\u8c03\u7528\uff0c\u5728\u8fc7\u6ee4\u5668\u91cc\u9762\u6572\u51651939\uff0c\u5c31\u53ef\u4ee5\u770b\u52301939\u7684\u4e00\u7cfb\u5217API\u3002\u8fd9\u5176\u4e2d\u67091939\u7684\u6807\u8bc6\u7b26\u7684get\u548cset\u65b9\u6cd5\u4ee5\u53ca\u4e0b\u9762\u7684\u591a\u5e27\u62a5\u6587\u7684\u53d1\u9001\u65b9\u6cd5\u3002\u5173\u4e8e\u6807\u8bc6\u7b26\u7684get\u548cset\u65b9\u6cd5\u5728\u6b64\u5c31\u4e0d\u5c55\u5f00\u63cf\u8ff0\uff0c\u5927\u5bb6\u5b8c\u5168\u53ef\u4ee5\u67e5\u770bc\u4ee3\u7801\u7f16\u8f91\u5668\u91cc\u9762\u7684\u5c0f\u7a0b\u5e8f\u7684\u5e2e\u52a9\u6587\u6863\uff0c\u91cc\u9762\u6709\u8be6\u7ec6\u7684\u4ecb\u7ecd\uff0c\u5728\u53f3\u4fa7\u4e5f\u53ef\u4ee5\u770b\u5230\u793a\u4f8b\u4ee3\u7801\u3002\u90a3\u4e48\u8fd9\u6b21\u6211\u4eec\u7740\u91cd\u4ecb\u7ecd\u4e00\u4e0b1939\u7684\u591a\u5e27\u53d1\u9001\u7684API\u3002<\/p><\/section> > \u9996\u5148\u6211\u4eec\u53ef\u4ee5\u9009\u4e2d1939\u5f02\u6b65\u53d1\u9001API\uff0c\u90a3\u4e48\u53d1\u9001\u5206\u4e3a\u540c\u6b65\u548c\u5f02\u6b65\u4e24\u79cd\uff0c\u540c\u6b65\u610f\u5473\u7740\u53d1\u5b8c\u4e4b\u540e\u7a0b\u5e8f\u624d\u4f1a\u5f80\u4e0b\u8d70\uff0c\u5f02\u6b65\u5219\u610f\u5473\u7740\u53ea\u8981\u5c06\u6570\u636e\u63a8\u5165\u53d1\u9001\u7f13\u5b58\uff0c\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u7ee7\u7eed\u5f80\u4e0b\uff0c\u90a3\u4e48\u4e0d\u7ba1\u662f\u540c\u6b65\u8fd8\u662f\u5f02\u6b65\uff0c\u8fd8\u5206\u4e86\u4e24\u79cd\u7c7b\u578b\u3002\u4e00\u79cd\u662f\u4e0d\u5e26\u5b57\u7b26\u4e32\u7684\u53d1\u9001\uff0c\u4e00\u79cd\u662f\u57fa\u4e8e\u5b57\u7b26\u4e32\u7684\u53d1\u9001\u3002\u90a3\u4e48\u57fa\u4e8e\u5b57\u7b26\u4e32\u65b9\u5f0f\u7684\u53d1\u9001\uff0c\u4ed6\u7684\u6570\u636e\u662f\u4ee5\u9017\u53f7\u6765\u8fdb\u884c\u5206\u9694\uff0c\u90a3\u4e48\u8fd9\u4e24\u79cd\u65b9\u5f0f\u81ea\u52a8\u5316\u6a21\u5757\u90fd\u662f\u652f\u6301\u7684\u3002\u56e0\u4e3a\u5728\u81ea\u52a8\u5316\u6a21\u5757\u91cc\u9762\uff0c\u6570\u7ec4\u5747\u4ee5\u9017\u53f7\u5206\u9694\u7684\u5b57\u7b26\u4e32\u8868\u8fbe\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u5f02\u6b65\u53d1\u9001\uff0c\u51fd\u6570\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u51fd\u6570\u67097\u4e2a\u8f93\u5165\u7684\u53c2\u6570\u3002<\/p><\/section> >\u00a0\u90a3\u4e48\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u901a\u9053\u53f7\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u5e38\u91cf\uff0c\u6bd4\u5982\u8bf4\uff0cchannel1\u7136\u540ePGN\uff0c\u5728\u6b64\u6211\u4eec\u5c31\u53ef\u4ee5\u8f93\u5165\u3002\u6bd4\u5982\u8bf4\u6211\u4eec\u53ef\u4ee5\u9009\u5e7f\u64ad\uff0c\u5c31\u662f\u521a\u624d\u770b\u5230\u7684OxFF01\uff0c\u7136\u540e\u4f18\u5148\u7ea7\u662f6\uff0c\u9ed8\u8ba4\u6e90\u5730\u5740\u662f2\uff0c\u76ee\u7684\u5730\u5740\u662f1\uff0c\u7136\u540ePDU\u7684\u6570\u636e\u6211\u4eec\u53ef\u4ee5\u968f\u610f\u586b\u5199\u3002\u6bd4\u5982\u8bf4Ox11\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u590d\u5236\u591a\u4efd\uff0c\u5bc6\u8d34\u591a\u4efd\uff0c\u8fd9\u91cc\u957f\u5ea6\u662f\u53ef\u4ee5\u5f88\u957f\u3002\u4ed6\u7684\u5b9e\u9645\u957f\u5ea6\u662f\u88ab\u6700\u540e\u4e00\u4e2a\u53c2\u6570\u9650\u5236\uff0c\u90a3\u4e48\u5728\u6b64\u6211\u4eec\u53ef\u4ee5\u4fdd\u6301\u8ddfdbc\u7684\u4e00\u81f4\uff0c\u4e5f\u5c31\u662f35\uff0c\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u542f\u52a8\uff0c\u6309F9\u542f\u52a8\u53d1\u9001\u6216\u8005\u70b9\u51fb\u53d1\u9001\u6309\u94ae\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u53d1\u9001\u6210\u529f\u3002<\/p><\/section> > \u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230trace\u7a97\u53e3\u91cc\u9762\u663e\u793a\u7684\u53d1\u9001\u7684\u4fe1\u53f7\u5185\u5bb9\u8ddf\u6211\u4eec\u7684\u8bbe\u7f6e\u662f\u4e00\u6a21\u4e00\u6837\uff0c\u6700\u540e\u5982\u679c\u8bf4\u6570\u636e\u4e0d\u591f\uff0c\u5c31\u4f1a\u4ee50\u6765\u8865\u5145\u3002\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u628a\u6570\u636e\u586b\u591a\u4e00\u70b9\uff0c\u518d\u542f\u52a8\u53d1\u9001\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u6570\u636e\u957f\u5ea6\u5c31\u4f1a\u6b63\u597d\u8fbe\u5230\u6211\u4eec\u7684\u6240\u9700\u8981\u7684\u957f\u5ea6\u3002<\/p><\/section> \u90a3\u8fd9\u662f\u539f\u59cb\u62a5\u6587\u7684\u53d1\u9001\u65b9\u6cd5\uff0c\u5018\u82e5\u9700\u8981\u4fee\u6539\u62a5\u6587\u91cc\u9762\u7684\u4fe1\u53f7\u7684\u503c\uff0c\u5c31\u9700\u8981rbs\u7684\u4eff\u771f\u5f15\u64ce\u6765\u652f\u6301\uff0c\u90a3\u6211\u4eec\u53ef\u4ee5\u70b9\u51fbCAN\u603b\u7ebf\u4eff\u771f\u7a97\u53e3\u6765\u6a21\u62df\u8282\u70b9\u7684\u884c\u4e3a\uff0c\u6211\u4eec\u6fc0\u6d3b\u8fd9\u4e24\u4e2a\u8282\u70b9\uff0c\u7136\u540e\u5c06\u603b\u7ebf\u4eff\u771f\u8bbe\u7f6e\u4e3a\u81ea\u52a8\u542f\u52a8\uff0c\u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u770b\u5230rbs\u5df2\u7ecf\u5728\u5de5\u4f5c\u4e86\uff0c\u5e76\u4e14\u5f97\u5230\u4e86\u6211\u4eec\u901a\u8fc7\u53d1\u9001\u7a97\u53e3\u4e00\u6837\u7684\u7ed3\u679c\u3002<\/p> > \u5f53\u7136\u53d1\u9001\u7a97\u53e3\u8fd9\u4e2a\u65f6\u5019\u662f\u4e0d\u5e94\u8be5\u542f\u52a8\u53d1\u9001\uff0c\u56de\u5230\u81ea\u52a8\u5316\u6a21\u5757\u91cc\u9762\uff0c\u5220\u9664\u6211\u4eec\u7684\u539f\u59cb\u7684\u62a5\u6587\u53d1\u9001\u7684\u52a8\u4f5c\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u65b0\u7684\u52a8\u4f5c\u884d\u751f\u51fd\u6570\u8c03\u7528\uff0c\u5728\u6b64\u6211\u4eec\u641c\u7d22set Signal by address\uff0c\u901a\u8fc7\u8fd9\u4e2a\u51fd\u6570\u5c31\u53ef\u4ee5\u5b9e\u73b0rbs\u91cc\u9762\u4fe1\u53f7\u7684\u4efb\u610f\u4fee\u6539\u3002\u90a3\u8fd9\u91cc\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u662f\u4fe1\u53f7\u5730\u5740\u548c\u503c\uff0c\u90a3\u4e48\u4fe1\u53f7\u5730\u5740\u5c31\u662f\u6211\u4eec\u6240\u9700\u8981\u53d1\u9001\u7684\u4fe1\u53f7\u7684\u6570\u636e\u5e93\u5730\u5740\uff0c\u6211\u4eec\u53ef\u4ee5\u968f\u4fbf\u9009\u4e00\u4e2a\u6bd4\u5982\u8bf4A_Node1 signal 1_a1\uff0c\u6211\u4eec\u53ef\u4ee5\u70b9\u51fb\u590d\u5236\u6570\u636e\u5e93\u5730\u5740\uff0c\u7136\u540e\u5230\u8fd9\u91cc\u7c98\u8d34\u5373\u53ef\uff0c\u7136\u540e\u4ed6\u7684\u503c\u6211\u4eec\u53ef\u4ee5\u968f\u610f\u4fee\u6539\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u70b9\u51fb\u542f\u52a8\uff0c\u90a3\u4e48\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u8fd9\u4e2a\u4fe1\u53f7\u7684\u4fee\u6539\uff0c\u53ef\u4ee5\u770b\u5230A_Node1\u91cc\u9762\u7684\u8fd9\u4e2a\u4fe1\u53f7\u5df2\u7ecf\u53d8\u62101111\uff0c\u5c31\u662f\u6211\u4eec\u6240\u8bbe\u7f6e\u7684\u503c\uff0c\u90a3\u4e48\u8fd9\u5c31\u662f\u4fe1\u53f7\u7684\u53d1\u9001\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t \u5982\u679c\u662f\u5e0c\u671b\u63a5\u6536\u4e00\u4e2a\u4fe1\u53f7\u7684\u503c\uff0c\u8be5\u600e\u4e48\u505a\u5462\uff1f<\/p> \u6211\u4eec\u53ef\u4ee5\u7528\u5230signal server\u7684\u65b9\u6cd5\uff1a\u8fd8\u662f\u6765\u5230\u51fd\u6570\u8c03\u7528\uff0c\u5220\u9664\u6211\u4eec\u521a\u624d\u7684\u53d1\u9001\uff0c\u7136\u540e\u518d\u591a\u52a0\u51e0\u4e2a\u52a8\u4f5c\u3002\u6211\u4eec\u9996\u5148\u5c06\u5b83\u6539\u4e3a\u51fd\u6570\u8c03\u7528\uff0c\u7136\u540e\u8f93\u5165SGN SRV\uff0c\u8fd9\u5c31\u662fsignal server\u7684\u7cfb\u5217\u51fd\u6570\u3002<\/p> > \u90a3\u8fd9\u91cc\u9700\u8981\u4e00\u4e2a\u6d41\u7a0b\uff0c\u9996\u5148\u9700\u8981\u6ce8\u518c\u6211\u4eec\u5173\u5fc3\u7684\u4fe1\u53f7\uff0c\u9700\u8981\u7528\u5230register_can_signal_by_message ID\u6216\u8005\u662fname\uff0c\u6211\u4eec\u5728\u8fd9\u91cc\u9009\u62e9message ID\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u9700\u8981\u5230rbs\u91cc\u9762\u53bbcopy\u8fd9\u4e2a\u62a5\u6587\u7684ID\uff0ccopy\u8fc7\u6765\u7684\u65f6\u5019\u9700\u8981\u628a\u540e\u9762\u7684x\u5220\u6389\uff0c\u8ba9\u8fd9\u4e2a\u5b57\u7b26\u4e32\u662f\u4e00\u4e2a\u6709\u6548\u768416\u8fdb\u5236\u503c\uff0c\u901a\u9053\u8fd8\u662f\u53ef\u4ee5\u7528\u4e4b\u524d\u7684\u901a\u90531\uff0c\u7136\u540e\u4fe1\u53f7\u540d\u79f0\u5c31\u662f\u6211\u4eec\u5173\u5fc3\u7684\u4fe1\u53f7\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t > \u6bd4\u5982\u8bf4sgn1_a1\uff0c\u6211\u4eec\u81ea\u5df1\u76f4\u63a5\u8f93\u5165sgn1_a1\uff0cclient ID\u662f\u8fd9\u4e2a\u51fd\u6570\u6ce8\u518c\u6210\u529f\u4e4b\u540e\u7ed9\u5230\u6211\u4eec\u7a0b\u5e8f\u7684\u4e00\u4e2ahandle\uff0c\u6211\u4eec\u53ef\u4ee5\u65b0\u5efa\u4e2a\u53d8\u91cf\u6765\u5b58\u50a8\u5b83\uff0c\u5c31\u547d\u540dID\u5c31\u884c\u3002\u8fd9\u4e2a\u65f6\u5019\u76f4\u63a5\u5df2\u7ecf\u53ef\u4ee5\u70b9\u51fb\u672c\u5730\u53d8\u91cf\u5173\u8054\u6211\u4eec\u7684ID\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u7b49\u4e00\u4f1a\u518d\u8bfb\u53d6\u4fe1\u53f7\u7684\u503c\uff0c\u90a3\u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u8c03\u7528wait\u51fd\u6570\uff0c\u6bd4\u5982\u8bf4\u7b49\u4e2a3\u79d2\uff0c\u7136\u540e\u63a5\u4e0b\u53bb\u5c31\u662f\u4e00\u4e2a\u8bfb\u53d6\u8fc7\u7a0b\uff0c\u540c\u6837\u7528\u5230\u4e86Signal server sgnsrv get_can_signal\u7269\u7406\u503c\u3002\u6700\u540e\u901a\u8fc7\u8fd9\u4e2a\u65b9\u6cd5\u53bb\u53d6\u5f97\uff0c\u5f97\u5230\u7684\u4fe1\u53f7\u7684\u7269\u7406\u503c\uff0c\u90a3\u4e48\u5728\u8fd9\u91cc\u53ef\u4ee5\u540c\u6837\u9009\u62e9channel1 client ID\u5c31\u586b\u6211\u4eec\u521a\u624d\u6240\u5f97\u5230\u7684\u53d8\u91cfID\uff0c\u7136\u540e\u8fd9\u91cc\u5c31\u662f\u8f93\u51fa\u7684\u503c\uff0c\u6211\u4eec\u540c\u6837\u53ef\u4ee5\u7528\u4e00\u4e2a\u53d8\u91cf\u6765\u88c5\uff0c\u8fd9\u91cc\u9700\u8981\u6dfb\u52a0\u7684\u5c31\u662f\u4e2adouble\u578b\u7684\u53d8\u91cf\uff0cvalue\u5199\u4e2av\u5c31\u884c\uff0c\u7136\u540e\u5728\u8fd9\u4e2a\u5730\u65b9\u9009\u62e9v\uff0c\u7136\u540e\u540c\u65f6\u8fd8\u4f1a\u8fd4\u56de\u6700\u540e\u7684\u65f6\u95f4\u6233\uff0c\u5982\u679c\u4e0d\u9700\u8981\u7684\u8bdd\uff0c\u6211\u4eec\u8fd9\u91cc\u9ed8\u8ba4\u586b\u4e2a0\u5c31\u884c\u6216\u8005\u4e0d\u586b\u3002<\/p><\/section> > \u7136\u540e\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u5c06\u6211\u4eec\u8bfb\u5230\u7684\u503c\u6253\u5370\u51fa\u6765\uff0c\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u7528\u5230log\u51fd\u6570\u5b57\u7b26\u4e32\uff0c\u6211\u4eec\u53ef\u4ee5\u5199\u6211\u4eec\u7684\u53d8\u91cfv\u7684\u503c\u4f5c\u4e3a\u5b57\u7b26\u4e32\uff0c\u90a3\u4e48log level\uff0c\u53ef\u4ee5\u7528\u4e00\u79cd\u989c\u8272\uff0c\u6bd4\u5982\u8bf4\u7eff\u8272\uff0c\u7136\u540e\u6211\u4eec\u70b9\u51fb\u542f\u52a8\uff0c\u8fd9\u4e2a\u65f6\u5019\u9996\u5148\u83b7\u53d6ID\u7b49\u5f85\uff0c\u7136\u540e\u6700\u540e\u83b7\u53d6\u503c\u7ed3\u675f\uff0c\u90a3\u4e48\u6211\u4eec\u4f1a\u770b\u4e00\u4e0b\u6bcf\u4e00\u6b65\u9aa4\u7684\u8fd0\u884c\u7ed3\u679c\u3002\u5728\u8fd9\u91cc\u90fd\u6709\u53cd\u9988\uff0c\u8fd9\u91cc\u662f\u5b9e\u9645\u4f20\u5165\u7684\u53c2\u6570\u503c\uff0cwait\u7136\u540e\u8bfb\u5230\u7684\u53c2\u6570\u503c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u770b\u4e00\u4e0b\u6253\u5370\u51fa\u6765\u503c\u5c31\u662f111\uff0c\u5c31\u662f\u6211\u4eec\u4e4b\u524d\u8bbe\u5b9a\u7684\u503c\uff0c\u90a3\u4e48\u6211\u4eec\u5b8c\u5168\u53ef\u4ee5\u6539\u4e00\u4e0b\u8fd9\u4e2a\u503c\uff0c\u6bd4\u5982\u8bf4\u6539\u621012345\uff0c\u8fd9\u4e2a\u503c\u6700\u5927\u5c31\u662f2047\uff0c\u6211\u4eec\u5c31\u8bbe\u5b83\u4e3a2047\uff0c\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u53ea\u8981\u518d\u542f\u52a8\u4e00\u4e0b\u7a0b\u5e8f\uff0c\u6211\u4eec\u6253\u5f00log\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u83b7\u53d6\u7684\u503c\u8ddf\u6211\u4eec\u8bbe\u5b9a\u503c\u662f\u4e00\u6837\u3002\u8fd9\u5c31\u662f1939\u7cfb\u5217API\u7684\u7528\u6cd5\u3002<\/p><\/section>\u4e00\u3001J1939\u529f\u80fd\u4f7f\u7528<\/h4>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Use of J1939 functionality<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\u4e8c\u3001J1939\u4e00\u7cfb\u5217API\u51fd\u6570<\/h4>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
J1939 A series of API functions<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t