{"id":58313,"date":"2023-10-23T12:18:10","date_gmt":"2023-10-23T04:18:10","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=58313"},"modified":"2023-10-23T12:18:10","modified_gmt":"2023-10-23T04:18:10","slug":"wckbc","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/58313.html","title":{"rendered":"Win32\u4e32\u53e3\u7f16\u7a0b"},"content":{"rendered":"

  \u4e32\u53e3\u7f16\u7a0b\u662f\u4e00\u79cd\u5229\u7528\u4e32\u884c\u53e3\uff08Serial Port\uff09\u6765\u8fdb\u884c\u901a\u4fe1\u7684\u7f16\u7a0b\u6280\u672f\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5728\u4e24\u4e2a\u8ba1\u7b97\u673a\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\uff0c\u6216\u8005\u5728\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u4f8b\u5982\u626b\u63cf\u4eea\u3001\u6570\u636e\u91c7\u96c6\u5668\u3001\u5916\u90e8\u5b58\u50a8\u5668\u7b49\u7b49\u3002Win32\u4e32\u53e3\u7f16\u7a0b\u662f\u4e00\u79cd\u57fa\u4e8eWindows\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e32\u53e3\u7f16\u7a0b\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728Windows\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5feb\u901f\u5f00\u53d1\u4e32\u53e3\u7a0b\u5e8f\uff0c\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\u3002<\/p>\n

Win32\u4e32\u53e3\u7f16\u7a0b\u6280\u672f<\/h2>\n

  1.\u786c\u4ef6\u51c6\u5907<\/h3>\n

  \u8981\u5f00\u53d1Win32\u4e32\u53e3\u7f16\u7a0b\uff0c\u9996\u5148\u8981\u51c6\u5907\u597d\u76f8\u5e94\u7684\u786c\u4ef6\u8bbe\u5907\uff0c\u5305\u62ec\u652f\u6301RS232\u4e32\u53e3\u7684\u8ba1\u7b97\u673a\u3001RS232\u4e32\u53e3\u7ebf\u7f06\u3001RS232\u4e32\u53e3\u8f6c\u6362\u5668\u3001RS232\u4e32\u53e3\u8f6c\u6362\u5668\u9a71\u52a8\u7a0b\u5e8f\u3001RS232\u4e32\u53e3\u8f6c\u6362\u5668\u914d\u7f6e\u8f6f\u4ef6\u7b49\u3002<\/p>\n

  2.\u8f6f\u4ef6\u51c6\u5907<\/h3>\n

  \u4e3a\u4e86\u5f00\u53d1Win32\u4e32\u53e3\u7f16\u7a0b\uff0c\u9664\u4e86\u786c\u4ef6\u8bbe\u5907\u5916\uff0c\u8fd8\u9700\u8981\u51c6\u5907\u76f8\u5e94\u7684\u8f6f\u4ef6\uff0c\u5305\u62ecWin32\u4e32\u53e3\u7f16\u7a0b\u5f00\u53d1\u5de5\u5177\uff08\u5982Visual Studio\uff09\u3001Win32\u4e32\u53e3\u7f16\u7a0b\u5e93\uff08\u5982Win32 API\uff09\u3001Win32\u4e32\u53e3\u7f16\u7a0b\u6d4b\u8bd5\u5de5\u5177\uff08\u5982Hyper Terminal\uff09\u7b49\u3002<\/p>\n

  3.\u7f16\u5199\u4ee3\u7801<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u5c31\u53ef\u4ee5\u7f16\u5199Win32\u4e32\u53e3\u7f16\u7a0b\u4ee3\u7801\u4e86\u3002\u9996\u5148\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Win32\u4e32\u53e3\u7f16\u7a0b\u9879\u76ee\uff0c\u7136\u540e\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0Win32\u4e32\u53e3\u7f16\u7a0b\u5e93\uff0c\u6700\u540e\u5728\u9879\u76ee\u4e2d\u7f16\u5199Win32\u4e32\u53e3\u7f16\u7a0b\u4ee3\u7801\u3002<\/p>\n

  4.\u7f16\u8bd1\u4ee3\u7801<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u5c31\u53ef\u4ee5\u7f16\u8bd1Win32\u4e32\u53e3\u7f16\u7a0b\u4ee3\u7801\u4e86\u3002\u53ef\u4ee5\u4f7f\u7528Visual Studio\u6216\u8005\u5176\u4ed6\u7684\u7f16\u8bd1\u5668\u6765\u7f16\u8bd1Win32\u4e32\u53e3\u7f16\u7a0b\u4ee3\u7801\uff0c\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n

  5.\u6d4b\u8bd5\u4ee3\u7801<\/h3>\n

  \u6700\u540e\uff0c\u5c31\u53ef\u4ee5\u6d4b\u8bd5Win32\u4e32\u53e3\u7f16\u7a0b\u4ee3\u7801\u4e86\u3002\u53ef\u4ee5\u4f7f\u7528Hyper Terminal\u6216\u8005\u5176\u4ed6\u7684\u6d4b\u8bd5\u5de5\u5177\u6765\u6d4b\u8bd5Win32\u4e32\u53e3\u7f16\u7a0b\u4ee3\u7801\uff0c\u786e\u4fdd\u4e32\u53e3\u7a0b\u5e8f\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86Win32\u4e32\u53e3\u7f16\u7a0b\u7684\u57fa\u672c\u77e5\u8bc6\uff0c\u5305\u62ec\u786c\u4ef6\u51c6\u5907\u3001\u8f6f\u4ef6\u51c6\u5907\u3001\u7f16\u5199\u4ee3\u7801\u3001\u7f16\u8bd1\u4ee3\u7801\u548c\u6d4b\u8bd5\u4ee3\u7801\u7b49\u6b65\u9aa4\u3002\u901a\u8fc7Win32\u4e32\u53e3\u7f16\u7a0b\uff0c\u53ef\u4ee5\u5feb\u901f\u5f00\u53d1\u4e32\u53e3\u7a0b\u5e8f\uff0c\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e32\u53e3\u7f16\u7a0b\u662f\u4e00\u79cd\u5229\u7528\u4e32\u884c\u53e3\uff08SerialPort\uff09\u6765\u8fdb\u884c\u901a\u4fe1\u7684\u7f16\u7a0b\u6280\u672f\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5728\u4e24\u4e2a\u8ba1\u7b97\u673a\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\uff0c\u6216\u8005\u5728\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u4f8b\u5982\u626b\u63cf\u4eea\u3001\u6570\u636e\u91c7<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[69],"class_list":["post-58313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/58313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=58313"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/58313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=58313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=58313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=58313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}