{"id":1931,"date":"2018-12-26T09:53:55","date_gmt":"2018-12-26T09:53:55","guid":{"rendered":""},"modified":"2018-12-26T17:53:28","modified_gmt":"2018-12-26T09:53:28","slug":"%e5%9f%ba%e4%ba%8e%e5%8d%95%e7%89%87%e6%9c%bastc89c58rd%2b%e8%8a%af%e7%89%87%e5%8f%8arfid%e6%8a%80%e6%9c%af%e7%9a%84%e7%94%b5%e5%ad%90%e5%af%86%e7%a0%81%e9%94%81","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=1931","title":{"rendered":"\u57fa\u4e8e\u5355\u7247\u673aSTC89C58RD+\u82af\u7247\u53caRFID\u6280\u672f\u7684\u7535\u5b50\u5bc6\u7801\u9501"},"content":{"rendered":"
\n\t\u968f\u7740\u4fe1\u606f\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4eba\u4eec\u5b89\u5168\u610f\u8bc6\u7684\u589e\u5f3a\uff0c\u7535\u5b50\u9501\u6280\u672f\u5f97\u5230\u4e86\u8fc5\u731b\u7684\u53d1\u5c55\u3002\u7535\u5b50\u9501\u7cfb\u7edf\u65e9\u5df2\u8d85\u8d8a\u4e86\u5355\u7eaf\u7684\u95e8\u9053\u53ca\u94a5\u5319\u7ba1\u7406\uff0c\u5e76\u5df2\u7ecf\u9010\u6e10\u53d1\u5c55\u6210\u4e3a\u4e00\u5957\u5b8c\u6574\u7684\u51fa\u5165\u7ba1\u7406\u7cfb\u7edf\u3002\u7535\u5b50\u9501\u7cfb\u7edf\u7684\u53d1\u5c55\u7ecf\u5386\u4e86\u5355\u4e00\u5bc6\u7801\u952e\u76d8\u7535\u5b50\u9501\u7cfb\u7edf\u3001IC \u5361\u7535\u5b50\u9501\u7cfb\u7edf\u3001\u975e\u63a5\u89e6\u5f0fIC \u5361\u7535\u5b50\u9501\u7cfb\u7edf\uff0c\u5230\u73b0\u5728\u6700\u65b0\u7684\u751f\u7269\u8bc6\u522b\u7cfb\u7edf\u3002\u5176\u4e2d\uff0c\u975e\u63a5\u89e6\u5f0fIC \u5361\u7535\u5b50\u9501\u7cfb\u7edf\u7531\u4e8e\u5176\u6280\u672f\u6210\u719f\u3001\u4ef7\u683c\u4f4e\u5ec9\u3001\u4f7f\u7528\u65b9\u4fbf\u7b49\u4f18\u8d8a\u7684\u6027\u80fd\uff0c\u5df2\u7ecf\u5f97\u5230\u4e86\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u672c\u6587\u5728\u5bf9RS485 \u548cTCP\/IP \u901a\u8baf\u534f\u8bae\u7814\u7a76\u7684\u57fa\u7840\u4e0a\uff0c\u63d0\u51fa\u4e86\u4e00\u79cd\u57fa\u4e8e\u5c04\u9891\u8bc6\u522b\u6280\u672f\u7684\u975e\u63a5\u89e6\u5f0fIC \u5361\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u3002<\/span><\/p>\n \n\t2.\u7cfb\u7edf\u7ed3\u6784<\/span><\/p>\n \n\t\u7cfb\u7edf\u91c7\u7528\u5206\u5c42\u6b21\u5206\u5e03\u5f0f\u96c6\u4e2d\u63a7\u5236\u65b9\u6848\uff0c\u5c06\u6240\u6709\u7535\u5b50\u5bc6\u7801\u9501\u7ec4\u6210\u4e00\u4e2a\u5206\u5e03\u5f0f\u7f51\u7edc\uff0c\u5176\u603b\u4f53\u7ed3\u6784\u5982\u56fe1 \u6240\u793a\u3002\u6574\u4e2a\u7cfb\u7edf\u5305\u62ec\u7ba1\u7406\u4e2d\u5fc3\u670d\u52a1\u5668\u3001\u7528\u6237\u697c\u680bPC\u3001\u7535\u5b50\u5bc6\u7801\u9501\u4e09\u5c42\u7ed3\u6784\u3002<\/span><\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t\u56fe1 \u7cfb\u7edf\u7ed3\u6784\u56fe<\/span><\/p>\n \n\t\u7ba1\u7406\u4e2d\u5fc3\u670d\u52a1\u5668\u662f\u6574\u4e2a\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u7ba1\u7406\u548c\u63a7\u5236\u4e2d\u5fc3\uff0c\u540c\u65f6\u8fd0\u884c\u6709\u7535\u5b50\u5bc6\u7801\u9501\u7ba1\u7406 \u7cfb\u7edf\u7a0b\u5e8f\u548c\u6570\u636e\u5e93\u3002\u6570\u636e\u5e93\u91c7\u7528\u652f\u6301\u7f51\u7edc\u901a\u8baf\u7684\u6570\u636e\u5e93\u7ed3\u6784\uff0c\u65b9\u4fbf\u529f\u80fd\u7684\u6269\u5c55\u3002\u4e3a\u4e86\u8fbe\u5230\u5bf9 \u6240\u6709\u7535\u5b50\u5bc6\u7801\u9501\u8fdb\u884c\u7edf\u4e00\u5b89\u5168\u7ba1\u7406\u7684\u76ee\u7684\uff0c\u7528\u6237\u901a\u8fc7\u4f7f\u7528\u975e\u63a5\u89e6\u5f0fIC \u5361\u5e76\u8f93\u5165\u5bc6\u7801\u6765\u6253\u5f00 \u7535\u5b50\u5bc6\u7801\u9501\uff0c\u5e76\u5c06\u7528\u6237\u7684IC \u5361\u4fe1\u606f\u3001*\u65f6\u95f4\u7b49\u5b58\u5165\u6570\u636e\u5e93\u3002\u7ba1\u7406\u5458\u901a\u8fc7\u7535\u5b50\u5bc6\u7801\u9501\u7ba1\u7406 \u7cfb\u7edf\u7a0b\u5e8f\u53ef\u4ee5\u6e05\u6670\u7684\u67e5\u8be2\u5230\u6bcf\u4e2a\u7535\u5b50\u5bc6\u7801\u9501\u7684\u4f7f\u7528\u72b6\u6001\u3001\u8fdb\u51fa\u8bb0\u5f55\u7b49\u3002<\/span><\/p>\n \n\t\u7528\u6237\u697c\u680b PC \u91c7\u7528RS485-TCP\/IP \u901a\u8baf\u8f6c\u6362\u5668\uff0c\u8d1f\u8d23\u7535\u5b50\u5bc6\u7801\u9501\u4e0e\u7ba1\u7406\u4e2d\u5fc3\u670d\u52a1\u5668\u7684\u4fe1 \u606f\u4ea4\u4e92\uff0c\u5b9e\u73b0\u6570\u636e\u8f6c\u53d1\u7684\u529f\u80fd\uff0c\u5b9e\u73b0RS485 \u548cTCP\/IP \u901a\u8baf\u534f\u8bae\u7684\u8f6c\u6362\uff0c\u672c\u8eab\u5e76\u4e0d\u76f4\u63a5\u63a7\u5236 \u7535\u5b50\u5bc6\u7801\u9501\u7684\u52a8\u4f5c\u3002\u5b83\u7684\u4e3b\u8981\u4f5c\u7528\u662f\u5c06\u7535\u5b50\u5bc6\u7801\u9501\u7684RS485 \u4fe1\u53f7\u8f6c\u6362\u6210\u4e3aTCP\/IP \u4fe1\u53f7\uff0c\u4ece \u800c\u76f4\u63a5\u63a5\u5165\u5c40\u57df\u7f51\uff0c\u5b9e\u73b0\u7ba1\u7406\u4e2d\u5fc3\u670d\u52a1\u5668\u4e0e\u7535\u5b50\u5bc6\u7801\u9501\u4e4b\u95f4\u7684\u901a\u8baf\u3002<\/span><\/p>\n \n\t3.\u7535\u5b50\u5bc6\u7801\u9501\u8bbe\u8ba1<\/span><\/p>\n \n\t3.1 \u5de5\u4f5c\u539f\u7406<\/span><\/p>\n \n\t\u975e\u63a5\u89e6\u5f0fIC \u5361\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u4ee5\u5c04\u9891\u8bc6\u522b\u6280\u672f\u4e3a\u6838\u5fc3\uff0c\u4e3b\u8981\u4f7f\u7528\u4e86\u4e00\u7247Mifare \u5361\u4e13\u7528 \u7684\u8bfb\u5199\u5904\u7406\u82af\u7247MFRC530\u3002\u5b83\u662f\u4e00\u4e2a\u5c0f\u578b\u7684\u3001\u6700\u5927\u64cd\u4f5c\u8ddd\u79bb\u8fbe10 \u5398\u7c73\u7684Mifare \u5361\u5c04\u9891\u57fa \u7ad9\uff0c\u5176\u529f\u80fd\u5305\u62ec\u8c03\u5236\u3001\u89e3\u8c03\u3001\u4ea7\u751f\u5c04\u9891\u4fe1\u53f7\u3001\u5b89\u5168\u7ba1\u7406\u548c\u9632\u51b2\u649e\u673a\u5236\uff0c\u662f\u4e0e\u975e\u63a5\u89e6\u5f0fIC \u5361 \u5b9e\u73b0\u65e0\u7ebf\u901a\u4fe1\u7684\u6838\u5fc3\u6a21\u5757\uff0c\u4e5f\u662f\u8bfb\u5199\u975e\u63a5\u89e6\u5f0fIC \u5361\u7684\u5173\u952e\u63a5\u53e3\u3002 \u672c\u7cfb\u7edf\u4e2d\u5f53\u6709\u5361\u8fdb\u5165\u5c04\u9891\u5929\u7ebf\u611f\u5e94\u533a\u5185\u65f6\uff0c\u7535\u5b50\u5bc6\u7801\u9501\u8bfb\u53d6\u975e\u63a5\u89e6\u5f0f IC \u5361\u7684\u5361\u53f7\uff0c\u5e76 \u5c06\u6240\u8bfb\u5361\u53f7\u548c\u7528\u6237\u5bc6\u7801\u5b58\u5165\u5b58\u50a8\u5668\uff0c\u540c\u65f6\u5c06\u7528\u6237\u5361\u53f7\u53ca\u5237\u5361\u65f6\u95f4\u53d1\u9001\u7ed9\u7528\u6237\u697c\u680bPC\uff0c\u5e76\u5728 LCD \u6db2\u6676\u663e\u793a\u5668\u4e0a\u663e\u793a\u7528\u6237\u4fe1\u606f\u3002\u5f53\u6ca1\u6709\u5361\u8fdb\u5165\u5c04\u9891\u5929\u7ebf\u611f\u5e94\u533a\u65f6\uff0cMCU \u8bfb\u53d6\u5b9e\u65f6\u65f6\u949f\u82af \u7247\u4e2d\u7684\u65f6\u95f4\uff0c\u5e76\u5728LCD \u663e\u793a\u5668\u4e0a\u663e\u793a\u5f53\u524d\u65f6\u95f4\u53ca\u65e5\u671f\u3002<\/span><\/p>\n \n\t3.2 \u786c\u4ef6\u7ec4\u6210<\/span><\/p>\n \n\t\u6bcf\u4e2a\u7535\u5b50\u5bc6\u7801\u9501\u90fd\u80fd\u72ec\u7acb\u5b8c\u6210\u95e8\u72b6\u6001\u548c\u9501\u72b6\u6001\u7684\u76d1\u63a7\u3001\u8bc6\u522b\u5361\u662f\u5426\u6709\u6548\u3001\u5b9e\u65f6\u76d1\u63a7\u5237\u5361 \u52a8\u4f5c\u3001\u63a7\u5236\u7535\u5b50\u5bc6\u7801\u9501\u548c\u62a5\u8b66\u5668\u3001\u8bfb\u53d6\u952e\u76d8\u4fe1\u606f\u7b49\u4e00\u7cfb\u5217\u7684\u64cd\u4f5c\u3002\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u786c\u4ef6\u90e8 \u5206\u4e3b\u8981\u5305\u62ec\u5c04\u9891\u57fa\u7ad9MFRC530\u3001\u952e\u76d8\u8f93\u5165\u6a21\u5757\u3001LCD \u6db2\u6676\u663e\u793a\u3001\u76d1\u6d4b\u63a7\u5236\u6a21\u5757\u3001RS485 \u901a \u4fe1\u63a5\u53e3\u3001\u65f6\u949fDS1305\u3001\u4fe1\u606f\u5b58\u50a8\u5355\u5143\u53ca\u8702\u9e23\u5668\u62a5\u8b66\u3002\u7535\u8def\u7684\u786c\u4ef6\u6846\u56fe\u5982\u56fe2 \u6240\u793a\uff1a<\/span><\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t(1)\u7cfb\u7edf\u91c7\u7528\u5355\u7247\u673aSTC89C58RD+\u4f5c\u4e3a\u63a7\u5236\u82af\u7247\uff0c\u5b83\u662f\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u63a7\u5236\u6838\u5fc3\uff0c \u7528\u6765\u63a7\u5236\u5e76\u534f\u8c03\u5904\u7406\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u6570\u636e\u4fe1\u606f\u3002STC89C58RD+\u5185\u7f6e32K \u7684Flash \u5b58\u50a8\u5668 \u548c1280 \u5b57\u8282RAM\uff0c\u5177\u67093 \u4e2a16 \u4f4d\u8ba1\u6570\u5668\u548c\u4e00\u4e2a\u6807\u51c6\u7684\u4e32\u884c\u901a\u4fe1\u53e3\uff0c\u5e76\u5177\u6709P4 \u53e3\u3001\u52a0\u5bc6 \u6027\u5f3a\u3001\u8d85\u5f3a\u7684\u6297\u5e72\u6270\u6027\u3001\u8d85\u4f4e\u529f\u8017\u3001\u5728\u7ebf\u7cfb\u7edf\u53ef\u7f16\u7a0b\u548c\u53ef\u8fdc\u7a0b\u5347\u7ea7\u7b49\u4f18\u70b9\u3002<\/span><\/p>\n \n\t(2)\u5c04\u9891\u57fa\u7ad9\u6a21\u5757\u91c7\u7528\u4e86\u98de\u5229\u6d66\u516c\u53f8\u7684MFRC530 \u82af\u7247\uff0cMFRC530 \u662f\u4e0e\u5c04\u9891\u5361\u5b9e\u73b0\u65e0 \u7ebf\u901a\u4fe1\u7684\u6838\u5fc3\u6a21\u5757\u3002\u5b83\u6839\u636e\u5bc4\u5b58\u5668\u7684\u8bbe\u5b9a\u5bf9\u53d1\u9001\u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u8c03\u5236\u5f97\u5230\u53d1\u9001\u7684\u4fe1\u53f7\uff0c \u901a\u8fc7\u7531TX1\uff0cTX2 \u811a\u9a71\u52a8\u7684\u5929\u7ebf\u4ee5\u7535\u78c1\u6ce2\u7684\u5f62\u5f0f\u53d1\u51fa\u53bb\uff0c\u975e\u63a5\u89e6\u5f0fIC \u5361\u91c7\u7528RF \u573a\u7684\u8d1f\u8f7d \u8c03\u5236\u8fdb\u884c\u54cd\u5e94\u3002\u5929\u7ebf\u62fe\u53d6\u975e\u63a5\u89e6\u5f0fIC \u5361\u7684\u54cd\u5e94\u4fe1\u53f7\u7ecf\u8fc7\u5929\u7ebf\u5339\u914d\u7535\u8def\u9001\u5230RX \u811a\uff0cMFRC530 \u5185\u90e8\u63a5\u6536\u7f13\u51b2\u5668\u5bf9\u4fe1\u53f7\u8fdb\u884c\u68c0\u6d4b\u548c\u89e3\u8c03\u5e76\u6839\u636e\u5bc4\u5b58\u5668\u7684\u8bbe\u5b9a\u8fdb\u884c\u5904\u7406\u3002\u5904\u7406\u540e\u7684\u6570\u636e\u53d1\u9001\u5230 \u6570\u636e\u603b\u7ebf\u4e0a\u7b49\u5f85MCU \u8bfb\u53d6\u3002MCU \u4e0eMFRC530 \u91c7\u7528SPI \u603b\u7ebf\u65b9\u5f0f\u8fdb\u884c\u901a\u8baf\uff0c\u53ef\u5b9e\u73b0\u4e0e\u975e\u63a5 \u89e6\u5f0fIC \u5361\u6570\u636e\u7684\u65e0\u7ebf\u4f20\u8f93[3]\u3002<\/span><\/p>\n \n\t(3)\u4fe1\u606f\u5b58\u50a8\u5355\u5143\u4e3b\u8981\u7528\u6765\u5b58\u50a8\u7528\u6237\u7684\u4ea4\u4e92\u4fe1\u606f\uff0c\u5e76\u9632\u6b62\u51fa\u73b0\u7f51\u7edc\u6545\u969c\u65f6\uff0c\u5f71\u54cd\u7535\u5b50 \u5bc6\u7801\u9501\u7684\u6b63\u5e38\u4f7f\u7528\uff0c\u4ece\u800c\u5b9e\u73b0\u7535\u5b50\u5bc6\u7801\u9501\u7684\u9694\u79bb\u6027\u3002\u5b58\u50a8\u5355\u5143\u7684\u7528\u6237\u4fe1\u606f\u548c\u670d\u52a1\u5668\u6570\u636e\u5e93\u4fe1 \u606f\u8981\u6c42\u4e00\u81f4\u3002\u4fe1\u606f\u5b58\u50a8\u5355\u5143\u91c7\u7528Ramtrom \u516c\u53f8\u751f\u4ea7\u7684\u4e00\u79cd\u94c1\u7535\u5b58\u8d2e\u5668(FRAM) FM38081\uff0c\u5b58 \u50a8\u5bb9\u91cf\u4e3a32k×8bits \u7684\u65b0\u578bFRAM\uff0c\u5177\u6709\u9ad8\u901f\u8bfb\u5199\u3001\u8d85\u4f4e\u529f\u8017\u548c\u65e0\u9650\u6b21\u8bfb\u5199\u7b49\u7279\u6027\uff0c\u7279\u522b\u9002 \u5408\u90a3\u4e9b\u5bf9\u6570\u636e\u91c7\u96c6\u3001\u5199\u5165\u65f6\u95f4\u8981\u6c42\u5f88\u9ad8\u7684\u573a\u5408\u3002\u7531\u4e8eMCU \u4e0d\u5177\u6709IIC \u603b\u7ebf\u63a5\u53e3\uff0cFM38081 \u4e0e\u5916\u90e8\u63a5\u53e3\u9700\u8981\u91c7\u7528\u5de5\u4e1a\u6807\u51c6IIC \u603b\u7ebf\uff0c\u56e0\u6b64\u672c\u7cfb\u7edf\u91c7\u7528P2.3 \u548cP2.4 \u53e3\u7ebf\u6765\u6a21\u62dfIIC \u603b\u7ebf\u3002<\/span><\/p>\n \n\t(4)\u7cfb\u7edf\u5728\u5237\u5361\u65f6\u9700\u8981\u8bb0\u5f55\u5237\u5361\u7684\u65f6\u95f4\uff0c\u901a\u8fc7\u91c7\u7528\u7f8e\u56fdDALLAS \u516c\u53f8\u63a8\u51fa\u7684\u4f4e\u529f\u8017\u4e32 \u884c\u901a\u4fe1\u63a5\u53e3\u4e13\u7528\u82af\u7247DS1305 \u6765\u63d0\u4f9b\u4e00\u4e2a\u51c6\u786e\u53ef\u9760\u7684\u65f6\u949f\u3002DS1305 \u652f\u6301\u901a\u8fc7SPI \u4e32\u884c\u6570\u636e \u7aef\u53e3\u6216\u6807\u51c6\u7684\u4e09\u7ebf\u63a5\u53e3\u8fdb\u884c\u65f6\u95f4\u7684\u6821\u6b63\u548c\u6570\u636e\u7684\u8bfb\u53d6\uff0c\u53ef\u8fdb\u884c\u5355\u5b57\u8282\u7684\u8fde\u8bfb\u5b57\u8282\u675f\u53d1\u65b9\u5f0f\u7684 \u8bbf\u95ee\u3002\u5728\u672c\u7cfb\u7edf\u4e2d\uff0c\u91c7\u7528SERMODE \u63a5\u5730\u3001\u4f7f\u7528\u4e09\u7ebf\u4e32\u884c\u65b9\u5f0f\u4e0e\u5355\u7247\u673a\u8fdb\u884c\u6570\u636e\u901a\u4fe1\uff1aSCLK \u4f5c\u4e3a\u65f6\u949f\u8f93\u5165\uff0cSDA \u4f5c\u4e3a\u4e32\u884c\u6570\u636e\u8f93\u5165\u548c\u8f93\u51fa\uff0cRST \u4f5c\u4e3a\u901a\u8baf\u5141\u8bb8\u4fe1\u53f7\u3002<\/span><\/p>\n \n\t(5)\u68c0\u6d4b\u63a7\u5236\u6a21\u5757\u4e3b\u8981\u662f\u5b9e\u65f6\u76d1\u6d4b\u95e8\u3001\u9501\u72b6\u6001\u548c\u901a\u8baf\u7684\u72b6\u6001\uff0c\u5e76\u6267\u884c\u63a7\u5236\u5668\u7684\u5404\u79cd\u63a7 \u5236\u4fe1\u606f\uff0c\u5982\u6267\u884c*\u3001\u6267\u884c\u62a5\u8b66\u7b49;LCD \u6db2\u6676\u663e\u793a\u90e8\u5206\u9009\u7528\u4ee5ST7920 \u4e3a\u63a7\u5236\u5668\u7684128×64 \u5e26\u6c49\u5b57\u5e93\u7684\u6db2\u6676\u6a21\u5757\uff0c\u7528\u4ee5\u663e\u793a\u65f6\u95f4\u65e5\u671f\u53ca\u5404\u79cd\u72b6\u6001\u4fe1\u606f\uff0c\u4f5c\u4e3a\u4eba\u673a\u4ea4\u4e92\u7684\u754c\u9762;\u952e\u76d8\u8f93\u5165 \u6a21\u5757\u91c7\u75284*4 \u952e\u76d8\u8f93\u5165\uff0c\u4e3b\u8981\u4e3aMCU \u63d0\u4f9b\u7528\u6237\u7684\u8f93\u5165\u4fe1\u606f;\u8702\u9e23\u5668\u62a5\u8b66\u90e8\u5206\u5219\u4e3a\u7535\u5b50\u5bc6\u7801 \u9501\u7684\u9519\u8bef\u72b6\u6001\u53d1\u51fa\u62a5\u8b66\u7684\u58f0\u97f3\u3002<\/span><\/p>\n \n\t4.\u8f6f\u4ef6\u8bbe\u8ba1<\/span><\/p>\n \n\t\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u7a0b\u5e8f\u5305\u62ec\uff1aMFRC530 \u5bf9\u975e\u63a5\u89e6\u5f0fIC \u5361\u7684\u64cd\u4f5c\u7a0b\u5e8f\u3001MCU\u4e0eMFRC530 \u901a\u4fe1\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u3001\u8bfb\u5199\u65f6\u949f\u82af\u7247DS1305 \u53caLCD \u6db2\u6676\u663e\u793a\u7a0b\u5e8f\u3001\u68c0\u6d4b\u95e8\u548c\u9501\u72b6\u6001\u7a0b\u5e8f\u53ca \u5b58\u50a8\u5668\u8bfb\u5199\u7a0b\u5e8f\u7b49\u3002\u7535\u5b50\u5bc6\u7801\u9501\u4e3b\u7a0b\u5e8f\u6d41\u7a0b\u56fe\u5982\u56fe3 \u6240\u793a\u3002<\/span><\/p>\n \n\t <\/p>\n \n\t <\/p>\n \n\t\u56fe 3 \u7535\u5b50\u5bc6\u7801\u9501\u4e3b\u7a0b\u5e8f\u6d41\u7a0b\u56fe<\/span><\/p>\n \n\t5.\u5b58\u5728\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/span><\/p>\n \n\t5.1 \u5206\u5e03\u5f0f\u7ed3\u6784\u548c\u96c6\u4e2d\u7edf\u4e00\u7ba1\u7406\u76f8\u7ed3\u5408<\/span><\/p>\n \n\t\u5efa\u7acb\u5206\u5e03\u5f0f\u7535\u5b50\u5bc6\u7801\u9501\u7ba1\u7406\u7cfb\u7edf\u7684\u4e00\u4e2a\u5173\u952e\u6280\u672f\u662f\u5206\u5e03\u5728\u4e0d\u540c\u5730\u65b9\u7684\u7535\u5b50\u5bc6\u7801\u9501\u4e0e\u7ba1 \u7406\u4e2d\u5fc3\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u3002\u5982\u679c\u7535\u5b50\u9501\u901a\u8fc7RS485 \u4fe1\u53f7\u76f4\u63a5\u548c\u670d\u52a1\u5668\u4ea4\u4e92\u4fe1\u606f\uff0c \u5c06\u4f1a\u5bfc\u81f4\u4f20\u8f93\u8ddd\u79bb\u8f83\u77ed\u3001\u4fe1\u606f\u4ea4\u4e92\u901f\u5ea6\u8f83\u6162\u3001\u6297\u5e72\u6270\u80fd\u529b\u5dee\u7b49\u95ee\u9898\u7684\u53d1\u751f\u3002\u800cTCP\/IP \u534f\u8bae \u5219\u6709\u4f20\u8f93\u901f\u5ea6\u5feb\u3001\u4f20\u8f93\u8ddd\u79bb\u65e0\u9650\u5927\u3001\u901a\u8baf\u8d28\u91cf\u7a33\u5b9a\u3001\u4e0d\u6613\u53d7\u5230\u5916\u754c\u5e72\u6270\u7b49\u4f18\u70b9\u3002\u56e0\u6b64\uff0c\u5728\u5b9e \u73b0\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u4f7f\u7528RS485-TCP\/IP \u901a\u8baf\u8f6c\u6362\u5668\u6765\u5b9e\u73b0RS485 \u548cTCP\/IP \u901a\u8baf\u534f\u8bae\u7684\u8f6c\u6362\uff0c \u5b9e\u73b0\u4e86\u4fe1\u606f\u7684\u8f6c\u53d1\u3002<\/span><\/p>\n \n\t5.2 \u7535\u5b50\u5bc6\u7801\u9501\u7684\u9694\u79bb\u6027<\/span><\/p>\n \n\t\u5728\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u4e2d\uff0c\u5c06\u6bcf\u4e2a\u7535\u5b50\u5bc6\u7801\u9501\u7684\u7528\u6237\u4fe1\u606f(\u5982\u5361\u53f7\u548c\u5bc6\u7801)\u5b58\u50a8\u5728\u5bf9\u5e94\u7535\u5b50 \u9501\u7684\u4fe1\u606f\u5b58\u50a8\u5355\u5143\u4e2d\uff0c\u7535\u5b50\u9501\u63a7\u5236\u5668\u8bfb\u53d6\u4fe1\u606f\u5b58\u50a8\u5355\u5143\u4e2d\u7684\u5bf9\u5e94\u7528\u6237\u4fe1\u606f\uff0c\u5e76\u901a\u8fc7\u548c\u7528\u6237\u8f93 \u5165\u4fe1\u606f\u8fdb\u884c\u6bd4\u8f83\u6765\u5224\u65ad\u5f53\u524d\u7528\u6237\u7684\u5408\u6cd5\u6027\uff0c\u786e\u4fdd\u7ba1\u7406\u4e2d\u5fc3\u670d\u52a1\u5668\u6216\u901a\u4fe1\u7f51\u7edc\u51fa\u73b0\u6545\u969c\u65f6\uff0c\u4e0d \u4f1a\u5f71\u54cd\u7535\u5b50\u9501\u7684\u4f7f\u7528\uff0c\u5b9e\u73b0\u7535\u5b50\u5bc6\u7801\u9501\u7684\u9694\u79bb\u6027\u3002<\/span><\/p>\n \n\t5.3 \u7535\u5b50\u5bc6\u7801\u9501\u7684\u9632\u51b2\u7a81\u6027<\/span><\/p>\n \n\t\u5c04\u9891\u5361\u6709\u5feb\u901f\u9632\u51b2\u7a81\u673a\u5236\uff0c\u80fd\u9632\u6b62\u5361\u7247\u4e4b\u95f4\u51fa\u73b0\u6570\u636e\u5e72\u6270\uff0c\u56e0\u6b64\u7535\u5b50\u9501\u8bfb\u5199\u5668\u53ef\u4ee5“\u540c \u65f6”\u8bfb\u53d6\u591a\u5f20\u975e\u63a5\u89e6\u5f0f\u5c04\u9891\u5361\u7684\u5361\u5185\u4fe1\u606f\uff0c\u4f46\u5b9e\u9645\u53ea\u8bfb\u53d6\u4e86\u5176\u4e2d\u4e00\u4e2a\u975e\u63a5\u89e6\u5f0f\u5c04\u9891\u5361\uff0c\u901a\u8fc7 \u5728\u6db2\u6676\u663e\u793a\u5c4f\u4e0a\u663e\u793a\u6b63\u5728\u5904\u7406\u7684\u975e\u63a5\u89e6\u5f0f\u5c04\u9891\u5361\u7684\u5361\u5185\u4fe1\u606f\uff0c\u6765\u63d0\u793a\u7528\u6237\u8f93\u5165\u5bf9\u5e94\u7684\u5bc6\u7801\uff0c \u89e3\u51b3\u4e86\u591a\u4e2a\u975e\u63a5\u89e6\u5f0f\u5c04\u9891\u5361\u548c\u5bc6\u7801\u51fa\u73b0\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\u3002<\/span><\/p>\n \n\t5.4 \u7cfb\u7edf\u7684\u5b89\u5168\u6027<\/span><\/p>\n \n\t\u5bf9 IC \u5361\u4fe1\u606f\u7684\u52a0\u5bc6\u662f\u51b3\u5b9aIC \u5361\u5b89\u5168\u6027\u7684\u5173\u952e\u3002\u7531\u4e8e\u672c\u7cfb\u7edf\u91c7\u7528PHILIPS\u516c\u53f8\u7684Mifare \u5361\uff0c\u5b83\u662f\u4e00\u79cd\u667a\u80fd\u5361(smart card),\u5185\u5efa\u6709\u4e2d\u592e\u5fae\u5904\u7406\u673a(MCU)\u548cASIC \u7b49\uff0c\u4f7f\u5361\u5728\u5b89\u5168\u4fdd\u5bc6\u6027\u3001 \u8ba4\u8bc1\u903b\u8f91\u3001\u7b97\u672f\u8fd0\u7b97\u7b49\u5fae\u64cd\u4f5c\u63a7\u5236\u6709\u5e8f\u8fdb\u884c\u3002\u8981\u8bbf\u95ee\u4e00\u4e2aMifare \u7c7b\u5361\u7684\u6570\u636e\uff0c\u9996\u5148\u8981\u5b8c\u6210 \u8ba4\u8bc1\u3002Mifare \u5361\u7684\u8ba4\u8bc1\u91c7\u7528\u4e09\u6b21\u8ba4\u8bc1\u7684\u8fc7\u7a0b\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u7531\u81ea\u52a8\u6267\u884cAuthbent1 \u548cAuthbent2 \u547d\u4ee4\u6765\u5b9e\u73b0\u3002\u91c7\u7528\u6b64\u6cd5\u540e\uff0c\u53ef\u6709\u6548\u9632\u6b62IC \u5361\u7684\u975e\u6cd5\u590d\u5236\u4e0e\u6570\u636e\u975e\u6cd5\u4fee\u6539\u3002\u5728\u7cfb\u7edf\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u5c06\u975e\u63a5\u89e6\u5f0fIC \u5361\u548c\u8f93\u5165\u7528\u6237\u5bc6\u7801\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u5e76\u505a\u597d\u65e5\u5fd7\u8bb0\u5f55\uff0c\u771f\u6b63\u5b9e\u73b0\u4e86\u7535 \u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/span><\/p>\n \n\t6.\u7ed3\u675f\u8bed<\/span><\/p>\n \n\t\u7cfb\u7edf\u91c7\u7528\u9ad8\u6027\u80fd\u7684\u63a7\u5236\u82af\u7247 STC89C58RD+\u5e76\u7ed3\u5408\u6280\u672f\u6210\u719f\u7684\u5c04\u9891\u8bc6\u522b\u6280\u672f\uff0c\u5206\u6790\u4e86\u975e \u63a5\u89e6\u5f0fIC \u5361\u7535\u5b50\u5bc6\u7801\u9501\u7684\u786c\u4ef6\u7ec4\u6210\u548c\u8f6f\u4ef6\u8bbe\u8ba1\uff0c\u63d0\u51fa\u4e86\u4e00\u79cd\u57fa\u4e8e\u5c04\u9891\u8bc6\u522b\u6280\u672f\u7684\u975e\u63a5\u89e6IC \u5361\u7535\u5b50\u5bc6\u7801\u9501\u7cfb\u7edf\u7684\u89e3\u51b3\u65b9\u6848\u3002\u672c\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4f53\u73b0\u4e86\u65b9\u4fbf\u3001\u5b89\u5168\u3001\u53ef\u9760\u3001\u9ad8\u6548\u7684\u7535\u5b50\u9501\u7cfb\u7edf \u8bbe\u8ba1\u7406\u5ff5\uff0c\u7cfb\u7edf\u529f\u80fd\u53ef\u4ee5\u52a0\u4ee5\u6269\u5c55\uff0c\u9002\u7528\u4e8e\u4f4f\u5b85\u5c0f\u533a\u3001\u5546\u573a\u3001\u529e\u516c\u697c\u3001\u5b66\u6821\u7b49\u5404\u79cd\u573a\u6240\u3002\u5b9e \u8df5\u8868\u660e\uff0c\u7cfb\u7edf\u8fd0\u884c\u7a33\u5b9a\u3001\u5b9e\u65f6\u6027\u597d\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":" \u968f\u7740\u4fe1\u606f\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4eba\u4eec\u5b89\u5168\u610f\u8bc6\u7684\u589e\u5f3a\uff0c\u7535\u5b50\u9501\u6280\u672f\u5f97\u5230\u4e86\u8fc5\u731b\u7684\u53d1\u5c55\u3002\u7535\u5b50\u9501\u7cfb\u7edf\u65e9\u5df2\u8d85\u8d8a\u4e86\u5355\u7eaf\u7684\u95e8\u9053\u53ca\u94a5\u5319\u7ba1\u7406\uff0c\u5e76\u5df2\u7ecf\u9010\u6e10\u53d1\u5c55\u6210\u4e3a\u4e00\u5957\u5b8c\u6574\u7684\u51fa\u5165\u7ba1\u7406\u7cfb\u7edf\u3002\u7535\u5b50\u9501\u7cfb\u7edf<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/1931"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1931"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/1931\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1931"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n\t<\/span><\/center><\/p>\n
\n\t<\/span><\/center><\/p>\n
\n\t<\/span><\/center><\/p>\n