{"id":7585,"date":"2017-01-18T01:20:31","date_gmt":"2017-01-17T17:20:31","guid":{"rendered":"http:\/\/www.ifroglab.com\/?p=7585"},"modified":"2017-03-03T00:54:54","modified_gmt":"2017-03-02T16:54:54","slug":"ilora-1-0-%e5%8d%94%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.ifroglab.com\/tw\/?p=7585","title":{"rendered":"01, iLoRa 1.0  \u5354\u5b9a"},"content":{"rendered":"<h3><\/h3>\n<h3><\/h3>\n<h3><\/h3>\n<h3>iLoRa 1.0 Layer 3, Socket Layer \u50b3\u8f38\u5c64<\/h3>\n<p><a href=\"http:\/\/www.ifroglab.com\/?p=8054\">\u958b\u767c\u4e2d\uff0c\u5167\u90e8\u6e2c\u8a66<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>iLoRa 1.0 Layer 2, \u8cc7\u6599\u9023\u7d50\u5c64Data Link Layer<\/h3>\n<h4>\n* [ ] \u555f\u52d5\u6642\u7684\u52d5\u4f5c<\/h4>\n<p>* [ ] Step 1: \u555f\u52d5\u6642<br \/>\nNode \u5148\u900f\u904e\u5ee3\u64ad\u7684\u65b9\u6cd5\uff0c\u628a\u81ea\u5df1\u76844\u500bbytes \u7684ID\u5c0d\u5916\u5ba3\u5e03\uff0c\u900f\u904e default \u983b\u6bb5\uff0c\u767c\u51fa\u5ee3\u64ad\uff0c\u4e26\u50b3\u51fa\u662fnode 1 \u9084\u662fgateway 0,<br \/>\n\u4f8b\u5982: Node-&gt; broadcast : 0x71, 01, node=0, ID, ActionID=1, CRC,<br \/>\n\u6210\u529f\u7684\u8a71\uff0c\u5c31\u6703gateway \u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de 0x72, 01, gateway=1, 4\u500bbytes Gateway ID, Node Index, CRC, \u70ba\u4e86\u589e\u52a0\u8cc7\u6599\u9577\u5ea6\uff0c\u6240\u4ee5\u7d66\u4e00\u500bbyte \u7684Node Index\uff0c\u4ee5\u5f8c\u5c31\u7528\u9019\u500b\u7576\u6210Node \u7684\u865f\u78bc\u3002<br \/>\n\u5931\u65571. \u6c92\u6709gateway\uff0c\u5c31\u5b8c\u5168\u6c92\u6709\u6d88\u606f\uff0c1\u79d2\u5f8c\uff0c\u518d\u767c\u4e00\u6b21\u3002<br \/>\n\u5931\u65572. \u5df2\u7d93\u6709\u9019\u500bID \u4e86\uff0c\u8acb\u63db\u53e6\u5916\u4e00\u500b ID\uff0c-&gt; gateway \u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de 0x72, ff, 01, gateway=1, 4\u500bbytes Gateway ID,4\u500bbytes \u5efa\u8b70Node \u7684 ID, Freq 3\u500bbytes CRC,<br \/>\n\u5931\u65573. \u7bc4\u570d\u5167\u67092\u500b LoRa gateway,\u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de 0x72, ff, 02, gateway=1, 4\u500bbytes Gateway ID, CRC,<br \/>\n* [ ] Step 2: \u555f\u52d5\u521d\u59cb\u5316<br \/>\nNode \u63a5\u8457 \u900f\u904eGateway \u7d66\u7684Node Index\u548c\u6307\u5b9a\u7684Freq, \u9001\u51fa\u555f\u52d5\u521d\u59cb\u5316\u7684\u78ba\u8a8d\u8a0a\u865f\u3002<br \/>\n\u800cActionID=0 \u662f1\u5c0d1 \u52a0\u5bc6, \u4f7f\u7528\u7279\u6b8aFreq<br \/>\n\u4f8b\u5982: Node-&gt; \u6307\u5b9a\u7684Freq : 0x71, 02, Node Index, ActionID=1, CRC,<br \/>\n\u6210\u529f\u7684\u8a71\uff0c\u5c31\u6703gateway \u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de 0x72, 02, ActionID=1, gateway Ver, \u4e0b\u4e00\u7b46\u6dfb\u52a0\u503c, CRC\u3002<br \/>\nActionID=1 \u662f1\u5c0d1 \u4e0d\u52a0\u5bc6, \u4f7f\u7528\u7279\u6b8aFreq(\u5148\u505a ActionID=1\uff09<br \/>\n\u4f8b\u5982: Node-&gt; \u6307\u5b9a\u7684Freq : 0x71, 02, Node Index, ActionID=1, CRC,<br \/>\n\u6210\u529f\u7684\u8a71\uff0c\u5c31\u6703gateway \u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de 0x72, 02, ActionID=1, gateway Ver, CRC\u3002<br \/>\nActionID=2 \u5ee3\u64ad \u52a0\u5bc6, \u4f7f\u7528broadcast Freq<br \/>\n\u540c ActionID=0, \u4f7f\u7528broadcast Freq<br \/>\nActionID=3 \u5ee3\u64ad \u4e0d\u52a0\u5bc6, \u4f7f\u7528broadcast Freq<br \/>\n\u540c ActionID=1, \u4f7f\u7528broadcast Freq<br \/>\nActionID=4 \u662f\u5c07\u8cc7\u6599\u767c\u7d66\u53e6\u5916\u4e00\u500bNode\u4e0d\u52a0\u5bc6, \u4f7f\u7528broadcast Freq<br \/>\nActionID=5 Mesh \u50b3\u905e,<\/p>\n<p>ActionID=6 Mesh \u505c\u6b62\u50b3\u905e,<br \/>\n* [ ] Step 1: \u9577\u8cc7\u6599\u50b3\u905e ActionID=0,ActionID=1,ActionID=2 ,ActionID=3,<br \/>\nString Index \u7684\u7528\u610f\u662f\u628a\u5b57\u4e32\u5206\u6210\u6578\u4e32\uff0c\u4e26\u50b3\u905e\u5230Server \u5f8c\uff0c\u624d\u7d44\u5408\u56de\u4f86\u3002 \u4e00\u6b21\u53ea\u80fd\u50b3 256\u6b21 \u8cc7\u6599 (255&#215;14-1=3570)<br \/>\n\u4e00\u6b21\u50b3 \u6578\u500b \u500bbytes, Data[0],&#8230;.<br \/>\n\u4f8b\u5982:<br \/>\nNode-&gt; \u6307\u5b9a\u7684Freq : \u7b2c1\u7b46\uff1a 0x73, Node Index, String Index=0, Data[0],&#8230;.,Data[13].<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f-&gt; 0x72, 03, \u56de\u50b3 String Index,CRC<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f(\u52a0\u5bc6\u7248)-&gt; 0x72, 03, \u56de\u50b3 String Index, \u4e0b\u4e00\u7b46\u6dfb\u52a0\u503c, CRC<\/p>\n<p>Node-&gt; \u6307\u5b9a\u7684Freq : \u7b2c2\u7b46\uff1a 0x73, Node Index, String Index=1, Data[13+0],&#8230;.,Data[13+13].<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f-&gt; 0x72, 03, \u56de\u50b3 String Index,CRC<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f(\u52a0\u5bc6\u7248)-&gt; 0x72, 03, \u56de\u50b3 String Index,\u4e0b\u4e00\u7b46\u6dfb\u52a0\u503c, CRC<\/p>\n<p>Node-&gt; \u6307\u5b9a\u7684Freq : \u7b2c256\u7b46\uff1a 0x73, Node Index, String Index=255, Data[(13*255)+0],&#8230;.,Data[(13*255)+13].<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f-&gt; 0x72, 03, \u56de\u50b3 String Index,CRC<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f(\u52a0\u5bc6\u7248)-&gt; 0x72, 03, \u56de\u50b3 String Index,\u6dfb\u52a0\u503c, CRC<\/p>\n<p>Node-&gt; \u6307\u5b9a\u7684Freq : \u6700\u5f8c\u4e00\u7b46\uff1a 0x74, Node Index, String Index= \u5168\u90e8\u8cc7\u6599%255,Data[(13*n)+0],&#8230;.,Data[(13*n)+13].<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f-&gt; 0x72, 03, \u56de\u50b3 String Index,CRC<\/p>\n<p>&#8212;&#8211;protocol spec&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>1.\u555f\u52d5:<br \/>\nNode-&gt; broadcast , 0x71, 01, 0, Node ID3, Node ID2, Node ID1, Node ID0, CRC<br \/>\ngatway broadcast-&gt;Node 0x72, 01, 1, Gateway ID3,Gateway ID2,Gateway ID1,Gateway ID0, Freq[2], Freq[1], Freq[0], CRC<br \/>\n2. \u555f\u52d5\u521d\u59cb\u5316 :<br \/>\nNode-&gt; Freq , 0x71, 02, 0, Node Index, ActionID, CRC<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node 0x72, 02, 1, ActionID, gateway Ver=1,CRC<br \/>\n3. \u50b3\u905e\u9577\u8cc7\u6599 :<br \/>\nNode-&gt; \u6307\u5b9a\u7684Freq, \u7b2cn\u7b46\uff1a 0x73, Node Index, String Index=n, Data[(13*n)+0],&#8230;.,Data[(13*n)+13].<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f-&gt; 0x72, 03, \u56de\u50b3 String Index,CRC<br \/>\nNode-&gt; \u6307\u5b9a\u7684Freq : \u6700\u5f8c\u4e00\u7b46\uff1a 0x74, Node Index, String Index= \u5168\u90e8\u8cc7\u6599%255,Data[(13*n)+0],&#8230;.,Data[(13*n)+13].<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node : \u6210\u529f-&gt; 0x72, 03, \u56de\u50b3 String Index,CRC<br \/>\ngatway \u6307\u5b9a\u7684Freq-&gt;Node 0x72, 03, \u56de\u50b3 String Index,CRC<br \/>\n\u932f\u8aa4\uff0c gatway \u6307\u5b9a\u7684Freq-&gt;Node 0x72, 04, \u56de\u50b3 String Index,CRC \/\/ \u6c92\u627e\u5230\uff0c\u8acbnode \u518d\u50b3\u4e00\u6b21<br \/>\n\u5931\u65572. 0x72, ff, 01, gateway=1, 4\u500bbytes Gateway ID, 4\u500bbytes \u5efa\u8b70Node \u7684 ID, Freq 3\u500bbytes CRC, \/\/ \u5df2\u7d93\u6709\u9019\u500bID \u4e86\uff0c\u8acb\u63db\u53e6\u5916\u4e00\u500b ID\uff0c-&gt; gateway \u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de<br \/>\n\u5931\u65573. 0x72, ff, 02, gateway=1, 4\u500bbytes Gateway ID, CRC, \/\/ \u7bc4\u570d\u5167\u67092\u500b LoRa gateway,\u6703\u900f\u904e\u5ee3\u64ad\u983b\u6bb5\u767c\u56de<\/p>\n<p>&nbsp;<\/p>\n<h3>iLoRa 1.0 Layer 1, \u7269\u7406\u63a7\u5236\u5c64Physical Layer<\/h3>\n<p>\u5df2\u5b8c\u6210\uff0c\u8acb\u770b<a href=\"http:\/\/www.powenko.com\/download_release\/ifroglab\/UARTCmd_SocLora160413-iFrogLab.pdf\">\u9019\u88e1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>iLoRa 1.0 Layer 3, Socket Layer \u50b3\u8f38\u5c64 \u958b\u767c\u4e2d\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-7585","post","type-post","status-publish","format-standard","hentry","category-5-ilora-1-0"],"_links":{"self":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/7585"}],"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=7585"}],"version-history":[{"count":12,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/7585\/revisions"}],"predecessor-version":[{"id":8081,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=\/wp\/v2\/posts\/7585\/revisions\/8081"}],"wp:attachment":[{"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ifroglab.com\/tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}