{"id":59717,"date":"2023-10-28T09:44:57","date_gmt":"2023-10-28T01:44:57","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=59717"},"modified":"2023-10-28T09:44:57","modified_gmt":"2023-10-28T01:44:57","slug":"ehqckbtl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/59717.html","title":{"rendered":"ESP32\u83b7\u53d6\u4e32\u53e3\u6ce2\u7279\u7387"},"content":{"rendered":"

  ESP32\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u7535\u5b50\u8bbe\u5907\u3002<\/strong>\u5728\u5176\u4e2d\uff0c\u4e32\u53e3\u6ce2\u7279\u7387\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6280\u672f\u6307\u6807\uff0c\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u8bbe\u5907\u7684\u901f\u5ea6\u548c\u6548\u7387\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528ESP32\u83b7\u53d6\u4e32\u53e3\u6ce2\u7279\u7387\u3002<\/p>\n

ESP32\u7684\u57fa\u672c\u7ed3\u6784<\/h2>\n

  ESP32\u662f\u4e00\u6b3e\u591a\u529f\u80fd\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\uff0c\u5b83\u7531\u4e24\u4e2a\u53ef\u4ee5\u72ec\u7acb\u5de5\u4f5c\u7684\u5904\u7406\u5668\u7ec4\u6210\uff0c\u4e00\u4e2a\u4e3b\u5904\u7406\u5668\u548c\u4e00\u4e2a\u4ece\u5904\u7406\u5668\u3002\u4e3b\u5904\u7406\u5668\u8d1f\u8d23\u5904\u7406\u5927\u90e8\u5206\u7684\u4efb\u52a1\uff0c\u800c\u4ece\u5904\u7406\u5668\u5219\u4e3b\u8981\u7528\u4e8e\u5b9e\u65f6\u5904\u7406\u548c\u4f4e\u529f\u8017\u4efb\u52a1\u3002<\/p>\n

  ESP32\u8fd8\u5177\u6709\u591a\u79cd\u5916\u8bbe\uff0c\u5176\u4e2d\u5305\u62ec\u591a\u4e2a\u4e32\u53e3\u63a5\u53e3\uff0c\u53ef\u4ee5\u7528\u6765\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\u3002\u4e32\u53e3\u63a5\u53e3\u4e2d\u7684\u6ce2\u7279\u7387\u662f\u6307\u6bcf\u79d2\u4f20\u8f93\u7684\u6570\u636e\u4f4d\u6570\u3002<\/p>\n

\u5982\u4f55\u83b7\u53d6\u4e32\u53e3\u6ce2\u7279\u7387<\/h2>\n

  \u8981\u83b7\u53d6ESP32\u7684\u4e32\u53e3\u6ce2\u7279\u7387\uff0c\u9700\u8981\u4f7f\u7528ESP32\u7684\u4e32\u53e3\u914d\u7f6eAPI\u3002\u8be5API\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u5f53\u524d\u4e32\u53e3\u7684\u6ce2\u7279\u7387\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4e32\u53e3\u7684\u6ce2\u7279\u7387\u3002<\/p>\n

  \u83b7\u53d6\u4e32\u53e3\u6ce2\u7279\u7387<\/h3>\n

  \u8981\u83b7\u53d6ESP32\u7684\u4e32\u53e3\u6ce2\u7279\u7387\uff0c\u9700\u8981\u8c03\u7528esp_serial_get_baudrate()\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u5f53\u524d\u4e32\u53e3\u7684\u6ce2\u7279\u7387\u3002\u8be5\u51fd\u6570\u9700\u8981\u4e00\u4e2a\u53c2\u6570\uff0c\u5373\u8981\u83b7\u53d6\u6ce2\u7279\u7387\u7684\u4e32\u53e3\u53f7\u3002<\/p>\n

  \u8bbe\u7f6e\u4e32\u53e3\u6ce2\u7279\u7387<\/h3>\n

  \u8981\u8bbe\u7f6eESP32\u7684\u4e32\u53e3\u6ce2\u7279\u7387\uff0c\u9700\u8981\u8c03\u7528esp_serial_set_baudrate()\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4e32\u53e3\u7684\u6ce2\u7279\u7387\u3002\u8be5\u51fd\u6570\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff0c\u5373\u8981\u8bbe\u7f6e\u7684\u4e32\u53e3\u53f7\u548c\u8981\u8bbe\u7f6e\u7684\u6ce2\u7279\u7387\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  ESP32\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u7535\u5b50\u8bbe\u5907\u3002<\/strong>\u5176\u4e2d\uff0c\u4e32\u53e3\u6ce2\u7279\u7387\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6280\u672f\u6307\u6807\uff0c\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u8bbe\u5907\u7684\u901f\u5ea6\u548c\u6548\u7387\u3002\u8981\u83b7\u53d6ESP32\u7684\u4e32\u53e3\u6ce2\u7279\u7387\uff0c\u53ef\u4ee5\u4f7f\u7528esp_serial_get_baudrate()\u51fd\u6570\uff1b\u8981\u8bbe\u7f6eESP32\u7684\u4e32\u53e3\u6ce2\u7279\u7387\uff0c\u53ef\u4ee5\u4f7f\u7528esp_serial_set_baudrate()\u51fd\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

ESP32\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u7535\u5b50\u8bbe\u5907\u3002\u5728\u5176\u4e2d\uff0c\u4e32\u53e3\u6ce2\u7279\u7387\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6280\u672f\u6307\u6807\uff0c\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u8bbe\u5907\u7684\u901f\u5ea6\u548c\u6548<\/p>\n","protected":false},"author":1,"featured_media":1839,"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-59717","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\/59717"}],"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=59717"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/59717\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/1839"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=59717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=59717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=59717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}