{"id":99269,"date":"2024-11-16T23:14:21","date_gmt":"2024-11-16T15:14:21","guid":{"rendered":"\/\/www.viralrail.com\/?p=99269"},"modified":"2024-11-16T23:14:24","modified_gmt":"2024-11-16T15:14:24","slug":"lmkydpjzjdtxjk","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/99269.html","title":{"rendered":"LoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u63a5\u53e3"},"content":{"rendered":"\n
\u3000\u3000LoRa\u6a21\u5757<\/a><\/strong>\u4e0e\u5355\u7247\u673a<\/a><\/strong>\u4e4b\u95f4\u7684\u901a\u4fe1\u63a5\u53e3\u901a\u5e38\u901a\u8fc7\u4e32\u53e3(UART)\u3001SPI\u6216I2C\u7b49\u63a5\u53e3\u5b9e\u73b0\u3002\u8fd9\u4e9b\u63a5\u53e3\u7684\u9009\u62e9\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5355\u7247\u673a\u7c7b\u578b\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u8fde\u63a5LoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u65f6\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n\n\n\n \u3000\u3000LoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u63a5\u53e3\u9009\u62e9\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u786c\u4ef6\u6761\u4ef6\u8fdb\u884c\u5408\u7406\u914d\u7f6e\uff0c\u5e76\u786e\u4fdd\u5404\u90e8\u5206\u4e4b\u95f4\u7684\u6b63\u786e\u8fde\u63a5\u548c\u53c2\u6570\u8bbe\u7f6e\uff0c\u4ee5\u5b9e\u73b0\u7a33\u5b9a\u7684\u65e0\u7ebf\u901a\u4fe1\u529f\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000LoRa\u6a21\u5757\u4e0eSTM32\u5355\u7247\u673a\u4e32\u53e3\u901a\u4fe1\u7684\u8be6\u7ec6\u914d\u7f6e\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u3000\u3000\u5c06LoRa\u6a21\u5757\u901a\u8fc7\u4e32\u53e3(\u5982RS232)\u8fde\u63a5\u5230\u8ba1\u7b97\u673a\u3002\u53ef\u4ee5\u4f7f\u7528USB\u8f6c\u4e32\u53e3\u7ebf\u8fdb\u884c\u8fde\u63a5\u3002<\/p>\n\n\n\n \u3000\u3000\u786e\u4fddSTM32\u5355\u7247\u673a\u5df2\u7ecf\u6b63\u786e\u8fde\u63a5\u5230\u5f00\u53d1\u677f\u4e0a\uff0c\u4f8b\u5982NUCLEO-WL55JC\u6216B-WL5M-SUBG1.\u5e76\u901a\u8fc7USB Type-A\u8f6cMini-B\u7ebf\u7f06\u8fde\u63a5\u5230\u8ba1\u7b97\u673a\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528ZLVircom\u5de5\u5177\u6216\u5176\u4ed6\u4e32\u53e3\u914d\u7f6e\u8f6f\u4ef6\uff0c\u6253\u5f00\u8f6f\u4ef6\u5e76\u70b9\u51fb\u201c\u8bbe\u5907\u7ba1\u7406\u201d\u6309\u94ae\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4e32\u53e3\u641c\u7d22\u201d\u6309\u94ae\uff0c\u4ee5\u786e\u4fdd\u786c\u4ef6\u8fde\u63a5\u6b63\u5e38\u3002<\/p>\n\n\n\n \u3000\u3000\u5982\u679c\u4f7f\u7528STM32CubeWL\uff0c\u9700\u8981\u5c06\u5de5\u7a0b\u7f16\u8bd1\u5e76\u52a0\u8f7d\u5230STM32\u5f00\u53d1\u677f\u4e0a\uff0c\u7136\u540e\u6253\u5f00\u4e32\u884c\u7aef\u53e3\u4e0a\u7684\u8d85\u7ea7\u7ec8\u7aef\u3002<\/p>\n\n\n\n \u3000\u3000\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cLoRa\u6a21\u5757\u7684\u6ce2\u7279\u7387\u4e3a9600bps\u3002\u5982\u679c\u9700\u8981\u66f4\u6539\u6ce2\u7279\u7387\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u6307\u4ee4\u6216ZLVircom\u5de5\u5177\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n\n\n\n \u3000\u3000\u5728STM32\u7aef\uff0c\u901a\u8fc7\u8bbe\u7f6eSCON\u5bc4\u5b58\u5668\u7684\u503c\u6765\u63a7\u5236\u4e32\u53e3\u7684\u6ce2\u7279\u7387\u53d1\u751f\u5668\uff0c\u5e76\u5c06\u5b9a\u65f6\u5668TM\u7684\u503c\u8d4b\u7ed9T2L\u548cT2H\u4f4d\uff0c\u66f4\u65b0AUXR\u5bc4\u5b58\u5668\u4ee5\u542f\u7528\u4e32\u53e3\u529f\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000LoRa\u8bbe\u5907\u5fc5\u987b\u914d\u7f6e\u76f8\u540c\u7684\u53c2\u6570\u624d\u80fd\u76f8\u4e92\u901a\u4fe1\uff0c\u5305\u62ec\u6269\u9891\u56e0\u5b50\u3001\u5e26\u5bbd\u3001\u7f16\u7801\u7387\u548c\u9891\u7387\u3002\u53ef\u4ee5\u901a\u8fc7\u5c06CFG\u62c9\u4f4e\u6765\u52a0\u8f7d\u9ed8\u8ba4\u7684LoRa\u53c2\u6570\uff0c\u6216\u8005\u5728\u4eba\u673a\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u4f7f\u7528\u4e32\u53e3\u5341\u516d\u8fdb\u5236\u6307\u4ee4\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n\n\n\n \u3000\u3000\u5728STM32\u7aef\uff0c\u901a\u8fc7STM32CubeWL\u6216\u5176\u4ed6\u4e2d\u95f4\u4ef6\u5de5\u5177\u8fdb\u884cLoRa\u53c2\u6570\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u521d\u59cb\u5316MAC\u5c42\u51fd\u6570\u3001MCPS\u670d\u52a1\u3001MLME\u670d\u52a1\u548cMIB\u670d\u52a1\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e3\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u6765\u6d4b\u8bd5\u901a\u4fe1\u662f\u5426\u6b63\u5e38\u3002\u5728STM32\u7aef\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b98\u65b9\u5e93\u51fd\u6570\u5982USART_SendData()\u6765\u53d1\u9001\u6570\u636e\uff0c\u5e76\u901a\u8fc7\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u6765\u63a5\u6536\u6570\u636e\u3002<\/p>\n\n\n\n \u3000\u3000\u53ef\u4ee5\u4f7f\u7528\u8d85\u7ea7\u7ec8\u7aef\u67e5\u770b\u4e32\u53e3\u901a\u4fe1\u7684\u6570\u636e\u6d41\uff0c\u786e\u4fdd\u6570\u636e\u80fd\u591f\u6b63\u786e\u4f20\u8f93\u3002<\/p>\n\n\n\n \u3000\u3000\u786e\u4fdd\u6240\u6709\u8fde\u63a5\u6b63\u786e\u65e0\u8bef\uff0c\u907f\u514d\u56e0\u786c\u4ef6\u8fde\u63a5\u95ee\u9898\u5bfc\u81f4\u901a\u4fe1\u5931\u8d25\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u914d\u7f6e\u8fc7\u7a0b\u4e2d\uff0c\u6ce8\u610f\u6ce2\u7279\u7387\u3001\u6821\u9a8c\u4f4d\u3001\u6570\u636e\u4f4d\u548c\u505c\u6b62\u4f4d\u7b49\u53c2\u6570\u7684\u4e00\u81f4\u6027\uff0c\u4ee5\u786e\u4fdd\u901a\u4fe1\u7684\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4f7f\u7528SPI\u63a5\u53e3\u8fde\u63a5LoRa\u6a21\u5757\u548c\u5355\u7247\u673a\u65f6\uff0c\u5904\u7406\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u4e2d\u7684\u4fe1\u53f7\u5b8c\u6574\u6027\u95ee\u9898\u9700\u8981\u7efc\u5408\u8003\u8651\u591a\u4e2a\u65b9\u9762\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5173\u952e\u63aa\u65bd\uff1a<\/p>\n\n\n\n \u3000\u3000\u6839\u636e\u4fe1\u53f7\u5b8c\u6574\u6027\u6807\u51c6\uff0cSPI\u7ebf\u8def\u7684\u957f\u5ea6\u5e94\u63a7\u5236\u5728\u6ce2\u957f\u76841\/20\u4ee5\u5185\u3002\u4f8b\u5982\uff0c\u5982\u679cSPI\u7684SCLK\u4e3a20MHz\uff0c\u5176\u6ce2\u957f\u4e3a15\u7c73\uff0c\u90a3\u4e48SPI\u7ebf\u8def\u957f\u5ea6\u5e94\u5c0f\u4e8e75cm\u3002\u8fd9\u6709\u52a9\u4e8e\u51cf\u5c11\u4fe1\u53f7\u53cd\u5c04\u548c\u4e32\u6270\uff0c\u4ece\u800c\u63d0\u9ad8\u4fe1\u53f7\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n \u3000\u3000SPI\u652f\u6301\u56db\u79cd\u6a21\u5f0f\uff0c\u7531CPHA(\u65f6\u949f\u76f8\u4f4d)\u548cCPOL(\u65f6\u949f\u6781\u6027)\u51b3\u5b9a\u3002\u901a\u5e38\u63a8\u8350\u4f7f\u7528CPOL=0\u548cCPHA=0\u7684\u6a21\u5f0f\uff0c\u56e0\u4e3a\u8fd9\u79cd\u6a21\u5f0f\u5728\u5168\u53cc\u5de5\u901a\u4fe1\u4e2d\u8868\u73b0\u8f83\u597d\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574SPI\u7684\u65f6\u949f\u9891\u7387\u3001\u6570\u636e\u5927\u5c0f\u548c\u65b9\u5411\u7b49\u53c2\u6570\u3002<\/p>\n\n\n\n \u3000\u3000\u4e3a\u4e86\u63d0\u9ad8\u4fe1\u53f7\u7684\u4f20\u8f93\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\uff0c\u53ef\u4ee5\u91c7\u7528\u6ee4\u6ce2\u3001\u8c03\u5236\u89e3\u8c03\u7b49\u5148\u8fdb\u7684\u4fe1\u53f7\u5904\u7406\u6280\u672f\u3002\u8fd9\u4e9b\u6280\u672f\u6709\u52a9\u4e8e\u51cf\u5c11\u566a\u58f0\u5e72\u6270\uff0c\u63d0\u9ad8\u4fe1\u53f7\u7684\u53ef\u9760\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u7535\u6e90\u8bbe\u8ba1\u5bf9\u4fe1\u53f7\u5b8c\u6574\u6027\u6709\u91cd\u8981\u5f71\u54cd\u3002\u5e94\u786e\u4fdd\u7535\u6e90\u7684\u5e03\u5c40\u5408\u7406\uff0c\u4f9b\u7535\u7535\u538b\u7a33\u5b9a\uff0c\u5e76\u4f18\u5316\u7535\u6e90\u6548\u7387\uff0c\u4ee5\u51cf\u5c11\u7535\u6e90\u566a\u58f0\u5bf9\u4fe1\u53f7\u4f20\u8f93\u7684\u5f71\u54cd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4ece\u673a\u6a21\u5f0f\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6eDMA(\u76f4\u63a5\u5185\u5b58\u8bbf\u95ee)\u6765\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u6548\u7387\u3002DMA\u53ef\u4ee5\u81ea\u52a8\u7ba1\u7406\u6570\u636e\u4f20\u8f93\uff0c\u51cf\u5c11CPU\u7684\u8d1f\u62c5\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6574\u4f53\u6027\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u8bbe\u8ba1\u9636\u6bb5\uff0c\u5229\u7528\u4fe1\u53f7\u5b8c\u6574\u6027\u548c\u7535\u6e90\u5b8c\u6574\u6027\u4eff\u771f\u6280\u672f\u8fdb\u884c\u5206\u6790\u548c\u4f18\u5316\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u6f5c\u5728\u7684\u8bbe\u8ba1\u95ee\u9898\uff0c\u5e76\u91c7\u53d6\u9002\u5f53\u7684\u63aa\u65bd\u6765\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u8003\u8651\u73af\u5883\u4e2d\u7684\u566a\u58f0\u548c\u5e72\u6270\u5bf9\u4fe1\u53f7\u5b8c\u6574\u6027\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u5728LoRa\u7f51\u7edc\u4e2d\uff0c\u7531\u4e8e\u4fe1\u53f7\u5f3a\u5ea6\u968f\u969c\u788d\u7269\u6570\u91cf\u548c\u8ddd\u79bb\u589e\u52a0\u800c\u4e0b\u964d\uff0c\u4fe1\u566a\u6bd4(SNR)\u6210\u4e3a\u8861\u91cf\u4fe1\u53f7\u8d28\u91cf\u7684\u91cd\u8981\u6307\u6807\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1\u65f6\u5e94\u5c3d\u91cf\u51cf\u5c11\u73af\u5883\u566a\u58f0\u7684\u5f71\u54cd\uff0c\u5e76\u786e\u4fdd\u7cfb\u7edf\u5728\u5f3a\u4fe1\u53f7\u548c\u826f\u597d\u63a5\u6536\u6761\u4ef6\u4e0b\u8fd0\u884c\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528I2C\u63a5\u53e3\u8fdb\u884cLoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u65f6\uff0c\u5b58\u5728\u4e00\u4e9b\u7279\u5b9a\u7684\u786c\u4ef6\u8981\u6c42\u548c\u9650\u5236\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bf4\u660e\uff1a<\/p>\n\n\n\n \u3000\u3000LoRa\u6a21\u5757\u7684\u5de5\u4f5c\u7535\u538b\u901a\u5e38\u4e3a3.3V\u62165V\u3002\u56e0\u6b64\uff0c\u5355\u7247\u673a\u9700\u8981\u80fd\u591f\u652f\u6301\u8fd9\u4e9b\u7535\u538b\u8303\u56f4\uff0c\u4ee5\u786e\u4fdd\u6a21\u5757\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n\n\n\n \u3000\u3000\u867d\u7136\u6709\u4e9bLoRa\u6a21\u5757\u652f\u6301SPI\u63a5\u53e3\uff0c\u4f46\u4e5f\u6709\u90e8\u5206\u6a21\u5757\u652f\u6301I2C\u63a5\u53e3\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9LoRa\u6a21\u5757\u65f6\uff0c\u9700\u8981\u786e\u8ba4\u5176\u652f\u6301I2C\u63a5\u53e3\uff0c\u5e76\u4e14\u5355\u7247\u673a\u4e5f\u5fc5\u987b\u5177\u5907\u76f8\u5e94\u7684I2C\u63a5\u53e3\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528I2C\u63a5\u53e3\u65f6\uff0c\u9700\u8981\u8fde\u63a5SDA(\u4e32\u884c\u6570\u636e)\u548cSCL(\u4e32\u884c\u65f6\u949f)\u5f15\u811a\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u8003\u8651\u7535\u6e90\u548c\u5730\u7ebf(GND)\u7684\u8fde\u63a5\uff0c\u4ee5\u786e\u4fdd\u901a\u4fe1\u7a33\u5b9a\u3002<\/p>\n\n\n\n \u3000\u3000\u90e8\u5206LoRa\u6a21\u5757\u652f\u6301OLED\u663e\u793a\u5c4f\u548c\u5176\u4ed6\u6269\u5c55\u63a5\u53e3\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7I2C\u63a5\u53e3\u5b9e\u73b0\u3002\u8fd9\u610f\u5473\u7740\u5728\u8bbe\u8ba1\u7cfb\u7edf\u65f6\uff0c\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u6269\u5c55\u529f\u80fd\u6765\u589e\u5f3a\u7cfb\u7edf\u7684\u663e\u793a\u548c\u4ea4\u4e92\u80fd\u529b\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4f4e\u529f\u8017\u5e94\u7528\u4e2d\uff0cI2C\u8fde\u63a5\u7684\u5173\u95ed\u53ef\u4ee5\u4f7f\u5f97LoRa\u6a21\u5757\u8fdb\u5165\u7761\u7720\u6a21\u5f0f\uff0c\u4ece\u800c\u8282\u7701\u80fd\u6e90\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u957f\u65f6\u95f4\u8fd0\u884c\u4e14\u4f9d\u8d56\u7535\u6c60\u4f9b\u7535\u7684\u7cfb\u7edf\u5c24\u4e3a\u91cd\u8981\u3002<\/p>\n\n\n\n \u3000\u3000LoRa\u6a21\u5757\u652f\u6301\u591a\u79cd\u8c03\u5236\u65b9\u5f0f\uff0c\u5982LoRa\u3001FSK\u3001GFSK\u548cOOK\u3002\u5728\u4f7f\u7528I2C\u63a5\u53e3\u8fdb\u884c\u901a\u4fe1\u65f6\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u5e94\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u8c03\u5236\u65b9\u5f0f\u548c\u6570\u636e\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n \u3000\u3000\u4e0d\u540c\u7684LoRa\u6a21\u5757\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u786c\u4ef6\u89c4\u683c\u548c\u5f15\u811a\u5b9a\u4e49\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1\u7cfb\u7edf\u65f6\uff0c\u9700\u8981\u4ed4\u7ec6\u67e5\u9605\u6a21\u5757\u7684\u89c4\u683c\u8bf4\u660e\u4e66\uff0c\u786e\u4fdd\u786c\u4ef6\u517c\u5bb9\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528I2C\u63a5\u53e3\u8fdb\u884cLoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u65f6\uff0c\u9700\u8981\u8003\u8651\u7535\u538b\u517c\u5bb9\u6027\u3001\u901a\u4fe1\u63a5\u53e3\u7c7b\u578b\u3001\u786c\u4ef6\u8fde\u63a5\u3001\u6269\u5c55\u529f\u80fd\u3001\u529f\u8017\u7ba1\u7406\u3001\u6570\u636e\u4f20\u8f93\u901f\u7387\u548c\u8c03\u5236\u65b9\u5f0f\u4ee5\u53ca\u786c\u4ef6\u517c\u5bb9\u6027\u7b49\u591a\u65b9\u9762\u7684\u56e0\u7d20\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4e0d\u540c\u7535\u538b\u7b49\u7ea7\u7684LoRa\u6a21\u5757\u548c\u5355\u7247\u673a\u4e4b\u95f4\u5b9e\u73b0\u7535\u5e73\u5339\u914d\uff0c\u4e3b\u8981\u6d89\u53ca\u5c06LoRa\u6a21\u5757\u76843.3V\u7535\u5e73\u8f6c\u6362\u4e3a\u5355\u7247\u673a\u76845V TTL\u7535\u5e73\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n\n\n\n \u3000\u3000\u6839\u636eF8L10D LoRa\u6a21\u5757\u4f7f\u7528\u8bf4\u660e\u4e66\uff0c\u5f53\u5355\u7247\u673a\u7535\u6e90\u4e0e\u6a21\u5757\u7535\u6e90\u4e0d\u4e00\u81f4\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e09\u6781\u7ba1\u5b9e\u73b0\u7535\u5e73\u8f6c\u6362\u3002\u4f8b\u5982\uff0c\u56fe5-3\u548c\u56fe5-4\u5c55\u793a\u4e86\u4f7f\u7528\u4e09\u6781\u7ba1\u5b9e\u73b0\u7535\u5e73\u8f6c\u6362\u7684\u53c2\u8003\u8bbe\u8ba1\uff0c\u5176\u4e2d\u4e8c\u6781\u7ba1\u4e3a\u8096\u7279\u57fa\u4e8c\u6781\u7ba1(\u524d\u5411\u538b\u964d\u4e3a0.3V)\uff0c\u5e76\u5efa\u8bae\u9009\u62e9\u524d\u5411\u538b\u964d\u5c0f\u7684\u4e8c\u6781\u7ba1\u4ee5\u4fdd\u8bc1\u8f93\u5165\u4f4e\u7535\u5e73\u65f6RXD_module\u7684\u7535\u5e73\u5728\u4f4e\u7535\u5e73\u8f93\u5165\u9608\u503c\u4ee5\u4e0b\u3002<\/p>\n\n\n\n \u3000\u3000\u5982\u679c\u9700\u8981\u66f4\u65b9\u4fbf\u4e14\u7a33\u5b9a\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e13\u7528\u7684\u7535\u5e73\u8f6c\u6362\u82af\u7247\u3002\u4f8b\u5982\uff0c\u56fe5-5\u5c55\u793a\u4e86\u4f7f\u7528\u7535\u5e73\u8f6c\u6362\u82af\u7247\u8fdb\u884c\u7535\u5e73\u8f6c\u6362\u7684\u65b9\u6cd5\uff0c\u6b64\u7c7b\u82af\u7247\u79cd\u7c7b\u8f83\u591a\uff0c\u5ba2\u6237\u53ef\u6839\u636e\u81ea\u8eab\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002\u6b64\u5916\uff0c\u5bf9\u4e8e\u4e3b\u673a\u7cfb\u7edf\u7535\u538b\u4e3a3V\u62163.3V\u7684\u60c5\u51b5\uff0c\u5f3a\u70c8\u5efa\u8bae\u5728\u6a21\u5757\u548c\u4e3b\u673a\u7684\u4e32\u53e3\u8fde\u63a5\u4e0a\u52a0\u5165\u5206\u538b\u7535\u8def\u4ee5\u5b9e\u73b0\u7535\u5e73\u5339\u914d\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u8bbe\u8ba1\u7535\u8def\u65f6\uff0c\u5fc5\u987b\u786e\u4fdd\u8f93\u51fa\u7535\u5e73\u5668\u4ef6\u8f93\u51fa\u9ad8\u7535\u5e73\u7684\u6700\u5c0f\u7535\u538b\u503c\u5927\u4e8e\u63a5\u6536\u7535\u5e73\u5668\u4ef6\u8bc6\u522b\u4e3a\u9ad8\u7535\u5e73\u7684\u6700\u4f4e\u7535\u538b\u503c;\u540c\u65f6\uff0c\u8f93\u51fa\u7535\u5e73\u5668\u4ef6\u8f93\u51fa\u4f4e\u7535\u5e73\u7684\u6700\u5927\u7535\u538b\u503c\u5e94\u5c0f\u4e8e\u63a5\u6536\u7535\u5e73\u5668\u4ef6\u8bc6\u522b\u4e3a\u4f4e\u7535\u5e73\u7684\u6700\u9ad8\u7535\u538b\u503c\u3002\u4f8b\u5982\uff0cLVTTL\u4fe1\u53f7\u8f93\u5165\u4f4e\u7535\u5e73\u9608\u503c\u548c\u9ad8\u7535\u5e73\u9608\u503c\u5206\u522b\u4e3a0.8V\u548c2.0V\uff0c\u8bbe\u8ba1\u65f6\u5fc5\u987b\u4fdd\u969c\u8f93\u5165\u7535\u5e73\u4e0d\u4f1a\u5904\u4e8e\u8fd9\u4e24\u4e2a\u9608\u503c\u4e4b\u95f4\u3002<\/p>\n\n\n\n \u3000\u3000\u53c2\u8003\u58f9\u4f70\u7279E32-TTL-1W LoRa\u6a21\u5757\u7684\u4f7f\u7528\u60c5\u51b5\uff0c\u5f53\u5fae\u63a7\u5236\u5355\u5143(MCU)\u5904\u4e8e\u4f11\u7720\u72b6\u6001\u65f6\uff0cGPIO\u7ba1\u811a\u5904\u4e8e\u91ca\u653e\u72b6\u6001\uff0c\u65e0\u6cd5\u4e3aE32\u6a21\u5757\u63d0\u4f9b\u9002\u5408\u7684\u9ad8\u7535\u5e73\u4fe1\u53f7\u4f7f\u5176\u8fdb\u5165\u4f11\u7720\u3002\u6b64\u65f6\u9700\u8981\u4f7f\u7528\u4e00\u4e2aSS8050\u7684\u4e09\u6781\u7ba1\u5236\u4f5c\u4e00\u4e2a\u7535\u5e73\u8f6c\u6362\u7535\u8def\uff0c\u63d0\u4f9b2\u4e2a\u9ad8\u7535\u5e73\u8f93\u51fa;\u5f53MCU\u5524\u9192\u540e\uff0c\u7ed9\u51faGPIO\u9ad8\u7535\u5e73\uff0c\u7ecf\u8fc7\u8f6c\u6362\u540e\u7ed9\u51faM0\u3001M1\u4f4e\u7535\u5e73\uff0c\u4f7f\u5b83\u4eec\u8fdb\u5165\u5de5\u4f5c\u72b6\u6001\u3002<\/p>\n\n\n\n \u3000\u3000\u914d\u7f6eLoRa\u6a21\u5757\u5de5\u4f5c\u53c2\u6570\u65f6\uff0c\u786e\u4fdd\u901a\u4fe1\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u9700\u8981\u7efc\u5408\u8003\u8651\u591a\u4e2a\u56e0\u7d20\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\uff1a<\/p>\n\n\n\n \u3000\u3000\u6269\u5c55\u56e0\u5b50\u662fLoRa\u901a\u4fe1\u4e2d\u6700\u91cd\u8981\u7684\u53c2\u6570\u4e4b\u4e00\u3002\u8f83\u9ad8\u7684SF\u503c\u53ef\u4ee5\u63d0\u9ad8\u4fe1\u53f7\u5f3a\u5ea6\u548c\u8986\u76d6\u8303\u56f4\uff0c\u4f46\u4f1a\u964d\u4f4e\u6570\u636e\u901f\u7387\u548c\u589e\u52a0\u7a7a\u4e2d\u65f6\u95f4\u3002\u56e0\u6b64\uff0c\u5728\u9700\u8981\u9ad8\u53ef\u9760\u6027\u548c\u957f\u8ddd\u79bb\u4f20\u8f93\u7684\u5e94\u7528\u4e2d\uff0c\u5efa\u8bae\u4f7f\u7528\u8f83\u9ad8\u7684SF\u503c(\u4f8b\u5982SF7\u5230SF12)\uff0c\u800c\u5728\u6570\u636e\u901f\u7387\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u4e2d\uff0c\u5219\u5e94\u9009\u62e9\u8f83\u4f4e\u7684SF\u503c(\u4f8b\u5982SF9\u5230SF12)\u3002<\/p>\n\n\n\n \u3000\u3000\u5e26\u5bbd\u51b3\u5b9a\u4e86LoRa\u4fe1\u53f7\u7684\u9891\u7387\u8303\u56f4\uff0c\u5f71\u54cd\u6570\u636e\u901f\u7387\u548c\u7075\u654f\u5ea6\u3002\u8f83\u9ad8\u7684BW\u503c\u53ef\u4ee5\u63d0\u4f9b\u66f4\u9ad8\u7684\u6570\u636e\u901f\u7387\uff0c\u4f46\u4f1a\u964d\u4f4e\u63a5\u6536\u5668\u7684\u7075\u654f\u5ea6\uff0c\u56e0\u4e3a\u589e\u52a0\u4e86\u566a\u58f0\u96c6\u6210\u3002\u76f8\u53cd\uff0c\u8f83\u4f4e\u7684BW\u503c\u63d0\u4f9b\u66f4\u597d\u7684\u7075\u654f\u5ea6\uff0c\u4f46\u6570\u636e\u901f\u7387\u8f83\u4f4e\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u6839\u636e\u5177\u4f53\u5e94\u7528\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684BW\u503c(\u4f8b\u5982125 KHz\u3001250 KHz\u6216500 KHz)\u3002<\/p>\n\n\n\n \u3000\u3000\u7f16\u7801\u7387\u7528\u4e8e\u589e\u5f3a\u6570\u636e\u5305\u7684\u5bb9\u9519\u80fd\u529b\uff0c\u901a\u8fc7\u589e\u52a0\u5197\u4f59\u4f4d\u6765\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002\u8f83\u9ad8\u7684CR\u503c\u610f\u5473\u7740\u66f4\u591a\u7684\u9519\u8bef\u7ea0\u6b63\u4f4d\uff0c\u4f46\u4f1a\u589e\u52a0\u7a7a\u4e2d\u65f6\u95f4\u548c\u51cf\u5c11\u7535\u6c60\u5bff\u547d\u3002\u56e0\u6b64\uff0c\u5728\u9700\u8981\u9ad8\u53ef\u9760\u6027\u7684\u5e94\u7528\u4e2d\uff0c\u5efa\u8bae\u4f7f\u7528\u8f83\u9ad8\u7684CR\u503c(\u4f8b\u59824\/5\u62164\/6)\uff0c\u800c\u5728\u5bf9\u5b9e\u65f6\u6027\u8981\u6c42\u8f83\u9ad8\u7684\u5e94\u7528\u4e2d\uff0c\u5219\u5e94\u9009\u62e9\u8f83\u4f4e\u7684CR\u503c(\u4f8b\u59824\/7\u62164\/8)\u3002<\/p>\n\n\n\n \u3000\u3000LoRaWAN\u5141\u8bb8\u8c03\u6574\u4f20\u8f93\u529f\u7387\uff0c\u4ee5\u5e73\u8861\u901a\u4fe1\u8303\u56f4\u548c\u80fd\u8017\u3002\u8f83\u9ad8\u7684\u4f20\u8f93\u529f\u7387\u53ef\u4ee5\u589e\u52a0\u901a\u4fe1\u8303\u56f4\uff0c\u4f46\u4f1a\u589e\u52a0\u80fd\u8017\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1\u7f51\u7edc\u65f6\uff0c\u5e94\u6839\u636e\u8282\u70b9\u7684\u4f4d\u7f6e\u548c\u901a\u4fe1\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684TP\u503c\u3002\u4f8b\u5982\uff0c\u5728\u8fb9\u7f18\u8282\u70b9\u4e0a\u4f7f\u7528\u8f83\u9ad8\u7684TP\u503c\u4ee5\u786e\u4fdd\u4fe1\u53f7\u8986\u76d6\uff0c\u800c\u5728\u4e2d\u5fc3\u8282\u70b9\u4e0a\u5219\u53ef\u4ee5\u4f7f\u7528\u8f83\u4f4e\u7684TP\u503c\u4ee5\u8282\u7701\u80fd\u8017\u3002<\/p>\n\n\n\n \u3000\u3000\u6e29\u5ea6\u3001\u6e7f\u5ea6\u7b49\u73af\u5883\u56e0\u7d20\u5bf9LoRa\u901a\u4fe1\u53ef\u9760\u6027\u6709\u663e\u8457\u5f71\u54cd\u3002\u7814\u7a76\u8868\u660e\uff0c\u9ad8\u6e29\u4f1a\u663e\u8457\u964d\u4f4e\u63a5\u6536\u4fe1\u53f7\u5f3a\u5ea6\uff0c\u5bfc\u81f4\u6570\u636e\u5305\u4e22\u5931\u548c\u635f\u574f\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1LoRa\u7f51\u7edc\u65f6\uff0c\u5e94\u5c3d\u91cf\u907f\u514d\u5728\u9ad8\u6e29\u73af\u5883\u4e0b\u90e8\u7f72\u8282\u70b9\uff0c\u5e76\u91c7\u53d6\u63aa\u65bd\u51cf\u5c11\u73af\u5883\u5e72\u6270\u7684\u5f71\u54cd\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528\u524d\u5411\u9519\u8bef\u7ea0\u6b63(FEC)\u673a\u5236\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u6297\u9519\u8bef\u80fd\u529b\u3002\u901a\u8fc7\u5728\u6570\u636e\u5305\u4e2d\u6dfb\u52a0\u5197\u4f59\u4f4d\uff0cFEC\u53ef\u4ee5\u5728\u63a5\u6536\u7aef\u81ea\u52a8\u7ea0\u6b63\u90e8\u5206\u9519\u8bef\uff0c\u4ece\u800c\u63d0\u9ad8\u901a\u4fe1\u7684\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000ADR\u6280\u672f\u53ef\u4ee5\u6839\u636e\u94fe\u8def\u9884\u7b97\u52a8\u6001\u8c03\u6574\u6570\u636e\u901f\u7387\uff0c\u4ee5\u4f18\u5316\u901a\u4fe1\u8d28\u91cf\u548c\u80fd\u8017\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0cADR\u53ef\u4ee5\u6839\u636e\u8282\u70b9\u4e0e\u7f51\u5173\u4e4b\u95f4\u7684\u4fe1\u53f7\u8d28\u91cf\u81ea\u52a8\u8c03\u6574SF\u548cBW\u503c\uff0c\u4ece\u800c\u5728\u4fdd\u8bc1\u901a\u4fe1\u53ef\u9760\u6027\u7684\u540c\u65f6\u964d\u4f4e\u80fd\u8017\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" LoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u63a5\u53e3\u9009\u62e9\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u786c\u4ef6\u6761\u4ef6\u8fdb\u884c\u5408\u7406\u914d\u7f6e\uff0c\u5e76\u786e\u4fdd\u5404\u90e8\u5206\u4e4b\u95f4\u7684\u6b63\u786e\u8fde\u63a5\u548c\u53c2\u6570\u8bbe\u7f6e\uff0c\u4ee5\u5b9e\u73b0\u7a33\u5b9a\u7684\u65e0\u7ebf\u901a\u4fe1\u529f\u80fd<\/p>\n","protected":false},"author":1,"featured_media":98952,"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":[388,83],"class_list":["post-99269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-loramodule","tag-dpj"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/99269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=99269"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/99269\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/98952"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=99269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=99269"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=99269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\n
\u3000\u3000\u4e00\u3001 LoRa\u6a21\u5757\u4e0eSTM32\u5355\u7247\u673a\u4e32\u53e3\u901a\u4fe1\u7684\u8be6\u7ec6\u914d\u7f6e\u6b65\u9aa4<\/h2>\n\n\n\n
\u3000\u30001. \u786c\u4ef6\u8fde\u63a5<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30002. \u8f6f\u4ef6\u73af\u5883\u8bbe\u7f6e<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30003. \u6ce2\u7279\u7387\u548c\u53c2\u6570\u8bbe\u7f6e<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30004. \u914d\u7f6eLoRa\u53c2\u6570<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30005. \u6570\u636e\u6536\u53d1\u6d4b\u8bd5<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30006. \u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u3000\u4e8c\u3001 \u5728\u4f7f\u7528SPI\u63a5\u53e3\u8fde\u63a5LoRa\u6a21\u5757\u548c\u5355\u7247\u673a\u65f6\uff0c\u5982\u4f55\u5904\u7406\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u4e2d\u7684\u4fe1\u53f7\u5b8c\u6574\u6027\u95ee\u9898?<\/h2>\n\n\n\n
\u3000\u3000\u4e09\u3001 \u4f7f\u7528I2C\u63a5\u53e3\u8fdb\u884cLoRa\u6a21\u5757\u4e0e\u5355\u7247\u673a\u901a\u4fe1\u65f6\uff0c\u6709\u54ea\u4e9b\u7279\u5b9a\u7684\u786c\u4ef6\u8981\u6c42\u6216\u9650\u5236?<\/h2>\n\n\n\n
\u3000\u30001. \u7535\u538b\u8981\u6c42<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30002. \u901a\u4fe1\u63a5\u53e3<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30003. \u786c\u4ef6\u8fde\u63a5<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30004. \u6269\u5c55\u529f\u80fd<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30005. \u529f\u8017\u7ba1\u7406<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30006. \u6570\u636e\u4f20\u8f93\u901f\u7387\u548c\u8c03\u5236\u65b9\u5f0f<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30007. \u786c\u4ef6\u517c\u5bb9\u6027<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u3000\u56db\u3001 \u5982\u4f55\u5728\u4e0d\u540c\u7535\u538b\u7b49\u7ea7\u7684LoRa\u6a21\u5757\u548c\u5355\u7247\u673a\u4e4b\u95f4\u5b9e\u73b0\u7535\u5e73\u5339\u914d?<\/h2>\n\n\n\n
\u3000\u30001. \u4f7f\u7528\u4e09\u6781\u7ba1\u8fdb\u884c\u7535\u5e73\u8f6c\u6362<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30002. \u4f7f\u7528\u7535\u5e73\u8f6c\u6362\u82af\u7247<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30003. \u786e\u4fdd\u7535\u5e73\u517c\u5bb9\u6027<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30004. \u5177\u4f53\u7535\u8def\u8bbe\u8ba1\u793a\u4f8b<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u3000\u4e94\u3001 \u914d\u7f6eLoRa\u6a21\u5757\u5de5\u4f5c\u53c2\u6570\u65f6\uff0c\u6709\u54ea\u4e9b\u6700\u4f73\u5b9e\u8df5\u53ef\u4ee5\u786e\u4fdd\u901a\u4fe1\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027?<\/h2>\n\n\n\n