{"id":264034,"date":"2023-02-11T22:07:54","date_gmt":"2023-02-11T14:07:54","guid":{"rendered":"https:\/\/lrxjmw.cn\/rhzlzzkcksby.html"},"modified":"2023-02-11T22:07:54","modified_gmt":"2023-02-11T14:07:54","slug":"rhzlzzkcksby","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhzlzzkcksby.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u4e2d\u67e5\u770b\u4e32\u53e3\u8bbe\u5907\uff1f\uff08\u4e00\uff09\u2014\u2014Linux\u5185\u6838\u65e5\u5fd7"},"content":{"rendered":"

Linux<\/a>\u4f5c\u4e3a\u4e00\u79cd\u5f00\u6e90\u64cd\u4f5c\u7cfb\u7edf<\/a>\uff0c\u5728\u4e0d\u65ad\u53d1\u5c55\u7684\u8fc7\u7a0b\u4e2d\u5df2\u7ecf\u6210\u4e3a\u5f53\u4eca\u6700\u6d41\u884c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u4e00\uff0c\u5b83\u7684\u529f\u80fd\u5f3a\u5927\u3001\u5b89\u5168\u6027\u9ad8\uff0c\u5728\u7535\u8111\u9886\u57df\u5f97\u5230\u4e86\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u800c\u4e32\u53e3\u4e5f\u662fLinux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u4e00\u79cd\u5916\u8bbe\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u5982\u6253\u5370\u673a\u3001U\u76d8\u3001\u6570\u636e\u91c7\u96c6\u5668\u7b49\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u4e2d\u67e5\u770b\u4e32\u53e3\u8bbe\u5907\u3002<\/p>\n

\u9996\u5148linux\u67e5\u770b\u4e32\u53e3\u8bbe\u5907<\/strong>64\u4f4dlinux\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u201cdmesg\u201d\u547d\u4ee4<\/a>\u6765\u67e5\u770bLinux\u5185\u6838\u65e5\u5fd7\uff1a<\/p>\n

\u8be5\u547d\u4ee4\u4f1a\u663e\u793aLinux\u5185\u6838\u542f\u52a8\u65f6\u6240\u6709\u7684\u4fe1\u606f\uff08\u5305\u62ec\u542f\u52a8\u4fe1\u606f\u548c\u8bbe\u5907\u9a71\u52a8\u52a0\u8f7d\u4fe1\u606f\uff09\u3002\u5728\u8fd9\u4e9b\u4fe1\u606f\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u4e0e\u4e32\u53e3\u76f8\u5173\u7684\u4fe1\u606f\uff1a<\/p>\n

\u4e0a\u9762\u7684\u4fe1\u606f\u8868\u660e\uff1aLinux\u5185\u6838\u5df2\u6210\u529f\u52a0\u8f7d\u4e24\u4e2aserial8250\u9a71\u52a8\uff0c\u5206\u522b\u5bf9\u5e94ttyS0\u548cttyS1\u4e24\u4e2a\u4e32\u53e3\u3002\u8fd9\u91cc\u6211\u4eec\u770b\u5230\u4e86ttyS0\u5bf9\u5e94\u7684I\/O\u7aef\u53e3\u662f0x3f8\uff08\u5341\u516d\u8fdb\u5236\u8868\u793a\u6cd5\uff09\u3001IRQ\u662f4\uff1b\u800cttyS1\u5bf9\u5e94\u7684I\/O\u7aef\u53e3\u662f0x2f8\u3001IRQ\u662f3\u3002<\/p>\n

\u6b64\u5916ubuntu linux\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u201cls -l\/dev\/ttyS*\u201d\u547d\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u5df2\u5b58\u5728\u7684\u4e32\u53e3\u8bbe\u5907\u3002\u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u5f53\u524d\u5df2\u5b58\u5728\u7684\u6240\u6709ttyS\u5f00\u5934\u7684\u8bbe\u5907\u6587\u4ef6\u3002\u4f8b\u5982\uff1a<\/p>\n

\n

\u4e0a\u9762\u7684\u4fe1\u606f\u8868\u660e\u5f53\u524d\u5df2\u5b58\u57284\u4e2attyS\u5f00\u5934\u7684\u8bbe\u5907\u6587\u4ef6\u2014\u2014\u53734\u4e2a\u4e32\u53e3\u8bbe\u5907\u3002\u6b64\u65f6\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u8bbe\u5907\u6587\u4ef6\u6765\u8fde\u63a5\u5176\u5b83\u5916\u90e8\u8bbe\u5907\u4e86\u3002<\/p>\n

\u6700\u540e\uff0c\u5982\u679c\u60f3\u8981\u4e86\u89e3\u8be6\u7ec6\u4fe1\u606f\uff08\u5982IO\u7aef\u53e3\u3001IRQ\u3001\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u6821\u9a8c\u4f4d\u3001\u505c\u6b62\u4f4d\u7b49\u4fe1\u606f\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u201csetserial -a\/dev\/ttySn\u201d\u547d\u4ee4\u6765\u663e\u793a\u8be6\u5c3d\u7684\u4fe1\u606f\u3002\u4f8b\u5982setserial -a\/dev\/ttyS0\u547d\u4ee4\u4f1a\u663e\u793a\u51fattyS0\u5bf9\u5e94\u7684\u8be6\u5c3d\u4fe1\u606f\u3002<\/p>\n

\u603b\u4e4blinux\u67e5\u770b\u4e32\u53e3\u8bbe\u5907<\/strong>\uff0c\u5728Linux\u4e2d\u5982\u4f55\u53bb\u627e\u5230\u5df2\u5b58\u5728\u7684\u4e32\u53e3\u8bbe\u5907\u5e76\u4e86\u89e3\u5176\u8be6\u5c3d\u4fe1\u606f\u5c31\u662f\u672c\u6587\u6240\u8981\u8bf4\u660e\u7684\u5185\u5bb9\u3002\u76f8\u5173\u7684\u547d\u4ee4\u5c31\u662fdmesg\u548cls -l\/dev\/ttyS*\u3001setserial -a\/dev\/ttySn \u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u4e2d\u67e5\u770b\u4e32\u53e3\u8bbe\u5907\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u201cdmesg\u201d\u547d\u4ee4\u6765\u67e5\u770bLinux\u5185\u6838\u65e5\u5fd7\uff1a\u4e0a\u9762\u7684\u4fe1\u606f\u8868\u660e\uff1aLinux\u5185\u6838\u5df2\u6210\u529f\u52a0\u8f7d\u4e24\u4e2aserial8250\u9a71\u52a8\uff0c\u5206\u522b\u5bf9\u5e94ttyS0\u548cttyS1\u4e24\u4e2a\u4e32\u53e3\u3002-l\/dev\/ttyS*\u201d\u547d\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u5df2\u5b58\u5728\u7684\u4e32\u53e3\u8bbe\u5907\u3002\u4e0a\u9762\u7684\u4fe1\u606f\u8868\u660e\u5f53\u524d\u5df2\u5b58\u57284\u4e2attyS\u5f00\u5934\u7684\u8bbe\u5907\u6587\u4ef6\u2014\u2014\u53734\u4e2a\u4e32\u53e3\u8bbe\u5907\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-264034","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/264034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=264034"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/264034\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=264034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=264034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=264034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}