{"id":8157,"date":"2017-03-10T02:27:12","date_gmt":"2017-03-09T18:27:12","guid":{"rendered":"http:\/\/www.ifroglab.com\/?p=8157"},"modified":"2017-03-23T08:58:44","modified_gmt":"2017-03-23T00:58:44","slug":"01-%e5%9c%a8windows-10-%e4%b8%8a%ef%bc%8c%e5%ae%89%e8%a3%9difroglab-lora-gateway","status":"publish","type":"post","link":"https:\/\/www.ifroglab.com\/tw\/?p=8157","title":{"rendered":"01, \u5728Windows 10  \u4e0a\uff0c\u5b89\u88ddiFrogLab LoRa gateway"},"content":{"rendered":"<p>\u56e0\u70baiFrgLog LoRa gateway,\u662f\u7d50\u5408\u7db2\u9801\u3001\u8cc7\u6599\u5eab\u3001\u7ba1\u7406\u8cc7\u6599\u5eab\u5f8c\u81fa\u3001MQTT\u3001Python \u7a0b\u5f0f\u7684\u7cfb\u7d71\uff0c\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u514d\u7a0b\u5f0f\u7d93\u9a57\uff0c\u5c31\u80fd\u770b\u5230\u8cc7\u6599\u50b3\u905e\u904e\u4f86\u7684\u60c5\u6cc1\uff0c\u4e26\u4e14\u4ee5\u7db2\u9801\u5716\u5f62\u5316\u7684\u986f\u793a\u548c\u5206\u6790\u6578\u64da\u3002<\/p>\n<p>\u5efa\u8b70\u60a8\u53ef\u4ee5\u4f7f\u7528Linux Docker Container \u6216Raspberry Pi \u6211\u5011\u90fd\u6709\u63d0\u4f9b\u76f8\u95dc\u7684image \u6a94\u6848\uff0c\u53ef\u4ee5<a href=\"http:\/\/www.ifroglab.com\/?p=7650\">\u5728\u6b64<\/a>\u4e0b\u8f09\u3002<\/p>\n<p>\u4f46\u5982\u679c\u4e00\u5b9a\u8981\u5728Windows\u4e0a\u67b6\u8a2d\u548c\u5b89\u88ddiFrogLab LoRa gateway\uff0c<br \/>\nWin 10 \u662f\u6709\u7248\u6b0a\u7684\u4f5c\u696d\u7cfb\u7d71\uff0c\u6240\u4ee5\u5c31\u7121\u6cd5\u63d0\u4f9bimage \u7d66\u5ba2\u6236\uff0c<br \/>\n\u9084\u8acb\u9700\u8981\u7528\u6236 \u900f\u904e\u4ee5\u4e0b\u7684\u65b9\u6cd5\u81ea\u884c\u5b89\u88dd\u76f8\u95dc\u8edf\u9ad4\u548c\u8a2d\u5b9a\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 1:\u5feb\u901f\u4e0a\u624b<\/h3>\n<p>\u5982\u679c\u60a8\u7684\u5c08\u6848\u53ea\u60f3\u89812\u500bLoRa\u4e92\u76f8\u50b3\u905e\u8cc7\u6599\u7684\u8a71\uff0c\u6216\u8005\u60f3\u8981\u5feb\u901f\u4e0a\u624b\u7684\u8a71\uff0c\u8acb\u5148\u770b\u300c<a href=\"http:\/\/www.ifroglab.com\/?p=7227\">LoRa \u5feb<\/a><a href=\"http:\/\/www.ifroglab.com\/?p=7227\">\u901f\u4e0a\u624b<\/a>\u300d\uff0c\u6703\u5bb9\u6613\u7684\u591a\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 2:\u5b89\u88dd\u76f8\u95dc\u8edf\u9ad4<\/h3>\n<p>iFrogLab LoRa gateway\u662f\u7d50\u5408\u7db2\u9801\u3001\u8cc7\u6599\u5eab\u3001\u7ba1\u7406\u8cc7\u6599\u5eab\u5f8c\u81fa\u3001MQTT\u3001Python \u7a0b\u5f0f\u7684\u7cfb\u7d71\uff0c<\/p>\n<p>\u6240\u4ee5\u8acb\u4f60\u4f9d\u5e8f\u5b89\u88dd\u4ee5\u4e0b\u7684\u8edf\u9ad4\u3002<\/p>\n<ul>\n<li>\u5b89\u88ddXAMPP\uff0c\u4e0b\u8f09\u9ede<a href=\"https:\/\/www.apachefriends.org\/zh_tw\/download.html\">xampp<\/a>\u00a0\u5efa\u8b70\u5b89\u88dd5.6.30 \/ PHP 5.6.30 \u7248\u672c\u3002<\/li>\n<li>\u5b89\u88ddPython\uff0c\u4e0b\u8f09\u9ede <a class=\"\" href=\"https:\/\/www.python.org\/downloads\/\">Python<\/a> \u00a0\u5efa\u8b70\u5b89\u88dd \u00a0Python 2.7.13 \u7248\u672c\u3002<\/li>\n<li>\u5b89\u88ddMQTT- mosquitto\u00a0\uff0c\u4e0b\u8f09\u9ede \u00a0<a href=\"https:\/\/mosquitto.org\/download\/\">MQTT mosquitto<\/a> \u00a0 \u5efa\u8b70\u5b89\u88ddmosquitto-1.4.11-install-win32.exe\u7248\u672c\u3002<\/li>\n<li>\u5b89\u88ddiFrogLab LoRa\u00a0USB Driver\uff0c<a href=\"http:\/\/www.powenko.com\/download_release\/CypressDriverInstaller_1.exe\">\u4e0b\u8f09\u9ede<\/a>\u3002<\/li>\n<\/ul>\n<p>\u4e26\u4e14\u555f\u52d5XAMPP\u8edf\u9ad4\u3002<\/p>\n<h3>Step 3:\u8a2d\u5b9a\u8cc7\u6599\u5eabPhpMyAdmin<\/h3>\n<p>\u56e0\u70baLoRa gateway\u7a0b\u5f0f\u7684\u95dc\u4fc2\uff0c\u8acb\u5728MySQL \u7684\u7ba1\u7406\u7a0b\u5f0fPhpMyAdmin \u4e2d\uff0c\u900f\u904e http:\/\/localhost\/phpmyadmin\u00a0\u8a2d\u5b9a\u8cc7\u6599\u5eab<\/p>\n<ul>\n<li>\u65b0\u589e\u4e00\u500b\u8cc7\u6599\u5eab\uff0c\u540d\u7a31\u70ba\u300cifroglab\u300d<\/li>\n<li>\u65b0\u589e\u4e00\u500b\u8d85\u7d1a\u7ba1\u7406\u8005\uff0c\u4f7f\u7528\u8005\u540d\u7a31\u70ba\u300cifroglab\u300d\uff0c\u5bc6\u78bc\u70ba\u300cifroglab\u300d<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Step 3:\u8a2d\u5b9a\u8cc7\u6599\u5eabPhpMyAdmin<\/h3>\n<p>\u56e0\u70baLoRa gateway\u7a0b\u5f0f\u7684\u95dc\u4fc2\uff0c\u8acb\u5728MySQL \u7684\u7ba1\u7406\u7a0b\u5f0fPhpMyAdmin \u4e2d\uff0c\u900f\u904e http:\/\/localhost\/phpmyadmin\u00a0\u8a2d\u5b9a\u8cc7\u6599\u5eab<\/p>\n<ul>\n<li>\u65b0\u589e\u4e00\u500b\u8d85\u7d1a\u7ba1\u7406\u8005\uff0c\u4f7f\u7528\u8005\u540d\u7a31\u70ba\u300cifroglab\u300d\uff0c\u5bc6\u78bc\u70ba\u300cifroglab\u300d\uff0c\u56e0\u70ba\u7a0b\u5f0f\u6703\u4f7f\u7528\u9019\u4e00\u7d44\u5e33\u865f\u5bc6\u78bc\u628a\u6536\u5230\u7684\u8cc7\u6599\uff0c\u653e\u5728\u8cc7\u6599\u5eab\u4e2d\u3002<\/li>\n<li>\u65b0\u589e\u4e00\u500b\u8cc7\u6599\u5eab\uff0c\u540d\u7a31\u70ba\u300cifroglab\u300d<\/li>\n<li>\u4e26\u5728\u300cifroglab\u300d\u8cc7\u6599\u5eab\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u7684\u300cIoTTable\u300d\u8868\u683c<\/li>\n<\/ul>\n<p>CREATE TABLE `IoTTable` (<br \/>\n`Id` int(11) NOT NULL,<br \/>\n`Datetime` datetime NOT NULL,<br \/>\n`KeyName` varchar(50) COLLATE latin1_general_ci NOT NULL,<br \/>\n`Data` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,<br \/>\n`OwnerId` int(11) NOT NULL,<br \/>\n`Datatype` varchar(20) COLLATE latin1_general_ci NOT NULL,<br \/>\n`IoTProjectsId` int(11) NOT NULL DEFAULT \u20180\u2019<br \/>\n) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/zUW-XJ2jdU8\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 4:\u3000\u5b89\u88ddMQTT<\/h3>\n<p>\u4e0b\u8f09<a href=\"https:\/\/mosquitto.org\/download\/\">MQTT \u8edf\u9ad4<\/a>\uff0c<a href=\"http:\/\/www.eclipse.org\/downloads\/download.php?file=\/mosquitto\/binary\/win32\/mosquitto-1.4.11-install-win32.exe\">\u9019\u88e1<\/a>\u3002<\/p>\n<h3>Step 5:\u53d6\u5f97iFrogLab LoRa Gateway \u539f\u59cb\u7a0b\u5f0f<\/h3>\n<ul>\n<li>\u8acb\u5728<a href=\"https:\/\/github.com\/iFrogLab\/IL-LORA1272\">github<\/a> \u4e0a\uff0c\u53d6\u5f97<a href=\"https:\/\/github.com\/iFrogLab\/IL-LORA1272\">iFrogLab LoRa Gateway <\/a>\u539f\u59cb\u7a0b\u5f0f<a href=\"https:\/\/github.com\/iFrogLab\/IL-LORA1272\/archive\/master.zip\">zip code<\/a> \uff0c<\/li>\n<li>\u89e3\u958b\u5f8c\uff0c\u4e26\u653e\u5728C:\\\u7684\u6839\u76ee\u9304\u4e2d\u3002<\/li>\n<li>\u8907\u88fd\u7db2\u9801\u7a0b\u5f0f\uff0c\u628aC:\/IL-LORA1272\/LoRa-Gateway\/Gateway\/PHP\/*.* \u00a0\u88e1\u9762\u7684\u5167\u5bb9\uff0c\u8907\u88fd\u5230 XAMPP\u7684\u7db2\u9801\u8def\u5f91\u4e2d\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Step 6:\u57f7\u884ciFrogLab LoRa Gateway \u539f\u59cb\u7a0b\u5f0f<\/h3>\n<p>\u57f7\u884c\u7a0b\u5f0f<\/p>\n<p>python c:\/IL-LORA1272\/LoRa-Gateway\/Gateway\/Python\/<span class=\"s1\">ap-01-lora-gateway-2-<\/span><span class=\"s3\">read<\/span><span class=\"s1\">-httpGet.py<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 7:\u6e2c\u8a66<\/h3>\n<p>\u8acb\u6253\u958b\u7db2\u9801\uff0c\u9023\u63a5\u5230http:\/\/localhost\/<\/p>\n<h3>Step8:Node\u50b3\u9001\u8cc7\u6599<\/h3>\n<p>\u8acb\u770biFrogLab Node \u7684<a href=\"http:\/\/www.ifroglab.com\/?p=7944\">\u6559\u5b78\u6587\u7ae0<\/a><\/p>\n<ul>\n<li>\u4e09\u8ef8\u7684\u7bc4\u4f8b\u7a0b\u5f0f\uff0c\u53ef\u4ee5\u5728\u539f\u59cb\u7a0b\u5f0f\u4e2d\u7684<a href=\"https:\/\/github.com\/iFrogLab\/IL-LORA1272\/blob\/master\/LoRa-Gateway\/Node\/LoRa_TsuNaMi_02_GetGY-521-LoRa-Send\/LoRa_03_LoRaNode-Send\/LoRa_03_LoRaNode-Send.ino\">LoRa_03_LoRaNode-Send<\/a>, \u9019\u500b\u7bc4\u4f8b\u4f7f\u7528GY-521\u7684\u786c\u9ad4\uff0c\u9700\u8981\u5b89\u88dd<a href=\"https:\/\/github.com\/jrowberg\/i2cdevlib\/tree\/master\/Arduino\/MPU6050\">MPU-6050<\/a> \u7684\u51fd\u793a\u5eab\uff0c\u6559\u5b78\u6587\u7ae0<a href=\"http:\/\/www.ifroglab.com\/?p=7590\">\u5728\u6b64<\/a>\u00a0\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u70baiFrgLog LoRa gateway,\u662f\u7d50\u5408\u7db2\u9801\u3001\u8cc7\u6599\u5eab\u3001\u7ba1\u7406\u8cc7\u6599\u5eab\u5f8c\u81fa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8158,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116],"tags":[],"class_list":["post-8157","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-05-windows"],"_links":{"self":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/8157"}],"collection":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8157"}],"version-history":[{"count":12,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/8157\/revisions"}],"predecessor-version":[{"id":8244,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/8157\/revisions\/8244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/media\/8158"}],"wp:attachment":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}