{"id":3198,"date":"2023-08-18T14:52:35","date_gmt":"2023-08-18T06:52:35","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=3198"},"modified":"2023-08-18T14:52:35","modified_gmt":"2023-08-18T06:52:35","slug":"app%e5%bc%80%e5%8f%91wifi%e9%9f%b3%e7%ae%b1%e9%9c%80%e8%a6%81%e6%b3%a8%e6%84%8f%e5%93%aa%e4%ba%9b%e7%bb%86%e8%8a%82%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/3198\/","title":{"rendered":"app\u5f00\u53d1wifi\u97f3\u7bb1\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u7ec6\u8282\uff1f"},"content":{"rendered":"

\u968f\u7740\u667a\u80fd\u97f3\u7bb1\u5e02\u573a\u7684\u4e0d\u65ad\u6269\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u4eba\u60f3\u8981\u4e3a\u81ea\u5df1\u7684\u8bbe\u5907\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u3002\u5176\u4e2d\uff0c WiFi \u97f3\u7bb1\u662f\u6bd4\u8f83\u53d7\u6b22\u8fce\u7684\u4e00\u79cd\u8bbe\u5907\uff0c\u56e0\u4e3a\u5b83\u4eec\u80fd\u591f\u8fde\u63a5\u5230\u7f51\u7edc\u5e76\u63a5\u6536\u6765\u81ea\u97f3\u4e50\u670d\u52a1\u7684\u6d41\u5a92\u4f53\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4f1a\u4ecb\u7ecd\u5173\u4e8e\u5f00\u53d1\u4e00\u6b3e WiFi \u97f3\u7bb1\u5e94\u7528\u7a0b\u5e8f\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n

\u4e00\u3001\u786c\u4ef6\u548c\u8f6f\u4ef6\u8981\u6c42<\/p>\n

\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u51c6\u5907\u4e00\u4e9b\u786c\u4ef6\u548c\u8f6f\u4ef6\u8bbe\u5907\uff0c\u4f8b\u5982\uff1a<\/p>\n

– Raspberry Pi\uff08\u4ee5\u53ca SD \u5361\u3001\u7535\u6e90\u548c\u4e00\u4e9b\u5176\u4ed6\u914d\u4ef6\uff09<\/p>\n

– USB \u97f3\u9891\u63a5\u53e3<\/p>\n

– \u5177\u6709\u9ea6\u514b\u98ce\u548c\u626c\u58f0\u5668\u7684 WiFi \u97f3\u7bb1<\/p>\n

– ArAPP<\/a>duino \u63a7\u5236\u677f<\/p>\n

– 3.5mm \u97f3\u9891\u63a5\u53e3\u63d2\u5934<\/p>\n

– \u7f16\u7a0b\u73af\u5883\uff08\u4f8b\u5982 Python\u3001C++\uff09<\/p>\n

\u9664\u6b64\u4e4b\u5916\uff0c\u4f60\u8fd8\u9700\u8981\u719f\u7ec3\u638c\u63e1\u4ee5\u4e0b\u6280\u672f\uff1a<\/p>\n

– \u97f3\u9891\u5904\u7406\u548c\u6d41\u5a92\u4f53\u4f20\u8f93\u7684\u76f8\u5173\u77e5\u8bc6<\/p>\n

– Raspberry Pi \u548c Arduino \u7684\u7f16\u7a0b<\/p>\n

\u4e8c\u3001\u57fa\u672c\u539f\u7406<\/p>\n

\u8981\u5f00\u53d1\u4e00\u6b3e WiFi \u97f3\u7bb1\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u4e86\u89e3\u4ee5\u4e0b\u57fa\u672c\u539f\u7406\uff1a<\/p>\n

– \u97f3\u9891\u8f93\u5165\u8f93\u51fa\uff1a\u4f60\u9700\u8981\u8ba9\u58f0\u97f3\u901a\u8fc7 WiFi \u97f3\u7bb1\u8fdb\u5165\u4f60\u7684\u7a0b\u5e8f\u4e2d\uff0c\u5e76\u5c06\u5904\u7406\u540e\u7684\u97f3\u9891\u8f93\u51fa\u5230\u626c\u58f0\u5668\u4e0a\u3002<\/p>\n

– WiFi \u8fde\u63a5\uff1a\u4f60\u9700\u8981\u8ba9\u97f3\u7bb1\u901a\u8fc7 WiFi \u8fde\u63a5\u5230\u7f51\u7edc\uff0c\u5e76\u83b7\u53d6\u6765\u81ea\u97f3\u4e50\u670d\u52a1\u7684\u6d41\u5a92\u4f53\u6570\u636e\u3002<\/p>\n

– \u97f3\u9891\u5904\u7406\uff1a\u4f60\u9700\u8981\u5bf9\u97f3\u9891\u8fdb\u884c\u5904\u7406<\/p>\n

<\/figure>\n<\/p>\n

\uff0c\u4f8b\u5982\u5c06\u5176\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\u3001\u8fdb\u884c\u566a\u97f3\u8fc7\u6ee4\u7b49\u3002<\/p>\n

\u4e09\u3001\u5f00\u53d1\u6b65\u9aa4<\/p>\n

1. \u8fde\u63a5\u786c\u4ef6<\/p>\n

\u9996\u5148\uff0c\u5c06 Raspberry Pi \u8fde\u63a5\u5230\u9ea6\u514b\u98ce\u548c\u626c\u58f0\u5668\uff0c\u5e76\u5c06 USB \u97f3\u9891\u63a5\u53e3\u63d2\u5165 Raspberry Pi \u7684 USB \u63a5\u53e3\u3002\u7136\u540e\uff0c\u5c06 Arduino \u63a7\u5236\u677f\u548c Raspberry Pi \u901a\u8fc7 USB \u7ebf\u8fde\u63a5\u8d77\u6765\uff0c\u5c06 3.5mm \u97f3\u9891\u63a5\u53e3\u63d2\u5934\u63d2\u5165 Arduino \u63a7\u5236\u677f\u7684\u97f3\u9891\u8f93\u5165\u7aef\u53e3\u3002<\/p>\n

2. \u914d\u7f6e Raspberry Pi<\/p>\n

\u5728 Raspberry Pi \u4e0a\u5b89\u88c5 Raspbian \u64cd\u4f5c\u7cfb\u7edf\u5e76\u5bf9\u5176\u8fdb\u884c\u914d\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528 SSH \u6216 HDMI \u8fde\u63a5 Raspberry APP\u5f00\u53d1<\/a>Pi\uff0c\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u884c\u914d\u7f6e\u3002\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5c06\u9700\u8981\u7684\u7a0b\u5e8f\u548c\u5e93\u5b89\u88c5\u5230 Raspberry Pi \u4e2d\u3002<\/p>\n

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

\u4f7f\u7528 Python \u6216\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u7f16\u5199\u7a0b\u5e8f\u3002\u7a0b\u5e8f\u5305\u62ec\u4e09\u4e2a\u90e8\u5206\uff1aWiFi \u8fde\u63a5\u3001\u97f3\u9891\u8f93\u5165\u8f93\u51fa\u548c\u97f3\u9891\u5904\u7406\u3002\u53ef\u4ee5\u4f7f\u7528\u5df2\u6709\u7684\u5e93\u6765\u7b80\u5316\u4ee3\u7801\u7684\u7f16\u5199\u3002<\/p>\n

– WiFi \u8fde\u63a5\uff1a\u4f7f\u7528 Raspberry Pi \u7684 WiFi \u529f\u80fd\u8fde\u63a5\u5230\u7f51\u7edc\uff0c\u5e76\u83b7\u53d6\u97f3\u4e50\u6d41\u5a92\u4f53\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528 Python \u7684 socket \u3001urllib \u7b49\u5e93\u6765\u5b8c\u6210\u8fd9\u4e2a\u90e8\u5206\u3002<\/p>\n

– \u97f3\u9891\u8f93\u5165\u8f93\u51fa\uff1a\u901a\u8fc7 USB \u97f3\u9891\u63a5\u53e3\u5c06\u9ea6\u514b\u98ce\u8f93\u51fa\u7684\u97f3\u9891\u4ece\u58f0\u5361\u8bfb\u53d6\u5230 Raspberry Pi \u4e2d\uff0c\u5e76\u5c06\u5904\u7406\u540e\u7684\u97f3\u9891\u901a\u8fc7\u63a7\u5236\u677f\u8f93\u51fa\u5230\u626c\u58f0\u5668\u4e0a\u3002\u53ef\u4ee5\u4f7f\u7528 ALSA\uff08Advanced Linux Sound Architecture\uff09\u5e93\u6765\u63a7\u5236\u58f0\u97f3\u7684\u8f93\u5165\u8f93\u51fa\u3002<\/p>\n

– \u97f3\u9891\u5904\u7406\uff1a\u5c06\u97f3\u9891\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\uff0c\u5e76\u8fdb\u884c\u8fc7\u6ee4\u548c\u5206\u6790\u3002\u53ef\u4ee5\u4f7f\u7528 Python \u548c\u5176\u4ed6\u8bed\u8a00\u7684\u5e93\u6765\u8fdb\u884c\u97f3\u9891\u5904\u7406\u3002<\/p>\n

4. \u6d4b\u8bd5\u548c\u53d1\u5e03<\/p>\n

\u5b8c\u6210\u7a0b\u5e8f\u7684\u7f16\u5199\u540e\uff0c\u8fdb\u884c\u6d4b\u8bd5\u5e76\u89e3\u51b3\u95ee\u9898\u3002\u53ef\u4ee5\u5728\u672c\u5730\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4e5f\u53ef\u4ee5\u5c06\u7a0b\u5e8f\u5b89\u88c5\u5230\u8bbe\u5907\u4e0a\u8fdb\u884c\u6d4b\u8bd5\u3002\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u5219\u53ef\u4ee5\u5c06\u7a0b\u5e8f\u53d1\u5e03\u5230\u5e94\u7528\u5546\u5e97\u6216\u5f00\u653e\u6e90\u4ee3\u7801\u3002 <\/p>\n

\u56db\u3001\u603b\u7ed3<\/p>\n

\u5728\u5f00\u53d1\u4e00\u6b3e WiFi \u97f3\u7bb1\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u719f\u6089\u97f3\u9891\u5904\u7406\u548c\u6d41\u5a92\u4f53\u4f20\u8f93\u7684\u57fa\u672c\u539f\u7406\u3002\u786c\u4ef6\u548c\u8f6f\u4ef6\u65b9\u9762\u7684\u8981\u6c42\u6bd4\u8f83\u9ad8\uff0c\u9700\u8981\u638c\u63e1\u4e00\u5b9a\u7684\u6280\u672f\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u9700\u8981\u6709\u8010\u5fc3\u548c\u6280\u80fd\u6765\u8c03\u8bd5\u548c\u6d4b\u8bd5\u7a0b\u5e8f\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u968f\u7740\u667a\u80fd\u97f3\u7bb1\u5e02\u573a\u7684\u4e0d\u65ad\u6269\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u4eba\u60f3\u8981\u4e3a\u81ea\u5df1\u7684\u8bbe\u5907\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u3002\u5176\u4e2d\uff0c WiFi \u97f3\u7bb1\u662f\u6bd4\u8f83\u53d7\u6b22\u8fce\u7684\u4e00\u79cd\u8bbe\u5907\uff0c\u56e0\u4e3a\u5b83\u4eec\u80fd\u591f\u8fde\u63a5\u5230\u7f51\u7edc\u5e76\u63a5\u6536\u6765\u81ea\u97f3\u4e50\u670d\u52a1\u7684\u6d41\u5a92\u4f53\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4f1a\u4ecb\u7ecd\u5173\u4e8e\u5f00\u53d1\u4e00<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6480,366,4739,89,6479],"topic":[],"class_list":["post-3198","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-h5","tag-366","tag-4739","tag-89","tag-6479"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/3198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=3198"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/3198\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=3198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=3198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=3198"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=3198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}