{"id":10020497,"date":"2024-12-15T20:36:18","date_gmt":"2024-12-15T12:36:18","guid":{"rendered":"https:\/\/itmax.cn\/?p=10020497"},"modified":"2024-12-15T20:36:18","modified_gmt":"2024-12-15T12:36:18","slug":"4g%e6%a8%a1%e5%9d%97%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10020497","title":{"rendered":"4G\u6a21\u5757\u8be6\u89e3"},"content":{"rendered":"<p>\u5728\u4e4b\u524d\u7684\u6559\u7a0b\u4e2d\uff0c\u65e0\u7ebf\u901a\u4fe1\u6280\u672f\u6211\u4eec\u5b66\u4e60\u4e86\u84dd\u7259\u548c WiFi\uff0c\u4eca\u5929\u6211\u4eec\u8981\u6765\u5b66\u4e60 4G\u3002<\/p>\n<p>4G \u6a21\u5757\u5728\u8ddd\u79bb\u4e0a\u6709\u4e2a\u7a81\u7834\uff0c\u5b83\u4e0d\u50cf\u84dd\u7259\u77ed\u8ddd\u79bb\uff0c\u4e5f\u4e0d\u50cf WiFi \u53ea\u80fd\u5728\u5c40\u57df\u7f51\uff0c4G \u6a21\u5757\u53ef\u4f7f\u7528\u6237\u65e0\u8bba\u5728\u54ea\uff0c\u53ea\u8981\u6709 4G \u7f51\u7edc\u4fe1\u53f7\u8986\u76d6\uff0c\u5c31\u53ef\u4ee5\u901a\u8baf\u3002<\/p>\n<p>4G \u6a21\u5757\u662f\u4e00\u79cd\u7528\u4e8e\u65e0\u7ebf\u901a\u4fe1\u7684\u8bbe\u5907\uff0c\u5b83\u652f\u6301\u7b2c\u56db\u4ee3\u79fb\u52a8\u901a\u4fe1\u7f51\u7edc\uff084G \u7f51\u7edc\uff09\u6280\u672f\u3002\u7b80\u5355\u6765\u8bf4\uff0c4G\u6a21\u5757\u5c31\u50cf\u662f\u624b\u673a\u91cc\u7684\u4e00\u4e2a\u5c0f\u82af\u7247\uff0c\u5b83\u53ef\u4ee5\u8fde\u63a5\u5230\u79fb\u52a8\u901a\u4fe1\u7f51\u7edc\uff0c\u4f7f\u8bbe\u5907\u80fd\u591f\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u548c\u8fdb\u884c\u901a\u4fe1\u3002\u901a\u8fc7 4G \u6a21\u5757\uff0c\u8fd9\u4e9b\u8bbe\u5907\u53ef\u4ee5\u4e0e\u79fb\u52a8\u901a\u4fe1\u7f51\u7edc\u8fdb\u884c\u65e0\u7ebf\u8fde\u63a5\uff0c\u5e76\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3001\u8bed\u97f3\u901a\u8bdd\u3001\u89c6\u9891\u6d41\u5a92\u4f53\u3001\u5728\u7ebf\u6e38\u620f\u7b49\u529f\u80fd\u3002<\/p>\n<p>4G \u6a21\u5757\u5728\u7269\u8054\u7f51\u9886\u57df\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\u3002\u5b83\u4eec\u53ef\u4ee5\u5d4c\u5165\u5230\u5404\u79cd\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u5982\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\u3001\u667a\u80fd\u5065\u5eb7\u76d1\u6d4b\u5668\u3001\u667a\u80fd\u4ea4\u901a\u7cfb\u7edf\u7b49\uff0c\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u4e92\u8054\u4e92\u901a\uff0c\u4e3a\u7269\u8054\u7f51\u5e94\u7528\u63d0\u4f9b\u53ef\u9760\u7684\u65e0\u7ebf\u8fde\u63a5\u3002<\/p>\n<h2>1. \u6e90\u7801\u4e0b\u8f7d\u53ca\u524d\u7f6e\u9605\u8bfb<\/h2>\n<p>\u672c\u6587\u9996\u53d1 <strong>\u826f\u8bb8\u5d4c\u5165\u5f0f\u7f51<\/strong> \uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=jrpr7Ch51%2BTn72bmPZGT5A%3D%3D.u0j4KdPuGCbLiUmpCMHL%2BfwVhoCtxdTnsupN65rfW%2Fo%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/www.lxlinux.net\/e\/<\/a> \uff0c\u6b22\u8fce\u5173\u6ce8\uff01<\/p>\n<p>\u672c\u6587\u6240\u6d89\u53ca\u7684\u6e90\u7801\u53ca\u5b89\u88c5\u5305\u5982\u4e0b\uff08\u7531\u4e8e\u5e73\u53f0\u9650\u5236\uff0c\u8bf7\u70b9\u51fb\u4ee5\u4e0b\u94fe\u63a5\u9605\u8bfb\u539f\u6587\u4e0b\u8f7d\uff09\uff1a<\/p>\n<p><a href=\"https:\/\/link.segmentfault.com\/?enc=34DcfaVQygf%2BBXKxVfoq3w%3D%3D.Coyfs%2Ba%2FKcRbOBzjmlH7DQ122Z7DjPLOBT6gRleDFYvRMxMjhnuqBsDU3IswAx7oo22jlER9bjKNt1wKmZQoEg%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/www.lxlinux.net\/e\/stm32\/4g-tutorial.html<\/a><\/p>\n<p>\u5982\u679c\u4f60\u662f\u5d4c\u5165\u5f0f\u5f00\u53d1\u5c0f\u767d\uff0c\u90a3\u4e48\u5efa\u8bae\u4f60\u5148\u8bfb\u8bfb\u4e0b\u9762\u51e0\u7bc7\u6587\u7ae0\u3002<\/p>\n<ul>\n<li>\u4ece\u96f6\u5f00\u59cb\u8f7b\u677e\u638c\u63e1STM32\u5f00\u53d1\u7684\u5fc5\u5907\u6307\u5357\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=n%2B5Anb%2FdYgiSsSRND%2BR5AQ%3D%3D.KNcGfK1%2FR2nd4a2CNLDG98lQxTC6%2FBnr6lhpsBNQB3iKHugLU%2F%2F6J4z8fS1OoYt2mdCUvAa7KFejaw2OQcCPPgyJJIINpPWE5m9pSsdSfhU%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u96f6\u57fa\u7840\u5feb\u901f\u4e0a\u624bSTM32\u5f00\u53d1\uff08\u624b\u628a\u624b\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff09<\/a><\/li>\n<li>\u5982\u679c\u4f60\u60f3\u642d\u4e00\u4e2a\u5c5e\u4e8e\u81ea\u5df1\u7684\u5de5\u7a0b\u6a21\u677f\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=hAf5bmPzvmt58NU0ch9lJg%3D%3D.cA7qG3JirbyK5L8hRjIkaLWgnBIV7ve%2FYnwFcehsvTWb9%2BG6ulMXx9nF9ORt%2BFvP4BzZA0nEUAIVvZr0GNcnH3xo8%2FBFRgcgRi1yuUSoy%2FA%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u624b\u628a\u624b\u5e26\u4f60\u521b\u5efaHAL\u7248\u672cMDK\u5de5\u7a0b\u6a21\u677f<\/a><\/li>\n<li>\u8ba1\u7b97\u673a\u6982\u5ff5\u7406\u6e05\uff0c\u751f\u52a8\u5f62\u8c61\uff0c\u901a\u4fd7\u6613\u61c2\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=jps0SX2gNSjibtHjJYjjWQ%3D%3D.665tCmldHVpqg7Pzbv9oDfxNdHGstVIIRm1jdv7WSnnjeDMmcoUOjK8UCL0xpGbBX%2FmeyfCRLAcHWIWY%2FJoCHg%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u56fe\u89e3\u56fa\u4ef6\u3001\u9a71\u52a8\u3001\u8f6f\u4ef6\u7684\u533a\u522b<\/a><\/li>\n<\/ul>\n<p>\u524d\u671f\u6559\u7a0b\uff0c\u6ca1\u770b\u8fc7\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u5148\u770b\u4e0b\u3002<\/p>\n<ul>\n<li>\u84dd\u7259\u6a21\u5757\u8be6\u89e3\uff0c\u8f7b\u677e\u638c\u63e1\u4e00\u79cd\u65e0\u7ebf\u901a\u4fe1\u6280\u672f\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=wROeYyt5Dzasd5APtMswSw%3D%3D.PuQshNu2WMBHA8J62gQyihrEiOMqB3ZEwOFPVTmgaNoEkd2S3aM0d%2FB0jH7slIrEoFAAaSqMKBtTmQeK7MdZUw%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u624b\u628a\u624b\u6559\u4f60\u73a9\u8f6c\u84dd\u7259\u6a21\u5757\uff08\u539f\u7406+\u9a71\u52a8\uff09<\/a><\/li>\n<li>\u84dd\u7259\u6a21\u5757\u77e5\u8bc6\u5e94\u7528\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=yBfTQFIqPcHZ0GGhGzVxmg%3D%3D.qUo9US0zsj4mvh45eCItina1kLAoPhEb4%2BdiPGuoZfeUHtfTCIElzVHZncSjMatO8rcmY%2BfyGQyf6K10Qkv7cw%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u5c0f\u9879\u76ee\uff1a\u84dd\u7259\u6a21\u5757\u70b9\u4eaeRGB\u4e09\u8272\u706f<\/a><\/li>\n<li>ESP8266\u8be6\u89e3\uff0c\u52a9\u4f60\u6210\u4e3a\u7269\u8054\u7f51\u5e94\u7528\u7684\u4e13\u5bb6\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=pLQRf8%2Bdh8Ij6tCeKQDIgw%3D%3D.uzLgs96re%2BpMBo04o8t9Vt2RKQL0JQ2PmoVa%2Bo9iyET0CTDNQdP7PqOFvhJoJGLgJQ9VFAKgSLJEh4h23sXSMQ%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u624b\u628a\u624b\u6559\u4f60\u73a9\u8f6cESP8266\uff08\u539f\u7406+\u9a71\u52a8\uff09<\/a><\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u4f5c\u8005\u7b80\u4ecb<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">\u5927\u5bb6\u597d\uff0c\u6211\u662f\u826f\u8bb8\uff0c\u535a\u5ba2\u91cc\u6240\u6709\u7684\u6587\u7ae0\u7686\u4e3a\u6211\u7684\u539f\u521b\u3002<br \/>\u4e0b\u9762\u662f\u6211\u7684\u4e00\u4e9b\u4e2a\u4eba\u4ecb\u7ecd\uff0c\u6b22\u8fce\u4ea4\u4e2a\u670b\u53cb\uff1a<br \/>\u00b7 211\u5de5\u79d1\u7855\u58eb\uff0c\u56fd\u5bb6\u5956\u5b66\u91d1\u83b7\u5f97\u8005\uff1b<br \/>\u00b7 \u6df1\u8015\u5d4c\u5165\u5f0f11\u5e74\uff0c\u524d\u4e16\u754c500\u5f3a\u5916\u4f01\u9ad8\u7ea7\u5d4c\u5165\u5f0f\u5de5\u7a0b\u5e08\uff1b<br \/>\u00b7 \u4e66\u7c4d\u300a\u901f\u5b66Linux\u4f5c\u8005\u300b\uff0c\u673a\u68b0\u5de5\u4e1a\u51fa\u7248\u793e\u4e13\u5bb6\u59d4\u5458\u4f1a\u6210\u5458\uff1b<br \/>\u00b7 \u5168\u7f5160W\u7c89\u4e1d\uff0c\u535a\u5ba2\u5206\u4eab\u5927\u91cf\u539f\u521b\u6210\u4f53\u7cfb\u6587\u7ae0\uff0c\u5168\u7f51\u9605\u8bfb\u91cf\u7d2f\u8ba1\u8d854000\u4e07\uff1b<br \/>\u00b7 \u9760\u81ea\u5a92\u4f53\u8fde\u7eed\u5e74\u5165\u767e\u4e07\uff0c\u9760\u81ea\u5df1\u4e70\u623f\u4e70\u8f66\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6211\u672c\u79d1\u53ca\u7855\u58eb\u90fd\u662f\u5b66\u673a\u68b0\uff0c\u901a\u8fc7\u81ea\u5b66\u6210\u529f\u8fdb\u5165\u4e16\u754c500\u5f3a\u5916\u4f01\u3002\u6211\u5df2\u7ecf\u5c06\u81ea\u5df1\u7684\u5b66\u4e60\u7ecf\u9a8c\u5199\u6210\u4e86\u4e00\u672c\u7535\u5b50\u4e66\uff0c\u8d85\u5343\u4eba\u901a\u8fc7\u6b64\u4e66\u5b66\u4e60\u5e76\u8f6c\u884c\u6210\u529f\u3002\u73b0\u5728\u5c06\u8fd9\u672c\u7535\u5b50\u4e66\u514d\u8d39\u5206\u4eab\u7ed9\u5927\u5bb6\uff0c\u5e0c\u671b\u5bf9\u4f60\u4eec\u6709\u5e2e\u52a9\uff1a<\/p>\n<p>\u7535\u5b50\u4e66\u94fe\u63a5\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=53qRSAY%2BKd%2FTIz6%2BMYo2LQ%3D%3D.obqVMF31iJ7k2Uja28pvrF20vDoUme7WOAcM%2BkBXGtx%2BBuBfMq0554QZV7opeKAU\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/www.lxlinux.net\/1024.html<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"836\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfebd\" alt=\"\" title=\"\"><\/p>\n<h2>2. 4G\u6a21\u5757\u4ecb\u7ecd<\/h2>\n<p>4G \u6a21\u5757\u5e02\u9762\u4e0a\u6709\u5f88\u591a\u5382\u5bb6\u751f\u4ea7\u7684\u4e0d\u540c\u578b\u53f7\uff0c\u4e00\u822c\u8d2d\u4e70\u7684\u65f6\u5019\u5382\u5bb6\u90fd\u4f1a\u7ed9\u4f60\u7528\u6237\u624b\u518c\uff0c\u5927\u5bb6\u53ef\u4ee5\u770b\u7740\u4f7f\u7528\u3002<\/p>\n<p>\u672c\u6b21\u6211\u4f7f\u7528\u7684\u662f\u4ebf\u4f70\u7279\u516c\u53f8\u7684 E840-TTL\uff08EC03-DNC\uff09\uff0c\u5982\u679c\u4f60\u662f\u5c0f\u767d\uff0c\u8ddf\u7740\u672c\u6587\u5b66\u4e00\u904d\uff0c\u5176\u4ed6 4G\u6a21\u5757\u4e5f\u5c31\u4e00\u901a\u767e\u901a\u4e86\u3002<\/p>\n<p>\u5b98\u7f51\u94fe\u63a5\uff0c\u5927\u5bb6\u6709\u9700\u8981\u53ef\u4ee5\u53bb\u4e0b\u8f7d\u7528\u6237\u624b\u518c\u548c\u5de5\u5177\u8f6f\u4ef6\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=xmpvua9g3STLqsZxwSu5ZQ%3D%3D.GbjnaPv5U0crEeZEE3N%2BkEaUHXheDvtFS0mKOB%2BKYWoHAB6Mav0SBeoiyXUVNbRD%2Beoak3qkbBJzKOS8pwW6hw%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">EC03-DNC 4G\u6a21\u5757<\/a> <\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"381\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv51\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>2.1 EC03-DNC\u4ecb\u7ecd<\/h3>\n<p>EC03-DNC \u662f\u4ebf\u4f70\u7279\u63a8\u51fa\u7684 LTE CAT1 \u6570\u4f20\u6a21\u5757\u4ea7\u54c1\uff0c\u8be5\u4ea7\u54c1\u8f6f\u4ef6\u529f\u80fd\u5b8c\u5584\uff0c\u8986\u76d6\u7edd\u5927\u591a\u6570\u5e38\u89c4\u5e94\u7528\u573a\u666f\u3002\u652f\u6301<strong>\u79fb\u52a8\u3001\u8054\u901a\u3001\u7535\u4fe1<\/strong> 4G\u5361\u3002<\/p>\n<p>EC03-DNC \u662f\u4e3a\u5b9e\u73b0\u4e32\u53e3\u8bbe\u5907\u4e0e\u7f51\u7edc\u670d\u52a1\u5668\uff0c\u901a\u8fc7\u7f51\u7edc\u76f8\u4e92\u4f20\u8f93\u6570\u636e\u800c\u5f00\u53d1\u7684\u4ea7\u54c1\uff0c\u8be5\u4ea7\u54c1\u662f\u4e00\u6b3e\u5e26\u5206\u96c6\u63a5\u6536\u529f\u80fd\u7684 LTE-FDD\/LTE-TDD \u65e0\u7ebf\u901a\u4fe1\u6570\u4f20\u6a21\u5757\uff0c\u652f\u6301 LTE-FDD\u3001LTE-TDD \u7f51\u7edc\u6570\u636e\u8fde\u63a5\uff0c\u7528\u6237\u53ea\u9700\u901a\u8fc7\u7b80\u5355\u7684\u8bbe\u7f6e\uff0c\u5373\u53ef\u5b9e\u73b0\u4e32\u53e3\u5230\u7f51\u7edc\u670d\u52a1\u5668\u7684\u53cc\u5411\u6570\u636e\u900f\u660e\u4f20\u8f93\u3002<\/p>\n<p>EC03-DNC \u5de5\u4f5c\u6a21\u5f0f\u5206\u4e3a\u900f\u4f20\u6a21\u5f0f\u548c\u914d\u7f6e\u6a21\u5f0f\u3002<\/p>\n<ul>\n<li>\u900f\u4f20\u6a21\u5f0f\uff1a<\/li>\n<\/ul>\n<p>\u4e0a\u7535\u540e\u6a21\u5757\u9ed8\u8ba4\u5de5\u4f5c\u5728\u900f\u4f20\u6a21\u5f0f\uff0c\u5e76\u81ea\u52a8\u5f00\u59cb\u7f51\u7edc\u8fde\u63a5\uff0c\u5f53\u4e0e\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5\u540e\uff0c\u4e32\u53e3\u6536\u5230\u7684\u4efb\u610f\u6570\u636e\u5c06\u88ab\u900f\u4f20\u5230\u670d\u52a1\u7aef\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5\u63a5\u6536\u6765\u81ea\u670d\u52a1\u7aef\u7684\u6570\u636e\uff0c\u6536\u5230\u670d\u52a1\u7aef\u6570\u636e\u540e\u6a21\u5757\u5c06\u76f4\u63a5\u901a\u8fc7\u4e32\u53e3\u8f93\u51fa\u3002<\/p>\n<ul>\n<li>\u914d\u7f6e\uff08AT\uff09\u6a21\u5f0f\uff1a<\/li>\n<\/ul>\n<p>\u8be5\u6a21\u5f0f\u4e0b\u4e32\u53e3\u6570\u636e\u5747\u89c6\u4e3a AT \u6307\u4ee4\u3002\u900f\u4f20\u6a21\u5f0f\u4e0b\u4e32\u53e3\u6536\u5230\u300c+++\u300d\u5e27\u6570\u636e\u540e\uff0c3\u79d2\u5185 RX \u5f15\u811a\u6536\u5230\u4efb\u610f AT \u6307\u4ee4\uff0c\u5219\u6a21\u5f0f\u5207\u6362\u5230 AT \u6a21\u5f0f\u3002AT \u6a21\u5f0f\u4e0b\uff0c\u53d1\u9001\u300cAT+EXAT&lt;CR&gt;&lt;LF&gt;\u300d\u5207\u6362\u5230\u900f\u4f20\u6a21\u5f0f\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"347\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv52\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>2.2 \u529f\u80fd\u7279\u70b9<\/h3>\n<ul>\n<li>\u91c7\u7528\u6700\u65b0 4G CAT1 \u65b9\u6848\uff1b<\/li>\n<li>\u652f\u6301\u6570\u636e\u900f\u660e\u4f20\u8f93\uff1b<\/li>\n<li>\u652f\u6301 TCP\u3001UDP \u7f51\u7edc\u534f\u8bae\uff1b<\/li>\n<li>\u652f\u6301\u5fc3\u8df3\u5305\u3001\u6ce8\u518c\u5305\u529f\u80fd\u6700\u5927\u652f\u630164\u4e2a\u5b57\u8282\u6570\uff1b<\/li>\n<li>\u652f\u6301 MQTT \u534f\u8bae\uff0c\u652f\u6301\u63a5\u5165 OneNet \u5e73\u53f0\u3001\u767e\u5ea6\u4e91\u5e73\u53f0\u3001\u963f\u91cc\u4e91\u5e73\u53f0\u7684 MQTT \u670d\u52a1\uff1b<\/li>\n<li>\u652f\u63012\u8def Socket \u94fe\u8def\u540c\u65f6\u6536\u53d1\uff1b<\/li>\n<li>\u652f\u6301 Modbus RTU \u4e0e Modbus TCP \u81ea\u52a8\u76f8\u4e92\u8f6c\u6362\uff1b<\/li>\n<li>\u652f\u6301\u7f51\u7edc AT \u6307\u4ee4\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\uff0c\u8fdc\u7a0b\u914d\u7f6e\u8bbe\u5907\uff1b<\/li>\n<li>\u8f6f\u4ef6\u770b\u95e8\u72d7\u8bbe\u8ba1\uff0c\u7cfb\u7edf\u7a33\u5b9a\uff1b<\/li>\n<li>\u652f\u6301 APN\/VPN\u3002<\/li>\n<\/ul>\n<h3>2.3 \u5de5\u4f5c\u53c2\u6570\u53ca\u5f15\u811a\u4ecb\u7ecd<\/h3>\n<p>\u5de5\u4f5c\u53c2\u6570\uff1a<\/p>\n<ul>\n<li>\u5de5\u4f5c\u7535\u538b\uff1aDC 5V\uff5e18V<\/li>\n<li>\u5de5\u4f5c\u6e29\u5ea6\uff1a-40\u2103\uff5e+85\u2103<\/li>\n<li>\u9ed8\u8ba4\u6ce2\u7279\u7387\uff1a115200<\/li>\n<li>\u5929\u7ebf\uff1a1\u4ee3 IPEX \u63a5\u53e3<\/li>\n<li>\u8017\u6d41\uff08\u53d7\u7f51\u7edc\u73af\u5883\u5f71\u54cd\uff0c\u4ec5\u4f9b\u53c2\u8003\uff09\uff1a\u9a7b\u7f51\uff08\u8fde\u63a5\u57fa\u7ad9\uff09\uff1a150mA@12v\uff1b\u5165\u7f51\u9759\u6001\uff1a60mA@12v\uff1b\u6570\u636e\u4f20\u8f93\uff1a110mA@12v<\/li>\n<li>SIM \u5361\u5ea7\uff1a\u4f7f\u7528MICRO\u81ea\u5f39\u5f0fSIM\u5361\u5ea7<\/li>\n<\/ul>\n<p>\u5f15\u811a\u4ecb\u7ecd\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"591\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv53\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">EC03-DNC<\/th>\n<th align=\"center\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">RST<\/td>\n<td align=\"center\">\u6a21\u5757\u590d\u4f4d\uff0c\u62c9\u4f4e\u6709\u6548<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">IO_RT<\/td>\n<td align=\"center\">\u4f4e\u7535\u5e73\u6301\u7eed 3~10S\uff0c\u6a21\u5757\u53c2\u6570\u5c06\u6062\u590d\u51fa\u5382\u8bbe\u7f6e\uff0c\u5e76\u7acb\u5373\u91cd\u542f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">LIKA<\/td>\n<td align=\"center\">SocketA \u94fe\u8def\u8fde\u63a5\u72b6\u6001\u6307\u793a\u5f15\u811a\uff0c<br \/>\u9ad8\uff1aSocketA \u4e0e\u7f51\u7edc\u670d\u52a1\u5668\u8fde\u63a5\u6210\u529f\uff1b<br \/>\u4f4e\uff1aSocketA \u672a\u6210\u529f\u8fde\u63a5\u5230\u7f51\u7edc\u670d\u52a1\u5668\uff1b<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">LIKB<\/td>\n<td align=\"center\">SocketB \u94fe\u8def\u8fde\u63a5\u72b6\u6001\u6307\u793a\u5f15\u811a\uff0c<br \/>\u9ad8\uff1aSocketB \u4e0e\u7f51\u7edc\u670d\u52a1\u5668\u8fde\u63a5\u6210\u529f\uff1b<br \/>\u4f4e\uff1aSocketB \u672a\u6210\u529f\u8fde\u63a5\u5230\u7f51\u7edc\u670d\u52a1\u5668\uff1b<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">DATA<\/td>\n<td align=\"center\">\u6570\u636e\u6536\u53d1\u6307\u793a\u5f15\u811a\uff0c\u5f53\u7f51\u7edc\u63a5\u6536\u5230\u6570\u636e\u6216\u8005\u4e32\u53e3\u63a5\u6536\u5230\u6570\u636e\uff0850ms \u9ad8\/10ms\u4f4e\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">STAT<\/td>\n<td align=\"center\">\u8bbe\u5907\u72b6\u6001\u6307\u793a\u5f15\u811a\uff0c<br \/>\u4f4e\uff1a\u8bbe\u5907\u4e0a\u7535\u5230\u6b63\u5728\u641c\u5bfb SIM \u5361\uff1b<br \/>1800ms \u4f4e\uff0c200ms\u9ad8\uff1a\u8bbe\u5907\u68c0\u67e5\u5230\u6b63\u786e\u7684 SIM \u5361\uff0c\u6b63\u5728\u9644\u7740\u7f51\u7edc\uff1b<br \/>\u9ad8\uff1a\u8bbe\u5907\u9644\u7740\u7f51\u7edc\u6210\u529f\uff1b<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">RXD<\/td>\n<td align=\"center\">\u6570\u636e\u63a5\u6536\u5f15\u811a\uff0c\u9ed8\u8ba4 3.3V\uff0c\u53ef\u517c\u5bb9 5V \u901a\u4fe1\u7535\u5e73<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">TXD<\/td>\n<td align=\"center\">\u6570\u636e\u53d1\u9001\u5f15\u811a\uff0c\u9ed8\u8ba4 3.3V\uff0c\u53ef\u517c\u5bb9 5V \u901a\u4fe1\u7535\u5e73<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">VEF<\/td>\n<td align=\"center\">\u9a71\u52a8\u7535\u5e73\u4f9b\u7535\u5f15\u811a\uff0c\u5982\u9700\u8981\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\u548c LED \u6307\u793a\u4e3a 5V \u9a71\u52a8\u7535\u5e73\u65f6\u9700\u8981\u5728\u6b64\u5f15\u811a\u8f93\u5165 5V \u7535\u5e73<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MOD\/SLE\/PA11\/PA10\/EN<\/td>\n<td align=\"center\">NC\uff0c\u6682\u672a\u5f00\u653e\uff0c\u9ed8\u8ba4\u60ac\u7a7a<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4V2<\/td>\n<td align=\"center\">\u9502\u7535\u6c60\u7535\u6e90\u4f9b\u7535\u5f15\u811a\uff0c\u4f9b\u7535\u8303\u56f4\uff1a3.8V~4.3V\u3002\u8be5\u5f15\u811a\u7981\u6b62\u53cd\u63a5\u3001\u7981\u6b62\u4e0e VCC \u4e00\u8d77\u4f9b\u7535<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">GND<\/td>\n<td align=\"center\">\u63a5\u5730<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">VCC<\/td>\n<td align=\"center\">DC \u7535\u6e90\u4f9b\u7535\u5f15\u811a\uff0c\u4f9b\u7535\u8303\u56f4\uff1a5V~18V\u3002\u8be5\u5f15\u811a\u7981\u6b62\u53cd\u63a5\u3001\u7981\u6b62\u4e0e 4V2 \u4e00\u8d77\u4f9b\u7535<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">VD<\/td>\n<td align=\"center\">\u5916\u63a5 SIM \u5361\u7535\u6e90\u5f15\u811a\uff0c\u82e5\u4f7f\u7528\u677f\u8f7d SIM \u5361\u5ea7\u5219\u8be5\u5f15\u811a NC \u5373\u53ef<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">RS<\/td>\n<td align=\"center\">\u5916\u63a5 SIM \u5361\u590d\u4f4d\u5f15\u811a\uff0c\u82e5\u4f7f\u7528\u677f\u8f7d SIM \u5361\u5ea7\u5219\u8be5\u5f15\u811a NC \u5373\u53ef<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">DA<\/td>\n<td align=\"center\">\u5916\u63a5 SIM \u5361\u6570\u636e\u5f15\u811a\uff0c\u82e5\u4f7f\u7528\u677f\u8f7d SIM \u5361\u5ea7\u5219\u8be5\u5f15\u811a NC \u5373\u53ef<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">CL<\/td>\n<td align=\"center\">\u5916\u63a5 SIM \u5361\u65f6\u949f\u5f15\u811a\uff0c\u82e5\u4f7f\u7528\u677f\u8f7d SIM \u5361\u5ea7\u5219\u8be5\u5f15\u811a NC \u5373\u53ef<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">PWR<\/td>\n<td align=\"center\">\u7535\u6e90\u6307\u793a\u706f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u5929\u7ebf<\/td>\n<td align=\"center\">\u5929\u7ebf\u63a5\u53e3<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">WORK<\/td>\n<td align=\"center\">\u5de5\u4f5c\u72b6\u6001\u6307\u793a\u706f\uff0c\u6b63\u5e38\u5de5\u4f5c\u65f6\u4eae\u8d77<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">DATA<\/td>\n<td align=\"center\">\u6570\u636e\u6536\u53d1\u6307\u793a\u706f \uff0c\u6709\u6570\u636e\u6536\u53d1\u65f6\u4eae\u8d77<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">LINKB<\/td>\n<td align=\"center\">\u7f51\u7edc\u8fde\u63a5\u6307\u793a\u706fB \uff0c\u8fde\u63a5\u65f6\u4eae\u8d77<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">LINKA<\/td>\n<td align=\"center\">\u7f51\u7edc\u8fde\u63a5\u6307\u793a\u706fA \uff0c\u8fde\u63a5\u65f6\u4eae\u8d77<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>3. AT\u6307\u4ee4<\/h2>\n<h3>3.1 AT\u6307\u4ee4\u96c6<\/h3>\n<p>AT \u6307\u4ee4\u96c6\u5982\u4e0b\uff0c\u8be6\u7ec6\u7684\u4ecb\u7ecd\u5927\u5bb6\u53ef\u4ee5\u770b\u5b98\u7f51\u7684 AT \u6307\u4ee4\u624b\u518c\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">AT\u6307\u4ee4<\/th>\n<th align=\"center\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">REBT<\/td>\n<td align=\"center\">\u91cd\u542f\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">CPIN<\/td>\n<td align=\"center\">\u67e5\u8be2\u7248\u672c\u53f7<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">EXAT<\/td>\n<td align=\"center\">\u9000\u51fa AT \u6307\u4ee4\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">RESTORE<\/td>\n<td align=\"center\">\u6062\u590d\u51fa\u5382\u8bbe\u7f6e<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">UART<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u4e32\u53e3\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">IMEI<\/td>\n<td align=\"center\">\u67e5\u8be2\u6a21\u5757 IMEI<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">LINKSTA<\/td>\n<td align=\"center\">\u67e5\u8be2 SOCK \u8fde\u63a5\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">LINKSTA1<\/td>\n<td align=\"center\">\u67e5\u8be2 SOCK1 \u8fde\u63a5\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">SOCK<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2 SOCK \u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">SOCK1<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2 SOCK1 \u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">REGMOD<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u6ce8\u518c\u5305\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">REGINFO<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u81ea\u5b9a\u4e49\u6ce8\u518c\u5305\u4fe1\u606f\uff08ASCII\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">REGINFONEW<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u81ea\u5b9a\u4e49\u6ce8\u518c\u5305\u4fe1\u606f\uff0816 \u8fdb\u5236\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">HEARTMOD<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u5fc3\u8df3\u5305\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">HEARTINFO<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u81ea\u5b9a\u4e49\u5fc3\u8df3\u5305\u4fe1\u606f\uff08ASCII\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">HEARTINFONEW<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u81ea\u5b9a\u4e49\u5fc3\u8df3\u5305\u4fe1\u606f\uff0816 \u8fdb\u5236\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">HEARTM<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u5fc3\u8df3\u5305\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">SHORTM<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u77ed\u8fde\u63a5\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">CREG<\/td>\n<td align=\"center\">\u67e5\u8be2\u662f\u5426\u6ce8\u518c\u5230\u7f51\u7edc<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">CSQ<\/td>\n<td align=\"center\">\u67e5\u8be2\u4fe1\u53f7\u5f3a\u5ea6<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">CPIN<\/td>\n<td align=\"center\">\u67e5\u8be2 SIM \u5361\u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">POTOCOL<\/td>\n<td align=\"center\">\u67e5\u8be2\/\u8bbe\u7f6e\u662f\u5426\u5f00\u542f\u534f\u8bae\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MODBUS<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2 ModbusTCP\/RTU \u8f6c\u6362\u529f\u80fd<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MTCPID<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2 ModbusTCP \u4e8b\u4ef6\u6807\u8bc6\u7b26<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">NETHEAD<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u7f51\u7edc AT \u6307\u4ee4\u5934<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MQTTMODE<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2 MQTT \u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MQTT_ADDRESS<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u7269\u8054\u7f51\u5e73\u53f0\u5730\u5740\u3001\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MQTT_CONNECT<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u63a5\u5165\u7269\u8054\u7f51\u5e73\u53f0\u7684\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MQTT_SUBSCRIBE_TOPIC<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u8ba2\u9605\u6d88\u606f\u7684 topic\u3001\u6d88\u606f\u7b49\u7ea7<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MQTT_PUBLISH_TOPIC<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u53d1\u5e03\u6d88\u606f\u7684 topic\u3001\u6d88\u606f\u7b49\u7ea7<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">MQTT_ALIAUTH<\/td>\n<td align=\"center\">\u8bbe\u7f6e\/\u67e5\u8be2\u963f\u91cc\u4e91\u4e09\u8981\u7d20<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">APN<\/td>\n<td align=\"center\">\u67e5\u8be2\/\u8bbe\u7f6e APN \u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">APN_ENABLE<\/td>\n<td align=\"center\">\u67e5\u8be2\/\u8bbe\u7f6e APN \u4f7f\u80fd<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">WORK_MODE<\/td>\n<td align=\"center\">\u67e5\u8be2\/\u8bbe\u7f6e\u5de5\u4f5c\u6a21\u5f0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b63\u5e38\u53d1\u9001\u6307\u4ee4\u540e\u4f1a\u6536\u5230\u5e26\u6709\u300cOK\u300d\u7684\u8fd4\u56de\u503c\uff0c\u5982\u679c\u4f60\u6ca1\u6536\u5230\uff0c\u90a3\u5c31\u662f\u54ea\u91cc\u6709\u9519\u8bef\uff0c\u53ef\u4ee5\u53c2\u7167\u4e0b\u9762\u8fd9\u4e2a\u6307\u4ee4\u9519\u8bef\u7801\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">\u9519\u8bef\u7801<\/th>\n<th align=\"center\">\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">-1<\/td>\n<td align=\"center\">\u65e0\u6548\u7684\u547d\u4ee4\u683c\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">-2<\/td>\n<td align=\"center\">\u65e0\u6548\u7684\u547d\u4ee4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">-3<\/td>\n<td align=\"center\">\u65e0\u6548\u7684\u64cd\u4f5c\u7b26<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">-4<\/td>\n<td align=\"center\">\u65e0\u6548\u7684\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">-5<\/td>\n<td align=\"center\">\u64cd\u4f5c\u4e0d\u5141\u8bb8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>3.2 \u4e32\u53e3\u8c03\u8bd5\u793a\u4f8b<\/h3>\n<h4>3.2.1 \u786c\u4ef6\u8fde\u63a5<\/h4>\n<p>\u6211\u4eec\u9996\u5148\u63d2\u597d\u5929\u7ebf\u548c SIM \u5361\uff0cSIM \u5361\u6700\u597d\u5e26\u5361\u5957\u63d2\uff0c\u4e0d\u7136\u5f88\u5bb9\u6613\u63d2\u4e0d\u51c6\uff0c\u800c\u4e14\u4e0d\u6613\u53d6\u51fa\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"290\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv54\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u63a5\u7ebf\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">EC03-DNC<\/th>\n<th align=\"center\">USB\u8f6cTTL<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">VCC<\/td>\n<td align=\"center\">5V<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">GND<\/td>\n<td align=\"center\">GND<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">RXD<\/td>\n<td align=\"center\">TXD<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">TXD<\/td>\n<td align=\"center\">RXD<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fde\u597d\u4e0a\u7535\u540e\uff0c\u7b49\u4e94\u79d2\u5de6\u53f3\u521d\u59cb\u5316\uff0c\u300cWORK\u300d\u6307\u793a\u706f\u4eae\uff0c\u8868\u793a\u6b63\u5e38\u5de5\u4f5c\u3002\u5982\u679c\u300cWORK\u300d\u4e0d\u4eae\u6216\u95ea\u70c1\u53ef\u4ee5\u6362\u4e00\u5f20 SIM \u5361\u8bd5\u8bd5\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"556\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv55\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h4>3.2.2 \u4e32\u53e3\u8c03\u8bd5<\/h4>\n<p>\u4e0a\u7535\u540e\u6a21\u5757\u9ed8\u8ba4\u5de5\u4f5c\u5728\u900f\u4f20\u6a21\u5f0f\uff0c\u6211\u4eec\u9700\u8981\u5728\u4e32\u53e3\u53d1\u9001\u300c+++\u300d\uff08\u4e0d\u5e26\u56de\u8f66\uff09\uff0c3\u79d2\u5185\u53d1\u9001\u4efb\u610f AT \u6307<\/p>\n<p>\u4ee4\uff0c\u8fdb\u5165 AT \u6a21\u5f0f\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e32\u53e3\u8c03\u8bd5\u793a\u4f8b\uff0c\u6211\u67e5\u8be2\u4e86\u5fc3\u8df3\u5305\u7684\u4e00\u4e9b\u6570\u636e\uff0c\u5e76\u5c06\u5fc3\u8df3\u5305\u5185\u5bb9\u914d\u7f6e\u6210\u300cLX_4G\u300d\uff0c\u914d\u7f6e\u597d\u540e\u9700\u8981\u53d1\u9001\u300cAT+REBT\u300d\uff0c\u91cd\u542f\u751f\u6548\u3002\u5927\u5bb6\u505a\u597d\u914d\u7f6e\u540e\u90fd\u9700\u8981\u91cd\u542f\u751f\u6548\u3002<\/p>\n<p><img decoding=\"async\" width=\"590\" height=\"563\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv56\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\u6bcf\u6b21\u53d1\u9001 AT \u6307\u4ee4\uff0c\u300cDATA\u300d\u706f\u4f1a\u95ea\u70c1\u3002\u5982\u679c\u4e0d\u95ea\u662f\u4e0d\u6b63\u5e38\u7684\u54e6\u3002<\/p>\n<h2>4. \u5185\u7f51\u7a7f\u900f<\/h2>\n<p>4G \u6a21\u5757\u9700\u8981\u516c\u7f51\u901a\u4fe1\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e00\u4e0b\u5185\u7f51\u7a7f\u900f\uff08\u5185\u7f51 IP \u7a7f\u900f\uff09\uff0c\u4e5f\u5c31\u662f\u4e3a\u5c40\u57df\u7f51\u7684\u8bbe\u5907\u63d0\u4f9b\u4e00\u4e2a\u5916\u7f51\u53ef\u8bbf\u95ee\u7684\u5730\u5740\u548c\u7aef\u53e3\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528\u82b1\u751f\u58f3\u8fdb\u884c\u5185\u7f51\u7a7f\u900f\uff0c\u867d\u7136\u82b1\u751f\u58f3\u6709\u4e9b\u529f\u80fd\u6536\u8d39\uff0c\u4f46\u662f\u672c\u6559\u7a0b\u5728\u514d\u8d39\u8303\u56f4\u5185\uff0c\u653e\u5fc3\uff0c\u4e0d\u6536\u94b1\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5bb6\u7684\u8def\u7531\u5668\u5f88\u725b\uff0c\u81ea\u5e26\u5185\u5916\u7a7f\u900f\u7684\u529f\u80fd\uff0c\u5c31\u4e0d\u7528\u82b1\u751f\u58f3\u4e86\uff0c\u76f4\u63a5\u7528\u8def\u7531\u5668\u5185\u7f51\u7a7f\u900f\u3002<\/p>\n<p>\u7535\u8111\u4e0b\u8f7d\u82b1\u751f\u58f3\uff0c\u82b1\u751f\u58f3\u5b98\u7f51\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=wkF%2BE%2FD%2BRqogtwcNS9f%2BGQ%3D%3D.tYkk79W1ffXY3RQhHAjU6ppVkjL6Z93X6K4t8kt2Oxs%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u8d1d\u9510\u82b1\u751f\u58f3\u5185\u7f51\u7a7f\u900f<\/a><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"374\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv57\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4e0b\u8f7d\u597d\u540e\u6309\u7167\u6307\u5f15\u5728\u624b\u673a\u4e0a\u6ce8\u518c\u767b\u5f55\u3002<\/p>\n<p>\u767b\u5f55\u6210\u529f\u540e\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv58\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv59\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u70b9\u51fb\u786e\u5b9a\u540e\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6a\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u518d\u5f00\u4e00\u4e2a\u7f51\u7edc\u8c03\u8bd5\u52a9\u624b\uff0c\u534f\u8bae\u7c7b\u578b\u9009\u62e9\u300cTCP Client\u300d,\u8fdc\u7a0b\u4e3b\u673a\u5730\u5740\u586b\u6211\u4eec\u82b1\u751f\u58f3\u7684\u6620\u5c04\u5730\u5740\u3002<\/p>\n<p>\u8fde\u63a5\u540e\uff0c\u53d1\u9001\u6d88\u606f\uff0c\u670d\u52a1\u5668\u53ef\u4ee5\u6536\u5230\u3002<\/p>\n<p>\u867d\u7136\u6211\u4eec\u73b0\u5728\u662f\u5728\u4e00\u53f0\u7535\u8111\u4e0a\u505a\u6d4b\u8bd5\uff0c\u4f46\u662f\u300cTCP Client\u300d\u8bbf\u95ee\u7684\u662f\u516c\u7f51 IP \u5730\u5740\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6b\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u987a\u5e26\u4e00\u63d0\uff0c\u6b64\u65f6\u670d\u52a1\u5668\u65e2\u53ef\u4ee5\u901a\u8fc7\u516c\u7f51\u5730\u5740\u8fde\u63a5\u901a\u8baf\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5c40\u57df\u7f51\u5730\u5740\u8fde\u63a5\u901a\u8baf\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6c\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>5. \u7f16\u7a0b\u5b9e\u6218<\/h2>\n<h3>5.1 \u901a\u4fe1\u793a\u610f\u56fe<\/h3>\n<p>\u5b9e\u73b0\u76ee\u6807\u662f 4G \u6a21\u5757\u63a7\u5236 LED \u706f\u3002\u6211\u4eec\u6709\u4e00\u4e2a\u4e09\u8272 LED \u706f\uff0c4G \u6a21\u5757\u8fde\u5230\u670d\u52a1\u5668\uff0c\u670d\u52a1\u5668\u4e0b\u53d1\u6307\u4ee4\uff1a\u300cgreen\u300d \u5219\u7eff\u706f\u4eae\uff0c\u518d\u6b21\u53d1\u9001\u300cgreen\u300d\u5219\u7eff\u706f\u706d\uff0c\u9ec4\u706f\u548c\u7ea2\u706f\u7684\u5173\u952e\u8bcd\u662f\u300cyellow\u300d\u3001\u300cred\u300d \uff0c\u6548\u679c\u76f8\u540c\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"291\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6d\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>5.2 4G\u6a21\u5757\u914d\u7f6e<\/h3>\n<p>\u6211\u4eec\u9700\u8981\u901a\u8fc7 AT \u6307\u4ee4\u914d\u7f6e 4G \u6a21\u5757\u8054\u8fde\u63a5\u670d\u52a1\u5668\u3002<\/p>\n<p>\u63a5\u7ebf\u5982\u4e0b\uff0c\u548c\u521a\u521a\u4e32\u53e3\u8c03\u5236\u4e00\u6837\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">EC03-DNC<\/th>\n<th align=\"center\">USB\u8f6cTTL<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">VCC<\/td>\n<td align=\"center\">5V<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">GND<\/td>\n<td align=\"center\">GND<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">RXD<\/td>\n<td align=\"center\">TXD<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">TXD<\/td>\n<td align=\"center\">RXD<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol>\n<li>\u5c06\u5929\u7ebf\u3001SIM \u5361\u3001USB\u8f6cTTL \u7b49\u786c\u4ef6\u8fde\u63a5\u597d\u3002<\/li>\n<li>\u89c2\u5bdf\u300cWORK\u300d\u706f\u662f\u5426\u4eae\u8d77\uff0c\u4eae\u8d77\u8868\u793a\u6b63\u5e38\u5de5\u4f5c\u3002<\/li>\n<li>\u6253\u5f00\u4e32\u53e3\u8c03\u8bd5\u52a9\u624b\u8fdb\u5165\u914d\u7f6e\uff08AT\uff09\u6a21\u5f0f\u3002\u9ed8\u8ba4\u6ce2\u7279\u7387115200\uff0c\u53d1\u9001\u300c+++\u300d\uff08\u4e0d\u5e26\u56de\u8f66\uff09\uff0c3\u79d2\u5185\u53d1\u9001\u4efb\u610f AT \u6307\u4ee4\uff0c\u8fdb\u5165 AT \u6a21\u5f0f\u3002<\/li>\n<li>\u53ef\u4ee5\u53d1\u9001\u300cAT+CPIN\u300d\uff0c\u56de\u590d1\u8868\u793a\u6709\u68c0\u6d4b\u5230 SIM \u5361\uff1b\u300cAT+CSQ\u300d\u67e5\u770b\u4fe1\u53f7\u5f3a\u5ea6\uff1b\u300cAT+ICCID\u300d\u67e5\u8be2 SIM \u5361\u4fe1\u606f\u7b49\u7b49\u68c0\u6d4b SIM \u5361\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002<\/li>\n<li>\u53d1\u9001\u300cAT+SOCK=TCPC,&lt;IP\u5730\u5740&gt;,&lt;\u7aef\u53e3&gt; \u300d\u8fde\u63a5 socket \u670d\u52a1\u5668\u3002\u5927\u5bb6\u770b\u7740\u81ea\u5df1\u7684\u82b1\u751f\u58f3\u53d1\u9001\uff0c\u6211\u8fd9\u91cc\u53d1\u9001\u7684\u662f\u300cAT+SOCK=TCPC,8g66h75462.vicp.fun,19142 \u300d\uff0c\u4e5f\u53ef\u4ee5\u53d1\u9001\u300cAT+SOCK=TCPC,115.236.153.174,19142 \u300d\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" width=\"723\" height=\"501\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6e\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<ol start=\"6\">\n<li>\u53d1\u9001\u300cAT+LINKSTA \u300d\u67e5\u770b\u8fde\u63a5\u72b6\u6001\uff0c\u4e32\u53e3\u8fd4\u56de\u300c+OK=Connect\u300d\u8868\u793a\u8fde\u63a5\u6210\u529f<\/li>\n<li>\u53d1\u9001\u300cAT+REBT\u300d\u91cd\u542f\u751f\u6548\uff0c\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u6536\u5230\u6211\u4eec\u524d\u9762\u8bbe\u7f6e\u7684\u300cLX_4G\u300d\u5fc3\u8df3\u5305\u3002<\/li>\n<\/ol>\n<p>\u6574\u4f53\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6f\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6ce8\u610f\uff1aAT \u6307\u4ee4\u8981\u4ee5\u5e26\u56de\u8f66\uff0c\u5168\u82f1\u6587\u7b26\u53f7\uff0c\u522b\u5e26\u6709\u591a\u4f59\u7a7a\u683c\u3002<\/p>\n<h3>5.3 \u786c\u4ef6\u63a5\u7ebf<\/h3>\n<p>\u672c\u6559\u7a0b\u4f7f\u7528\u7684\u786c\u4ef6\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u5355\u7247\u673a\uff1aSTM32F103C8T6<\/li>\n<li>4G\u6a21\u5757\uff1aEC03-DNC<\/li>\n<li>\u5c0f\u706f\uff1a\u4e09\u8272 LED \u706f\u6a21\u5757<\/li>\n<li>\u4e32\u53e3\uff1aUSB \u8f6c TTL<\/li>\n<li>\u70e7\u5f55\u5668\uff1aST-LINK V2<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th align=\"center\">EC03-DNC<\/th>\n<th align=\"center\">LED<\/th>\n<th align=\"center\">STM32<\/th>\n<th align=\"center\">USB \u8f6c TTL<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">VCC<\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">3.3<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\">RXD<\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">A2<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\">TXD<\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">A3<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\">GND<\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">G<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\">R<\/td>\n<td align=\"center\">A5<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">A6<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\">G<\/td>\n<td align=\"center\">A7<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\">GND<\/td>\n<td align=\"center\">G<\/td>\n<td align=\"center\"> <\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">A10<\/td>\n<td align=\"center\">TX<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">A9<\/td>\n<td align=\"center\">RX<\/td>\n<\/tr>\n<tr>\n<td align=\"center\"> <\/td>\n<td align=\"center\"> <\/td>\n<td align=\"center\">G<\/td>\n<td align=\"center\">GND<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u70e7\u5f55\u7684\u65f6\u5019\u63a5\u7ebf\u5982\u4e0b\u8868\uff0c\u5982\u679c\u4e0d\u4f1a\u70e7\u5f55\u7684\u8bdd\u53ef\u4ee5\u770b\u6211\u4e4b\u524d\u7684\u6587\u7ae0\u3010<a href=\"https:\/\/link.segmentfault.com\/?enc=bvbXq0jGDEw3AsycmDlGmA%3D%3D.GIM%2FHvawq7vdOXn0FA2BJLau53ctr7tpOVl1hZhGrN2IgKYjx6gPdpqSWnaK86EImfoP%2FSxQt%2BoDt1lwKMoxMpYEiJBQwtcq5u5NUMOw1rk%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">STM32\u4e0b\u8f7d\u7a0b\u5e8f\u7684\u4e94\u79cd\u65b9\u6cd5<\/a>\u3011\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">ST-Link V2<\/th>\n<th align=\"center\">STM32<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">SWCLK<\/td>\n<td align=\"center\">SWCLK<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">SWDIO<\/td>\n<td align=\"center\">SWDIO<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">GND<\/td>\n<td align=\"center\">GND<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3.3V<\/td>\n<td align=\"center\">3V3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u63a5\u597d\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"459\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6g\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>5.4 LED\u903b\u8f91\u4ee3\u7801<\/h3>\n<p>LED \u706f\u7684\u4ee3\u7801\u7b80\u7b80\u5355\u5355\uff0c\u53ea\u8981\u8fdb\u884c\u4e00\u4e0b\u4e09\u4e2a\u706f\u7684\u521d\u59cb\u5316\u5c31\u884c\u3002<\/p>\n<pre><code class=\"c\">void led_init(void)\n{\n    GPIO_InitTypeDef gpio_init_struct;\n    LED1_GPIO_CLK_ENABLE();                                 \/* LED1\u65f6\u949f\u4f7f\u80fd *\/\n    LED2_GPIO_CLK_ENABLE();                                 \/* LED2\u65f6\u949f\u4f7f\u80fd *\/\n    LED3_GPIO_CLK_ENABLE();                                 \/* LED3\u65f6\u949f\u4f7f\u80fd *\/\n\n    gpio_init_struct.Pin = LED1_GPIO_PIN;                   \/* LED1\u5f15\u811a *\/\n    gpio_init_struct.Mode = GPIO_MODE_OUTPUT_PP;            \/* \u63a8\u633d\u8f93\u51fa *\/\n    gpio_init_struct.Pull = GPIO_PULLUP;                    \/* \u4e0a\u62c9 *\/\n    gpio_init_struct.Speed = GPIO_SPEED_FREQ_HIGH;          \/* \u9ad8\u901f *\/\n    HAL_GPIO_Init(LED1_GPIO_PORT, &amp;gpio_init_struct);       \/* \u521d\u59cb\u5316LED1\u5f15\u811a *\/\n\n    gpio_init_struct.Pin = LED2_GPIO_PIN;                   \/* LED2\u5f15\u811a *\/\n    HAL_GPIO_Init(LED2_GPIO_PORT, &amp;gpio_init_struct);       \/* \u521d\u59cb\u5316LED2\u5f15\u811a *\/\n    \n    gpio_init_struct.Pin = LED3_GPIO_PIN;                   \/* LED3\u5f15\u811a *\/\n    HAL_GPIO_Init(LED3_GPIO_PORT, &amp;gpio_init_struct);       \/* \u521d\u59cb\u5316LED3\u5f15\u811a *\/\n\n    LED1(0);                                                \/* \u5173\u95ed LED1 *\/\n    LED2(0);                                                \/* \u5173\u95ed LED2 *\/\n    LED3(0);                                                \/* \u5173\u95ed LED3 *\/\n}<\/code><\/pre>\n<p>LED \u7684 .h\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"c\">#ifndef _LED_H\n#define _LED_H\n#include &quot;sys.h&quot;\n\n\n\/******************************************************************************************\/\n\/* \u5f15\u811a \u5b9a\u4e49 *\/\n\n#define LED1_GPIO_PORT                  GPIOA\n#define LED1_GPIO_PIN                   GPIO_PIN_7\n#define LED1_GPIO_CLK_ENABLE()          do{ __HAL_RCC_GPIOA_CLK_ENABLE(); }while(0)             \/* PA\u53e3\u65f6\u949f\u4f7f\u80fd *\/\n\n#define LED2_GPIO_PORT                  GPIOA\n#define LED2_GPIO_PIN                   GPIO_PIN_6\n#define LED2_GPIO_CLK_ENABLE()          do{ __HAL_RCC_GPIOA_CLK_ENABLE(); }while(0)             \/* PA\u53e3\u65f6\u949f\u4f7f\u80fd *\/\n\n#define LED3_GPIO_PORT                  GPIOA\n#define LED3_GPIO_PIN                   GPIO_PIN_5\n#define LED3_GPIO_CLK_ENABLE()          do{ __HAL_RCC_GPIOA_CLK_ENABLE(); }while(0)             \/* PB\u53e3\u65f6\u949f\u4f7f\u80fd *\/\n\n\/******************************************************************************************\/\n\/* LED\u7aef\u53e3\u5b9a\u4e49 *\/\n#define LED1(x)   do{ x ? \/\n                      HAL_GPIO_WritePin(LED1_GPIO_PORT, LED1_GPIO_PIN, GPIO_PIN_SET) : \/\n                      HAL_GPIO_WritePin(LED1_GPIO_PORT, LED1_GPIO_PIN, GPIO_PIN_RESET); \/\n                  }while(0)\n\n#define LED2(x)   do{ x ? \/\n                      HAL_GPIO_WritePin(LED2_GPIO_PORT, LED2_GPIO_PIN, GPIO_PIN_SET) : \/\n                      HAL_GPIO_WritePin(LED2_GPIO_PORT, LED2_GPIO_PIN, GPIO_PIN_RESET); \/\n                  }while(0)\n\n#define LED3(x)   do{ x ? \/\n                      HAL_GPIO_WritePin(LED3_GPIO_PORT, LED3_GPIO_PIN, GPIO_PIN_SET) : \/\n                      HAL_GPIO_WritePin(LED3_GPIO_PORT, LED3_GPIO_PIN, GPIO_PIN_RESET); \/\n                  }while(0)\n\n\/* LED\u53d6\u53cd\u5b9a\u4e49 *\/\n#define LED1_TOGGLE()   do{ HAL_GPIO_TogglePin(LED1_GPIO_PORT, LED1_GPIO_PIN); }while(0)        \/* \u7ffb\u8f6cLED1 *\/\n#define LED2_TOGGLE()   do{ HAL_GPIO_TogglePin(LED2_GPIO_PORT, LED2_GPIO_PIN); }while(0)        \/* \u7ffb\u8f6cLED2 *\/\n#define LED3_TOGGLE()   do{ HAL_GPIO_TogglePin(LED3_GPIO_PORT, LED3_GPIO_PIN); }while(0)        \/* \u7ffb\u8f6cLED3 *\/\n\n\/******************************************************************************************\/\n\/* \u5916\u90e8\u63a5\u53e3\u51fd\u6570*\/\nvoid led_init(void);                                                                            \/* LED\u521d\u59cb\u5316 *\/\n\n#endif<\/code><\/pre>\n<h3>5.5 4G\u6a21\u5757\u521d\u59cb\u5316<\/h3>\n<p>4G \u6a21\u5757\u521d\u59cb\u5316\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"c\">UART_HandleTypeDef _4g_uart_handle;\n\nvoid _4g_init(uint32_t baudrate)\n{\n    _4g_uart_handle.Instance          = _4G_INTERFACE;                \/* 4G *\/\n    _4g_uart_handle.Init.BaudRate     = baudrate;                     \/* \u6ce2\u7279\u7387 *\/\n    _4g_uart_handle.Init.WordLength   = UART_WORDLENGTH_8B;           \/* \u6570\u636e\u4f4d *\/\n    _4g_uart_handle.Init.StopBits     = UART_STOPBITS_1;              \/* \u505c\u6b62\u4f4d *\/\n    _4g_uart_handle.Init.Parity       = UART_PARITY_NONE;             \/* \u6821\u9a8c\u4f4d *\/\n    _4g_uart_handle.Init.Mode         = UART_MODE_TX_RX;              \/* \u6536\u53d1\u6a21\u5f0f *\/\n    _4g_uart_handle.Init.HwFlowCtl    = UART_HWCONTROL_NONE;          \/* \u65e0\u786c\u4ef6\u6d41\u63a7 *\/\n    _4g_uart_handle.Init.OverSampling = UART_OVERSAMPLING_16;         \/* \u8fc7\u91c7\u6837 *\/\n    HAL_UART_Init(&amp;_4g_uart_handle);                                  \/* \u4f7f\u80fd4G *\/\n}<\/code><\/pre>\n<h3>5.6 4G\u6536\u53d1<\/h3>\n<p>4G \u6a21\u5757\u901a\u8fc7\u4e32\u53e3\u4e0e MCU \u8fdb\u884c\u901a\u8baf\uff0c\u6240\u4ee5\u7b2c\u4e00\u6b65\u9700\u8981\u5148\u505a\u597d\u4e32\u53e3\u7684\u914d\u7f6e\u3002<\/p>\n<p>\u5173\u4e8e\u4e32\u53e3\u7684\u914d\u7f6e\uff0c\u6211\u5199\u8fc7\u4e00\u7bc7\u6587\u7ae0\u624b\u628a\u624b\u6559\u4f60\u73a9\u4e32\u53e3\uff0c\u5927\u5bb6\u53ef\u4ee5\u79fb\u6b65\u4e0b\u6587\u67e5\u770b\uff1a<\/p>\n<p>\u3010<a href=\"https:\/\/link.segmentfault.com\/?enc=jwZsMz%2BX26CJQ6vKPuubRQ%3D%3D.raEs%2Fa79ayUNsqAbLRGwz5H8m9EqucCZyW4sPmyU0B9sYOMMpay6djs8yEYOPlde7wq%2FwPb2PlnBJ2qIy7fdQpG7RxXyttZueJJ4iTGqXyMx9TVQKMyfi8v%2B0469JoRr\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">STM32\u4e32\u53e3\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\uff08\u63a5\u6536\u4e2d\u65ad+\u8d85\u65f6\u5224\u65ad\uff09<\/a>\u3011<\/p>\n<p>4G \u63a5\u6536\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"c\">uint8_t _4g_uart_rx_buf[_4G_RX_BUF_SIZE];\nuint8_t _4g_uart_tx_buf[_4G_TX_BUF_SIZE];\nuint16_t _4g_uart_rx_len = 0;\n\n\nvoid _4g_rx_clear(void)\n{\n    memset(_4g_uart_rx_buf, 0, sizeof(_4g_uart_rx_buf));             \/\/\u6e05\u7a7a\u63a5\u6536\u7f13\u51b2\u533a\n    _4g_uart_rx_len = 0;                                             \/\/\u63a5\u6536\u8ba1\u6570\u5668\u6e05\u96f6\n}\n\nvoid _4G_IRQHandler(void)\n{\n    uint8_t receive_data = 0;\n\n    if(__HAL_UART_GET_FLAG(&amp;_4g_uart_handle, UART_FLAG_RXNE) != RESET){      \/\/\u83b7\u53d6\u63a5\u6536RXNE\u6807\u5fd7\u4f4d\u662f\u5426\u88ab\u7f6e\u4f4d\n        if(_4g_uart_rx_len &gt;= sizeof(_4g_uart_rx_buf))                       \/\/\u5982\u679c\u63a5\u6536\u7684\u5b57\u7b26\u6570\u5927\u4e8e\u63a5\u6536\u7f13\u51b2\u533a\u5927\u5c0f\uff0c\n            _4g_uart_rx_len = 0;                                             \/\/\u5219\u5c06\u63a5\u6536\u8ba1\u6570\u5668\u6e05\u96f6\n        HAL_UART_Receive(&amp;_4g_uart_handle, &amp;receive_data, 1, 1000);          \/\/\u63a5\u6536\u4e00\u4e2a\u5b57\u7b26\n        _4g_uart_rx_buf[_4g_uart_rx_len++] = receive_data;                   \/\/\u5c06\u63a5\u6536\u5230\u7684\u5b57\u7b26\u4fdd\u5b58\u5728\u63a5\u6536\u7f13\u51b2\u533a\n    }\n\n    if (__HAL_UART_GET_FLAG(&amp;_4g_uart_handle, UART_FLAG_IDLE) != RESET)      \/\/\u83b7\u53d6\u63a5\u6536\u7a7a\u95f2\u4e2d\u65ad\u6807\u5fd7\u4f4d\u662f\u5426\u88ab\u7f6e\u4f4d\n    {\n        printf(&quot;recv: %s\/r\/n&quot;, _4g_uart_rx_buf);                             \/\/\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u6253\u5370\u51fa\u6765\n        control_led();                                                       \/\/\u68c0\u6d4b\u662f\u5426\u6709LED\u5173\u952e\u8bcd\n        _4g_rx_clear();\n        __HAL_UART_CLEAR_IDLEFLAG(&amp;_4g_uart_handle);                         \/\/\u6e05\u9664UART\u603b\u7ebf\u7a7a\u95f2\u4e2d\u65ad\n    }\n}<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u51e0\u4e2a\u51fd\u6570\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8bfb\u53d6 4G \u8fd4\u56de\u7684\u6570\u636e\uff0c\u5e76\u4fdd\u5b58\u5728\u6570\u7ec4 <code>bt_uart_rx_buf<\/code> \u91cc\u3002<\/p>\n<p>\u5982\u679c\u9700\u8981\u901a\u8fc7\u4e32\u53e3\u5411 4G \u6a21\u5757\u53d1\u9001\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u51fd\u6570\uff1a<\/p>\n<pre><code class=\"c\">void _4g_send(char *fmt, ...)\n{\n    va_list ap;\n    uint16_t len;\n\n    va_start(ap, fmt);\n    vsprintf((char *)_4g_uart_tx_buf, fmt, ap);\n    va_end(ap);\n\n    len = strlen((const char *)_4g_uart_tx_buf);\n    HAL_UART_Transmit(&amp;_4g_uart_handle, _4g_uart_tx_buf, len, HAL_MAX_DELAY);\n}<\/code><\/pre>\n<p>\u5176\u5b9e\u662f\u5426\u5411 4G \u6a21\u5757\u53d1\u9001\u6570\u636e\u5e76\u4e0d\u5f71\u54cd\u6211\u4eec\u7684\u5b9e\u73b0\u6548\u679c\uff0c\u7559\u7740\u7684\u76ee\u7684\u4e00\u65b9\u9762\u4e3a\u4e86\u8ba9\u5927\u5bb6\u590d\u4e60\u4e00\u4e0b\uff0c\u53e6\u4e00\u65b9\u9762\u53ef\u4ee5\u770b\u51fa 4G \u6a21\u5757\u662f\u5426\u5728\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>\u81f3\u6b64\uff0c4G \u6a21\u5757\u7684\u521d\u59cb\u5316\u3001\u53d1\u9001\u3001\u63a5\u6536\u90e8\u5206\u5c31\u505a\u597d\u4e86\u3002<\/p>\n<h3>5.7 LED\u63a7\u5236<\/h3>\n<p>\u68c0\u6d4b 4G \u6a21\u5757\u662f\u5426\u63a5\u6536\u5230 LED \u6307\u4ee4\uff0c\u5982\u679c\u6709\u5c31\u53cd\u8f6c LED \u706f\u72b6\u6001\u3002<\/p>\n<pre><code class=\"c\">void control_led()\n{\n    if(strstr((const char *)_4g_uart_rx_buf, &quot;green&quot;) != NULL)          \/\/\u5982\u679c\u63a5\u6536\u5230\u5173\u952e\u8bcd&quot;green&quot;\n        LED1_TOGGLE();                                                  \/\/ \u7ffb\u8f6cLED1\n    if(strstr((const char *)_4g_uart_rx_buf, &quot;yellow&quot;) != NULL)         \/\/\u5982\u679c\u63a5\u6536\u5230\u5173\u952e\u8bcd&quot;yellow&quot;\n        LED2_TOGGLE();                                                  \/\/ \u7ffb\u8f6cLED2\n    if(strstr((const char *)_4g_uart_rx_buf, &quot;red&quot;) != NULL)            \/\/\u5982\u679c\u63a5\u6536\u5230\u5173\u952e\u8bcd&quot;red&quot;\n        LED3_TOGGLE();                                                  \/\/ \u7ffb\u8f6cLED3\n}<\/code><\/pre>\n<h3>5.8 \u4e3b\u51fd\u6570<\/h3>\n<p>\u5728 main \u51fd\u6570\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u5148\u8c03\u7528 <code>_4g_init()<\/code> \u51fd\u6570\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u7136\u540e\u8c03\u7528 <code>_4g_send()<\/code> \u51fd\u6570\u53d1\u9001\u6570\u636e\u3002<\/p>\n<pre><code class=\"c\">int main(void)\n{\n    HAL_Init();                                 \/* \u521d\u59cb\u5316HAL\u5e93 *\/\n    sys_stm32_clock_init(RCC_PLL_MUL9);         \/* \u8bbe\u7f6e\u65f6\u949f,72M *\/\n    delay_init(72);                             \/* \u521d\u59cb\u5316\u5ef6\u65f6\u51fd\u6570 *\/\n    usart_init(115200);                         \/* \u4e32\u53e31\u6ce2\u7279\u7387\u8bbe\u4e3a115200 *\/\n    _4g_init(115200);                           \/* \u4e32\u53e32\u6ce2\u7279\u7387\u8bbe\u4e3a115200 *\/\n    led_init();\n\n    printf(&quot;4G\u63a7\u5236\u706f\u2026\u2026\/r\/n&quot;);\n\n    while(1)\n    {\n        _4g_send(&quot;4G send\/r\/n&quot;);\n        delay_ms(1000);\n    }\n}<\/code><\/pre>\n<h2>6. \u8fd0\u884c\u8fc7\u7a0b<\/h2>\n<p>\u5c06\u786c\u4ef6\u8fde\u597d\uff0c\u628a\u4e32\u53e3\u63d2\u5230\u7535\u8111 USB \u53e3\u3002<\/p>\n<p>\u63a5\u7740\u6211\u4eec\u6253\u5f00\u7535\u8111\u4e32\u53e3\u8f6f\u4ef6\u3002\u8bbe\u7f6e\u4e32\u53e3\u52a9\u624b\u6ce2\u7279\u7387 115200\uff08\u4f60\u4eec\u4e0d\u4e00\u5b9a\u8981\u7528\u6211\u8fd9\u6b3e\uff0c\u968f\u4fbf\u7684\u4e32\u53e3\u52a9\u624b\u90fd\u53ef\u4ee5\uff09\uff0c\u9009\u62e9\u4e32\u53e3\u53f7\uff0c\u6700\u540e\u6253\u5f00\u4e32\u53e3\u5f00\u59cb\u51c6\u5907\u63a5\u6536\u6570\u636e\u3002<\/p>\n<p>\u8fd9\u4e2a\u4e32\u53e3\u5de5\u5177\u63a5\u6536\u7684\u662f MCU \u4e32\u53e3 1 \u7684\u6570\u636e\uff0c\u4e5f\u5c31\u662f log \u30024G \u6a21\u5757\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u6211\u4eec\u4f7f\u7528\u4e32\u53e3 1 \u6253\u5370\u5230\u4e0b\u9762\u7684\u4e32\u53e3\u52a9\u624b\u91cc\u3002<\/p>\n<p>\u70e7\u5f55\u4ee3\u7801\uff0c\u6253\u5f00\u4e32\u53e3\u8c03\u8bd5\u52a9\u624b\u548c\u7f51\u7edc\u8c03\u8bd5\u52a9\u624b\uff0c\u4e0a\u7535\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6h\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6bd4\u5982\u6211\u4eec\u7528\u670d\u52a1\u5668\uff08\u7f51\u7edc\u8c03\u8bd5\u52a9\u624b\uff09\u7ed9 4G \u6a21\u5757\u53d1\u9001\u6570\u636e\u300cred\u300d\u3001\u300cyellow\u300d\u3001\u300cgreen\u300d\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u4e32\u53e3\u52a9\u624b\u6210\u529f\u63a5\u6536\u5230\u4e86\u300cred\u300d \u3001\u300cyellow\u300d\u3001\u300cgreen\u300d\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"393\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6i\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6211\u4eec\u7684\u4e09\u4e2a\u5c0f\u706f\u4e5f\u6253\u5f00\u4e86\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"799\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdfv6j\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u518d\u6b21\u53d1\u9001\u5173\u952e\u8bcd\u5373\u53ef\u5173\u5bf9\u5e94\u7684\u706f\u3002\u5f53\u7136\uff0c\u4e00\u6b21\u53d1\u9001 \u300cgreen yellow red\u300d\uff0c\u5c31\u53ef\u4ee5\u63a7\u5236\u4e09\u4e2a\u5c0f\u706f\u4e00\u8d77\u53cd\u8f6c\u3002<\/p>\n<p>\u7ec6\u5fc3\u7684\u540c\u5b66\u53ef\u80fd\u53d1\u73b0\u4e86\uff0c\u4e0d\u9700\u8981\u4e32\u53e3\u8c03\u8bd5\u52a9\u624b\u3001USB \u8f6c TTL\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u6211\u4eec\u7684\u76ee\u6807\uff0c\u6211\u7684\u76ee\u7684\u662f\u8ba9\u5927\u5bb6\u7684\u66f4\u6e05\u695a 4G \u6a21\u5757\u7684\u6536\u53d1\u8fc7\u7a0b\uff0c\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u5220\u51cf\u3002<\/p>\n<h2>7. \u603b\u7ed3<\/h2>\n<p>4G \u6a21\u5757\u5728\u65e0\u7ebf\u901a\u4fe1\u9886\u57df\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\uff0c\u5b83\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4fbf\u6377\u3001\u9ad8\u6548\u7684\u65e0\u7ebf\u7f51\u7edc\u8fde\u63a5\uff0c\u6539\u53d8\u4e86\u6211\u4eec\u4e0e\u4e16\u754c\u7684\u4ea4\u6d41\u65b9\u5f0f\uff0c\u5e76\u63a8\u52a8\u4e86\u79fb\u52a8\u901a\u4fe1\u548c\u7269\u8054\u7f51\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4ece 3G \u5230 4G\uff0c\u901f\u5ea6\u7684\u63d0\u5347\u5e26\u6765\u4e86\u77ed\u89c6\u9891\u7684\u7206\u53d1\u3001\u5168\u6c11\u76f4\u64ad\u7684\u5174\u8d77\u3001\u624b\u673a\u652f\u4ed8\u7684\u6d41\u884c\u3002\u540c\u65f6 5G \u65f6\u4ee3\u7684\u6765\u4e34\u66f4\u52a0\u8ba9\u4eba\u671f\u5f85\uff0c5G \u7684\u4e0a\u4f20\u4e0b\u8f7d\u662f 4G \u7684\u5341\u500d\uff0c\u76f8\u4fe1 5G \u5e26\u6765\u6211\u4eec\u7684\u7edd\u4e0d\u53ea\u662f\u901f\u5ea6\u7684\u63d0\u5347\u3002<\/p>\n<h2>\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u60a8\u4e86\u89e3\u548c\u4f7f\u7528 4G \u6a21\u5757\u3002\u611f\u8c22\u5404\u4f4d\u770b\u5b98\uff0cpeace and love\uff01<\/h2>\n<p><strong>\u53e6\u5916\uff0c\u60f3\u8fdb\u5927\u5382\u7684\u540c\u5b66\uff0c\u4e00\u5b9a\u8981\u597d\u597d\u5b66\u7b97\u6cd5\uff0c\u8fd9\u662f\u9762\u8bd5\u5fc5\u5907\u7684\u3002\u8fd9\u91cc\u51c6\u5907\u4e86\u4e00\u4efd BAT \u5927\u4f6c\u603b\u7ed3\u7684 LeetCode \u5237\u9898\u5b9d\u5178\uff0c\u5f88\u591a\u4eba\u9760\u5b83\u4eec\u8fdb\u4e86\u5927\u5382\u3002<\/strong><\/p>\n<p><img decoding=\"async\" width=\"286\" height=\"83\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdaCCY\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><a href=\"https:\/\/link.segmentfault.com\/?enc=EMRqLWCHEHPKO0RSpbXr6Q%3D%3D.j4NtzuBELh53I3w8nGvBVH%2F3S5MhGL%2BiE3Ce4u%2BrOLkHtblmvR4t0pCToIcWzfiG\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u5237\u9898 | LeetCode\u7b97\u6cd5\u5237\u9898\u795e\u5668\uff0c\u770b\u5b8c BAT \u968f\u4f60\u6311\uff01<\/a><\/p>\n<h3>\u6709\u6536\u83b7\uff1f\u5e0c\u671b\u8001\u94c1\u4eec\u6765\u4e2a\u4e09\u8fde\u51fb\uff0c\u7ed9\u66f4\u591a\u7684\u4eba\u770b\u5230\u8fd9\u7bc7\u6587\u7ae0<\/h3>\n<p><strong>\u63a8\u8350\u9605\u8bfb\uff1a<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=UkOCCYtXpJAwZ4dwu2yfiQ%3D%3D.876rYGx3iPzzXd3i9gZkcB13IqM%2B30KbOBTluNREzhYVMNGoUPp6riqADs%2BIumiO\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u7a0b\u5e8f\u5458\u5fc5\u5907\u7f16\u7a0b\u8d44\u6599\u5927\u5168<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=C0Ctd8N41GtxBwaYgSadgQ%3D%3D.L5FnyNLJIGbmz4FjVG71pKW%2BKjPuMUE7m4PV6O%2F16MLWtNF1sf6c7uzMW9zp%2FhMw\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u7a0b\u5e8f\u5458\u5fc5\u5907\u8f6f\u4ef6\u8d44\u6e90<\/a><\/li>\n<\/ul>\n<p>\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u535a\u5ba2\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=8PaL0YX%2FaBoXwb9F5zd%2BXg%3D%3D.pOGnSxoRmgitWn9mQOgFcNVGzGvydrPs%2BDBu5iwpfLA%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\u826f\u8bb8\u5d4c\u5165\u5f0f\u6559\u7a0b\u7f51<\/a>\uff0c\u6ee1\u6ee1\u90fd\u662f\u5e72\u8d27\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000045604978\">https:\/\/segmentfault.com\/a\/1190000045604978<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e4b\u524d\u7684\u6559\u7a0b\u4e2d\uff0c\u65e0\u7ebf\u901a\u4fe1\u6280\u672f\u6211\u4eec\u5b66\u4e60\u4e86\u84dd\u7259\u548c WiFi\uff0c\u4eca\u5929\u6211\u4eec\u8981\u6765\u5b66\u4e60 4G\u3002 4G \u6a21\u5757\u5728\u8ddd\u79bb\u4e0a\u6709\u4e2a\u7a81\u7834\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10020497","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10020497"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020497\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10020497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10020497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10020497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}