{"id":4885,"date":"2019-08-30T23:59:47","date_gmt":"2019-08-30T15:59:47","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4885"},"modified":"2019-08-30T23:59:48","modified_gmt":"2019-08-30T15:59:48","slug":"setserial","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/setserial","title":{"rendered":"setserial\u547d\u4ee4 – \u8bbe\u7f6e\u6216\u663e\u793a\u4e32\u53e3\u7684\u76f8\u5173\u4fe1\u606f"},"content":{"rendered":"\n

setserial\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4e32\u53e3\u6216\u663e\u793a\u76ee\u524d\u4e32\u53e3\u7684\u72b6\u6001\u4fe1\u606f\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>setserial [\u53c2\u6570] [\u8bbe\u5907]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-a <\/td>\u663e\u793a\u8be6\u7ec6\u4fe1\u606f<\/td><\/tr>
-b <\/td>\u663e\u793a\u6458\u8981\u4fe1\u606f<\/td><\/tr>
-g <\/td>\u663e\u793a\u4e32\u53e3\u7684\u76f8\u5173\u4fe1\u606f<\/td><\/tr>
-G <\/td>\u4ee5\u6307\u4ee4\u5217\u8868\u7684\u683c\u5f0f\u6765\u663e\u793a\u4fe1\u606f<\/td><\/tr>
-q <\/td>\u6267\u884c\u65f6\u663e\u793a\u8f83\u5c11\u7684\u4fe1\u606f <\/td><\/tr>
-v <\/td>\u6267\u884c\u65f6\u663e\u793a\u8f83\u591a\u7684\u4fe1\u606f<\/td><\/tr>
-V <\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u4e32\u53e3\/dev\/ttyS1\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setserial -g \/dev\/ttyS1<\/pre>\n\n\n\n

\u663e\u793a\u4e32\u53e3\/dev\/ttyS1\u7684\u7b80\u7565\u4fe1\u606f\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# setserial -q \/dev\/ttyS1 <\/pre>\n\n\n\n

\u663e\u793a\u4e32\u53e3\/dev\/ttyS1\u7684\u4fe1\u8be6\u7ec6\u606f\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# setserial -a \/dev\/ttyS1  <\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

setserial\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4e32\u53e3\u6216\u663e\u793a\u76ee\u524d\u4e32\u53e3\u7684\u72b6\u6001\u4fe1\u606f\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1asetserial [\u53c2\u6570] [\u8bbe […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4885"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4885"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4885\/revisions"}],"predecessor-version":[{"id":4930,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4885\/revisions\/4930"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}