{"id":7933,"date":"2017-02-22T14:26:02","date_gmt":"2017-02-22T06:26:02","guid":{"rendered":"http:\/\/www.ifroglab.com\/?p=7933"},"modified":"2017-03-14T02:12:14","modified_gmt":"2017-03-13T18:12:14","slug":"2-%e5%ae%89%e8%a3%9dserial-%e8%bb%9f%e9%ab%94realterm-%e5%8f%96%e5%be%97%e9%9f%8c%e9%ab%94%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.ifroglab.com\/tw\/?p=7933","title":{"rendered":"2. \u5b89\u88ddSerial \u8edf\u9ad4RealTerm\uff0c\u4e26\u53d6\u5f97LoRa\u97cc\u9ad4\u7248\u672c\u7de8\u865f"},"content":{"rendered":"<p>\u4f7f\u7528USB-To-Serial \u8a2d\u5099\u9023\u63a5ifroglab LoRa module,\u53d6\u5f97LoRa\u97cc\u9ad4\u7248\u672c<\/p>\n<h2>\u6b65\u9a5f<\/h2>\n<h3>\u7b2c\u4e00\u6b65\uff1a<\/h3>\n<p>\u5b89\u88ddSerial \u8edf\u9ad4<a href=\"https:\/\/sourceforge.net\/projects\/realterm\/\">RealTerm<\/a>&#8211;<\/p>\n<p>\u540c\u6a23\u7684\u4e5f\u53ef\u4ee5\u5728Mac \u4f7f\u7528<a href=\"https:\/\/www.macupdate.com\/app\/mac\/31352\/coolterm\">CoolTerm<\/a> \u548c Linux ,\u00a0\u751a\u81f3 MCU \u90fd\u53ef\u4ee5\u8207LoRa Module \u6e9d\u901a<\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c\u4e8c\u6b65\uff1a<\/h3>\n<p>\u4e26\u4e14\u53ef\u4ee5\u78ba\u8a8d\u786c\u9ad4\u63a5\u7dda\u6b63\u78ba\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c\u4e09\u6b65\uff1a<\/h3>\n<p>\u8acb\u78ba\u8a8dUSB \u7684\u9a45\u52d5\u7a0b\u5f0f\u6b63\u78ba\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c\u56db\u6b65\uff1a<\/h3>\n<p>\u8cc7\u6599\u50b3\u9001\u898f\u683c\uff30\uff24\uff26\u6a94\uff0c\u8acb\u5728\u6b64<a href=\"https:\/\/github.com\/iFrogLab\/IL-LORA1272\/blob\/master\/hardwareSpacs\/Ver2\/UARTCmd_SocLoraV3-20161031.pdf\">\u4e0b\u8f09<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c\u4e94\u6b65\uff1b<\/h3>\n<p>\u900f\u904eRealTerm \u8edf\u9ad4\uff0c\u9001\u51fa\u8cc7\u6599\u70ba<\/p>\n<p>0x80,0x00,0x80,0x80<\/p>\n<p>\u5c31\u6703\u56de\u50b3<\/p>\n<p>0x80, 0x80,&#8230;&#8230;&#8230;. \u7684\u8cc7\u6599\uff0c\u90a3\u5c31\u4ee3\u8868\u6b63\u78ba\uff0c\u56e0\u70ba\u7248\u672c\u548c\u7de8\u865f<\/p>\n<p>\uff0c\u6bcf\u4e00\u500b\u90fd\u6703\u6709\u4e9b\u4e0d\u4e00\u6a23\uff0c\u4f46\u662f\u53ea\u89810x80, 0x80\u958b\u982d\u5c31\u6b63\u78ba\uff0c\u8a73\u7d30\u529f\u7528\u8acb\u770bPDF \u6a94\u7684\u8aaa\u660e\u3002<\/p>\n<p>\u53e6\u5916\uff0cCRC \u7684\u7b97\u6cd5\u662f\u6bcf\u4e00\u500bbytes \u505aXOR \u7684\u8a08\u7b97\uff0c\u60a8\u53ef\u4ee5\u7528\u8a08\u7b97\u6a5f\uff0c\u88e1\u9762\u6709\u5de5\u7a0b\u7528\u7684\u9078\u9805\uff0c\u5c31\u9001\u7b97\u51fa\uff0c\u4ee5\u9019\u500b\u6307\u4ee4\u70ba\u4f8b<\/p>\n<p>CRC = 0x80 XOR 0 XOR 0 \u00a0\u8a08\u7b97\u5f8c\u7b54\u6848\u662f0x80<\/p>\n<p>\u6240\u4ee5\u9001\u51fa\u7684\u8cc7\u6599\uff0c\u624d\u6703\u662f<\/p>\n<p>0x80,0x00,0x80,0x80<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7935 aligncenter\" src=\"http:\/\/www.ifroglab.com\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-21-at-10.25.20-PM.png\" alt=\"Screen Shot 2017-02-21 at 10.25.20 PM\" width=\"411\" height=\"262\" srcset=\"https:\/\/www.ifroglab.com\/tw\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-21-at-10.25.20-PM.png 411w, https:\/\/www.ifroglab.com\/tw\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-02-21-at-10.25.20-PM-300x191.png 300w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/p>\n<h2><\/h2>\n<h2><\/h2>\n<h2><\/h2>\n<h2>\u5f71\u7247\u6559\u5b78<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/r8ju_cBjbrI\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/h2>\n<h2>\u932f\u8aa4\u6392\u9664\uff1a<\/h2>\n<p><span style=\"color: #008000;\">Q\uff1a\u5982\u679c\u6c92\u6709\u4efb\u4f55\u56de\u61c9\u7684\u8a71\uff0c\u8acb\u78ba\u8a8d<\/span><\/p>\n<ol>\n<li>LoRa \u7684\u63a5\u8173\u662f\u5426\u9b06\u52d5\u56e0\u70ba lora 1272 \u63a5\u8173\u5f88\u77ed\uff0c\u5efa\u8b70\u7528\u710a\u69cd\u56fa\u5b9a\uff0c\u6216\u8005\u7528\u81a0\u5e36\u8cbc\u6298\u56fa\u5b9a\u3002<\/li>\n<li>lora 1272 \u8a18\u5f97\u96fb\u6e90\u662fPin3 \u662f\u8981\u63a5 3.3VDC\uff0c\u4e0d\u662f5V\u5594\uff01\u7136\u5f8cRX, TX \u6c92\u6709\u5dee\u4e0d\u5fc5\u7279\u5730\u8f49\u96fb\u58d3<\/li>\n<li>lora 1272 \u7684RX,TX\u4f7f\u5426\u63a5\u53cd\u4e86\uff0c\u5f88\u591aUSB-To-Serial \u4e0a\u9762\u7684\u5370\u5237\u6703\u6709\u8aa4\uff0c\u53ef\u4ee5\u4e92\u63db\u518d\u6e2c\u4e00\u6b21<\/li>\n<\/ol>\n<p>\u5982\u679c\u56de\u50b3\u7684\u6578\u5b57\u662f<br \/>\n0xC1,0xFF,&#8230;&#8230;&#8230;. \u7684\u8cc7\u6599\uff0c\u4ee3\u8868 lora 1272\u6709\u5230\uff0c\u4f46\u683c\u5f0f\u6709\u554f\u984c\uff0c\u8acb\u78ba\u8a8d<\/p>\n<ol>\n<li>\u8edf\u9ad4\u9001\u51fa\u7684\u683c\u5f0f\uff0c\u662f\u7d1416\u9032\u4f4d\u7684\u6578\u5b57\uff0c\u4e0d\u662fASCII\u6587\u5b57\u5594\uff01<\/li>\n<li>\u4e0d\u7528\u52a0\u4e0aCR\/New Line \u7b49\u8df3\u884c\u7684\u6307\u4ee4<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #008000;\">Q: \u6c92\u6709\u8cc7\u6599\u56de\u50b3<\/span><\/p>\n<p>A:\u4e8b\u5be6\u4e0a\uff0c\u57f7\u884c ap-Lib-1-lora-init.py \u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u7528\u4f86\u8b49\u660e\u300c \u96fb\u8166&lt;-&gt; USB-To-Serial &lt;-&gt; LoRa \u300d<br \/>\n\u9019\u4e09\u8005\u662f\u5426\u6709\u9023\u63a5\u6210\u529f\u3002<\/p>\n<div><\/div>\n<div>\u5982\u679c\u57f7\u884c\u5f8c\uff0c\u5982\u4e0b\u5716\u6240\u793a\uff0c\u90a3\u5c31\u4ee3\u8868\u6c92\u6709<\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8183 size-full\" src=\"http:\/\/www.ifroglab.com\/wp-content\/uploads\/2017\/02\/a1-1.png\" alt=\"a1\" width=\"579\" height=\"187\" srcset=\"https:\/\/www.ifroglab.com\/tw\/wp-content\/uploads\/2017\/02\/a1-1.png 579w, https:\/\/www.ifroglab.com\/tw\/wp-content\/uploads\/2017\/02\/a1-1-300x97.png 300w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/><\/div>\n<div>\u770b\u5230\u8cc7\u6599\u900f\u904eUSB \u9001\u51fa\u53bb[128,0,0,128]\u7684\u6307\u4ee4\u9700\u6c42\u5230\u5230LoRa IC\u4e0a\uff0c<\/div>\n<div>\u4f46\u662f LoRa IC \u4e26\u6c92\u6709\u56de\u50b3\u8cc7\u6599\uff0c\u5982\u679c\u6b63\u78ba\u7684\u8a71\uff0c\u56e0\u8a72\u56de\u50b3[80,80,6,x,x,0,0,x,x,x]\u3002\u5982\u4e0b\u5716\uff1a<\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8184\" src=\"http:\/\/www.ifroglab.com\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-13-at-11.08.13-AM.png\" alt=\"Screen Shot 2017-03-13 at 11.08.13 AM\" width=\"246\" height=\"47\" \/><\/div>\n<div><\/div>\n<div>\u5982\u679c\u6c92\u6709\u986f\u793a\u4efb\u4f55\u6771\u897f\u7684\u8a71\uff0c\u90a3\u4ee3\u8868\u300c \u96fb\u8166&lt;-&gt; USB-To-Serial <span style=\"color: #ff0000;\">&lt;-&gt;<\/span> LoRa \u300d \u00a0\u4e2d\u7684 USB \u5230LoRa \u8cc7\u6599\u6c92\u50b3\u905e\u904e\u53bb\uff0c\u6240\u4ee5LoRa IC \u6c92\u6536\u5230\u4efb\u4f55\u6307\u4ee4\u7684\u52d5\u4f5c\u3002<\/div>\n<div><\/div>\n<div>\u9019\u56e0\u8a72\u662f\u4ee5\u4e0b\u7684\u5e7e\u500b\u554f\u984c\u7522\u751f<\/div>\n<div>#. \u8acb\u78ba\u8a8d\u4e00\u4e0b \u4f60\u710a\u69cd\u7684\u63a5\u8173\uff0c \u6ce8\u610f\u8981&#8221;3.3V&#8221; \u7684\u96fb\u6e90, RX, TX \u6709\u63a5\u5c0d\uff0c\u4e0d\u884c\u7684\u8a71\uff0c\u8acb\u4e92\u63db\u3002<\/div>\n<div>#. \u78ba\u5b9a\u4e00\u4e0b\u901f\u5ea6\u662f115200<\/div>\n<div>#. \u78ba\u5b9a\u4e00\u4e0bCOM \u662f\u6b63\u78ba\u7684\u4f4d\u7f6e\u3002<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528USB-To-Serial \u8a2d\u5099\u9023\u63a5ifroglab LoRa module [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7935,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110],"tags":[],"class_list":["post-7933","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2-usb-to-serial"],"_links":{"self":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/7933"}],"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=7933"}],"version-history":[{"count":13,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/7933\/revisions"}],"predecessor-version":[{"id":8186,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/7933\/revisions\/8186"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/media\/7935"}],"wp:attachment":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}