{"id":98836,"date":"2024-11-05T15:13:50","date_gmt":"2024-11-05T07:13:50","guid":{"rendered":"\/\/www.dealsbon.com\/?p=98836"},"modified":"2024-11-05T15:13:54","modified_gmt":"2024-11-05T07:13:54","slug":"wxtxmkzmgdpjxhd","status":"publish","type":"post","link":"\/\/www.dealsbon.com\/blog\/98836.html","title":{"rendered":"\u65e0\u7ebf\u901a\u4fe1\u6a21\u5757\u600e\u4e48\u7ed9\u5355\u7247\u673a\u4fe1\u53f7\u7684"},"content":{"rendered":"\n
\u3000\u3000\u65e0\u7ebf\u901a\u4fe1\u6a21\u5757<\/strong>\u4e0e\u5355\u7247\u673a<\/strong>\u4e4b\u95f4\u7684\u4fe1\u53f7\u4f20\u8f93\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u65e0\u7ebf\u901a\u4fe1\u6a21\u5757\u548c\u5355\u7247\u673a\u7684\u7c7b\u578b\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u8fde\u63a5\u65b9\u5f0f\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u65e0\u7ebf\u901a\u4fe1\u6a21\u5757\u548c\u63a5\u53e3\u65b9\u5f0f\u975e\u5e38\u91cd\u8981\u3002\u4f8b\u5982\uff0c\u5728\u8bbe\u8ba1\u65e0\u7ebf\u4f20\u611f\u5668\u7f51\u7edc\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9nRF24L01\u6a21\u5757\u4e0eSTM32\u5355\u7247\u673a\u7ed3\u5408\u4f7f\u7528\uff0c\u901a\u8fc7SPI\u63a5\u53e3\u5b9e\u73b0\u6570\u636e\u7684\u65e0\u7ebf\u4f20\u8f93\u3002\u800c\u5728\u9700\u8981\u4f4e\u529f\u8017\u548c\u8fdc\u8ddd\u79bb\u4f20\u8f93\u7684\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9NB-IoT\u7f51\u7edc\u6a21\u5757\uff0c\u5e76\u786e\u4fdd\u5176\u4e0e\u5355\u7247\u673a\u652f\u6301\u76f8\u540c\u7684\u901a\u4fe1\u63a5\u53e3\u548c\u534f\u8bae\u3002<\/p>\n\n\n\n \u3000\u3000\u603b\u4e4b\uff0c\u65e0\u7ebf\u901a\u4fe1\u6a21\u5757\u7ed9\u5355\u7247\u673a\u4fe1\u53f7\u7684\u65b9\u5f0f\u4e3b\u8981\u4f9d\u8d56\u4e8e\u6a21\u5757\u7684\u63a5\u53e3\u7c7b\u578b\u548c\u901a\u4fe1\u534f\u8bae\uff0c\u901a\u8fc7\u5408\u9002\u7684\u786c\u4ef6\u8fde\u63a5\u548c\u8f6f\u4ef6\u914d\u7f6e\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u548c\u901a\u4fe1\u529f\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u8981\u914d\u7f6enRF24L01\u6a21\u5757\u4e0eSTM32\u5355\u7247\u673a\u901a\u8fc7SPI\u63a5\u53e3\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n\n\n \u3000\u30001. \u5f15\u811a\u8fde\u63a5<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000nRF24L01\u6a21\u5757\u6709\u516b\u4e2a\u5f15\u811a\uff0c\u5176\u4e2dVCC\u548cGND\u662f\u7535\u6e90\u5f15\u811a\uff0c\u4e0d\u9700\u8981\u989d\u5916\u914d\u7f6e\u3002<\/p>\n\n\n\n \u3000\u3000\u5176\u4ed6\u516d\u4e2a\u5f15\u811a\u5206\u522b\u662fSCK(\u65f6\u949f\u4fe1\u53f7)\u3001MOSI(\u4e3b\u8f93\u51fa\u4ece\u8f93\u5165)\u3001MISO(\u4e3b\u8f93\u5165\u4ece\u8f93\u51fa)\u3001CSN(\u7247\u9009)\u3001CE(\u53d1\u5c04\u4f7f\u80fd)\u548cIRQ(\u4e2d\u65ad\u8bf7\u6c42)\u3002<\/p>\n\n\n\n \u3000\u3000\u5c06\u8fd9\u4e9b\u5f15\u811a\u5206\u522b\u8fde\u63a5\u5230STM32\u7684\u5bf9\u5e94\u5f15\u811a\u4e0a\u3002\u4f8b\u5982\uff0cSCK\u8fde\u63a5\u5230STM32\u7684\u4e00\u4e2aGPIO\u5f15\u811a\uff0cMOSI\u8fde\u63a5\u5230STM32\u7684\u53e6\u4e00\u4e2aGPIO\u5f15\u811a\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n\n\n\n \u3000\u30002. GPIO\u914d\u7f6e<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u914d\u7f6eGPIO\u5f15\u811a\u4e3a\u8f93\u51fa\u6216\u8f93\u5165\u6a21\u5f0f\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u5b83\u4eec\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0cSCK\u3001MOSI\u3001MISO\u548cCE\u5e94\u914d\u7f6e\u4e3a\u8f93\u51fa\u6a21\u5f0f\uff0c\u800cMISO\u548cIRQ\u5e94\u914d\u7f6e\u4e3a\u8f93\u5165\u6a21\u5f0f\u3002<\/p>\n\n\n\n \u3000\u30003. SPI\u521d\u59cb\u5316<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528STM32\u7684SPI\u6a21\u5757\u8fdb\u884c\u521d\u59cb\u5316\u3002STM32\u63d0\u4f9b\u4e86\u591a\u4e2aSPI\u6a21\u5757\uff0c\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684SPI\u6a21\u5757(\u5982SPI1\u6216SPI3)\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n\n\n\n \u3000\u3000\u914d\u7f6eSPI\u6a21\u5757\u7684\u65f6\u949f\u9891\u7387\u3001\u6570\u636e\u4f4d\u6570\u3001\u6a21\u5f0f(\u4e3b\u6a21\u5f0f\u6216\u4ece\u6a21\u5f0f)\u7b49\u53c2\u6570\u3002<\/p>\n\n\n\n \u3000\u30004. NRF24L01\u53c2\u6570\u5199\u5165<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528SPI\u63a5\u53e3\u5411nRF24L01\u6a21\u5757\u5199\u5165\u5fc5\u8981\u7684\u53c2\u6570\uff0c\u5982\u901a\u9053\u9009\u62e9\u3001\u53d1\u5c04\u529f\u7387\u3001\u6570\u636e\u901f\u7387\u7b49\u3002\u8fd9\u901a\u5e38\u901a\u8fc7\u53d1\u9001\u4e00\u7cfb\u5217\u7684\u547d\u4ee4\u5b57\u8282\u548c\u6570\u636e\u5b57\u8282\u6765\u5b8c\u6210\u3002<\/p>\n\n\n\n \u3000\u30005. \u4e2d\u65ad\u5904\u7406<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5982\u679c\u9700\u8981\u5904\u7406\u4e2d\u65ad\uff0c\u53ef\u4ee5\u914d\u7f6enRF24L01\u7684IRQ\u5f15\u811a\u4f5c\u4e3aSTM32\u7684\u5916\u90e8\u4e2d\u65ad\u6e90\uff0c\u5e76\u7f16\u5199\u76f8\u5e94\u7684\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u6765\u5904\u7406\u4e2d\u65ad\u4e8b\u4ef6\u3002<\/p>\n\n\n\n \u3000\u30006. \u53d1\u9001\u548c\u63a5\u6536\u6570\u636e<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u7f16\u5199\u51fd\u6570\u6765\u5b9e\u73b0\u6570\u636e\u7684\u53d1\u9001\u548c\u63a5\u6536\u3002\u53d1\u9001\u6570\u636e\u65f6\uff0c\u5c06\u6570\u636e\u5199\u5165nRF24L01\u7684\u53d1\u9001\u7f13\u51b2\u533a\u5e76\u542f\u52a8\u53d1\u9001;\u63a5\u6536\u6570\u636e\u65f6\uff0c\u4ecenRF24L01\u7684\u63a5\u6536\u7f13\u51b2\u533a\u8bfb\u53d6\u6570\u636e\u3002<\/p>\n\n\n\n \u3000\u30007. \u4ee3\u7801\u793a\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u53ef\u4ee5\u53c2\u8003\u63d0\u4f9b\u7684\u4ee3\u7801\u793a\u4f8b\u6765\u5b9e\u73b0\u4e0a\u8ff0\u529f\u80fd\u3002\u4f8b\u5982\uff0cALIENTEK MiniSTM32\u5f00\u53d1\u677f\u4f7f\u7528\u624b\u518c\u4e2d\u5b9a\u4e49\u4e86\u56db\u4e2a\u51fd\u6570\u7528\u4e8e\u4e0eNRF24L01\u6a21\u5757\u8fdb\u884cSPI\u901a\u4fe1\uff1aNRF24L01_Read Reg\u3001NRF24L01_Read_Buf\u3001NRF24L01_Write_Buf\u548cNRF24L01_Start\u3002<\/p>\n\n\n\n \u3000\u3000ESP8266 WiFi\u6a21\u5757\u4e0e\u5355\u7247\u673a\u901a\u8fc7UART\u63a5\u53e3\u8fde\u63a5\u7684\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u9009\u62e9\u84dd\u7259\u6a21\u5757\u4e0e\u5355\u7247\u673a\u8fde\u63a5\u65f6\uff0c\u4e3a\u4e86\u4f18\u5316\u901a\u4fe1\u6548\u7387\uff0c\u9700\u8981\u8003\u8651\u84dd\u7259\u534f\u8bae\u7248\u672c\u7684\u7279\u6027\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u5173\u952e\u70b9\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u5c06NB-IoT\u7f51\u7edc\u6a21\u5757\u4e0e\u5355\u7247\u673a\u8fde\u63a5\u65f6\uff0c\u9700\u8981\u8fdb\u884c\u7279\u5b9a\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u914d\u7f6e\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u6b65\u9aa4\u548c\u8981\u6c42\uff1a<\/p>\n\n\n\n \u3000\u3000\u4e32\u53e3\u8fde\u63a5<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5355\u7247\u673a\u7684\u4e32\u53e3(UART)\u9700\u8981\u4e0eNB-IoT\u6a21\u5757\u7684\u4e32\u53e3\u8fdb\u884c\u8fde\u63a5\u3002\u8fd9\u901a\u5e38\u5305\u62ecTX(\u53d1\u9001)\u3001RX(\u63a5\u6536)\u3001GND(\u5730\u7ebf)\u7b49\u5f15\u811a\u7684\u8fde\u63a5\u3002<\/p>\n\n\n\n \u3000\u3000\u4f8b\u5982\uff0c\u5728\u4f7f\u7528SIM7020X NB-IoT HAT\u65f6\uff0c\u53ef\u4ee5\u53c2\u8003STM32F103R\u7ba1\u811a\u4e0e\u6a21\u5757\u5f15\u811a\u7684\u8fde\u63a5\u60c5\u51b5\u3002<\/p>\n\n\n\n \u3000\u3000\u7535\u6e90\u8bbe\u8ba1<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u786e\u4fdd\u4e3aNB-IoT\u6a21\u5757\u63d0\u4f9b\u9002\u5f53\u7684\u7535\u6e90\u3002\u901a\u5e38\uff0c\u6a21\u5757\u9700\u8981\u4e00\u4e2a\u7a33\u5b9a\u7684\u7535\u538b\u6e90\uff0c\u59823.3V\u62165V\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6a21\u5757\u578b\u53f7\u3002<\/p>\n\n\n\n \u3000\u3000\u6a21\u5757\u7684\u4f9b\u7535\u7535\u8def\u56fe\u53ef\u4ee5\u5728\u76f8\u5173\u786c\u4ef6\u5e94\u7528\u624b\u518c\u4e2d\u627e\u5230\u3002<\/p>\n\n\n\n \u3000\u3000SIM\u5361\u63a5\u53e3<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u63d2\u5165\u5e26\u6709NB-IoT\u6216CatM1\u8fde\u63a5\u6570\u636e\u8ba1\u5212\u7684\u5fae\u578bSIM\u5361\u3002\u4e5f\u53ef\u4ee5\u9009\u62e9\u5e26\u67092G\u56de\u9000\u529f\u80fd\u7684SIM\u5361\u3002<\/p>\n\n\n\n \u3000\u3000\u5929\u7ebf\u63a5\u53e3<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528\u5408\u9002\u7684\u5929\u7ebf\u4ee5\u786e\u4fdd\u826f\u597d\u7684\u4fe1\u53f7\u63a5\u6536\u3002\u4f8b\u5982\uff0cBG95-S5\u6a21\u5757\u9700\u8981SMA\u5929\u7ebf\u3002<\/p>\n\n\n\n \u3000\u3000\u56fa\u4ef6\u7248\u672c\u786e\u8ba4<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u786e\u4fdd\u56fa\u4ef6\u652f\u6301NB-IoT\u529f\u80fd\u3002\u53ef\u4ee5\u901a\u8fc7AT\u547d\u4ee4\u5982ATI\u6216AT+QGMR\u6765\u9a8c\u8bc1\u56fa\u4ef6\u7248\u672c\u3002<\/p>\n\n\n\n \u3000\u3000AT\u547d\u4ee4\u914d\u7f6e<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528AT\u547d\u4ee4\u914d\u7f6eNB-IoT\u6a21\u5757\u7684\u5de5\u4f5c\u6a21\u5f0f\u3001\u7f51\u7edc\u8bbe\u7f6e\u548c\u4e8b\u4ef6\u4e0a\u62a5\u7b49\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528AT+CGDCONT\u547d\u4ee4\u8bbe\u7f6eIP\u4e0a\u4e0b\u6587\u3002<\/p>\n\n\n\n \u3000\u3000\u5176\u4ed6\u5e38\u7528\u7684AT\u547d\u4ee4\u5305\u62ec\u8bbe\u7f6e\u5de5\u4f5c\u9891\u6bb5\u3001\u9501\u5b9a\u9891\u70b9\u3001\u542f\u7528\/\u7981\u7528\u4e8b\u4ef6\u4e0a\u62a5\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000\u4e32\u53e3\u901a\u4fe1<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u914d\u7f6e\u5355\u7247\u673a\u7684\u4e32\u53e3\u901a\u4fe1\u53c2\u6570\uff0c\u5982\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\uff0c\u4ee5\u5339\u914dNB-IoT\u6a21\u5757\u7684\u8981\u6c42\u3002<\/p>\n\n\n\n \u3000\u3000\u7f51\u7edc\u9644\u7740<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528AT\u547d\u4ee4\u8fdb\u884c\u7f51\u7edc\u9644\u7740\u72b6\u6001\u67e5\u8be2\uff0c\u5e76\u901a\u8fc7\u6307\u5b9a\u7684PLMN\u3001EARFCN\/PCI\u6216\u9891\u6bb5\u9644\u7740\u7f51\u7edc\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4f7f\u7528STM32\u901a\u8fc7\u6a21\u62dfSPI\u534f\u8bae\u63a7\u5236nRF24L01\u6a21\u5757\u65f6\uff0c\u6709\u4e00\u4e9b\u7f16\u7a0b\u6280\u5de7\u548c\u6ce8\u610f\u4e8b\u9879\u9700\u8981\u7279\u522b\u5173\u6ce8\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" \u65e0\u7ebf\u901a\u4fe1\u6a21\u5757\u7ed9\u5355\u7247\u673a\u4fe1\u53f7\u7684\u65b9\u5f0f\u4e3b\u8981\u4f9d\u8d56\u4e8e\u6a21\u5757\u7684\u63a5\u53e3\u7c7b\u578b\u548c\u901a\u4fe1\u534f\u8bae\uff0c\u901a\u8fc7\u5408\u9002\u7684\u786c\u4ef6\u8fde\u63a5\u548c\u8f6f\u4ef6\u914d\u7f6e\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u548c\u901a\u4fe1\u529f\u80fd<\/p>\n","protected":false},"author":1,"featured_media":97947,"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":[83,403],"class_list":["post-98836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dpj","tag-wirelessmodule"],"_links":{"self":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/98836"}],"collection":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/comments?post=98836"}],"version-history":[{"count":1,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/98836\/revisions"}],"predecessor-version":[{"id":98837,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/98836\/revisions\/98837"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media\/97947"}],"wp:attachment":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media?parent=98836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/categories?post=98836"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/tags?post=98836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\u3000\u3000\u4e00\u3001 \u5982\u4f55\u914d\u7f6enRF24L01\u6a21\u5757\u4e0eSTM32\u5355\u7247\u673a\u901a\u8fc7SPI\u63a5\u53e3\u8fdb\u884c\u6570\u636e\u4f20\u8f93?<\/h2>\n\n\n\n
\u3000\u3000\u4e8c\u3001 ESP8266 WiFi\u6a21\u5757\u4e0e\u5355\u7247\u673a\u901a\u8fc7UART\u63a5\u53e3\u8fde\u63a5\u7684\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4<\/h2>\n\n\n\n
\n
\u3000\u3000\u4e09\u3001 \u5728\u4f7f\u7528\u84dd\u7259\u6a21\u5757\u4e0e\u5355\u7247\u673a\u8fde\u63a5\u65f6\uff0c\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u84dd\u7259\u534f\u8bae\u7248\u672c\u4ee5\u4f18\u5316\u901a\u4fe1\u6548\u7387?<\/h2>\n\n\n\n
\n
\u3000\u3000\u56db\u3001 NB-IoT\u7f51\u7edc\u6a21\u5757\u4e0e\u5355\u7247\u673a\u8fde\u63a5\u65f6\uff0c\u9700\u8981\u54ea\u4e9b\u7279\u5b9a\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u914d\u7f6e?<\/h2>\n\n\n\n
\u3000\u30001. \u786c\u4ef6\u914d\u7f6e<\/h3>\n\n\n\n
\u3000\u30002. \u8f6f\u4ef6\u914d\u7f6e<\/h3>\n\n\n\n
\u3000\u3000\u4e94\u3001 \u5bf9\u4e8e\u6a21\u62dfSPI\u534f\u8bae\u63a7\u5236nRF24L01\u6a21\u5757\uff0c\u6709\u54ea\u4e9b\u5177\u4f53\u7684\u7f16\u7a0b\u6280\u5de7\u548c\u6ce8\u610f\u4e8b\u9879?<\/h2>\n\n\n\n
\n