{"id":294205,"date":"2024-11-07T20:04:58","date_gmt":"2024-11-07T12:04:58","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxtxckwhzkck.html"},"modified":"2024-11-07T20:04:58","modified_gmt":"2024-11-07T12:04:58","slug":"lxtxckwhzkck","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxtxckwhzkck.html","title":{"rendered":"Linux \u7cfb\u7edf\u4e0b\u4e32\u53e3\u7ef4\u62a4\uff1a\u67e5\u770b\u4e32\u53e3\u4fe1\u606f\u7684\u5173\u952e\u6307\u4ee4"},"content":{"rendered":"

\u5728\u73b0\u4ee3\u8ba1\u7b97\u673a\u7cfb\u7edf\u64cd\u4f5c\u4e2d\uff0cLinux<\/a>\u7cfb\u7edf\u4e0b\u7684\u4e32\u53e3\u7ef4\u62a4\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\uff0c\u5b83\u662f\u4e00\u9879\u6280\u672f\u6027\u8f83\u5f3a\u7684\u5de5\u4f5c\u3002\u4e32\u53e3\u5728\u4f17\u591a\u8bbe\u5907\u8fde\u63a5\u548c\u6570\u636e\u4f20\u8f93\u7684\u573a\u5408\u4e2d\u626e\u6f14\u7740\u5173\u952e\u89d2\u8272\uff0c\u638c\u63e1\u76f8\u5173\u7684\u7ef4\u62a4\u6307\u4ee4\uff0c\u5bf9\u4e8e\u786e\u4fdd\u4e32\u53e3\u987a\u7545\u9ad8\u6548\u5730\u8fd0\u4f5c\u5927\u6709\u88e8\u76ca\u3002<\/p>\n

\u67e5\u770b\u4e32\u53e3\u4fe1\u606f<\/b><\/p>\n

\u4e3a\u4e86\u7ef4\u62a4\u4e32\u53e3\uff0c\u9996\u5148\u8981\u4e86\u89e3\u5176\u72b6\u6001\u7b49\u76f8\u5173\u4fe1\u606f\u3002\u5728Linux<\/a>\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u201cdmesg|greptty\u201d\u547d\u4ee4<\/a>\u6765\u67e5\u770b\u4e0e\u4e32\u53e3\u76f8\u5173\u7684\u5185\u6838\u65e5\u5fd7\u4fe1\u606f\u3002\u6b64\u547d\u4ee4\u80fd\u8fc5\u901f\u83b7\u53d6\u7cfb\u7edf\u542f\u52a8\u65f6\u4e32\u53e3\u4ea4\u4e92\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4e86\u89e3\u5230\u54ea\u4e9b\u8bbe\u5907\u8fde\u63a5\u5230\u4e86\u54ea\u4e2a\u4e32\u53e3\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u201cls-l\/dev\/tty*\u201d\u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u6240\u6709\u4e32\u53e3\u8bbe\u5907\u6587\u4ef6\u53ca\u5176\u6743\u9650\u7b49\u8be6\u7ec6\u4fe1\u606f\uff0c\u8fd9\u6709\u52a9\u4e8e\u6211\u4eec\u5bf9\u4e32\u53e3\u8bbe\u5907\u8fdb\u884c\u521d\u6b65\u8bc4\u4f30\uff0c\u786e\u8ba4\u5f53\u524d\u4e32\u53e3\u8bbe\u5907\u662f\u5426\u7b26\u5408\u9884\u671f\u3002<\/p>\n

\u5728\u5904\u7406\u5b9e\u9645\u6545\u969c\u6216\u662f\u65b0\u8bbe\u5907\u63a5\u5165\u65f6\uff0c\u67e5\u9605\u4e32\u53e3\u6570\u636e\u81f3\u5173\u91cd\u8981\u3002\u4e00\u65e6\u4e32\u53e3\u8bbe\u5907\u8fd0\u4f5c\u5f02\u5e38\uff0c\u501f\u52a9\u8fd9\u4e9b\u547d\u4ee4\u83b7\u53d6\u7684\u4fe1\u606f\uff0c\u6211\u4eec\u4fbf\u80fd\u5c06\u4e4b\u4e0e\u6b63\u5e38\u72b6\u6001\u4e0b\u7684\u6570\u636e\u76f8\u5bf9\u6bd4\uff0c\u8fdb\u800c\u53d1\u73b0\u6545\u969c\u7684\u7ebf\u7d22\u3002<\/p>\n

linux\u547d\u4ee4\u884c\u4e32\u53e3\u5de5\u5177_linux \u4e32\u53e3\u7ef4\u62a4 \u547d\u4ee4_linux\u4e32\u53e3\u8c03\u8bd5\u547d\u4ee4<\/p>\n

\u8bbe\u7f6e\u4e32\u53e3\u53c2\u6570<\/b><\/p>\n

\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5f97\u8c03\u6574\u4e32\u53e3\u53c2\u6570\u3002\u201cstty\u201d\u8fd9\u4e2a\u547d\u4ee4\u5c31\u80fd\u5e2e\u6211\u4eec\u89e3\u51b3\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u82e5\u8981\u8c03\u6574\u4e32\u53e3\u6ce2\u7279\u7387\uff0c\u53ea\u9700\u8f93\u5165\u201cstty-F\/dev\/ttyS1115200\u201d\uff0c\u8fd9\u6837\u5c31\u80fd\u5c06ttyS1\u4e32\u53e3\u7684\u6ce2\u7279\u7387\u8bbe\u5b9a\u4e3a115200\u3002<\/p>\n

\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u80fd\u901a\u8fc7\u6b64\u547d\u4ee4\u8c03\u6574\u6570\u636e\u4f4d\u548c\u505c\u6b62\u4f4d\u7b49\u3002\u82e5\u8981\u67e5\u770b\u4e32\u53e3\u5f53\u524d\u914d\u7f6e\uff0c\u53ef\u5355\u72ec\u6267\u884c\u201cstty-F\/dev\/ttyS1\u201d\u547d\u4ee4\uff0c\u65e0\u9700\u4efb\u4f55\u53c2\u6570\u3002\u5b83\u5c06\u5c55\u793a\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u53ca\u6821\u9a8c\u4f4d\u7b49\u8be6\u7ec6\u4fe1\u606f\u3002\u8fd9\u6709\u52a9\u4e8e\u6211\u4eec\u6838\u5b9e\u4e32\u53e3\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\uff0c\u5e76\u89e3\u51b3\u53c2\u6570\u95ee\u9898\u3002\u82e5\u65b0\u4e32\u53e3\u8bbe\u5907\u9891\u7e41\u8fde\u63a5\u5931\u8d25linux\u547d\u4ee4\u8be6\u89e3\u8bcd\u5178\uff0c\u5f88\u53ef\u80fd\u662f\u56e0\u4e3a\u53c2\u6570\u8bbe\u7f6e\u4e0e\u8bbe\u5907\u9700\u6c42\u4e0d\u7b26\u3002\u6b64\u65f6\uff0cstty\u547d\u4ee4\u4fbf\u80fd\u6d3e\u4e0a\u7528\u573a\u3002<\/p>\n

linux\u547d\u4ee4\u884c\u4e32\u53e3\u5de5\u5177_linux \u4e32\u53e3\u7ef4\u62a4 \u547d\u4ee4_linux\u4e32\u53e3\u8c03\u8bd5\u547d\u4ee4<\/p>\n

\u6d4b\u8bd5\u4e32\u53e3\u901a\u4fe1<\/b><\/p>\n

\u4e32\u53e3\u662f\u5426\u5de5\u4f5c\u6b63\u5e38\uff0c\u5173\u952e\u5728\u4e8e\u901a\u4fe1\u662f\u5426\u987a\u7545\u3002minicom\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u4e32\u53e3\u901a\u4fe1\u6d4b\u8bd5\u5de5\u5177\u3002\u5728\u5b8c\u6210\u57fa\u672c\u7684\u4e32\u53e3\u8fde\u63a5\u540e\uff0c\u6211\u4eec\u4fbf\u80fd\u5728minicom\u4e2d\u8f93\u5165\u5e76\u67e5\u770b\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u7684\u6570\u636e\u3002<\/p>\n

\u201cecho\u201d\u547d\u4ee4\u914d\u5408\u4e32\u53e3\u8bbe\u5907\u4f7f\u7528\uff0c\u53ef\u4ee5\u8f7b\u677e\u68c0\u6d4b\u4e32\u53e3\u7684\u5199\u5165\u80fd\u529b\u3002\u4f8b\u5982linux makefile\uff0c\u6267\u884c\u201cecho'test'>\/dev\/ttyS1\u201d\u547d\u4ee4\uff0c\u82e5\u201ctest\u201d\u80fd\u6210\u529f\u5199\u5165\u5230\u4e32\u53e3\u8bbe\u5907ttyS1\uff0c\u5219\u8868\u660e\u8be5\u8bbe\u5907\u7684\u5199\u529f\u80fd\u57fa\u672c\u6b63\u5e38\u3002\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\uff0c\u82e5\u5bf9\u5df2\u5efa\u7acb\u7684\u4e32\u53e3\u8fde\u63a5\u6709\u7591\u8651\uff0c\u53ef\u4ee5\u5229\u7528\u6b64\u7c7b\u6d4b\u8bd5\u547d\u4ee4\u6765\u9a8c\u8bc1\u4e32\u53e3\u901a\u4fe1\u529f\u80fd\u662f\u5426\u8fd0\u884c\u826f\u597d\u3002<\/p>\n

\u4e32\u53e3\u8bbe\u5907\u6743\u9650\u7ba1\u7406<\/b><\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6743\u9650\u7ba1\u7406\u81f3\u5173\u91cd\u8981\u3002\u5373\u4fbf\u662f\u5bf9\u4e32\u53e3\u8bbe\u5907\u800c\u8a00\uff0c\u8fd9\u4e00\u70b9\u540c\u6837\u9002\u7528\u3002\u4e32\u53e3\u8bbe\u5907\u4f7f\u7528\u5f02\u5e38\uff0c\u6709\u65f6\u53ef\u80fd\u5c31\u662f\u6743\u9650\u8bbe\u7f6e\u4e0d\u5f53\u6240\u81f4\u3002\u6211\u4eec\u53ef\u901a\u8fc7\u201cchmod\u201d\u6307\u4ee4\u6765\u8c03\u6574\u4e32\u53e3\u8bbe\u5907\u7684\u6743\u9650\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u201cchmod666\/dev\/ttyS1\u201d\u8fd9\u4e00\u547d\u4ee4\uff0c\u5c31\u80fd\u786e\u4fdd\u6240\u6709\u7528\u6237\u90fd\u80fd\u5bf9ttyS1\u4e32\u53e3\u8bbe\u5907\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\u3002<\/p>\n

\u82e5\u4ec5\u9700\u8d4b\u4e88\u7279\u5b9a\u7528\u6237\u6743\u9650\uff0c\u5148\u5c06\u5176\u52a0\u5165\u76f8\u5e94\u7ec4\u522b\uff0c\u968f\u540e\u901a\u8fc7\u201cchown\u201d\u4e0e\u201cchgrp\u201d\u6307\u4ee4\u8c03\u6574\u5f52\u5c5e\u7528\u6237\u4e0e\u7ec4\u522b\u3002\u6bd4\u5982\uff0c\u82e5\u8981\u5c06\u4e32\u53e3\u8bbe\u5907ttyS1\u7684\u5f52\u5c5e\u6743\u8d4b\u4e88\u7528\u6237\u201cuser1\u201d\uff0c\u6267\u884c\u201cchownuser1:user1\/dev\/ttyS1\u201d\u5373\u53ef\u3002\u5728\u56e2\u961f\u5f00\u53d1\u6216\u591a\u7528\u6237\u670d\u52a1\u5668\u73af\u5883\u4e2d\uff0c\u59a5\u5584\u7ba1\u7406\u4e32\u53e3\u8bbe\u5907\u6743\u9650\uff0c\u80fd\u6709\u6548\u51cf\u5c11\u8bf8\u591a\u4e0d\u5fc5\u8981\u7684\u56f0\u6270\u3002<\/p>\n

linux \u4e32\u53e3\u7ef4\u62a4 \u547d\u4ee4_linux\u547d\u4ee4\u884c\u4e32\u53e3\u5de5\u5177_linux\u4e32\u53e3\u8c03\u8bd5\u547d\u4ee4<\/p>\n

\u4e32\u53e3\u6545\u969c\u8bca\u65ad<\/b><\/p>\n

\u9047\u5230\u4e32\u53e3\u6545\u969c\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u6545\u969c\u6392\u67e5\u3002\u9996\u5148\uff0c\u53ef\u4ee5\u91cd\u8bd5\u4e4b\u524d\u7684\u6d4b\u8bd5\u6b65\u9aa4\uff0c\u89c2\u5bdf\u662f\u5426\u662f\u539f\u672c\u6b63\u5e38\u7684\u64cd\u4f5c\u7a81\u7136\u5931\u6548\u3002\u6b64\u5916\uff0c\u68c0\u67e5\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6\u4e5f\u662f\u4e00\u4e2a\u6709\u6548\u7684\u624b\u6bb5\u3002\u7cfb\u7edf\u65e5\u5fd7\u53ef\u80fd\u8bb0\u5f55\u4e86\u4e32\u53e3\u51fa\u9519\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u8fd9\u80fd\u5e2e\u52a9\u6211\u4eec\u5224\u65ad\u662f\u786c\u4ef6\u95ee\u9898\u8fd8\u662f\u8f6f\u4ef6\u95ee\u9898\u3002<\/p>\n

\u82e5\u6570\u636e\u901a\u4fe1\u6b64\u524d\u8fd0\u884c\u5e73\u7a33\uff0c\u5374\u7a81\u7136\u51fa\u73b0\u6545\u969c\uff0c\u4e14\u95ee\u9898\u96c6\u4e2d\u5728\u6570\u636e\u67d0\u4e00\u90e8\u5206linux \u4e32\u53e3\u7ef4\u62a4 \u547d\u4ee4<\/strong>\uff0c\u90a3\u4e48\u786c\u4ef6\u53ef\u80fd\u51fa\u4e86\u95ee\u9898linux \u4e32\u53e3\u7ef4\u62a4 \u547d\u4ee4<\/strong>\uff0c\u6bd4\u5982\u4e32\u53e3\u7ebf\u53ef\u80fd\u5df2\u635f\u574f\u3002\u7cfb\u7edf\u5347\u7ea7\u540e\uff0c\u82e5\u65b0\u5b89\u88c5\u7684\u8f6f\u4ef6\u5bfc\u81f4\u4e32\u53e3\u65e0\u6cd5\u6b63\u5e38\u8fd0\u4f5c\uff0c\u90a3\u53ef\u80fd\u662f\u8f6f\u4ef6\u517c\u5bb9\u6027\u95ee\u9898\u3002\u6b64\u65f6\uff0c\u9700\u6df1\u5165\u8c03\u67e5\uff0c\u627e\u51fa\u662f\u54ea\u4e2a\u8f6f\u4ef6\u7684\u54ea\u4e2a\u90e8\u5206\u5e72\u6270\u4e86\u4e32\u53e3\u7684\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n

linux\u4e32\u53e3\u8c03\u8bd5\u547d\u4ee4_linux\u547d\u4ee4\u884c\u4e32\u53e3\u5de5\u5177_linux \u4e32\u53e3\u7ef4\u62a4 \u547d\u4ee4<\/p>\n

\u4e32\u53e3\u7ef4\u62a4\u7684\u6ce8\u610f\u4e8b\u9879<\/b><\/p>\n

\u8fdb\u884c\u4e32\u53e3\u7ef4\u62a4\u65f6\uff0c\u52a1\u5fc5\u91cd\u89c6\u5b89\u5168\u3002\u82e5\u5728\u4fee\u6539\u4e32\u53e3\u53c2\u6570\u65f6\u64cd\u4f5c\u4e0d\u5f53\uff0c\u53ef\u80fd\u4f1a\u5bf9\u5176\u4ed6\u76f8\u8fde\u8bbe\u5907\u9020\u6210\u5f71\u54cd\u3002\u56e0\u6b64\uff0c\u5728\u4fee\u6539\u914d\u7f6e\u524d\uff0c\u6700\u597d\u5148\u8fdb\u884c\u5907\u4efd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5bf9\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u590d\u5236\u4ee5\u5907\u4e0d\u65f6\u4e4b\u9700\u3002<\/p>\n

\u6b64\u5916\uff0c\u5fc5\u987b\u65f6\u523b\u7559\u610fLinux\u7cfb\u7edf\u7684\u66f4\u65b0\u52a8\u6001\u3002\u7cfb\u7edf\u7684\u65b0\u7248\u672c\u66f4\u65b0\u53ef\u80fd\u5bf9\u4e32\u53e3\u76f8\u5173\u4ee3\u7801\u8fdb\u884c\u4fee\u6539\u6216\u63d0\u5347\uff0c\u8fd9\u6216\u8bb8\u4f1a\u5bfc\u81f4\u73b0\u6709\u4e32\u53e3\u7b56\u7565\u9700\u8981\u76f8\u5e94\u8c03\u6574\u3002\u7279\u522b\u662f\u90a3\u4e9b\u540c\u65f6\u4f7f\u7528Windows\u548cLinux\u7cfb\u7edf\u7684\u7528\u6237\uff0c\u5728\u7ef4\u62a4\u4e32\u53e3\u65f6\uff0c\u66f4\u9700\u7559\u610f\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u7684\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n

\u4f60\u662f\u5426\u6e05\u695a\uff0c\u4f60\u624b\u5934\u7684Linux\u8bbe\u5907\u91cc\uff0c\u4e32\u53e3\u7a76\u7adf\u8fde\u63a5\u4e86\u54ea\u4e9b\u5173\u952e\u8bbe\u5907\uff1f\u4e0d\u59a8\u5728\u8bc4\u8bba\u533a\u7559\u4e0b\u4f60\u7684\u89c1\u89e3\u3002\u82e5\u89c9\u5f97\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u522b\u5fd8\u4e86\u70b9\u8d5e\u548c\u5c06\u5b83\u8f6c\u53d1\u7ed9\u66f4\u591a\u4eba\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u201cdmesg|greptty\u201d\u547d\u4ee4\u6765\u67e5\u770b\u4e0e\u4e32\u53e3\u76f8\u5173\u7684\u5185\u6838\u65e5\u5fd7\u4fe1\u606f\u3002\u6b64\u547d\u4ee4\u80fd\u8fc5\u901f\u83b7\u53d6\u7cfb\u7edf\u542f\u52a8\u65f6\u4e32\u53e3\u4ea4\u4e92\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u82e5\u8981\u67e5\u770b\u4e32\u53e3\u5f53\u524d\u914d\u7f6e\uff0c\u53ef\u5355\u72ec\u6267\u884c\u201cstty-F\/dev\/ttyS1\u201d\u547d\u4ee4\uff0c\u65e0\u9700\u4efb\u4f55\u53c2\u6570\u3002\u6211\u4eec\u53ef\u901a\u8fc7\u201cchmod\u201d\u6307\u4ee4\u6765\u8c03\u6574\u4e32\u53e3\u8bbe\u5907\u7684\u6743\u9650\u3002<\/p>\n","protected":false},"author":1,"featured_media":294206,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[109,1174,4118,1719,4117],"class_list":["post-294205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-linux","tag-ck","tag-xx-6","tag-xt-2","tag-wh"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294205","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=294205"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294205\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294206"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}